Mercurial > hg > octave-lyh > gnulib-hg
changeset 9853:41ff75af4085
Fix typos.
* tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
values to be the right type.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Tue, 01 Apr 2008 07:50:28 -0600 |
parents | 11f28e5a589f |
children | baba3b346ab2 |
files | ChangeLog tests/test-strtod.c |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-04-01 Eric Blake <ebb9@byu.net> + Fix typos. + * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon + values to be the right type. + For now, cater to gnulib strtod inaccuracies. * tests/test-strtod.c (main): Allow 1-ulp error on expected fractional results. While not as nice from a QoI perspective, it
--- a/tests/test-strtod.c +++ b/tests/test-strtod.c @@ -514,7 +514,7 @@ double result; errno = 0; result = strtod (input, &ptr); - ASSERT (0.0 <= result && result <= FLT_MIN); + ASSERT (0.0 <= result && result <= DBL_MIN); ASSERT (!signbit (result)); ASSERT (ptr == input + 9); ASSERT (errno == ERANGE); @@ -525,7 +525,7 @@ double result; errno = 0; result = strtod (input, &ptr); - ASSERT (-FLT_MIN <= result && result <= 0.0); + ASSERT (-DBL_MIN <= result && result <= 0.0); #if 0 /* FIXME - this is glibc bug 5995; POSIX allows returning positive 0 on negative underflow, even though quality of implementation @@ -910,7 +910,7 @@ /* Rounding. */ /* TODO - is it worth some tests of rounding for typical IEEE corner cases, such as .5 ULP rounding up to the smallest denormal and - not causing underflow, or FLT_MIN - .5 ULP not causing an + not causing underflow, or DBL_MIN - .5 ULP not causing an infinite loop? */ return status;