X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=inline;f=tests%2Farith.pure.lisp;h=746b88b11008845f2e1df97f3b55baccd5de2721;hb=83659744f9caa97aa83eb562d872b1c0127403c0;hp=af1932cce05cf0b57279a17548088b4a95946708;hpb=2230ea0c1765a95fd2aa0a8996b3555b93ba3745;p=sbcl.git diff --git a/tests/arith.pure.lisp b/tests/arith.pure.lisp index af1932c..746b88b 100644 --- a/tests/arith.pure.lisp +++ b/tests/arith.pure.lisp @@ -359,3 +359,16 @@ < <= = >= > eql eq)))) + +;; GCD used to sometimes return negative values. The following did, on 32 bit +;; builds. +(with-test (:name :gcd) + (assert (plusp (gcd 20286123923750474264166990598656 + 680564733841876926926749214863536422912)))) + +(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) + ;; returns 1.0 + (assert (raises-error? (expt 0.0 0.0) sb-int:arguments-out-of-domain-error)) + (assert (raises-error? (expt 0 0.0) sb-int:arguments-out-of-domain-error)) + (assert (eql (expt 0.0 0) 1.0)))