1.0.16.37: fix bug #206 -- SB-FLUID build works once more
[sbcl.git] / tests / print.impure.lisp
index 608ce7f..4f1b3f5 100644 (file)
     (assert (equal x x2))
     (assert (eq h2 (gethash x2 h2)))))
 
+;;; an off-by-one error in the ~R format directive until 1.0.15.20
+;;; prevented printing cardinals and ordinals between (expt 10 63) and
+;;; (1- (expt 10 66))
+(assert (string= (format nil "~R" (expt 10 63)) "one vigintillion"))
+(assert (string= (format nil "~:R" (expt 10 63)) "one vigintillionth"))
+
 ;;; success