Browse Source

added a test case for the command

remotes/origin/georg
KaffeeMaus 11 months ago
parent
commit
5dc45b9943
  1. 12
      src/test/c/Georg/test_tictactoe.c

12
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 );
}
Loading…
Cancel
Save