groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: GROOVY-9129: [PARROT] Support safe index operations for lists (tweak test)
Date Mon, 20 May 2019 23:44:59 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 519899e  GROOVY-9129: [PARROT] Support safe index operations for lists (tweak test)
519899e is described below

commit 519899e61e7b76cc1366dcf71f29e857be4afe8a
Author: Paul King <paulk@asert.com.au>
AuthorDate: Tue May 21 09:44:49 2019 +1000

    GROOVY-9129: [PARROT] Support safe index operations for lists (tweak test)
---
 .../src/test/resources/core/SafeIndex_01x.groovy             | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/subprojects/parser-antlr4/src/test/resources/core/SafeIndex_01x.groovy b/subprojects/parser-antlr4/src/test/resources/core/SafeIndex_01x.groovy
index 1cbcf66..b1d0856 100644
--- a/subprojects/parser-antlr4/src/test/resources/core/SafeIndex_01x.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/core/SafeIndex_01x.groovy
@@ -16,13 +16,13 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-assert null == null?[1];
-assert null == null?[1]?[1, 2];
-assert null == null?[1]?[1, 2]?[1, 2, 3];
+assert null == null?[1]
+assert null == null?[1]?[1, 2]
+assert null == null?[1]?[1, 2]?[1, 2, 3]
 
-def a = null;
-assert null == a?[1, 2];
+def a = null
+assert null == a?[1, 2]
 
 def f() {return null}
-assert null == f()?[1];
+assert null == f()?[1]
 


Mime
View raw message