diff --git a/src/test/c/test_TicTacToe.c b/src/test/c/test_TicTacToe.c index fc12b42..57809a8 100644 --- a/src/test/c/test_TicTacToe.c +++ b/src/test/c/test_TicTacToe.c @@ -56,6 +56,22 @@ void test_TicTacToe_Winner_X_line_3(void) /* act */ actual = Winner(board); + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} +void test_TicTacToe_Winner_O_col_1(void) +{ + /* arrange */ + int expected = 2; + int actual; + char board[3][3] = { + {'O', 'X', 'X'}, + {'O', 'O', '_'}, + {'O', '_', '_'} + }; + /* act */ + actual = Winner(board); + /* assert */ TEST_ASSERT_EQUAL_INT(expected, actual); } \ No newline at end of file