Browse Source

refactoring: test handleGameInput

remotes/origin/georg
KaffeeMaus 12 months ago
parent
commit
4c17f9b836
  1. 4
      src/test/c/Georg/test_tictactoe.c

4
src/test/c/Georg/test_tictactoe.c

@ -131,11 +131,11 @@ void test_initializeBoard(void){
void test_handleGameInput(void){ void test_handleGameInput(void){
// arrange // arrange
char* teststring = "set 3,4"; char* teststring = "set 3,4";
int expectedState = 1;
int expectedCommand = 1;
// act // act
int actualState = handleGameInput( teststring ); int actualState = handleGameInput( teststring );
// assert // assert
TEST_ASSERT_EQUAL_INT( expectedState, actualState );
TEST_ASSERT_EQUAL_INT( expectedCommand, actualState );
} }
Loading…
Cancel
Save