Improve stability of nextBoolean test

Increase number of tosses (according to the Law of Large Numbers).
This commit is contained in:
Ilya Gorbunov
2018-08-23 17:57:50 +03:00
parent d035c2690a
commit 9c4a74ce5b
+1 -1
View File
@@ -429,7 +429,7 @@ abstract class RandomSmokeTest {
@Test
fun nextBoolean() {
val size = 1000
val size = 10000
val booleans = (1..size).map { subject.nextBoolean() }.groupingBy { it }.eachCount()
val ts = booleans[true]!!
val fs = booleans[false]!!