X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Flist.pure.lisp;h=b1f588ea4efded356f53c5d5c0a1291695409654;hb=c41cb4c87eae7b04f844dca5f7edb5086c5d2d68;hp=caf0bb542f9ae5dab2f809a1ed18e20b2776a327;hpb=ecd87c1ac0983a9ccf823c0344c5736c41e10e57;p=sbcl.git diff --git a/tests/list.pure.lisp b/tests/list.pure.lisp index caf0bb5..b1f588e 100644 --- a/tests/list.pure.lisp +++ b/tests/list.pure.lisp @@ -129,3 +129,10 @@ (assert (eq s (last s (* 1440 most-positive-fixnum)))) (assert (null (butlast s (* 1440 most-positive-fixnum)))) (assert (null (nbutlast s (* 1440 most-positive-fixnum))))) + +;;; Bug reported by Paul Dietz: ASSOC should ignore NIL elements in a +;;; alist +(let ((f (compile nil '(lambda (x) + (assoc x '(nil (a . b) nil (nil . c) (c . d)) + :test #'eq))))) + (assert (equal (funcall f 'nil) '(nil . c))))