aboutsummaryrefslogtreecommitdiffstats
path: root/csc/list-test.csc
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2022-01-24 20:40:33 -0800
committerRose Hogenson <rhogenson@posteo.net>2022-01-24 20:40:33 -0800
commitc36d2a16e06e2f3ca9c9c3f8d969411bc8c28f01 (patch)
treed7d0b5206202d5b4471806c96393cc01a46c4a34 /csc/list-test.csc
parentd1c59f340c623eb533f1b59564b0e3cd8f5ca728 (diff)
downloadchromatopelma-c36d2a16e06e2f3ca9c9c3f8d969411bc8c28f01.tar.zst
Finish the loop macro.
I also cleaned everything up a lot. Maybe there are still bugs because the test coverage is awful, but for now I'm happy to be done.
Diffstat (limited to 'csc/list-test.csc')
-rw-r--r--csc/list-test.csc7
1 files changed, 7 insertions, 0 deletions
diff --git a/csc/list-test.csc b/csc/list-test.csc
index 6e910c0..d4c145a 100644
--- a/csc/list-test.csc
+++ b/csc/list-test.csc
@@ -93,3 +93,10 @@
(test filter-odd
(assert-equal '(1 3 5 7 9) (filter odd? '(0 1 2 3 4 5 6 7 8 9))))
+
+
+(test unzip-empty
+ (assert (values= (values '() '()) (unzip '()))))
+
+(test unzip-simple
+ (assert (values= (values '(1 2 3) '(4 5 6)) (unzip '((1 . 4) (2 . 5) (3 . 6))))))