Permalink
Browse files

Fix typo and add a test

svn path=/trunk/; revision=285
  • Loading branch information...
Kin Man Chung
Kin Man Chung committed Jul 10, 2013
1 parent 288636f commit efa8435ee0198fcf91af31caa9ae519e596cb9d9
Showing with 2 additions and 1 deletion.
  1. +1 −1 api/pom.xml
  2. +1 −0 src/test/java/org/glassfish/el/test/StreamTest.java
View
@@ -67,7 +67,7 @@
<findbugs.threshold>High</findbugs.threshold>
</properties>
<url>http://uel-spec.java.net</url>
<url>http://el-spec.java.net</url>
<organization>
<name>GlassFish Community</name>
<url>http://glassfish.org</url>
@@ -199,6 +199,7 @@ public void testReduce() {
testStream("reduce", "[1,2,3,4,5].stream().reduce((l,r)->l+r).get()", Long.valueOf(15));
testStream("reduce", "[].stream().reduce((l,r)->l+r).orElse(101)", Long.valueOf(101));
testStream("reduce", "[].stream().reduce((l,r)->l+r).orElseGet(()->101)", Long.valueOf(101));
testStream("reduce", "c = 0; [1,2,3,4,5,6].stream().reduce(0, (l,r)->(c = c+1; c % 2 == 0? l+r: l-r))", Long.valueOf(3));
}
@Test

0 comments on commit efa8435

Please sign in to comment.