Browse Source

test_checkWin_Diagonal_O

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

11
src/test/c/test_VierGewinnt.c

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

Loading…
Cancel
Save