From: Stas Boukarev Date: Mon, 4 Feb 2013 12:08:07 +0000 (+0400) Subject: Fix (documentation closure) test. X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=e345436f0efaca2c0ba6be2c30ce6b5a3dae3836;p=sbcl.git Fix (documentation closure) test. Take into account the idea that (setf (documentation #'function t) "doc") (setf (documentation 'function 'function) "doc") should do the same. --- diff --git a/tests/interface.impure.lisp b/tests/interface.impure.lisp index 4391278..52b5fc2 100644 --- a/tests/interface.impure.lisp +++ b/tests/interface.impure.lisp @@ -234,15 +234,14 @@ (with-test (:name (documentation closure)) (assert (string= (documentation 'docfoo 'function) "bar")) - (assert (string= (documentation #'docfoo t) "bar")) (assert (string= (setf (documentation 'docfoo 'function) "baz") "baz")) (assert (string= (documentation 'docfoo 'function) "baz")) - (assert (string= (documentation #'docfoo t) "bar")) + (assert (string= (documentation #'docfoo t) "baz")) (assert (string= (setf (documentation #'docfoo t) "zot") "zot")) (assert (string= (documentation #'docfoo t) "zot")) - (assert (string= (documentation 'docfoo 'function) "baz")) + (assert (string= (documentation 'docfoo 'function) "zot")) (assert (not (setf (documentation 'docfoo 'function) nil))) - (assert (string= (documentation 'docfoo 'function) "zot"))) + (assert (not (documentation 'docfoo 'function)))) (with-test (:name (documentation built-in-macro) :skipped-on '(not :sb-doc)) (assert (documentation 'trace 'function))) @@ -311,6 +310,5 @@ (equal (documentation 'test 'function) (documentation 'test2 'function))))) - ;;;; success