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-9128: [PARROT] Provide proper support for the identical (===) and not identical (!==) operators (tweak to test)
Date Mon, 20 May 2019 22:39:10 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 45d8323  GROOVY-9128: [PARROT] Provide proper support for the identical (===) and
not identical (!==) operators (tweak to test)
45d8323 is described below

commit 45d8323810720e71e51082d926de63a18858abfe
Author: Paul King <paulk@asert.com.au>
AuthorDate: Tue May 21 08:38:58 2019 +1000

    GROOVY-9128: [PARROT] Provide proper support for the identical (===) and not identical
(!==) operators (tweak to test)
---
 .../parser-antlr4/src/test/resources/core/IdenticalOp_01x.groovy      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/subprojects/parser-antlr4/src/test/resources/core/IdenticalOp_01x.groovy b/subprojects/parser-antlr4/src/test/resources/core/IdenticalOp_01x.groovy
index 9110bb4..6703efb 100644
--- a/subprojects/parser-antlr4/src/test/resources/core/IdenticalOp_01x.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/core/IdenticalOp_01x.groovy
@@ -21,7 +21,9 @@ def y = []
 assert y !== x
 
 assert 'a' === 'a'
-assert 'a' !== new String('a')
+def otherA = new String('a')
+assert 'a' == otherA && 'a'.equals(otherA)
+assert 'a' !== otherA && !'a'.is(otherA)
 assert null === null
 assert true === true
 assert false === false


Mime
View raw message