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 2017/08/28 06:33:45 UTC
groovy git commit: Refine tests
Repository: groovy
Updated Branches:
refs/heads/master 90c3f0be4 -> a5fdef1aa
Refine tests
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a5fdef1a
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a5fdef1a
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a5fdef1a
Branch: refs/heads/master
Commit: a5fdef1aa0c2d84a3acec447f512a686fde49ac1
Parents: 90c3f0b
Author: sunlan <su...@apache.org>
Authored: Mon Aug 28 14:33:40 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Mon Aug 28 14:33:40 2017 +0800
----------------------------------------------------------------------
src/test/gls/generics/GenericsTest.groovy | 2 +-
src/test/groovy/bugs/Groovy4252Bug.groovy | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/a5fdef1a/src/test/gls/generics/GenericsTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/gls/generics/GenericsTest.groovy b/src/test/gls/generics/GenericsTest.groovy
index 3fe0e69..bfb726c 100644
--- a/src/test/gls/generics/GenericsTest.groovy
+++ b/src/test/gls/generics/GenericsTest.groovy
@@ -411,7 +411,7 @@ import java.util.concurrent.atomic.AtomicInteger
shouldFailCompilationWithMessage """
def m(Class<Integer someParam) {}
- """, "Unexpected input: 'Class<Integer someParam'"
+ """, "Unexpected input: '<'"
shouldFailCompilationWithMessage """
abstract class ArrayList1<E extends AbstractList<E> implements List<E> {}
http://git-wip-us.apache.org/repos/asf/groovy/blob/a5fdef1a/src/test/groovy/bugs/Groovy4252Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/Groovy4252Bug.groovy b/src/test/groovy/bugs/Groovy4252Bug.groovy
index 1641286..39cab88 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("Missing ')'")
+ syntaxError.message.contains("Unexpected input:")
}
}