Add helper macro for running test functions

This commit is contained in:
abdelrahman committed 2024-06-02 23:55:41 +01:00
1 parent 7fb13f2439
commit 75bbb82058
2 files changed
+5 -3

No files matched your search

+4 -3
View File
@@ -3,9 +3,10 @@
#include <stdlib.h>
int main(void) {
run_tests(test_arena_init, test_arena_alloc_succeeds_when_within_capacity,
test_arena_alloc_fails_when_over_capacity, test_arena_clear,
test_arena_destroy);
RUN_TEST_FUNCS(test_arena_init,
test_arena_alloc_succeeds_when_within_capacity,
test_arena_alloc_fails_when_over_capacity, test_arena_clear,
test_arena_destroy);
return EXIT_SUCCESS;
}