From aa593e91a3ef765f6e3933d87430ff0f5e31eb56 Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 13:09:37 +0100 Subject: [PATCH] 8 dritter 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 f8a1c62..fc12b42 100644 --- a/src/test/c/test_TicTacToe.c +++ b/src/test/c/test_TicTacToe.c @@ -40,6 +40,22 @@ void test_TicTacToe_Winner_O_line_2(void) /* act */ actual = Winner(board); + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} +void test_TicTacToe_Winner_X_line_3(void) +{ + /* arrange */ + int expected = 1; + int actual; + char board[3][3] = { + {'O', '_', '_'}, + {'O', 'O', '_'}, + {'X', 'X', 'X'} + }; + /* act */ + actual = Winner(board); + /* assert */ TEST_ASSERT_EQUAL_INT(expected, actual); } \ No newline at end of file