groovy git commit: jdk11 test fix

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: jdk11 test fix

paulk
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 <[hidden email]>
Authored: Mon Jul 9 21:08:28 2018 +1000
Committer: Paul King <[hidden email]>
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[]