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
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);
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
/* 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;