X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Finterface.impure.lisp;h=3d757fc2d4c43409c44f0cbbde198159a04d6cda;hb=b03ad9b03a3cfec37db9bf6bb0912725959335e3;hp=2bd37ceccf2f85a6cb3801a63fef070c735461ce;hpb=40bf78b47ea89b15698adb9c550efa4cbacafeb7;p=sbcl.git diff --git a/tests/interface.impure.lisp b/tests/interface.impure.lisp index 2bd37ce..3d757fc 100644 --- a/tests/interface.impure.lisp +++ b/tests/interface.impure.lisp @@ -6,7 +6,7 @@ ;;;; While most of SBCL is derived from the CMU CL system, the test ;;;; files (like this one) were written from scratch after the fork ;;;; from CMU CL. -;;;; +;;;; ;;;; This software is in the public domain and is provided with ;;;; absolutely no warranty. See the COPYING and CREDITS files for ;;;; more information. @@ -19,23 +19,29 @@ x) (assert (string= (documentation '(setf foo) 'function) - "(setf foo) documentation")) + "(setf foo) documentation")) (assert (string= (documentation #'(setf foo) 'function) - "(setf foo) documentation")) + "(setf foo) documentation")) (defun (sb-pcl::class-predicate foo) (x) "(class-predicate foo) documentation" x) (assert (string= (documentation '(setf foo) 'function) - "(setf foo) documentation")) + "(setf foo) documentation")) (assert (string= (documentation #'(setf foo) 'function) - "(setf foo) documentation")) + "(setf foo) documentation")) (assert (string= (documentation '(sb-pcl::class-predicate foo) 'function) - "(class-predicate foo) documentation")) + "(class-predicate foo) documentation")) (assert (string= (documentation #'(sb-pcl::class-predicate foo) 'function) - "(class-predicate foo) documentation")) + "(class-predicate foo) documentation")) + +;;; DISASSEMBLE shouldn't fail on closures or unpurified functions +(defun disassemble-fun (x) x) +(disassemble 'disassemble-fun) +(let ((x 1)) (defun disassemble-closure (y) (if y (setq x y) x))) +(disassemble 'disassemble-closure) ;;;; success -(sb-ext:quit :unix-code 104) +(sb-ext:quit :unix-status 104)