Skip to content

Commit 8b98f4a

Browse files
committed
Workaround incorrect rounding in MSVC
1 parent a2813b6 commit 8b98f4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unittest/readertest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ static void TestParseDouble() {
397397
TEST_DOUBLE(fullPrecision, "1e-324", 0.0);
398398
TEST_DOUBLE(fullPrecision, "2e-324", 0.0);
399399
TEST_DOUBLE(fullPrecision, "2.4703282292062327e-324", 0.0);
400-
TEST_DOUBLE(fullPrecision, "2.4703282292062328e-324", 2.4703282292062328e-324);
401-
TEST_DOUBLE(fullPrecision, "2.48e-324", 2.48e-324);
402-
TEST_DOUBLE(fullPrecision, "2.5e-324", 2.5e-324);
400+
TEST_DOUBLE(fullPrecision, "2.4703282292062328e-324", 5e-324);
401+
TEST_DOUBLE(fullPrecision, "2.48e-324",5e-324);
402+
TEST_DOUBLE(fullPrecision, "2.5e-324", 5e-324);
403403

404404
#if 0
405405
// Test (length + exponent) overflow

0 commit comments

Comments
 (0)