* stdlib/tst-strtod.c: Add more hexadecimal tests.
This commit is contained in:
Ulrich Drepper 1999-10-29 23:54:34 +00:00
parent c603b15b44
commit 2aa562e8c7
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
1999-10-29 Ulrich Drepper <drepper@cygnus.com>
* stdlib/tst-strtod.c: Add more hexadecimal tests.
* stdlib/strtod.c: Handle hexadecimal numbers with leading digit
!= 1 correctly.

View File

@ -40,6 +40,8 @@ static const struct ltest tests[] =
{ "4\00012", 4.0, '\0', 0 },
{ "5.9e-76", 5.9e-76, '\0', 0 },
{ "0x1.4p+3", 10.0, '\0', 0 },
{ "0xAp0", 10.0, '\0', 0 },
{ "0x0Ap0", 10.0, '\0', 0 },
{ "0x0A", 10.0, '\0', 0 },
{ NULL, 0, '\0', 0 }
};