[groovy] branch master updated: Fix the failing build

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[groovy] branch master updated: Fix the failing build

Daniel.Sun
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 d855f29  Fix the failing build
d855f29 is described below

commit d855f29fce5d6c29029be1ba9871d1dc29539c28
Author: Daniel Sun <[hidden email]>
AuthorDate: Sat Jan 9 14:43:24 2021 +0800

    Fix the failing build
---
 .../provider/collection/runtime/QueryableCollectionTest.groovy    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/subprojects/groovy-ginq/src/test/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollectionTest.groovy b/subprojects/groovy-ginq/src/test/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollectionTest.groovy
index e171e34..58513bd 100644
--- a/subprojects/groovy-ginq/src/test/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollectionTest.groovy
+++ b/subprojects/groovy-ginq/src/test/groovy/org/apache/groovy/ginq/provider/collection/runtime/QueryableCollectionTest.groovy
@@ -1015,7 +1015,7 @@ class QueryableCollectionTest {
     void testWindow1() {
         def nums = [9, 3, 6]
 
-        def windowDefinition = WindowDefinition.of(new Queryable.Order<Integer, Integer>(e -> e, true))
+        def windowDefinition = WindowDefinition.of(new Queryable.Order<Integer, Integer>(e -> e, true)).setId(tuple("", "orderby e", "orderby e"))
         def result = from(nums).over(tuple(6, 3L), windowDefinition).rowNumber()
 
         assert 1 == result
@@ -1029,7 +1029,7 @@ class QueryableCollectionTest {
         def n32 = new Integer(3)
         def n6 = new Integer(6)
         def nums = [n9, n31, n32, n6]
-        def windowDefinition = WindowDefinition.of(new Queryable.Order<Integer, Integer>(e -> new NamedTuple<>([e, e + 1], ['e', 'e + 1']), true))
+        def windowDefinition = WindowDefinition.of(new Queryable.Order<Integer, Integer>(e -> new NamedTuple<>([e, e + 1], ['e', 'e + 1']), true)).setId(Tuple.tuple("", "orderby e, e + 1", "orderby e, e + 1"))
 
         assert 0 == from(nums).over(tuple(n31, 2L), windowDefinition).rowNumber()
         assert 1 == from(nums).over(tuple(n32, 3L), windowDefinition).rowNumber()
@@ -1048,7 +1048,7 @@ class QueryableCollectionTest {
         def n32 = new Integer(3)
         def n6 = new Integer(6)
         def nums = [n9, n31, n32, n6]
-        def windowDefinition = WindowDefinition.of(new Queryable.Order<Integer, Integer>(e -> new NamedTuple<>([e, e + 1], ['e', 'e + 1']), true))
+        def windowDefinition = WindowDefinition.of(new Queryable.Order<Integer, Integer>(e -> new NamedTuple<>([e, e + 1], ['e', 'e + 1']), true)).setId(Tuple.tuple("", "orderby e, e + 1", "orderby e, e + 1"))
 
         assert !from(nums).over(tuple(n31, 2L), windowDefinition).lag(e -> e)
         assert 3 == from(nums).over(tuple(n32, 3L), windowDefinition).lag(e -> e)
@@ -1070,7 +1070,7 @@ class QueryableCollectionTest {
         def n6 = new Integer(6)
         def nums = [n9, n31, n32, n6]
 
-        WindowDefinition<Integer, Integer> windowDefinition = WindowDefinition.of(new Queryable.Order<Integer, Integer>(e -> new NamedTuple<>([e], ['e']), true))
+        WindowDefinition<Integer, Integer> windowDefinition = WindowDefinition.of(new Queryable.Order<Integer, Integer>(e -> new NamedTuple<>([e], ['e']), true)).setId(Tuple.tuple("", "orderby e", "orderby e"))
         assert 2 == from(nums).over(tuple(n6, 4L), windowDefinition).rowNumber()
     }
 

Apache Groovy committer & PMC member

Blog: http://blog.sunlan.me
Twitter: @daniel_sun