27 lines
484 B
Java
27 lines
484 B
Java
|
package allumettes;
|
||
|
|
||
|
import static org.junit.Assert.assertEquals;
|
||
|
|
||
|
import java.util.Random;
|
||
|
|
||
|
import org.junit.*;
|
||
|
|
||
|
public class TestLente {
|
||
|
|
||
|
Strategie strat = new Lente();
|
||
|
|
||
|
@Test
|
||
|
public void TestRetirer() throws CoupInvalideException {
|
||
|
|
||
|
Random rd = new Random();
|
||
|
|
||
|
for (int i = 0; i < 100; i++) {
|
||
|
Partie game = new Partie(rd.nextInt(100) + 1);
|
||
|
int nb = strat.nbPrise(game, "nom");
|
||
|
assertEquals(nb, 1);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|