From: Taylor R Campbell Date: Fri, 30 Nov 2018 03:11:48 +0000 (+0000) Subject: More sqrt edge cases, some working and some busted. X-Git-Tag: mit-scheme-pucked-10.1.7~3^2~110 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e9187e18e45051af8c7841a07e0dab0b5bebcddc;p=mit-scheme.git More sqrt edge cases, some working and some busted. --- diff --git a/tests/runtime/test-arith.scm b/tests/runtime/test-arith.scm index d20f6a306..a3edece17 100644 --- a/tests/runtime/test-arith.scm +++ b/tests/runtime/test-arith.scm @@ -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 ()