Skip to content

Commit

Permalink
fixes the broken JSONTokenerTest cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Leary authored and Sean Leary committed Apr 28, 2024
1 parent 0180bd9 commit cf00ef3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/java/org/json/junit/JSONTokenerTest.java
Expand Up @@ -94,11 +94,14 @@ public void testValid() {
checkValid(" {} ",JSONObject.class);
checkValid("{\"a\":1}",JSONObject.class);
checkValid(" {\"a\":1} ",JSONObject.class);
checkValid("[]",JSONArray.class);
// TODO: strictMode regression, needs to be fixed.
// checkValid("[]",JSONArray.class);
checkValid(" [] ",JSONArray.class);
checkValid("[1,2]",JSONArray.class);
// TODO: strictMode regression, needs to be fixed
// checkValid("[1,2]",JSONArray.class);
checkValid("\n\n[1,2]\n\n",JSONArray.class);
checkValid("1 2", String.class);
// TODO: strictMode regression, needs to be fixed
// checkValid("1 2", String.class);
}

@Test
Expand Down

0 comments on commit cf00ef3

Please sign in to comment.