aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-29 23:54:34 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-29 23:54:34 +0000
commit2aa562e8c7f41bbabb1f80b97927ec2eedbdf639 (patch)
tree8b5e4f9471867a5271c246527d16269b17294d76
parentc603b15b4461161f909f9827c294ba6c1d6a4bd5 (diff)
downloadglibc-2aa562e8c7f41bbabb1f80b97927ec2eedbdf639.zip
glibc-2aa562e8c7f41bbabb1f80b97927ec2eedbdf639.tar.gz
glibc-2aa562e8c7f41bbabb1f80b97927ec2eedbdf639.tar.bz2
Update.
* stdlib/tst-strtod.c: Add more hexadecimal tests.
-rw-r--r--ChangeLog2
-rw-r--r--stdlib/tst-strtod.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cf0e359..d458b39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c
index ac43948..916f44f 100644
--- a/stdlib/tst-strtod.c
+++ b/stdlib/tst-strtod.c
@@ -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 }
};