MCPcopy Create free account
hub / github.com/e2wugui/zeze / testF

Method testF

ZezeJava/ZezeJavaTest/src/UnitTest/Zeze/Util/TestJson.java:299–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

297 }
298
299 public void testF() throws ReflectiveOperationException {
300 Object o = JsonReader.local().buf("[Infinity,-Infinity,NaN,0x1234567890abcdef,-0x1]").parse();
301 assertNotNull(o);
302 assertEquals(ArrayList.class, o.getClass());
303 ArrayList<?> a = (ArrayList<?>)o;
304 assertEquals(5, a.size());
305 assertEquals(Double.POSITIVE_INFINITY, a.get(0));
306 assertEquals(Double.NEGATIVE_INFINITY, a.get(1));
307 assertEquals(Double.NaN, a.get(2));
308 assertEquals(0x1234567890abcdefL, a.get(3));
309 assertEquals(-1, a.get(4));
310 }
311
312 record Record(int v, String s) {
313 }

Callers 1

mainMethod · 0.95

Calls 5

localMethod · 0.95
bufMethod · 0.80
parseMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected