Browse Source

test_checkWin_Vertical_X

main^2
fdai7726 11 months ago
committed by Peter Wiebe
parent
commit
ca20b0fec2
  1. 11
      src/test/c/test_VierGewinnt.c

11
src/test/c/test_VierGewinnt.c

@ -92,7 +92,18 @@ void test_checkWin_Diagonal_O(void) {
void test_checkWin_Vertical_X(void) {
char board[6][7] = {
{'X', 'O', ' ', ' ', ' ', ' ', ' '},
{'X', 'O', ' ', ' ', ' ', ' ', ' '},
{'X', 'O', ' ', ' ', ' ', ' ', ' '},
{'X', ' ', ' ', ' ', ' ', ' ', ' '},
{' ', ' ', ' ', ' ', ' ', ' ', ' '},
{' ', ' ', ' ', ' ', ' ', ' ', ' '}
};
TEST_ASSERT_EQUAL_INT(1, checkWin(board, 'X')); // Vertikale Gewinnsituation für 'X'
}

Loading…
Cancel
Save