mirror of git://sourceware.org/git/glibc.git
Add one test, removed a duplicated one, add a few comments about missing tests.
This commit is contained in:
parent
67e971f18f
commit
64d063b800
|
|
@ -1,5 +1,11 @@
|
||||||
2013-03-15 Thomas Schwinge <thomas@codesourcery.com>
|
2013-03-15 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
|
* math/libm-test.inc (acosh_test): Also test with qNaN input.
|
||||||
|
(sqrt_test): Remove duplicate test with qNaN input.
|
||||||
|
(lrint_test, llrint_test, lround_test, llround_test, rint_test)
|
||||||
|
(round_test, signbit_test, significand_test): Note missing +/-Inf
|
||||||
|
as well as qNaN tests.
|
||||||
|
|
||||||
* math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
|
* math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
|
||||||
qNaN_var. Fix a few strings, too.
|
qNaN_var. Fix a few strings, too.
|
||||||
* math/libm-test.inc (nan_value): Rename to qnan_value.
|
* math/libm-test.inc (nan_value): Rename to qnan_value.
|
||||||
|
|
|
||||||
|
|
@ -972,6 +972,7 @@ acosh_test (void)
|
||||||
|
|
||||||
TEST_f_f (acosh, plus_infty, plus_infty);
|
TEST_f_f (acosh, plus_infty, plus_infty);
|
||||||
TEST_f_f (acosh, minus_infty, qnan_value, INVALID_EXCEPTION);
|
TEST_f_f (acosh, minus_infty, qnan_value, INVALID_EXCEPTION);
|
||||||
|
TEST_f_f (acosh, qnan_value, qnan_value);
|
||||||
|
|
||||||
/* x < 1: */
|
/* x < 1: */
|
||||||
TEST_f_f (acosh, -1.125L, qnan_value, INVALID_EXCEPTION);
|
TEST_f_f (acosh, -1.125L, qnan_value, INVALID_EXCEPTION);
|
||||||
|
|
@ -6440,6 +6441,7 @@ lrint_test (void)
|
||||||
/* XXX this test is incomplete. We need to have a way to specifiy
|
/* XXX this test is incomplete. We need to have a way to specifiy
|
||||||
the rounding method and test the critical cases. So far, only
|
the rounding method and test the critical cases. So far, only
|
||||||
unproblematic numbers are tested. */
|
unproblematic numbers are tested. */
|
||||||
|
/* TODO: missing +/-Inf as well as qNaN tests. */
|
||||||
|
|
||||||
START (lrint);
|
START (lrint);
|
||||||
|
|
||||||
|
|
@ -6632,6 +6634,7 @@ llrint_test (void)
|
||||||
/* XXX this test is incomplete. We need to have a way to specifiy
|
/* XXX this test is incomplete. We need to have a way to specifiy
|
||||||
the rounding method and test the critical cases. So far, only
|
the rounding method and test the critical cases. So far, only
|
||||||
unproblematic numbers are tested. */
|
unproblematic numbers are tested. */
|
||||||
|
/* TODO: missing +/-Inf as well as qNaN tests. */
|
||||||
|
|
||||||
START (llrint);
|
START (llrint);
|
||||||
|
|
||||||
|
|
@ -7510,6 +7513,8 @@ logb_test_downward (void)
|
||||||
static void
|
static void
|
||||||
lround_test (void)
|
lround_test (void)
|
||||||
{
|
{
|
||||||
|
/* TODO: missing +/-Inf as well as qNaN tests. */
|
||||||
|
|
||||||
START (lround);
|
START (lround);
|
||||||
|
|
||||||
TEST_f_l (lround, 0, 0);
|
TEST_f_l (lround, 0, 0);
|
||||||
|
|
@ -7552,6 +7557,8 @@ lround_test (void)
|
||||||
static void
|
static void
|
||||||
llround_test (void)
|
llround_test (void)
|
||||||
{
|
{
|
||||||
|
/* TODO: missing +/-Inf as well as qNaN tests. */
|
||||||
|
|
||||||
START (llround);
|
START (llround);
|
||||||
|
|
||||||
TEST_f_L (llround, 0, 0);
|
TEST_f_L (llround, 0, 0);
|
||||||
|
|
@ -8877,6 +8884,8 @@ remquo_test (void)
|
||||||
static void
|
static void
|
||||||
rint_test (void)
|
rint_test (void)
|
||||||
{
|
{
|
||||||
|
/* TODO: missing qNaN tests. */
|
||||||
|
|
||||||
START (rint);
|
START (rint);
|
||||||
|
|
||||||
TEST_f_f (rint, 0.0, 0.0);
|
TEST_f_f (rint, 0.0, 0.0);
|
||||||
|
|
@ -9342,6 +9351,8 @@ rint_test_upward (void)
|
||||||
static void
|
static void
|
||||||
round_test (void)
|
round_test (void)
|
||||||
{
|
{
|
||||||
|
/* TODO: missing +/-Inf as well as qNaN tests. */
|
||||||
|
|
||||||
START (round);
|
START (round);
|
||||||
|
|
||||||
TEST_f_f (round, 0, 0);
|
TEST_f_f (round, 0, 0);
|
||||||
|
|
@ -9583,6 +9594,7 @@ scalbln_test (void)
|
||||||
static void
|
static void
|
||||||
signbit_test (void)
|
signbit_test (void)
|
||||||
{
|
{
|
||||||
|
/* TODO: missing qNaN tests. */
|
||||||
|
|
||||||
START (signbit);
|
START (signbit);
|
||||||
|
|
||||||
|
|
@ -10003,7 +10015,6 @@ sqrt_test (void)
|
||||||
TEST_f_f (sqrt, -1, qnan_value, INVALID_EXCEPTION);
|
TEST_f_f (sqrt, -1, qnan_value, INVALID_EXCEPTION);
|
||||||
TEST_f_f (sqrt, -max_value, qnan_value, INVALID_EXCEPTION);
|
TEST_f_f (sqrt, -max_value, qnan_value, INVALID_EXCEPTION);
|
||||||
TEST_f_f (sqrt, minus_infty, qnan_value, INVALID_EXCEPTION);
|
TEST_f_f (sqrt, minus_infty, qnan_value, INVALID_EXCEPTION);
|
||||||
TEST_f_f (sqrt, qnan_value, qnan_value);
|
|
||||||
|
|
||||||
TEST_f_f (sqrt, 2209, 47);
|
TEST_f_f (sqrt, 2209, 47);
|
||||||
TEST_f_f (sqrt, 4, 2);
|
TEST_f_f (sqrt, 4, 2);
|
||||||
|
|
@ -10598,6 +10609,9 @@ static void
|
||||||
significand_test (void)
|
significand_test (void)
|
||||||
{
|
{
|
||||||
/* significand returns the mantissa of the exponential representation. */
|
/* significand returns the mantissa of the exponential representation. */
|
||||||
|
|
||||||
|
/* TODO: missing +/-Inf as well as qNaN tests. */
|
||||||
|
|
||||||
START (significand);
|
START (significand);
|
||||||
|
|
||||||
TEST_f_f (significand, 4.0, 1.0);
|
TEST_f_f (significand, 4.0, 1.0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue