From 8b9525714385c3dd78ddbcb675e697c0115064f4 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 26 Aug 2022 20:53:33 +0200 Subject: [PATCH] Reduce the chance shuffle produces an identical permutation in test (part 2) --- libraries/stdlib/test/collections/ArraysTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/stdlib/test/collections/ArraysTest.kt b/libraries/stdlib/test/collections/ArraysTest.kt index 170b7b18ca3..4c179818122 100644 --- a/libraries/stdlib/test/collections/ArraysTest.kt +++ b/libraries/stdlib/test/collections/ArraysTest.kt @@ -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 testShuffleR(array: T, shuffle: T.(Random) -> Unit, toList: T.() -> List<*>) {