groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Add one more test for method reference
Date Fri, 08 Sep 2017 04:38:00 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X d12cf899c -> 4771c4d98


Add one more test for method reference

(cherry picked from commit 8a1b378)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 4771c4d988faad1ffbd9676c89dbefa1913a3fe9
Parents: d12cf89
Author: sunlan <sunlan@apache.org>
Authored: Fri Sep 8 12:36:40 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Fri Sep 8 12:37:53 2017 +0800

----------------------------------------------------------------------
 .../src/test/resources/core/MethodReference_01x.groovy             | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/4771c4d9/subprojects/parser-antlr4/src/test/resources/core/MethodReference_01x.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/resources/core/MethodReference_01x.groovy
b/subprojects/parser-antlr4/src/test/resources/core/MethodReference_01x.groovy
index a31b5b8..4816adf 100644
--- a/subprojects/parser-antlr4/src/test/resources/core/MethodReference_01x.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/core/MethodReference_01x.groovy
@@ -41,6 +41,8 @@ assert ['J', 'P', 'D'] == [new Person('Jochen'), new Person('Paul'), new
Person(
 // class::instanceMethod
 assert ['Jochen', 'Paul', 'Daniel'] == [new Person('Jochen'), new Person('Paul'), new Person('Daniel')].stream().map(Person::getName).collect(Collectors.toList())
 
+// class::instanceMethod
+assert 6 == java.util.stream.Stream.of(1, 2, 3).reduce(0, BigDecimal::add)
 
 // ----------------------------------
 class BasePerson {


Mime
View raw message