mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Allow EventSample.record to accept numSamples=0
There's really no reason not to. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171037754
This commit is contained in:
parent
6b113603db
commit
0b5b16e97c
2 changed files with 9 additions and 2 deletions
|
@ -109,6 +109,7 @@ public class MutableDistributionTest {
|
|||
distribution.add(2.0);
|
||||
distribution.add(16.0);
|
||||
distribution.add(128.0, 5);
|
||||
distribution.add(1024.0, 0);
|
||||
|
||||
assertThat(distribution.count()).isEqualTo(7);
|
||||
assertThat(distribution.mean()).isWithin(0.0).of(94.0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue