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

Method checkSpecial

src/test/java/com/amazon/ion/FloatTest.java:190–206  ·  view source on GitHub ↗
(float expectedFloat,
                             double expectedDouble,
                             String expectedText,
                             IonFloat actual)

Source from the content-addressed store, hash-verified

188 }
189
190 public void checkSpecial(float expectedFloat,
191 double expectedDouble,
192 String expectedText,
193 IonFloat actual)
194 {
195 assertEquals(expectedFloat, actual.floatValue());
196 assertEquals(expectedDouble, actual.doubleValue());
197 assertEquals(expectedText, actual.toString());
198 assertFalse(actual.isNumericValue());
199
200 try
201 {
202 actual.bigDecimalValue();
203 fail("expected exception");
204 }
205 catch (NumberFormatException e) { }
206 }
207
208 /**
209 * TODO amazon-ion/ion-java#64 Un-ignore this when all dependent build pipelines

Callers 3

checkNanMethod · 0.95
checkPosInfMethod · 0.95
checkNegInfMethod · 0.95

Calls 7

failMethod · 0.80
floatValueMethod · 0.65
doubleValueMethod · 0.65
toStringMethod · 0.65
isNumericValueMethod · 0.65
bigDecimalValueMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected