Commit 1d0b1517 authored by travis79's avatar travis79
Browse files

Make adjustments to even distribution test to reduce failures

parent 4b24a5d1
......@@ -481,11 +481,18 @@ class ExperimentEvaluatorTest {
f.call(experimentEvaluator, context) as Int
}
distribution
.groupingBy { it }
.eachCount()
.forEach {
Assert.assertTrue(it.value in 0..9)
}
distribution
.groupingBy { it / 10 }
.eachCount()
.forEach {
Assert.assertTrue(it.value in 0..25)
Assert.assertTrue(it.value in 0..29)
}
distribution
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment