X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Flist.pure.lisp;h=431275b279d1bbd4361f3d8526972355359fdfd5;hb=1d9fe1f6d7d64aa05993d414c1cd683a2ce231cc;hp=d9b06b269bdf677a749afb6887675dc8b1c6f9c6;hpb=1db4f16ef02f5b4d699d78541edb19ad8f3defc8;p=sbcl.git diff --git a/tests/list.pure.lisp b/tests/list.pure.lisp index d9b06b2..431275b 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=))))) @@ -370,3 +371,5 @@ (test '((42)) '((42)) '((42)) :key #'car) (test '((42)) '((42)) '((42)) :key #'car :test-not #'<)) +;;; FIND on lists should not call key outside the specified subsquence. +(assert (not (find :a '(0 (:c) 1) :start 1 :end 2 :key #'car)))