Browse Source

test_checkWin_Vertical_X

remotes/origin/Ahmad
fdai7726 11 months ago
parent
commit
8fa684587d
  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