Home
last modified time | relevance | path

Searched refs:splits (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DStringTest.java605 String[] splits = "test\0message\0\0\0\0\0\0".split("\0", -1); in testSplit_trailingSeparators() local
606 assertEquals("test", splits[0]); in testSplit_trailingSeparators()
607 assertEquals("message", splits[1]); in testSplit_trailingSeparators()
608 assertEquals("", splits[2]); in testSplit_trailingSeparators()
609 assertEquals("", splits[3]); in testSplit_trailingSeparators()
610 assertEquals("", splits[4]); in testSplit_trailingSeparators()
611 assertEquals("", splits[5]); in testSplit_trailingSeparators()
612 assertEquals("", splits[6]); in testSplit_trailingSeparators()
613 assertEquals("", splits[7]); in testSplit_trailingSeparators()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamSpliteratorTest.java68 int splits = 0; field in StreamSpliteratorTest.ProxyNoExactSizeSpliterator
80 splits++; in trySplit()
128 splits++; in trySplit()
169 splits++; in trySplit()
211 splits++; in trySplit()
272 Assert.assertTrue(psp.splits > 0, in testSplitting()
368 Assert.assertTrue(psp.splits > 0, in testIntSplitting()
461 Assert.assertTrue(psp.splits > 0, in testLongSplitting()
554 Assert.assertTrue(psp.splits > 0, in testDoubleSplitting()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DSpliteratorTestHelper.java488 List<T> splits = new ArrayList<>(); in testSplitUntilNull() local
489 Consumer<T> c = boxingAdapter.apply(splits::add); in testSplitUntilNull()
492 asserter.assertContents(splits, exp, isOrdered); in testSplitUntilNull()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DSpliteratorTestHelper.java488 List<T> splits = new ArrayList<>(); in testSplitUntilNull() local
489 Consumer<T> c = boxingAdapter.apply(splits::add); in testSplitUntilNull()
492 asserter.assertContents(splits, exp, isOrdered); in testSplitUntilNull()