X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Farith.pure.lisp;h=746b88b11008845f2e1df97f3b55baccd5de2721;hb=83659744f9caa97aa83eb562d872b1c0127403c0;hp=6ca3aaafd56e6b4a43dc4cba9b16cde2722af9fb;hpb=96c62c30ec9164419c790b2fbea953da2193620f;p=sbcl.git diff --git a/tests/arith.pure.lisp b/tests/arith.pure.lisp index 6ca3aaa..746b88b 100644 --- a/tests/arith.pure.lisp +++ b/tests/arith.pure.lisp @@ -365,3 +365,10 @@ (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)))