mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 18:37:59 +01:00
Tests are put into test/... not main/...
This commit is contained in:
parent
32c376455a
commit
070a7c1dd8
@ -1,24 +0,0 @@
|
||||
package fr.neatmonster.nocheatplus.test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import fr.neatmonster.nocheatplus.utilities.ActionFrequency;
|
||||
|
||||
public class TestActionFrequency {
|
||||
|
||||
@Test
|
||||
public void testSum() {
|
||||
ActionFrequency freq = new ActionFrequency(10, 100);
|
||||
for (int i = 0; i < 10; i++){
|
||||
freq.setBucket(i, 1);
|
||||
}
|
||||
if (freq.score(1f) != 10f) fail("10x1=10");
|
||||
freq.clear(0);
|
||||
if (freq.score(1f) != 0f) fail("clear=0");
|
||||
|
||||
// TODO: more tests...
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user