You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/12/08 14:15:33 UTC

[groovy] branch master updated: Tweak test

This is an automated email from the ASF dual-hosted git repository.

sunlan 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 6244fc4  Tweak test
6244fc4 is described below

commit 6244fc4a710ac601215eaea4e2cfd11b42bf3413
Author: Daniel Sun <su...@apache.org>
AuthorDate: Tue Dec 8 22:15:08 2020 +0800

    Tweak test
---
 .../groovy-ginq/src/spec/test/org/apache/groovy/ginq/GinqTest.groovy   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/subprojects/groovy-ginq/src/spec/test/org/apache/groovy/ginq/GinqTest.groovy b/subprojects/groovy-ginq/src/spec/test/org/apache/groovy/ginq/GinqTest.groovy
index 8fa6a0c..3f6b1a6 100644
--- a/subprojects/groovy-ginq/src/spec/test/org/apache/groovy/ginq/GinqTest.groovy
+++ b/subprojects/groovy-ginq/src/spec/test/org/apache/groovy/ginq/GinqTest.groovy
@@ -3671,8 +3671,11 @@ class GinqTest {
         GinqAstOptimizer ginqAstOptimizer = new GinqAstOptimizer()
         ginqAstOptimizer.visitGinqExpression(ginqExpression)
         BinaryExpression filterExpr = ginqExpression.whereExpression.filterExpr
+        assert 'n1' == filterExpr.leftExpression.text
+        assert Types.KEYWORD_IN == filterExpr.operation.type
         GinqExpression nestedGinq = filterExpr.rightExpression
         assert nestedGinq.fromExpression.dataSourceExpr instanceof GinqExpression
+
         BinaryExpression constructedFilterExpr1OfNestedGinq = ((GinqExpression) nestedGinq.fromExpression.dataSourceExpr).whereExpression.filterExpr
         assert Types.COMPARE_GREATER_THAN == constructedFilterExpr1OfNestedGinq.operation.type
         assert '2' == constructedFilterExpr1OfNestedGinq.rightExpression.text