groovy git commit: jdk11 test fix

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/GROOVY_2_5_X ea042fb21 -> 1f041d1e7


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/1f041d1e
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/1f041d1e
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/1f041d1e

Branch: refs/heads/GROOVY_2_5_X
Commit: 1f041d1e785e194b5ac7496f2ecc0e784c222029
Parents: ea042fb
Author: Paul King <[hidden email]>
Authored: Mon Jul 9 21:08:28 2018 +1000
Committer: Paul King <[hidden email]>
Committed: Mon Jul 9 21:09:23 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/1f041d1e/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[]