|
|
@ -60,4 +60,16 @@ public class GameboardTest { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void checkPrintGameboard() { |
|
|
|
String expectedResult = "[1, 0, 0, 0, 0, 0, 0, 0, 0, 2, " + |
|
|
|
"1, 0, 0, 0, 0, 0, 0, 0, 0, 2, " + |
|
|
|
"1, 0, 0, 0, 0, 0, 0, 0, 0, 2, " + |
|
|
|
"1, 0, 0, 0, 0, 0, 0, 0, 0, 2, " + |
|
|
|
"3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]"; |
|
|
|
gb.initGameboard(); |
|
|
|
String calculatedResult = gb.toString(); |
|
|
|
assertThat(calculatedResult).describedAs("Print Gameboard").isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
} |