You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2018/07/09 11:08:36 UTC
groovy git commit: jdk11 test fix
Repository: groovy
Updated Branches:
refs/heads/master ed467c5f8 -> 9cc5e039f
jdk11 test fix
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/9cc5e039
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/9cc5e039
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/9cc5e039
Branch: refs/heads/master
Commit: 9cc5e039f270a0341174244902c2e90b593bd3ca
Parents: ed467c5
Author: Paul King <pa...@asert.com.au>
Authored: Mon Jul 9 21:08:28 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Mon Jul 9 21:08:28 2018 +1000
----------------------------------------------------------------------
src/spec/test/testingguide/GroovyTestCaseExampleTests.groovy | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/9cc5e039/src/spec/test/testingguide/GroovyTestCaseExampleTests.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test/testingguide/GroovyTestCaseExampleTests.groovy b/src/spec/test/testingguide/GroovyTestCaseExampleTests.groovy
index 5db90a8..cc6a98e 100644
--- a/src/spec/test/testingguide/GroovyTestCaseExampleTests.groovy
+++ b/src/spec/test/testingguide/GroovyTestCaseExampleTests.groovy
@@ -81,7 +81,9 @@ class MyTestCase extends GroovyTestCase {
def msg = shouldFail IndexOutOfBoundsException, {
numbers.get(4)
}
- assert msg.contains('Index: 4, Size: 4') || msg.contains('Index 4 out-of-bounds for length 4')
+ assert msg.contains('Index: 4, Size: 4') ||
+ msg.contains('Index 4 out-of-bounds for length 4') ||
+ msg.contains('Index 4 out of bounds for length 4')
}
// end::should_fail_with_msg[]