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