X Tutup
Skip to content

Commit 137a615

Browse files
committed
Bug: Wrong expected value when testing result of parsing double literal "1e23"
In the original "Apache Harmony" test "1e23" resulted in "1.0e23", however running the same code in standard JRE (e.g. "1.8.0_121") results in "9.999999999999999E22" (the new "expected value").
1 parent 0783e0b commit 137a615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/net.sf.j2s.test.junit/src/net/sf/j2s/test/junit/DoubleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ public void test_parseDoubleLjava_lang_String() {
583583
doTestCompareRawBits("-1.2341234124312332E107", 0xd62ae7a25fe706ecL,
584584
"-1.2341234124312331E107");
585585

586-
doTestCompareRawBits("1e23", 0x44b52d02c7e14af6L, "1.0e23");
586+
doTestCompareRawBits("1e23", 0x44b52d02c7e14af6L, "9.999999999999999E22");
587587

588588
/*
589589
* These particular tests verify that the extreme boundary conditions

0 commit comments

Comments
 (0)
X Tutup