Skip to content

Commit 72ba15a

Browse files
author
Shaurya Dwivedi
committed
Changed testLongAsBigIntegerSize to use LONG instead of BIG INTEGER
1 parent 0517368 commit 72ba15a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ion/src/test/java/tools/jackson/dataformat/ion/IonNumberOverflowTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ public void testLongAsBigIntegerSize() throws Exception {
8181
IonParser bigIntLongParser = (IonParser) new IonFactory().createParser(ObjectReadContext.empty(),
8282
bigIntLongValue.toString());
8383
assertEquals(JsonToken.VALUE_NUMBER_INT, bigIntLongParser.nextToken());
84-
assertEquals(JsonParser.NumberType.BIG_INTEGER, bigIntLongParser.getNumberType());
84+
// Ion 1.11.11+ changed behavior: values that fit in long are now classified as LONG
85+
assertEquals(JsonParser.NumberType.LONG, bigIntLongParser.getNumberType());
8586
assertEquals(JsonParser.NumberTypeFP.UNKNOWN, bigIntLongParser.getNumberTypeFP());
8687
assertEquals(bigIntLongValue.longValue(), bigIntLongParser.getLongValue());
8788
}

0 commit comments

Comments
 (0)