From 95e096b756294ba49e793686dc453ad9103ff86e Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 17:15:00 +0100 Subject: [PATCH] 17 neuneter 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 fd80b53..53292e3 100644 --- a/src/test/c/test_TicTacToe.c +++ b/src/test/c/test_TicTacToe.c @@ -136,6 +136,22 @@ void test_TicTacToe_Winner_O_diagonal_2(void) /* act */ actual = Winner(board); + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} +void test_TicTacToe_mid_Round(void) +{ + /* arrange */ + int expected = 9; + int actual; + char board[3][3] = { + {'X', 'X', 'O'}, + {'_', 'O', 'X'}, + {'_', '_', 'O'} + }; + /* act */ + actual = Winner(board); + /* assert */ TEST_ASSERT_EQUAL_INT(expected, actual); } \ No newline at end of file