0.8.18.28:
[sbcl.git] / tests / print.impure.lisp
index 73b87d8..ab25c65 100644 (file)
 
 ;;; a spot of random-testing for rational printing
 (defvar *seed-state* (make-random-state))
-(prin1 *seed-state*) ; so that we can reproduce errors
+(print *seed-state*) ; so that we can reproduce errors
 (let ((seed (make-random-state *seed-state*)))
   (loop repeat 42
      do (let ((n (random (ash 1 1000) seed))
 (assert (string= (format nil "~VR" nil 5) "five"))
 (assert (string= (format nil (formatter "~VR") nil 6) "six"))
 
+;;; CSR inserted a bug into Burger & Dybvig's float printer.  Caught
+;;; by Raymond Toy
+(assert (string= (format nil "~F" 1d23) "1.0d+23"))
+
 ;;; success
 (quit :unix-status 104)