More sqrt edge cases, some working and some busted.
authorTaylor R Campbell <campbell@mumble.net>
Fri, 30 Nov 2018 03:11:48 +0000 (03:11 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 30 Nov 2018 06:53:16 +0000 (06:53 +0000)
tests/runtime/test-arith.scm

index d20f6a306b1f6c0270055317805b732adf4530a7..a3edece17bc6aec3e847b55934904434315d336b 100644 (file)
@@ -713,13 +713,19 @@ USA.
     (-0.i 0.-0.i)
     (-0.+0.i +0.+0.i)
     (-0.-0.i +0.-0.i)
+    (-4.+0.i 0.+2.i ,expect-failure)
+    (-4.-0.i 0.-2.i ,expect-failure)
     ;; Treat infinities carefully around branch cuts.
     (-inf.0 +inf.0i)
     (+inf.0 +inf.0)
+    (-inf.0+0.i +inf.0i ,expect-failure)
+    (+inf.0+0.i +inf.0i ,expect-error)
     (-inf.0+1.i +inf.0i ,expect-failure)
     (+inf.0+1.i +inf.0 ,expect-error)
-    (-inf.0-1.i +inf.0i ,expect-failure)
-    (+inf.0-1.i +inf.0 ,expect-error)
+    (-inf.0-0.i -inf.0i ,expect-failure)
+    (+inf.0-0.i -inf.0i ,expect-error)
+    (-inf.0-1.i -inf.0i ,expect-failure)
+    (+inf.0-1.i -inf.0 ,expect-error)
     (-inf.0i +inf.0-inf.0i)
     (+inf.0i +inf.0+inf.0i)
     (+0.-inf.0i +inf.0-inf.0i)
@@ -729,7 +735,11 @@ USA.
     (1.-inf.0i +inf.0-inf.0i)
     (1.+inf.0i +inf.0+inf.0i)
     (-1.-inf.0i +inf.0-inf.0i)
-    (-1.+inf.0i +inf.0+inf.0i))
+    (-1.+inf.0i +inf.0+inf.0i)
+    (+inf.0+inf.0i +inf.0+inf.0i)
+    (+inf.0-inf.0i +inf.0-inf.0i)
+    (-inf.0+inf.0i +inf.0+inf.0i)
+    (-inf.0-inf.0i +inf.0-inf.0i))
   (lambda (z r #!optional xfail)
     (with-expected-failure xfail
       (lambda ()