Skip to content

Commit

Permalink
enhance test
Browse files Browse the repository at this point in the history
  • Loading branch information
fslevoaca-ionos committed Aug 10, 2022
1 parent f07bab0 commit c1dc816
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/io/json/compare/util/JsonUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public void testBigJsonPrettyPrint() throws IOException {

@Test
public void testEmptyJsonPrettyPrint() throws IOException {
assertEquals("{\n" +
" \"foo\" : \"bar\"\n" +
"}", JsonUtils.prettyPrint("{\"foo\":\"bar\"}"));
assertEquals("{ }", JsonUtils.prettyPrint("{}"));
assertEquals("[ ]", JsonUtils.prettyPrint("[]"));
assertEquals("null", JsonUtils.prettyPrint("null"));
Expand Down

0 comments on commit c1dc816

Please sign in to comment.