summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/utils.scm b/tests/utils.scm
index b630b10..66220cc 100644
--- a/tests/utils.scm
+++ b/tests/utils.scm
@@ -1,5 +1,5 @@
;;; ccwl --- Concise Common Workflow Language
-;;; Copyright © 2021, 2022 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2021, 2022, 2023 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of ccwl.
;;;
@@ -216,4 +216,8 @@
0 0)))
(list sum sum-of-squares)))
+(test-equal "pairify must ignore extra elements when list has an odd number of elements"
+ '((1 . 2) (3 . 4) (5 . 6))
+ (pairify (list 1 2 3 4 5 6 7)))
+
(test-end "utils")