@ -81,7 +81,7 @@ char* getUserInput(){
}
int startMenu( int code ){
if( code == 1 ){ // command test
if( code == -1 ){ // command test
return 1;
@ -99,7 +99,7 @@ int startMenu( int code ){
int startGame( int code ){
@ -8,7 +8,7 @@ struct ticTacToe{
};
// Typdefinition für einen Funktionszeiger
typedef int (*commandFunction)();
typedef int (*commandFunction)( int );
struct command{
int id;
@ -84,7 +84,7 @@ void test_createCommandlist(void){
size_t arraySize = sizeof(*commands) / sizeof(commands[0]);
for (size_t i = 0; i < arraySize; i++) {
TEST_ASSERT_EQUAL_INT( 1, commands[i].fun(1) );
TEST_ASSERT_EQUAL_INT( 1, commands[i].fun(-1) );