You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2018/04/03 16:48:02 UTC
groovy git commit: Refine error message of test
Repository: groovy
Updated Branches:
refs/heads/master b9929d2eb -> 30da8cf02
Refine error message of test
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/30da8cf0
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/30da8cf0
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/30da8cf0
Branch: refs/heads/master
Commit: 30da8cf02f9afeb1db23c71b85b072d0131a71d8
Parents: b9929d2
Author: sunlan <su...@apache.org>
Authored: Wed Apr 4 00:47:43 2018 +0800
Committer: sunlan <su...@apache.org>
Committed: Wed Apr 4 00:47:43 2018 +0800
----------------------------------------------------------------------
src/test/groovy/bugs/Groovy4252Bug.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/30da8cf0/src/test/groovy/bugs/Groovy4252Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/Groovy4252Bug.groovy b/src/test/groovy/bugs/Groovy4252Bug.groovy
index 39cab88..e6bee44 100644
--- a/src/test/groovy/bugs/Groovy4252Bug.groovy
+++ b/src/test/groovy/bugs/Groovy4252Bug.groovy
@@ -78,7 +78,7 @@ class Groovy4252Bug extends GroovyShellTestCase {
} catch (MultipleCompilationErrorsException e) {
def syntaxError = e.errorCollector.getSyntaxError(0)
assert syntaxError.message.contains("Expression list of the form (a; b; c) is not supported in this context") ||
- syntaxError.message.contains("Unexpected input:")
+ syntaxError.message.contains("Unexpected input:") || syntaxError.message.contains("Missing ')'")
}
}