aboutsummaryrefslogtreecommitdiff
path: root/stdlib/tst-strtod.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-07 04:37:18 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-07 04:37:18 +0000
commita529b416204403526663696b3dd9fbd567937b9b (patch)
treefc2b87dff24114f728540ff82a5753b745e30f01 /stdlib/tst-strtod.c
parent70808a9bc6acb22db34258c903678a23e1d9a447 (diff)
downloadglibc-a529b416204403526663696b3dd9fbd567937b9b.zip
glibc-a529b416204403526663696b3dd9fbd567937b9b.tar.gz
glibc-a529b416204403526663696b3dd9fbd567937b9b.tar.bz2
Update.
2001-08-06 Jakub Jelinek <jakub@redhat.com> * stdlib/strtod.c (STRTOF): Skip whole infinity, not just inf. * stdio-common/vfscanf.c (__vfscanf): +- can be followed by i in +-Inf. * stdlib/tst-strtod.c (tests): Add Inf tests. * stdio-common/tstscanf.c (main): Add tests for +- before Inf. * locale/weightwc.h (findidx): Change type of i to int32_t.
Diffstat (limited to 'stdlib/tst-strtod.c')
-rw-r--r--stdlib/tst-strtod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c
index c466695..adf6255 100644
--- a/stdlib/tst-strtod.c
+++ b/stdlib/tst-strtod.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
+#include <math.h>
struct ltest
{
@@ -64,6 +65,9 @@ static const struct ltest tests[] =
{ "0x0.8p-1022",
1.11253692925360069154511635866620203210960799023116591527666e-308,
'\0', 0 },
+ { "Inf", HUGE_VAL, '\0', 0 },
+ { "-Inf", -HUGE_VAL, '\0', 0 },
+ { "+InFiNiTy", HUGE_VAL, '\0', 0 },
{ NULL, 0, '\0', 0 }
};