X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fprint.impure.lisp;h=4f1b3f54431a4df7ffae81b038cb5b1d6c58df10;hb=ed891a4fd882d1b9fe066ab14bcf2107aea95baa;hp=608ce7fc36edb9cb04a985f8ac1e0a7d1eddfbaf;hpb=27844b49d7305379390dfbd78f114c46dcf74707;p=sbcl.git diff --git a/tests/print.impure.lisp b/tests/print.impure.lisp index 608ce7f..4f1b3f5 100644 --- a/tests/print.impure.lisp +++ b/tests/print.impure.lisp @@ -427,4 +427,10 @@ (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