groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: jdk11 test fix
Date Mon, 09 Jul 2018 11:08:36 GMT
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 <paulk@asert.com.au>
Authored: Mon Jul 9 21:08:28 2018 +1000
Committer: Paul King <paulk@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[]
 


Mime
View raw message