From 9080b0a664ab36bf271fe042e3dc446727b18eff Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sat, 15 Jun 2024 03:44:57 +0900 Subject: Add fold-map function --- tests/run.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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") -- cgit v1.2.3