< prev index next >

test/java/util/stream/test/org/openjdk/tests/java/util/stream/StreamSpliteratorTest.java

Print this page

        

*** 322,331 **** --- 322,332 ---- List<Function<Stream<Integer>, Stream<Integer>>> streamFunctions() { if (streamFunctions == null) { List<Function<Stream<Integer>, Stream<Integer>>> opFunctions = Arrays.asList( s -> s.filter(pEven), s -> s.map(mDoubler), + s -> s.flatMap(x -> Stream.of(x, x)), // @@@ Add distinct once asserting results with or without order // is correctly supported // s -> s.distinct(), s -> s.sorted());
*** 418,427 **** --- 419,429 ---- List<Function<IntStream, IntStream>> intStreamFunctions() { if (intStreamFunctions == null) { List<Function<IntStream, IntStream>> opFunctions = Arrays.asList( s -> s.filter(ipEven), s -> s.map(irDoubler), + s -> s.flatMap(x -> IntStream.of(x, x)), s -> s.sorted()); intStreamFunctions = permuteStreamFunctions(opFunctions); }
*** 511,520 **** --- 513,523 ---- List<Function<LongStream, LongStream>> longStreamFunctions() { if (longStreamFunctions == null) { List<Function<LongStream, LongStream>> opFunctions = Arrays.asList( s -> s.filter(lpEven), s -> s.map(x -> x * 2L), + s -> s.flatMap(x -> LongStream.of(x, x)), s -> s.sorted()); longStreamFunctions = permuteStreamFunctions(opFunctions); }
*** 604,613 **** --- 607,617 ---- List<Function<DoubleStream, DoubleStream>> doubleStreamFunctions() { if (doubleStreamFunctions == null) { List<Function<DoubleStream, DoubleStream>> opFunctions = Arrays.asList( s -> s.filter(dpEven), s -> s.map(x -> x * 2.0), + s -> s.flatMap(x -> DoubleStream.of(x, x)), s -> s.sorted()); doubleStreamFunctions = permuteStreamFunctions(opFunctions); }
< prev index next >