Skip to content

Commit 61e259d

Browse files
authored
Update TestNumberInput.java (#988)
1 parent 1fac75c commit 61e259d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/java/com/fasterxml/jackson/core/io/TestNumberInput.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,15 @@ public void testBigIntegerWithRadix()
5252
assertEquals(expected, NumberInput.parseBigIntegerWithRadix(val, radix, true));
5353
assertEquals(expected, NumberInput.parseBigIntegerWithRadix(val, radix, false));
5454
}
55+
56+
public void testParseBigIntegerFailsWithENotation()
57+
{
58+
try {
59+
NumberInput.parseBigInteger("1e10");
60+
fail("expected NumberFormatException");
61+
} catch (NumberFormatException nfe) {
62+
// expected
63+
}
64+
}
5565
}
5666

0 commit comments

Comments
 (0)