Tweak test to defeat slow CI again

This commit is contained in:
Dave Syer
2010-11-10 09:25:49 +00:00
parent 941b1127d1
commit 4b4a6fdb94

View File

@@ -113,7 +113,11 @@ public class ExponentialMovingAverageRatioTests {
assertFalse(0==history.getStandardDeviation());
history.reset();
assertEquals(0, history.getStandardDeviation(), 0.01);
assertEquals("[[N=0, min=0.000000, max=0.000000, mean=1.000000, sigma=0.000000], timeSinceLast=0.000000]", history.toString());
assertEquals(0, history.getCount());
assertEquals(0, history.getTimeSinceLastMeasurement(), 0.01);
assertEquals(1, history.getMean(), 0.01);
assertEquals(0, history.getMin(), 0.01);
assertEquals(0, history.getMax(), 0.01);
}
private double average(double... values) {