Skip to content

Commit 1329cde

Browse files
committed
Added test for issue Tencent#1251
1 parent cad3805 commit 1329cde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unittest/readertest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ static void TestParseDouble() {
244244
TEST_DOUBLE(fullPrecision, "1e-214748364", 0.0);
245245
TEST_DOUBLE(fullPrecision, "1e-21474836311", 0.0);
246246
TEST_DOUBLE(fullPrecision, "0.017976931348623157e+310", 1.7976931348623157e+308); // Max double in another form
247+
TEST_DOUBLE(fullPrecision, "128.74836467836484838364836483643636483648e-336", 0.0); // Issue #1251
247248

248249
// Since
249250
// abs((2^-1022 - 2^-1074) - 2.2250738585072012e-308) = 3.109754131239141401123495768877590405345064751974375599... x 10^-324

0 commit comments

Comments
 (0)