aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-06-15 03:44:57 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-06-15 03:44:57 +0900
commit9080b0a664ab36bf271fe042e3dc446727b18eff (patch)
treeb907c261cec4de6c2c6fe16f5af073d01efc846a /tests
parent959ead049e6f22438902399eb0925e8f60e0f3e0 (diff)
Add fold-map function
Diffstat (limited to 'tests')
-rw-r--r--tests/run.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run.scm b/tests/run.scm
index be0845b..4b2b885 100644
--- a/tests/run.scm
+++ b/tests/run.scm
@@ -144,7 +144,10 @@
(import (prefix (product monoid) product:))
(import (prefix (product fold) product:))
+(test 1 (product:fold '()))
(test 120 (product:fold '(1 2 3 4 5)))
+(test 1 (product:fold-map error '()))
+(test 6 (product:fold-map length '((a a a) (a a) (a))))
(test-end "monoid.fold")