Package fr.neatmonster.nocheatplus.utilities

Examples of fr.neatmonster.nocheatplus.utilities.ActionAccumulator


    if (acc.score() != buckets * capacity * (buckets * capacity + 1) / 2) fail ("Total score.");
  }
 
  @Test
  public void testFill(){
    ActionAccumulator acc = new ActionAccumulator(50, 10);
    fill(acc);
    checkIncreasingValues(acc);
  }
View Full Code Here


    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));
    }
  }
View Full Code Here

TOP

Related Classes of fr.neatmonster.nocheatplus.utilities.ActionAccumulator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.