1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

(lset-union): More tests.

This commit is contained in:
Kevin Ryde 2005-04-01 23:49:35 +00:00
parent 62a8750001
commit f01b08bf8a

View file

@ -1071,6 +1071,21 @@
(pass-if "one arg"
(equal? '(1 2 3) (lset-union eq? '(1 2 3))))
(pass-if "'() '()"
(equal? '() (lset-union eq? '() '())))
(pass-if "'() '(1 2 3)"
(equal? '(1 2 3) (lset-union eq? '() '(1 2 3))))
(pass-if "'(1 2 3) '()"
(equal? '(1 2 3) (lset-union eq? '(1 2 3) '())))
(pass-if "'(1 2 3) '(4 3 5)"
(equal? '(5 4 1 2 3) (lset-union eq? '(1 2 3) '(4 3 5))))
(pass-if "'(1 2 3) '(4) '(3 5))"
(equal? '(5 4 1 2 3) (lset-union eq? '(1 2 3) '(4) '(3 5))))
;; in guile 1.6.7 and earlier, `=' was called with the arguments the wrong
;; way around
(pass-if "called arg order"