Add tests

This commit is contained in:
2024-06-02 23:35:26 +01:00
parent 6ee3c762df
commit 0b63bc746d
3 changed files with 90 additions and 0 deletions

11
tests/wapptest.c Normal file
View File

@@ -0,0 +1,11 @@
#include "test_arena.h"
#include "tester.h"
#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);
return EXIT_SUCCESS;
}