X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fprint.impure.lisp;h=69ff13c75e331b3079c358ab3f7abca5e562336e;hb=42bcf553ca92dd484a41c1b0c67c7450f86f17c1;hp=68420b18ebe5d4c7af37cc624ba387588f34285c;hpb=80cee3cf18d09202aa30ab957e08c5759e573bbe;p=sbcl.git diff --git a/tests/print.impure.lisp b/tests/print.impure.lisp index 68420b1..69ff13c 100644 --- a/tests/print.impure.lisp +++ b/tests/print.impure.lisp @@ -48,10 +48,10 @@ ;;; This was a bug in SBCL until 0.6.12.40 (originally reported as a ;;; CMU CL bug by Erik Naggum on comp.lang.lisp). -(loop for *print-base* from 2 to 36 +(loop for base from 2 to 36 with *print-radix* = t - do - (assert (string= "#*101" (format nil "~S" #*101)))) + do (let ((*print-base* base)) + (assert (string= "#*101" (format nil "~S" #*101))))) ;;; bug in sbcl-0.7.1.25, reported by DB sbcl-devel 2002-02-25 (assert (string= "0.5" (format nil "~2D" 0.5))) @@ -122,5 +122,17 @@ ;; or else it had better have the same dimensions (equal (array-dimensions result) '(1 0 1))))) +;;; before 0.8.0.66 it signalled UNBOUND-VARIABLE +(write #(1 2 3) :pretty nil :readably t) + +;;; another UNBOUND-VARIABLE, this time due to a bug in FORMATTER +;;; expanders. +(funcall (formatter "~@<~A~:*~A~:>") nil 3) + +;;; the PPC floating point backend was at one point sufficiently +;;; broken that this looped infinitely or caused segmentation +;;; violations through stack corruption. +(print 0.0001) + ;;; success (quit :unix-status 104)