You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by jw...@apache.org on 2017/05/27 21:11:30 UTC
[2/6] groovy git commit: GROOVY-7979: Add JSONSlurper test case for
the string "[-]".
GROOVY-7979: Add JSONSlurper test case for the string "[-]".
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a44cd1fa
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a44cd1fa
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a44cd1fa
Branch: refs/heads/GROOVY_2_5_X
Commit: a44cd1fab1b314cee9244aeb7182dbac60c6f46a
Parents: decbd39
Author: James Laverack <ja...@jameslaverack.com>
Authored: Sat May 13 13:38:34 2017 +0100
Committer: John Wagenleitner <jw...@apache.org>
Committed: Sat May 27 14:10:15 2017 -0700
----------------------------------------------------------------------
.../src/test/groovy/groovy/json/JsonSlurperLaxTest.groovy | 1 +
.../groovy-json/src/test/groovy/groovy/json/JsonSlurperTest.groovy | 1 +
2 files changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/a44cd1fa/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperLaxTest.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperLaxTest.groovy b/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperLaxTest.groovy
index f19b6a2..ca89ef0 100644
--- a/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperLaxTest.groovy
+++ b/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperLaxTest.groovy
@@ -37,6 +37,7 @@ class JsonSlurperLaxTest extends JsonSlurperTest {
shouldFail(JsonException) { parser.parseText('{a"') }
shouldFail(JsonException) { parser.parseText("[\"a\"") }
shouldFail(JsonException) { parser.parseText('{"a"') }
+ shouldFail(JsonException) { parser.parseText('[-]') }
}
void testObjectWithSimpleValues() {
http://git-wip-us.apache.org/repos/asf/groovy/blob/a44cd1fa/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperTest.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperTest.groovy b/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperTest.groovy
index b8068df..9356825 100644
--- a/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperTest.groovy
+++ b/subprojects/groovy-json/src/test/groovy/groovy/json/JsonSlurperTest.groovy
@@ -274,6 +274,7 @@ class JsonSlurperTest extends GroovyTestCase {
shouldFail(JsonException) { parser.parseText('["a"') }
shouldFail(JsonException) { parser.parseText('["a", ') }
shouldFail(JsonException) { parser.parseText('["a", true') }
+ shouldFail(JsonException) { parser.parseText('[-]') }
}
void testBackSlashEscaping() {