Searched refs:unknownSize (Results 1 – 1 of 1) sorted by relevance
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SortedOpTest.java | 150 Function<Integer, Stream<Integer>> unknownSize = i -> assertNCallsOnly in testSequentialShortCircuitTerminal() local 156 assertEquals(unknownSize.apply(1).findFirst(), Optional.of(1)); in testSequentialShortCircuitTerminal() 157 assertEquals(unknownSize.apply(1).findAny(), Optional.of(1)); in testSequentialShortCircuitTerminal() 163 assertEquals(unknownSize.apply(2).anyMatch(i -> i == 2), true); in testSequentialShortCircuitTerminal() 164 assertEquals(unknownSize.apply(2).noneMatch(i -> i == 2), false); in testSequentialShortCircuitTerminal() 165 assertEquals(unknownSize.apply(2).allMatch(i -> i == 2), false); in testSequentialShortCircuitTerminal() 227 Function<Integer, IntStream> unknownSize = i -> assertNCallsOnly in testIntSequentialShortCircuitTerminal() local 233 assertEquals(unknownSize.apply(1).findFirst(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 234 assertEquals(unknownSize.apply(1).findAny(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 240 assertEquals(unknownSize.apply(2).anyMatch(i -> i == 2), true); in testIntSequentialShortCircuitTerminal() [all …]
|