Test (sqrt -0.) = -0., per IEEE 754-2008.
authorTaylor R Campbell <campbell@mumble.net>
Fri, 30 Nov 2018 03:21:44 +0000 (03:21 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 30 Nov 2018 06:53:16 +0000 (06:53 +0000)
tests/runtime/test-arith.scm

index a3edece17bc6aec3e847b55934904434315d336b..7d8ae81d51f17c0afc989ffa9f8661df740e0405 100644 (file)
@@ -656,6 +656,7 @@ USA.
 (define-enumerated-test 'sqrt-exact
   `((0 0)
     (0. 0.)
+    (-0. -0.)                           ;IEEE 754-2008, 5.4.1, p. 21
     (1 1)
     (1. 1.)
     ;; Square root of perfect square should be exact.