From 66cd2fda549d7708acb8685933e619b0922885d5 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 18 Nov 2022 20:05:29 +0100 Subject: add generator-xfold --- tests/test.mew | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test.mew b/tests/test.mew index e638377..ddf376c 100644 --- a/tests/test.mew +++ b/tests/test.mew @@ -435,6 +435,10 @@ (test 43 ((per * inc) 6 7)) (test 42 ((per) 42))) +(test-group "generator-xfold" + (test -10 (generator-xfold - 0 (generator 1 2 3 4))) + (test '((((() 1 5) 2 6) 3 7) 4 8) (generator-xfold list '() (generator 1 2 3 4) (generator 5 6 7 8)))) + (test-group "inject" (test 10 ((inject +) (generator 1 2 3 4))) (test 0 ((inject +) (generator))) -- cgit 1.4.1