Browse Source

8 dritter Test

main^2
Simon Hildebrandt 11 months ago
committed by Peter Wiebe
parent
commit
d0a63ece2b
  1. 16
      src/test/c/test_TicTacToe.c

16
src/test/c/test_TicTacToe.c

@ -40,6 +40,22 @@ void test_TicTacToe_Winner_O_line_2(void)
/* act */
actual = Winner(board);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
void test_TicTacToe_Winner_X_line_3(void)
{
/* arrange */
int expected = 1;
int actual;
char board[3][3] = {
{'O', '_', '_'},
{'O', 'O', '_'},
{'X', 'X', 'X'}
};
/* act */
actual = Winner(board);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
Loading…
Cancel
Save