Skip to content

Commit

Permalink
Fix test to support oreder mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
sreekesh93 committed Oct 11, 2021
1 parent f03eb56 commit 9000901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/json/junit/JSONPointerTest.java
Expand Up @@ -60,7 +60,7 @@ private Object query(String pointer) {

@Test
public void emptyPointer() {
assertEquals(new JSONObject(EXPECTED_COMPLETE_DOCUMENT).toString(), query("").toString());
assertTrue(new JSONObject(EXPECTED_COMPLETE_DOCUMENT).similar(query("")));
}

@SuppressWarnings("unused")
Expand Down Expand Up @@ -147,7 +147,7 @@ public void uriFragmentNotation() {

@Test
public void uriFragmentNotationRoot() {
assertEquals(new JSONObject(EXPECTED_COMPLETE_DOCUMENT).toString(), query("#").toString());
assertTrue(new JSONObject(EXPECTED_COMPLETE_DOCUMENT).similar(query("#")));
}

@Test
Expand Down

0 comments on commit 9000901

Please sign in to comment.