add SB-EXT:*SUPPRESS-PRINT-ERRORS* modelled after *BREAK-ON-SIGNALS*
[sbcl.git] / tests / print.impure.lisp
index 54c8c9b..33f12aa 100644 (file)
 (with-test (:name :bug-867684)
   (assert (equal "ab" (format nil "a~0&b"))))
 
+(with-test (:name :print-unreadably-function)
+  (assert (equal "\"foo\""
+                 (handler-bind ((print-not-readable #'sb-ext:print-unreadably))
+                   (write-to-string (coerce "foo" 'base-string) :readably t)))))
+
 ;;; success