|
@ -65,6 +65,17 @@ class LogicTest { |
|
|
assertEquals(expectedResult, realResult); |
|
|
assertEquals(expectedResult, realResult); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void calcScoreTest() { |
|
|
|
|
|
int[][] playfield = new int[6][6]; |
|
|
|
|
|
int player = 1; |
|
|
|
|
|
int expectedResult = 0; |
|
|
|
|
|
|
|
|
|
|
|
int realResult = testObj.calcScore(playfield, player); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private static Stream<Arguments> playfieldResults() { |
|
|
private static Stream<Arguments> playfieldResults() { |
|
|
int[][] playfield1 = {{0, 0, 0, 0, 0, 0}, |
|
|
int[][] playfield1 = {{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|