summary refs log tree commit diff
path: root/tests/test.mew
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.mew')
-rw-r--r--tests/test.mew5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test.mew b/tests/test.mew
index 72d1e27..a775928 100644
--- a/tests/test.mew
+++ b/tests/test.mew
@@ -486,6 +486,11 @@
 
 ; uniq-accumulator
 
+(test-group "nth-accumulator"
+  (test 6 (into (nth-accumulator 2) '(4 5 6 7)))
+  (test #t (void? (into (nth-accumulator 8) '(4 5 6 7))))
+  (test #t (void? (into (nth-accumulator 8) '()))))
+
 (test-group "one-of"
   (test #t ((one-of 1 2 3) 1))
   (test #f ((one-of 1 2 3) 4))