From cd9605abf0461fcb073ba85772e6d7fa36d6574e Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 16:59:34 +0100 Subject: [PATCH] 12 sechster Test --- src/test/c/test_TicTacToe.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/test/c/test_TicTacToe.c b/src/test/c/test_TicTacToe.c index d65895b..f0d5ab7 100644 --- a/src/test/c/test_TicTacToe.c +++ b/src/test/c/test_TicTacToe.c @@ -88,6 +88,22 @@ void test_TicTacToe_Winner_X_col_2(void) /* act */ actual = Winner(board); + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} +void test_TicTacToe_Winner_O_col_3(void) +{ + /* arrange */ + int expected = 2; + int actual; + char board[3][3] = { + {'X', 'X', 'O'}, + {'_', 'O', 'O'}, + {'_', '_', 'O'} + }; + /* act */ + actual = Winner(board); + /* assert */ TEST_ASSERT_EQUAL_INT(expected, actual); } \ No newline at end of file