X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fpprint.impure.lisp;h=bf85bcf833b17b3e5114b358da25380650b5a15c;hb=f2db6743b1fadeea9e72cb583d857851c87efcd4;hp=05a7525fe7fb3cfc4ee9aa054e62d8e9de53c5ce;hpb=175c318c892b0627b36fa3c4db66f59680242204;p=sbcl.git diff --git a/tests/pprint.impure.lisp b/tests/pprint.impure.lisp index 05a7525..bf85bcf 100644 --- a/tests/pprint.impure.lisp +++ b/tests/pprint.impure.lisp @@ -200,5 +200,11 @@ (assert (string= "#1=(#2=(#2# . #3=(#1# . #3#)))" (with-output-to-string (s) (write '#1=(#2=(#2# . #3=(#1# . #3#))) :stream s))))) + +;;; Printing malformed defpackage forms without errors. +(with-test (:name :pprint-defpackage) + (with-open-stream (null (make-broadcast-stream)) + (pprint '(defpackage :foo nil)) + (pprint '(defpackage :foo 42)))) ;;; success