Improve stability of nextBoolean test
Increase number of tosses (according to the Law of Large Numbers).
This commit is contained in:
@@ -429,7 +429,7 @@ abstract class RandomSmokeTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun nextBoolean() {
|
fun nextBoolean() {
|
||||||
val size = 1000
|
val size = 10000
|
||||||
val booleans = (1..size).map { subject.nextBoolean() }.groupingBy { it }.eachCount()
|
val booleans = (1..size).map { subject.nextBoolean() }.groupingBy { it }.eachCount()
|
||||||
val ts = booleans[true]!!
|
val ts = booleans[true]!!
|
||||||
val fs = booleans[false]!!
|
val fs = booleans[false]!!
|
||||||
|
|||||||
Reference in New Issue
Block a user