fixes the broken JSONTokenerTest cases

This commit is contained in:
Sean Leary 2024-04-28 12:47:51 -05:00
parent 0180bd90f0
commit cf00ef3e8a

View File

@ -94,11 +94,14 @@ public class JSONTokenerTest {
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