Skip to content

Commit

Permalink
srfi: 1: add tests for append! (and concatenate!)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekaitz-zarraga committed Jan 9, 2024
1 parent 7bf376b commit 70989e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/srfi/1/test.sld
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 70989e0

Please sign in to comment.