You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TEST_CASE with arrays as arguments (generate_test_runner) #752
I have worked around this limitation by doing this:
test_helpers.h
#ifndefTEST_HELPERS_H#defineTEST_HELPERS_H#include<stdint.h>// For uint8_t// For parameterized tests#ifndefTEST_CASE#defineTEST_CASE(...)
#endif#defineUINT8_ARRAY(...) (uint_8[]){__VA_ARGS__}
#endif// TEST_HELPERS_H
Activity
fletcher-festina commentedon Sep 7, 2026
I would really like this as well!
SebiAi commentedon Sep 17, 2026
I have worked around this limitation by doing this:
test_helpers.h
my_test.c
This passes the parser of the
generate_test_runner.rbscript (no curly braces) but resolves at compile time.