From 1e8171b95e146b18c2c173445bd34dc3cacee3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 22 Oct 2023 14:52:08 +0200 Subject: Test work. --- tests/unit/util/hnh-util.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/unit/util/hnh-util.scm') diff --git a/tests/unit/util/hnh-util.scm b/tests/unit/util/hnh-util.scm index 8586b6d9..79b86b54 100644 --- a/tests/unit/util/hnh-util.scm +++ b/tests/unit/util/hnh-util.scm @@ -202,7 +202,11 @@ (!= 1 2))) (test-group "init+last" - 'TODO) + (call-with-values + (lambda () (init+last (iota 5))) + (lambda (init last) + (test-equal '(0 1 2 3) init) + (test-equal 4 last)))) (test-group "take-to" (test-equal "Take to" @@ -336,6 +340,10 @@ (test-equal '(#\H #\1 #\2 #\3 #\4 #\5 #\6) tail))))) (test-group "cross-product" + + (test-equal "null case" + '() (cross-product)) + (test-equal "Basic case" '((1 4) (1 5) -- cgit v1.2.3