-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for the existence of the next significant bracket (#985)
- Loading branch information
Showing
3 changed files
with
29 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
12 changes: 12 additions & 0 deletions
12
json-path/src/test/java/com/jayway/jsonpath/Issue_970.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,12 @@ | ||
package com.jayway.jsonpath; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.assertj.core.api.Assertions.assertThatNoException; | ||
|
||
public class Issue_970 { | ||
@Test | ||
public void shouldNotCauseStackOverflow() { | ||
assertThatNoException().isThrownBy(() -> Criteria.where("[']',")); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
json-path/src/test/java/com/jayway/jsonpath/Issue_973.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,12 @@ | ||
package com.jayway.jsonpath; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.assertj.core.api.Assertions.*; | ||
|
||
public class Issue_973 { | ||
@Test | ||
public void shouldNotCauseStackOverflow() { | ||
assertThatNoException().isThrownBy(() -> Criteria.parse("@[\"\",/\\")); | ||
} | ||
} |