Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/
DSplittableRandomTest.java76 var splitRandom2 = random2.split(new SplittableRandom(sourceSeed)); in splitInstances_areTheSame_whenTheyAreSplitWithIdenticalSource() local
78 assertGeneratorsAreEquals(splitRandom1, splitRandom2); in splitInstances_areTheSame_whenTheyAreSplitWithIdenticalSource()
92 var splitRandom2 = random2.splits(size, new SplittableRandom(sourceSeed)).toList(); in splitsInstances_areTheSame_whenTheyAreSplitWithIdenticalSource_boundedStream() local
95 assertEquals(size, splitRandom2.size()); in splitsInstances_areTheSame_whenTheyAreSplitWithIdenticalSource_boundedStream()
98 assertGeneratorsAreEquals(splitRandom1.get(i), splitRandom2.get(i)); in splitsInstances_areTheSame_whenTheyAreSplitWithIdenticalSource_boundedStream()
114 var splitRandom2 = random2.splits(new SplittableRandom(sourceSeed)).limit(size).toList(); in splitsInstances_areTheSame_whenTheyAreSplitWithIdenticalSource_unboundedStream() local
117 assertEquals(size, splitRandom2.size()); in splitsInstances_areTheSame_whenTheyAreSplitWithIdenticalSource_unboundedStream()
120 assertGeneratorsAreEquals(splitRandom1.get(i), splitRandom2.get(i)); in splitsInstances_areTheSame_whenTheyAreSplitWithIdenticalSource_unboundedStream()
134 var splitRandom2 = random2.splits(size).toList(); in splitsInstances_areTheSame_whenSourceIsIdentical() local
137 assertEquals(size, splitRandom2.size()); in splitsInstances_areTheSame_whenSourceIsIdentical()
[all …]
/libcore/luni/src/test/java/libcore/java/util/random/
DSplittableGeneratorTest.java42 var splitRandom2 = random2.splits().limit(size).toList(); in splits_produceTheSameResult_whenSourceIsIdentical() local
45 assertEquals(size, splitRandom2.size()); in splits_produceTheSameResult_whenSourceIsIdentical()
48 assertGeneratorsAreEquals(splitRandom1.get(i), splitRandom2.get(i)); in splits_produceTheSameResult_whenSourceIsIdentical()