More discriminating NaN predicates for numbers.test
authorMark H Weaver <mhw@netris.org>
Tue, 1 Feb 2011 10:22:40 +0000 (05:22 -0500)
committerAndy Wingo <wingo@pobox.com>
Tue, 1 Feb 2011 20:09:36 +0000 (21:09 +0100)
commit55a8b70819100b1341046ab5254f7858bcd74386
treea9bb823bf22877da7edfe6c295f2ec2b0c62ed70
parent605f698026db9e4e8af4454bc1ae09f6e97b4218
More discriminating NaN predicates for numbers.test

* test-suite/tests/numbers.test: (real-nan?, complex-nan?,
  imaginary-nan?): Add more discriminating NaN testing predicates
  internal to numbers.test, and convert several uses of `nan?'
  to use these instead:
   * `real-nan?' checks that its argument is real and a NaN.
   * `complex-nan?' checks that both the real and imaginary
                    parts of its argument are NaNs.
   * `imaginary-nan?' checks that its argument's real part
                      is zero and the imaginary part is a NaN.
test-suite/tests/numbers.test