Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
1d0b1517
Commit
1d0b1517
authored
Jun 26, 2019
by
travis79
Browse files
Make adjustments to even distribution test to reduce failures
parent
4b24a5d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/service/experiments/src/test/java/mozilla/components/service/experiments/ExperimentEvaluatorTest.kt
View file @
1d0b1517
...
...
@@ -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
..
2
5
)
Assert
.
assertTrue
(
it
.
value
in
0
..
2
9
)
}
distribution
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment