|
@ -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 ); |
|
|
} |
|
|
} |