chore(#871-strictMode): corrected small syntax typo in unit test

This commit is contained in:
rikkarth 2024-03-15 23:13:21 +00:00
parent c51efe8b08
commit 0ff368ca07
No known key found for this signature in database
GPG Key ID: 11E5F28B0AED6AC7

View File

@ -36,10 +36,9 @@ public class JSONParserConfigurationTest {
JSONParserConfiguration jsonParserConfiguration = new JSONParserConfiguration() JSONParserConfiguration jsonParserConfiguration = new JSONParserConfiguration()
.withStrictMode(true); .withStrictMode(true);
strictModeInputTestCases.forEach(testCase -> { strictModeInputTestCases.forEach(
assertThrows("expected non-compliant array but got instead: " + testCase, JSONException.class, testCase -> assertThrows("expected non-compliant array but got instead: " + testCase, JSONException.class,
() -> new JSONArray(testCase, jsonParserConfiguration)); () -> new JSONArray(testCase, jsonParserConfiguration)));
});
} }
@Test @Test