From 4c17f9b836a61ebb73c731fe755c6e480e1a9faf Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 12:04:47 +0100 Subject: [PATCH] refactoring: test handleGameInput --- src/test/c/Georg/test_tictactoe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/c/Georg/test_tictactoe.c b/src/test/c/Georg/test_tictactoe.c index 702e4ae..989ca12 100644 --- a/src/test/c/Georg/test_tictactoe.c +++ b/src/test/c/Georg/test_tictactoe.c @@ -131,11 +131,11 @@ void test_initializeBoard(void){ void test_handleGameInput(void){ // arrange char* teststring = "set 3,4"; - int expectedState = 1; + int expectedCommand = 1; // act int actualState = handleGameInput( teststring ); // assert - TEST_ASSERT_EQUAL_INT( expectedState, actualState ); + TEST_ASSERT_EQUAL_INT( expectedCommand, actualState ); }