Browse Source

test_checkWin_Vertical_O

main^2
fdai7726 11 months ago
committed by Peter Wiebe
parent
commit
1caa70848a
  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