Skip to content

Commit 7f50e52

Browse files
committed
Move #267 test under non-failing
1 parent 9e11fe6 commit 7f50e52

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cbor/src/test/java/com/fasterxml/jackson/dataformat/cbor/failing/Fuzz32579BigDecimalTest.java renamed to cbor/src/test/java/com/fasterxml/jackson/dataformat/cbor/fuzz/Fuzz32579BigDecimalTest.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.fasterxml.jackson.dataformat.cbor.failing;
1+
package com.fasterxml.jackson.dataformat.cbor.fuzz;
22

3-
import java.math.BigInteger;
3+
import java.math.BigDecimal;
44

55
import com.fasterxml.jackson.databind.JsonNode;
66
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -42,7 +42,10 @@ public void testBigDecimalOverflow() throws Exception
4242

4343
JsonNode root = MAPPER.readTree(input);
4444
assertTrue(root.isNumber());
45-
assertTrue(root.isBigInteger());
46-
assertEquals(BigInteger.ZERO, root.bigIntegerValue());
45+
assertTrue(root.isBigDecimal());
46+
47+
// No point checking the actual value... could have a look at scale?
48+
BigDecimal dec = root.decimalValue();
49+
assertEquals(Integer.MIN_VALUE + 1, dec.scale());
4750
}
4851
}

0 commit comments

Comments
 (0)