-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: urielch <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
json-smart/src/test/java/net/minidev/json/test/TestGitHubIssue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.minidev.json.test; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import net.minidev.json.parser.JSONParser; | ||
import net.minidev.json.parser.ParseException; | ||
|
||
import static net.minidev.json.parser.JSONParser.MODE_PERMISSIVE; | ||
import org.junit.jupiter.api.Assertions; | ||
|
||
public class TestGitHubIssue { | ||
@Test | ||
public void issue68() { | ||
Assertions.assertThrows(ParseException.class, () -> { | ||
JSONParser parser = new JSONParser(MODE_PERMISSIVE); | ||
String input = "'1"; | ||
parser.parse(input); | ||
}); | ||
} | ||
} |