You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
454 B

package tests;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import morpion.MorpionGrid;
public class MorpionGridTest {
MorpionGrid morpionGrid = new MorpionGrid();
@Test
public void testGrid() {
assertEquals(3, morpionGrid.getGrid().length );
for (int[] row : morpionGrid.getGrid()) {
assertEquals(3, row.length);
for (int col : row) {
assertEquals(0, col);
}
}
}
}