File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
json-smart/src/test/java/net/minidev/json/test Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 3
3
<parent >
4
4
<groupId >net.minidev</groupId >
5
5
<artifactId >minidev-parent</artifactId >
6
- <version >2.4.3 </version >
6
+ <version >2.4.4 </version >
7
7
</parent >
8
8
<modelVersion >4.0.0</modelVersion >
9
9
<artifactId >json-smart-action</artifactId >
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments