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:
guyben 2017-10-04 11:30:33 -07:00 committed by jianglai
parent 6b113603db
commit 0b5b16e97c
2 changed files with 9 additions and 2 deletions

View file

@ -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);