projet-court-programmation-.../allumettes/TestLente.java
2023-06-20 21:05:21 +02:00

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);
}
}
}