@ -120,6 +120,22 @@ void test_TicTacToe_Winner_X_diagonal_1(void)
/* act */
actual = Winner(board);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
void test_TicTacToe_Winner_O_diagonal_2(void)
{
/* arrange */
int expected = 2;
int actual;
char board[3][3] = {
{'O', 'X', 'O'},
{'X', 'O', 'X'},
{'O', '_', '_'}
};