X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Flist.pure.lisp;h=7ccdf3c1d2a757062f29c4fa583b7c30bd415f36;hb=cf49f2d086069a9c1b57f501df9a6a0bd3a34c3c;hp=0340d850bb976ddaa407e7814b1d85540c9c47bf;hpb=fdbbe74c279db74e8855c58eaef02a30b2fa1917;p=sbcl.git diff --git a/tests/list.pure.lisp b/tests/list.pure.lisp index 0340d85..7ccdf3c 100644 --- a/tests/list.pure.lisp +++ b/tests/list.pure.lisp @@ -336,6 +336,7 @@ (assert (equal '((:b)) (funcall (compile nil '(lambda (x y) (adjoin x y :key #'car :test #'string=))) (list 'b) (list '(:b))))) +#+sb-eval (assert (equal '((:b)) (let ((sb-ext:*evaluator-mode* :interpret)) (eval '(adjoin (list 'b) (list '(:b)) :key #'car :test #'string=))))) @@ -372,3 +373,7 @@ ;;; FIND on lists should not call key outside the specified subsquence. (assert (not (find :a '(0 (:c) 1) :start 1 :end 2 :key #'car))) + +(with-test (:name :adjoin-folding) + (flet ((%f () (adjoin 'x '(a b)))) + (assert (not (eq (%f) (%f))))))