summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-01-09 01:04:20 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-01-09 01:04:34 +0100
commit70989e0cef3ccb83d7391582c1d0ab0459bb1954 (patch)
tree1d1bd1250ce0d4c3f3ddc0139fd959f34404776e
parent7bf376b7fbcca929e64b42bf08cdfce487b94bb3 (diff)
srfi: 1: add tests for append! (and concatenate!)
-rw-r--r--lib/srfi/1/test.sld4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/srfi/1/test.sld b/lib/srfi/1/test.sld
index b280b12b..94910f88 100644
--- a/lib/srfi/1/test.sld
+++ b/lib/srfi/1/test.sld
@@ -77,6 +77,10 @@
(test 'a (append '() 'a))
(test '(x y) (append '(x y)))
(test '() (append))
+ (test (list 'a) (append! '() (list 'a)))
+ (test (list 'a 'b) (append! (list 'a) '() '() (list 'b)))
+ (test (list 'x 'y) (append! (list 'x 'y)))
+ (test '() (append!))
(test '(c b a) (reverse '(a b c)))
(test '((e (f)) d (b c) a) (reverse '(a (b c) d (e (f)))))
(test '((one 1 odd) (two 2 even) (three 3 odd)) (zip '(one two three) '(1 2 3) '(odd even odd even odd even odd even)))