Browse Source

fixed calculation

remotes/origin/georg
KaffeeMaus 11 months ago
parent
commit
b47ef9c188
  1. 2
      src/test/c/Georg/test_tictactoe.c

2
src/test/c/Georg/test_tictactoe.c

@ -82,7 +82,7 @@ void test_createCommandlist(void){
// act
commands = createCommands();
size_t arraySize = sizeof(commands) / sizeof(commands[0]);
size_t arraySize = sizeof(*commands) / sizeof(commands[0]);
for (size_t i = 0; i < arraySize; i++) {
TEST_ASSERT_EQUAL_INT( 1, commands[i].fun() );
}

Loading…
Cancel
Save