|
|
@ -8,7 +8,8 @@ void setUp(void){ |
|
|
|
//Wenn Funktion Vorraussetzungen braucht |
|
|
|
} |
|
|
|
void tearDown(void){ |
|
|
|
printf("1\n"); |
|
|
|
reset_board(); |
|
|
|
displayBoard(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -53,21 +54,17 @@ void test_checkWinner_vertikalerGewinner(void) { |
|
|
|
char result; |
|
|
|
|
|
|
|
// Setze die Daten für einen vertikalen Gewinne |
|
|
|
displayBoard(); |
|
|
|
makeMove(1); |
|
|
|
makeMove(2); |
|
|
|
makeMove(4); |
|
|
|
makeMove(3); |
|
|
|
makeMove(7); |
|
|
|
displayBoard(); |
|
|
|
|
|
|
|
/* handeln */ |
|
|
|
result = checkWinner(); |
|
|
|
|
|
|
|
/* überprüfen */ |
|
|
|
TEST_ASSERT_EQUAL_CHAR('O', result); |
|
|
|
reset_board(); |
|
|
|
displayBoard(); |
|
|
|
} |
|
|
|
|
|
|
|
void test_checkWinner_horizontalerGewinner(void) { |
|
|
|