Browse Source

7 zweiter Test

remotes/origin/Simon
Simon Hildebrandt 11 months ago
parent
commit
535f9a54b0
  1. 16
      src/test/c/test_TicTacToe.c

16
src/test/c/test_TicTacToe.c

@ -27,3 +27,19 @@ void test_TicTacToe_Winner_X_line_1(void)
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
void test_TicTacToe_Winner_O_line_2(void)
{
/* arrange */
int expected = 2;
int actual;
char board[3][3] = {
{'X', 'O', 'X'},
{'O', 'O', 'O'},
{'O', 'X', 'X'}
};
/* act */
actual = Winner(board);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
Loading…
Cancel
Save