Skip to content

Commit

Permalink
add issue 68 test
Browse files Browse the repository at this point in the history
Signed-off-by: urielch <[email protected]>
  • Loading branch information
UrielCh committed Apr 19, 2021
1 parent 52bc451 commit 2de1a14
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion json-smart-action/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>net.minidev</groupId>
<artifactId>minidev-parent</artifactId>
<version>2.4.3</version>
<version>2.4.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>json-smart-action</artifactId>
Expand Down
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);
});
}
}

0 comments on commit 2de1a14

Please sign in to comment.