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/10/06 13:36:37 UTC

[groovy] 12/22: GROOVY-8258: rename linq to ginq

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

sunlan pushed a commit to branch GROOVY-8258
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit d355e9c38098a5c1c24b541faf58d5d6e6fd24db
Author: Daniel Sun <su...@apache.org>
AuthorDate: Mon Oct 5 17:31:42 2020 +0800

    GROOVY-8258: rename linq to ginq
---
 .../groovy/org/apache/groovy/linq/LinqGroovyMethods.groovy |  2 +-
 .../groovy/linq/{LinqTest.groovy => GinqTest.groovy}       | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/LinqGroovyMethods.groovy b/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/LinqGroovyMethods.groovy
index dba4f9d..70a9596 100644
--- a/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/LinqGroovyMethods.groovy
+++ b/subprojects/groovy-linq/src/main/groovy/org/apache/groovy/linq/LinqGroovyMethods.groovy
@@ -42,7 +42,7 @@ import static org.codehaus.groovy.ast.tools.GeneralUtils.stmt
 @CompileStatic
 class LinqGroovyMethods {
     @Macro
-    static Expression LINQ(MacroContext ctx, final ClosureExpression closureExpression) {
+    static Expression GINQ(MacroContext ctx, final ClosureExpression closureExpression) {
         BlockStatement code = (BlockStatement) closureExpression.getCode()
         List<Statement> statementList = code.getStatements()
 
diff --git a/subprojects/groovy-linq/src/test/groovy/org/apache/groovy/linq/LinqTest.groovy b/subprojects/groovy-linq/src/test/groovy/org/apache/groovy/linq/GinqTest.groovy
similarity index 85%
rename from subprojects/groovy-linq/src/test/groovy/org/apache/groovy/linq/LinqTest.groovy
rename to subprojects/groovy-linq/src/test/groovy/org/apache/groovy/linq/GinqTest.groovy
index 30ad372..d164a65 100644
--- a/subprojects/groovy-linq/src/test/groovy/org/apache/groovy/linq/LinqTest.groovy
+++ b/subprojects/groovy-linq/src/test/groovy/org/apache/groovy/linq/GinqTest.groovy
@@ -26,12 +26,12 @@ import static groovy.test.GroovyAssert.assertScript
 
 
 @CompileStatic
-class LinqTest {
+class GinqTest {
     @Test
-    void "testLinq - from select - 1"() {
+    void "testGinq - from select - 1"() {
         assertScript '''
             def numbers = [0, 1, 2]
-            assert [0, 1, 2] == LINQ {
+            assert [0, 1, 2] == GINQ {
                 from n of numbers
                 select n
             }.toList()
@@ -39,10 +39,10 @@ class LinqTest {
     }
 
     @Test
-    void "testLinq - from select - 2"() {
+    void "testGinq - from select - 2"() {
         assertScript '''
             def numbers = [0, 1, 2]
-            assert [0, 2, 4] == LINQ {
+            assert [0, 2, 4] == GINQ {
                 from n of numbers
                 select n * 2
             }.toList()
@@ -50,10 +50,10 @@ class LinqTest {
     }
 
     @Test
-    void "testLinq - from where select"() {
+    void "testGinq - from where select"() {
         assertScript '''
             def numbers = [0, 1, 2, 3, 4, 5]
-            assert [2, 4, 6] == LINQ {
+            assert [2, 4, 6] == GINQ {
                 from n of numbers
                 where n > 0 && n <= 3
                 select n * 2