mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 18:30:28 +00:00
strtod_test, check NaN (without n-char-sequence) and infinity
This commit is contained in:
parent
eb610f1490
commit
0c7dcd90de
1 changed files with 15 additions and 0 deletions
|
@ -38,6 +38,17 @@ static const struct {
|
||||||
uint64_t i;
|
uint64_t i;
|
||||||
const char *s;
|
const char *s;
|
||||||
} V[] = {
|
} V[] = {
|
||||||
|
{0x7FF8000000000000, "nan"}, //
|
||||||
|
{0x7FF8000000000000, "NaN"}, //
|
||||||
|
{0x7FF8000000000000, "NAn"}, //
|
||||||
|
{0x7FF8000000000000, "nAN"}, //
|
||||||
|
{0x7FF8000000000000, "NAN"}, //
|
||||||
|
{0x7FF0000000000000, "INF"}, //
|
||||||
|
{0x7FF0000000000000, "iNf"}, //
|
||||||
|
{0x7FF8000000000000, "+NAN"}, //
|
||||||
|
{0xFFF8000000000000, "-NAN"}, //
|
||||||
|
{0x7FF0000000000000, "+INF"}, //
|
||||||
|
{0xFFF0000000000000, "-INF"}, //
|
||||||
{0x2fa7b6d71d20b96c, "4e-079"}, //
|
{0x2fa7b6d71d20b96c, "4e-079"}, //
|
||||||
{0x09eb8d7e32be6396, "7e-261"}, //
|
{0x09eb8d7e32be6396, "7e-261"}, //
|
||||||
{0x3ae7361cb863de62, "6e-025"}, //
|
{0x3ae7361cb863de62, "6e-025"}, //
|
||||||
|
@ -85,6 +96,10 @@ static const struct {
|
||||||
{0x7044d64d4079150c, "647e0230"}, //
|
{0x7044d64d4079150c, "647e0230"}, //
|
||||||
{0x64a7d93193f78fc6, "755e0174"}, //
|
{0x64a7d93193f78fc6, "755e0174"}, //
|
||||||
{0x30dcd5bee57763e6, "255e-075"}, //
|
{0x30dcd5bee57763e6, "255e-075"}, //
|
||||||
|
{0x7FF0000000000000, "INFINITY"}, //
|
||||||
|
{0x7FF0000000000000, "iNfiNiTy"}, //
|
||||||
|
{0x7FF0000000000000, "+INFINITY"}, //
|
||||||
|
{0xFFF0000000000000, "-INFINITY"}, //
|
||||||
{0x4c159bd3ad46e346, "3391e0055"}, //
|
{0x4c159bd3ad46e346, "3391e0055"}, //
|
||||||
{0x3d923d1b5eb1d778, "4147e-015"}, //
|
{0x3d923d1b5eb1d778, "4147e-015"}, //
|
||||||
{0x3b482782afe1869e, "3996e-026"}, //
|
{0x3b482782afe1869e, "3996e-026"}, //
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue