checkIncreasingValues(acc);
}
@Test
public void testClear(){
ActionAccumulator acc = new ActionAccumulator(50, 10);
fill(acc);
acc.clear();
if (acc.count() != 0) fail("Expect 0 count after clear, got: " + acc.count());
if (acc.score() != 0) fail("Expect 0 score after clear, got: " + acc.score());
for (int i = 0; i < acc.numberOfBuckets(); i++){
if (acc.bucketCount(i) != 0) fail("Expect 0 count at " + i + " after clear, got: " + acc.bucketCount(i));
if (acc.bucketScore(i) != 0) fail("Expect 0 score at " + i + " after clear, got: " + acc.bucketScore(i));
}
}