X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fhash.impure.lisp;h=8b3636c4843618bb189128e6d5431a972dbd77f3;hb=3586bad78cd1b61c356ec74a4e7bcced1eb69cb3;hp=f2874dc70251da4f999d32efeb0e7fb568afdb65;hpb=3924eb24605ed3ff0951155d271a7fea15656e7d;p=sbcl.git diff --git a/tests/hash.impure.lisp b/tests/hash.impure.lisp index f2874dc..8b3636c 100644 --- a/tests/hash.impure.lisp +++ b/tests/hash.impure.lisp @@ -51,7 +51,9 @@ (complex 1.0 2.0) (complex 1.0d0 2.0) (complex 1.5 -3/2) (complex 1.5 -1.5d0) - #\x #\X #\*)) + #\x #\X #\* + + #'allocate-instance #'no-applicable-method)) (make-psxhash-extra-subtests () (list (copy-seq "") (copy-seq #*) @@ -221,5 +223,17 @@ (assert (eql (gethash key read-ht) (gethash key original-ht)))))) +;;; NIL is both SYMBOL and LIST +(dolist (fun '(sxhash sb-impl::psxhash)) + (assert (= (funcall fun nil) + (funcall (compile nil `(lambda (x) + (declare (symbol x)) + (,fun x))) + nil) + (funcall (compile nil `(lambda (x) + (declare (list x)) + (,fun x))) + nil)))) + ;;; success (quit :unix-status 104)