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 | 153 Function<Integer, Stream<Integer>> unknownSize = i -> assertNCallsOnly in testSequentialShortCircuitTerminal() local 159 assertEquals(unknownSize.apply(1).findFirst(), Optional.of(1)); in testSequentialShortCircuitTerminal() 160 assertEquals(unknownSize.apply(1).findAny(), Optional.of(1)); in testSequentialShortCircuitTerminal() 166 assertEquals(unknownSize.apply(2).anyMatch(i -> i == 2), true); in testSequentialShortCircuitTerminal() 167 assertEquals(unknownSize.apply(2).noneMatch(i -> i == 2), false); in testSequentialShortCircuitTerminal() 168 assertEquals(unknownSize.apply(2).allMatch(i -> i == 2), false); in testSequentialShortCircuitTerminal() 230 Function<Integer, IntStream> unknownSize = i -> assertNCallsOnly in testIntSequentialShortCircuitTerminal() local 236 assertEquals(unknownSize.apply(1).findFirst(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 237 assertEquals(unknownSize.apply(1).findAny(), OptionalInt.of(1)); in testIntSequentialShortCircuitTerminal() 243 assertEquals(unknownSize.apply(2).anyMatch(i -> i == 2), true); in testIntSequentialShortCircuitTerminal() [all …]
|