Reduce the chance shuffle produces an identical permutation in test (part 2)

This commit is contained in:
Ilya Gorbunov
2022-08-26 20:53:33 +02:00
parent cfc013137e
commit 8b95257143
@@ -2189,7 +2189,7 @@ class ArraysTest {
testShuffle(numbers.map(Int::toUByte).toUByteArray(), { shuffle() }, { toList() })
testShuffle(numbers.map(Int::toUShort).toUShortArray(), { shuffle() }, { toList() })
testShuffle(arrayOf(1, "x", null, Any(), 'a', 2u, 5.0), { shuffle() }, { toList() })
testShuffle(arrayOf(1, "x", null, Any(), 'a', 2u, 5.0, 3L, true, 0), { shuffle() }, { toList() })
}
private inline fun <T> testShuffleR(array: T, shuffle: T.(Random) -> Unit, toList: T.() -> List<*>) {