mirror of
https://github.com/google/nomulus
synced 2026-09-30 03:36:25 +00: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user