From 5dc45b9943bb3a8944beacb0c3016663c3c96b03 Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 11:06:36 +0100 Subject: [PATCH] added a test case for the command --- src/test/c/Georg/test_tictactoe.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/c/Georg/test_tictactoe.c b/src/test/c/Georg/test_tictactoe.c index 8984fb8..102ef7a 100644 --- a/src/test/c/Georg/test_tictactoe.c +++ b/src/test/c/Georg/test_tictactoe.c @@ -59,6 +59,18 @@ void test_command_startGame(void){ // act int actualState = handeCommand( input ); + // assert + TEST_ASSERT_EQUAL_INT( expectedState, actualState ); +} + +void test_command_startMenu(void){ + // arrange + int expectedState = 0; + char* input = "start menu"; + + // act + int actualState = handeCommand( input ); + // assert TEST_ASSERT_EQUAL_INT( expectedState, actualState ); } \ No newline at end of file