X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Farith.pure.lisp;h=c78b328b5ae4fdba258e8a5f97c5e86607a0c6b1;hb=dabb26b93be9bbf2718951ea2200fca874d3d587;hp=77291fffe54538f69ca25b9b9943888c5b0ba781;hpb=05abd44bb4a3699285dd499dbbb4c77b64304835;p=sbcl.git diff --git a/tests/arith.pure.lisp b/tests/arith.pure.lisp index 77291ff..c78b328 100644 --- a/tests/arith.pure.lisp +++ b/tests/arith.pure.lisp @@ -371,8 +371,12 @@ ;; GCD used to sometimes return negative values. The following did, on 32 bit ;; builds. (with-test (:name :gcd) + ;; from lp#413680 (assert (plusp (gcd 20286123923750474264166990598656 - 680564733841876926926749214863536422912)))) + 680564733841876926926749214863536422912))) + ;; from lp#516750 + (assert (plusp (gcd 2596102012663483082521318626691873 + 2596148429267413814265248164610048)))) (with-test (:name :expt-zero-zero) ;; Check that (expt 0.0 0.0) and (expt 0 0.0) signal error, but (expt 0.0 0) @@ -572,6 +576,8 @@ (test x2) (test (1+ x2)) (test (1- x2))))) + (test most-positive-fixnum) + (test (1+ most-positive-fixnum)) (loop for i from 1 to 200 for pow = (expt 2 (1- i)) for j = (+ pow (random pow))