Add more tests blocked by GROOVY-8445

Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/68df3e2b
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/68df3e2b
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/68df3e2b

Branch: refs/heads/native-lambda
Commit: 68df3e2b0be065e9823db33a7d6f9f9c4f29a55f
Parents: 9a21c9e
Author: sunlan <sun...@apache.org>
Authored: Fri Feb 2 18:15:08 2018 +0800
Committer: sunlan <sun...@apache.org>
Committed: Fri Feb 2 18:15:08 2018 +0800

----------------------------------------------------------------------
 src/test/groovy/transform/stc/LambdaTest.groovy | 42 +-------------------
 1 file changed, 1 insertion(+), 41 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/68df3e2b/src/test/groovy/transform/stc/LambdaTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/transform/stc/LambdaTest.groovy 
b/src/test/groovy/transform/stc/LambdaTest.groovy
index dc47754..a24e3c1 100644
--- a/src/test/groovy/transform/stc/LambdaTest.groovy
+++ b/src/test/groovy/transform/stc/LambdaTest.groovy
@@ -56,28 +56,7 @@ class LambdaTest extends GroovyTestCase {
         '''
     }
 
-    /**
-     * Depends on fixing https://issues.apache.org/jira/browse/GROOVY-8445
-     */
     void testBinaryOperator() {
-        if (SKIP_ERRORS) return
-
-        // the test can pass only in dynamic mode now, it can not pass static 
type checking...
-
-        /* FIXME
-TestScript0.groovy: 13: [Static type checking] - Cannot find matching method 
java.util.stream.Stream#reduce(int, groovy.lang.Closure). Please check if the 
declared type is correct and if the method exists.
- @ line 13, column 30.
-                   assert 13 == [1, 2, 3].stream().reduce(7, (r, e) -> r + e);
-                                ^
-
-TestScript0.groovy: 13: [Static type checking] - Cannot find matching method 
java.lang.Object#plus(java.lang.Object). Please check if the declared type is 
correct and if the method exists.
- @ line 13, column 69.
-   (1, 2, 3).reduce(7, (r, e) -> r + e);
-                                 ^
-
-2 errors
-         */
-
         assertScript '''
         import groovy.transform.CompileStatic
         import java.util.stream.Collectors
@@ -90,7 +69,7 @@ TestScript0.groovy: 13: [Static type checking] - Cannot find 
matching method jav
             }
             
             public static void p() {
-                assert 13 == [1, 2, 3].stream().reduce(7, (r, e) -> r + e);
+                assert 13 == [1, 2, 3].stream().reduce(7, (Integer r, Integer 
e) -> r + e);
             }
         }
         '''
@@ -137,26 +116,7 @@ TestScript0.groovy: 13: [Static type checking] - Cannot 
find matching method jav
         '''
     }
 
-    /**
-     * Depends on fixing https://issues.apache.org/jira/browse/GROOVY-8445
-     */
     void testUnaryOperator() {
-        if (SKIP_ERRORS) return
-
-        /* FIXME
-TestScript0.groovy: 14: [Static type checking] - Cannot find matching method 
java.util.List#replaceAll(groovy.lang.Closure). Please check if the declared 
type is correct and if the method exists.
- @ line 14, column 17.
-                   list.replaceAll(e -> e + 10)
-                   ^
-
-TestScript0.groovy: 14: [Static type checking] - Cannot find matching method 
java.lang.Object#plus(int). Please check if the declared type is correct and if 
the method exists.
- @ line 14, column 38.
-                   list.replaceAll(e -> e + 10)
-                                        ^
-
-2 errors
-         */
-
         assertScript '''
         import groovy.transform.CompileStatic
         import java.util.stream.Collectors

Reply via email to