X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.impure.lisp;h=175edcec9fd52935c61e8416e5fd9b3e4c436758;hb=911a74c40f7bc0ce13dfd5fa96ce83188d356fc3;hp=52b5fc2f32582df482006f10a55db28cf49cbbed;hpb=e345436f0efaca2c0ba6be2c30ce6b5a3dae3836;p=sbcl.git diff --git a/tests/interface.impure.lisp b/tests/interface.impure.lisp index 52b5fc2..175edce 100644 --- a/tests/interface.impure.lisp +++ b/tests/interface.impure.lisp @@ -232,7 +232,7 @@ "bar" (incf x y))) -(with-test (:name (documentation closure)) +(with-test (:name (documentation :closure)) (assert (string= (documentation 'docfoo 'function) "bar")) (assert (string= (setf (documentation 'docfoo 'function) "baz") "baz")) (assert (string= (documentation 'docfoo 'function) "baz")) @@ -243,10 +243,10 @@ (assert (not (setf (documentation 'docfoo 'function) nil))) (assert (not (documentation 'docfoo 'function)))) -(with-test (:name (documentation built-in-macro) :skipped-on '(not :sb-doc)) +(with-test (:name (documentation :built-in-macro) :skipped-on '(not :sb-doc)) (assert (documentation 'trace 'function))) -(with-test (:name (documentation built-in-function) :skipped-on '(not :sb-doc)) +(with-test (:name (documentation :built-in-function) :skipped-on '(not :sb-doc)) (assert (documentation 'cons 'function))) (with-test (:name :describe-generic-function-with-assumed-type) @@ -310,5 +310,14 @@ (equal (documentation 'test 'function) (documentation 'test2 'function))))) +(with-test (:name :setf-documentation-on-nil) + (assert + (handler-case + (assert (equal (setf (documentation nil 'function) "foo") "foo")) + (style-warning () t) + (:no-error (x) + (declare (ignore x)) + nil)))) + ;;;; success