Skip to content

Commit 21a4ad8

Browse files
committed
test null as array
1 parent a55ed53 commit 21a4ad8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/com/jsoniter/any/TestArray.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,9 @@ public void test_equals_and_hashcode() {
7272
assertEquals(obj1, obj2);
7373
assertEquals(obj1.hashCode(), obj2.hashCode());
7474
}
75+
76+
public void test_null() {
77+
Any x = JsonIterator.deserialize("{\"test\":null}");
78+
assertFalse(x.get("test").iterator().hasNext());
79+
}
7580
}

0 commit comments

Comments
 (0)