Home
last modified time | relevance | path

Searched refs:split1 (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorsTest.java227 Spliterator.OfInt split1 = intSp.trySplit(); in test_spliterator_int() local
228 assertNotNull(split1); in test_spliterator_int()
229 assertTrue(split1.tryAdvance((int value) -> recorder.add(value))); in test_spliterator_int()
230 assertTrue(split1.tryAdvance((Integer value) -> recorder.add(value))); in test_spliterator_int()
233 Spliterator.OfInt split2 = split1.trySplit(); in test_spliterator_int()
241 split1.forEachRemaining((int value) -> recorder.add(value)); in test_spliterator_int()
303 Spliterator.OfLong split1 = longSp.trySplit(); in test_spliterator_long() local
304 assertNotNull(split1); in test_spliterator_long()
305 assertTrue(split1.tryAdvance((long value) -> recorder.add(value))); in test_spliterator_long()
306 assertTrue(split1.tryAdvance((Long value) -> recorder.add(value))); in test_spliterator_long()
[all …]
DSpliteratorTester.java127 Spliterator<T> split1 = spliterator.trySplit(); in runBasicSplitTests() local
130 assertNull(split1); in runBasicSplitTests()
131 } else if (split1 != null) { in runBasicSplitTests()
133 Spliterator<T> split1_1 = split1.trySplit(); in runBasicSplitTests()
134 Spliterator<T> split1_2 = split1.trySplit(); in runBasicSplitTests()
143 recordAndAssertBasicIteration(split1, recorder); in runBasicSplitTests()
277 Spliterator<T> split1 = spliterator.trySplit(); in runDistinctTests() local
283 if (split1 != null) { in runDistinctTests()
284 split1.forEachRemaining(value -> { distinct.add(value); allElements.add(value); }); in runDistinctTests()
291 split1 = spliterator.trySplit(); in runDistinctTests()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java4341 Spliterator.OfInt split1 = intSp.trySplit(); in test_spliterator_int() local
4342 assertNotNull(split1); in test_spliterator_int()
4343 assertTrue(split1.tryAdvance((int value) -> recorder.add(value))); in test_spliterator_int()
4344 assertTrue(split1.tryAdvance((Integer value) -> recorder.add(value))); in test_spliterator_int()
4347 Spliterator.OfInt split2 = split1.trySplit(); in test_spliterator_int()
4355 split1.forEachRemaining((int value) -> recorder.add(value)); in test_spliterator_int()
4418 Spliterator.OfLong split1 = longSp.trySplit(); in test_spliterator_long() local
4419 assertNotNull(split1); in test_spliterator_long()
4420 assertTrue(split1.tryAdvance((long value) -> recorder.add(value))); in test_spliterator_long()
4421 assertTrue(split1.tryAdvance((Long value) -> recorder.add(value))); in test_spliterator_long()
[all …]