Home
last modified time | relevance | path

Searched refs:folded (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIntReduceTest.java59 int folded = exerciseTerminalOps(data, s -> s.reduce(0, irPlus)); in testOps() local
60 assertEquals(folded, seedless.orElse(0)); in testOps()
63 folded = exerciseTerminalOps(data, s -> s.reduce(Integer.MAX_VALUE, irMin)); in testOps()
64 assertEquals(folded, seedless.orElse(Integer.MAX_VALUE)); in testOps()
67 folded = exerciseTerminalOps(data, s -> s.reduce(Integer.MIN_VALUE, irMax)); in testOps()
68 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps()
71 folded = exerciseTerminalOps(data, s -> s.map(irDoubler), s -> s.reduce(0, irPlus)); in testOps()
72 assertEquals(folded, seedless.orElse(0)); in testOps()
75folded = exerciseTerminalOps(data, s -> s.map(irDoubler), s -> s.reduce(Integer.MAX_VALUE, irMin)); in testOps()
76 assertEquals(folded, seedless.orElse(Integer.MAX_VALUE)); in testOps()
[all …]
DReduceTest.java65 Integer folded = exerciseTerminalOps(data, s -> s.reduce(0, rPlus, rPlus)); in testOps() local
66 assertEquals(folded, seedless.orElse(0)); in testOps()
69 folded = exerciseTerminalOps(data, s -> s.reduce(Integer.MAX_VALUE, rMin, rMin)); in testOps()
70 assertEquals(folded, seedless.orElse(Integer.MAX_VALUE)); in testOps()
73 folded = exerciseTerminalOps(data, s -> s.reduce(Integer.MIN_VALUE, rMax, rMax)); in testOps()
74 assertEquals(folded, seedless.orElse(Integer.MIN_VALUE)); in testOps()
77 folded = exerciseTerminalOps(data, s -> s.map(mDoubler), s -> s.reduce(0, rPlus, rPlus)); in testOps()
78 assertEquals(folded, seedless.orElse(0)); in testOps()
81folded = exerciseTerminalOps(data, s -> s.map(mDoubler), s -> s.reduce(Integer.MAX_VALUE, rMin, rM… in testOps()
82 assertEquals(folded, seedless.orElse(Integer.MAX_VALUE)); in testOps()
[all …]