@ -63,12 +63,18 @@ commandFunction getCommandById( struct command* commands, int id ){
return result;
}
int startMenu(){
int startMenu( int code ){
if( code == 1 ){ // command test
return 1;
return 0;
int startGame(){
int startGame( int code ){
@ -22,7 +22,7 @@ struct command* createCommands();
/* commands */
commandFunction getCommandById(struct command* commands, int id);
int startMenu();
int startGame();
int startMenu( int code );
int startGame( int code );
#endif //TICTACTOE_H
@ -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() );
TEST_ASSERT_EQUAL_INT( 1, commands[i].fun(1) );