X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcondition.pure.lisp;h=0b071d85cfcbb9ec40f256eaed3cd0305ebe9226;hb=bcd323c39d6f5f80020ba4a5d9eb8d348c6cc499;hp=dc6877deff99c9853bece0b5f6501e895e52745f;hpb=0a8778552a8499dd4614c9aada7dfca3dfcc6997;p=sbcl.git diff --git a/tests/condition.pure.lisp b/tests/condition.pure.lisp index dc6877d..0b071d8 100644 --- a/tests/condition.pure.lisp +++ b/tests/condition.pure.lisp @@ -179,3 +179,13 @@ (eq sc (car (simple-condition-format-arguments c)))) :ok))))))) + +(with-test (:name :malformed-simple-condition-printing-type-error) + (assert (eq :type-error + (handler-case + (princ-to-string + (make-condition 'simple-error :format-control "" :format-arguments 8)) + (type-error (e) + (when (and (eq 'list (type-error-expected-type e)) + (eql 8 (type-error-datum e))) + :type-error))))))