Browse Source

test_checkWin_Vertical_O

remotes/origin/Ahmad
fdai7726 11 months ago
parent
commit
00da72c029
  1. 11
      src/test/c/test_VierGewinnt.c

11
src/test/c/test_VierGewinnt.c

@ -107,5 +107,16 @@ void test_checkWin_Vertical_X(void) {
void test_checkWin_Vertical_O(void) {
char board[6][7] = {
{'X', 'O', ' ', ' ', ' ', ' ', ' '},
{'X', 'O', ' ', ' ', ' ', ' ', ' '},
{'X', 'O', ' ', ' ', ' ', ' ', ' '},
{' ', 'O', ' ', ' ', ' ', ' ', ' '},
{' ', ' ', ' ', ' ', ' ', ' ', ' '},
{' ', ' ', ' ', ' ', ' ', ' ', ' '}
};
TEST_ASSERT_EQUAL_INT(1, checkWin(board, 'O')); // Vertikale Gewinnsituation für 'X'
}
Loading…
Cancel
Save