Browse Source

19 letzter Test

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

16
src/test/c/test_TicTacToe.c

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