Skip to content

Commit 2de1a14

Browse files
committed
add issue 68 test
Signed-off-by: urielch <[email protected]>
1 parent 52bc451 commit 2de1a14

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

json-smart-action/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>net.minidev</groupId>
55
<artifactId>minidev-parent</artifactId>
6-
<version>2.4.3</version>
6+
<version>2.4.4</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>json-smart-action</artifactId>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package net.minidev.json.test;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import net.minidev.json.parser.JSONParser;
6+
import net.minidev.json.parser.ParseException;
7+
8+
import static net.minidev.json.parser.JSONParser.MODE_PERMISSIVE;
9+
import org.junit.jupiter.api.Assertions;
10+
11+
public class TestGitHubIssue {
12+
@Test
13+
public void issue68() {
14+
Assertions.assertThrows(ParseException.class, () -> {
15+
JSONParser parser = new JSONParser(MODE_PERMISSIVE);
16+
String input = "'1";
17+
parser.parse(input);
18+
});
19+
}
20+
}

0 commit comments

Comments
 (0)