Tests for libm-test
Andreas Jaeger
aj@suse.de
Mon Apr 16 10:37:00 GMT 2001
I'd like to add the following testcase to the testsuite, I noticed
that we didn't handle all cases in the testsuite yet.
After this patch has been applied, we might need to change some
deltas (not needed for my i686).
Ok to commit this patch?
Andreas
2001-04-16 Andreas Jaeger <aj@suse.de>
* math/libm-test.inc (atan2_test): Add more testcases.
============================================================
Index: math/libm-test.inc
--- math/libm-test.inc 2001/04/10 23:11:17 1.28
+++ math/libm-test.inc 2001/04/16 17:22:37
@@ -918,8 +918,12 @@
TEST_ff_f (atan2, minus_infty, minus_infty, -M_PI_34l);
TEST_ff_f (atan2, nan_value, nan_value, nan_value);
- TEST_ff_f (atan2, 0.7L, 1, 0.6107259643892086165L);
+ TEST_ff_f (atan2, 0.7L, 1.0L, 0.6107259643892086165L);
+ TEST_ff_f (atan2, -0.7L, 1.0L, -0.6107259643892086165L);
+ TEST_ff_f (atan2, 0.7L, -1.0L, 2.5308666892005846219L);
+ TEST_ff_f (atan2, -0.7L, -1.0L, -2.5308666892005846219L);
TEST_ff_f (atan2, 0.4L, 0.0003L, 1.5700463269355215718L);
+ TEST_ff_f (atan2, 1.4L, -0.93L, 2.1571487668237843755L);
END (atan2);
}
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list