MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / testBigIntegers

Method testBigIntegers

src/test/java/com/amazon/ion/IntTest.java:198–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 private static final int SUPER_BIG_TRUNC_32 = 0x89ABCDEF;
197
198 @Test
199 public void testBigIntegers() {
200 IonInt val = system().newInt(SUPER_BIG);
201 assertEquals(SUPER_BIG, val.bigIntegerValue());
202 assertEquals(SUPER_BIG_TRUNC_64, val.longValue());
203 assertEquals(SUPER_BIG_TRUNC_32, val.intValue());
204
205 assertEquals(SUPER_BIG.hashCode(), val.hashCode());
206
207 testRoundTrip(SUPER_BIG);
208 }
209
210 @Test
211 public void testBigDecimals() {

Callers

nothing calls this directly

Calls 8

bigIntegerValueMethod · 0.95
longValueMethod · 0.95
intValueMethod · 0.95
testRoundTripMethod · 0.95
newIntMethod · 0.65
hashCodeMethod · 0.65
systemMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected