Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DLongPrimitiveOpsTests.java58 long[] teeSum = new long[1]; in testTee() local
59 …long sum = LongStream.range(1, 10).filter(i -> i % 2 == 0).peek(i -> { teeSum[0] = teeSum[0] + i; … in testTee()
60 assertEquals(teeSum[0], sum); in testTee()
DIntPrimitiveOpsTests.java58 int[] teeSum = new int[1]; in testTee() local
59 …long sum = IntStream.range(1, 10).filter(i -> i % 2 == 0).peek(i -> { teeSum[0] = teeSum[0] + i; }… in testTee()
60 assertEquals(teeSum[0], sum); in testTee()