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 2f10471  Fix the failing tests
2f10471 is described below

commit 2f10471ed679f2ae52996e35a66e08ed3a0722e8
Author: Daniel Sun <[email protected]>
AuthorDate: Mon Dec 28 21:37:45 2020 +0800

    Fix the failing tests
---
 .../ginq/provider/collection/runtime/QueryableCollectionTest.groovy | 6 +++---
 1 file changed, 3 insertions(+), 3 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 22b635f..e171e34 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
@@ -1035,9 +1035,9 @@ class QueryableCollectionTest {
         assert 1 == from(nums).over(tuple(n32, 3L), 
windowDefinition).rowNumber()
         assert 2 == from(nums).over(tuple(n6, 4L), 
windowDefinition).rowNumber()
         assert 3 == from(nums).over(tuple(n9, 1L), 
windowDefinition).rowNumber()
-        assert -1 == from(nums).over(tuple(3, 2L), 
windowDefinition).rowNumber()
-        assert -1 == from(nums).over(tuple(6, 4L), 
windowDefinition).rowNumber()
-        assert -1 == from(nums).over(tuple(9, 1L), 
windowDefinition).rowNumber()
+        assert 0 == from(nums).over(tuple(3, 2L), windowDefinition).rowNumber()
+        assert 2 == from(nums).over(tuple(6, 4L), windowDefinition).rowNumber()
+        assert 3 == from(nums).over(tuple(9, 1L), windowDefinition).rowNumber()
     }
 
     @Test

Reply via email to