X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ffloat.pure.lisp;h=dfa417ef2d70431f71b55d7c0a25aa4f47dca986;hb=c3699db2053ff3b5ac6a98d4431c3789496002d8;hp=5195bbbdebbc6a5da8dd956f60df4c25d016c570;hpb=f6f238261f95e8ffff2870ed3ac6fc00ddf09ef2;p=sbcl.git diff --git a/tests/float.pure.lisp b/tests/float.pure.lisp index 5195bbb..dfa417e 100644 --- a/tests/float.pure.lisp +++ b/tests/float.pure.lisp @@ -73,3 +73,15 @@ (loop for (exp res) in tests for real-res = (multiple-value-list (eval exp)) do (assert (equal real-res res)))) + +;;; bug 45b reported by PVE +(dolist (type '(short single double long)) + (dolist (sign '(positive negative)) + (let* ((name (find-symbol (format nil "LEAST-~A-~A-FLOAT" + sign type) + :cl)) + (value (symbol-value name))) + (assert (zerop (/ value 2)))))) + +;;; bug found by Paul Dietz: bad rounding on small floats +(assert (= (fround least-positive-short-float least-positive-short-float) 1.0))