From 04e8045c7c42366aa21b5e85bfa43a9462718cac Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 11:08:48 +0100 Subject: [PATCH] refactoring: typo --- src/main/c/Georg/tictactoe.c | 2 +- src/main/c/Georg/tictactoe.h | 2 +- src/test/c/Georg/test_tictactoe.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/c/Georg/tictactoe.c b/src/main/c/Georg/tictactoe.c index a5955ee..c3b5525 100644 --- a/src/main/c/Georg/tictactoe.c +++ b/src/main/c/Georg/tictactoe.c @@ -24,7 +24,7 @@ struct ticTacToe createTicTacToe() { return newGame; } -int handeCommand( char* input ){ +int handleCommand( char* input ){ if( strcmp(input, "start menu") == 0 ){ return 0; }else if( strcmp(input, "start game") == 0 ){ diff --git a/src/main/c/Georg/tictactoe.h b/src/main/c/Georg/tictactoe.h index 1500ee2..d054a66 100644 --- a/src/main/c/Georg/tictactoe.h +++ b/src/main/c/Georg/tictactoe.h @@ -8,6 +8,6 @@ struct ticTacToe{ char* getWelcomeMessage(); char* getRulesMessage(); struct ticTacToe createTicTacToe(); -int handeCommand( char* input ); +int handleCommand( char* input ); #endif //TICTACTOE_H diff --git a/src/test/c/Georg/test_tictactoe.c b/src/test/c/Georg/test_tictactoe.c index 102ef7a..546dc88 100644 --- a/src/test/c/Georg/test_tictactoe.c +++ b/src/test/c/Georg/test_tictactoe.c @@ -57,7 +57,7 @@ void test_command_startGame(void){ char* input = "start game"; // act - int actualState = handeCommand( input ); + int actualState = handleCommand( input ); // assert TEST_ASSERT_EQUAL_INT( expectedState, actualState ); @@ -69,7 +69,7 @@ void test_command_startMenu(void){ char* input = "start menu"; // act - int actualState = handeCommand( input ); + int actualState = handleCommand( input ); // assert TEST_ASSERT_EQUAL_INT( expectedState, actualState );