Add tests for Allocator implementations

This commit is contained in:
2024-09-07 15:43:47 +01:00
parent 59e56a75d3
commit d30eee0cf8
3 changed files with 57 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
#include "test_allocator.h"
#include "test_arena.h"
#include "test_shell_commander.h"
#include "tester.h"
@@ -5,7 +6,8 @@
int main(void) {
wapp_tester_run_tests(
test_arena_init, test_arena_init_succeeds_when_reserving_very_large_size,
test_libc_allocator, test_arena_allocator, test_arena_init,
test_arena_init_succeeds_when_reserving_very_large_size,
test_arena_alloc_succeeds_when_within_capacity,
test_arena_alloc_fails_when_over_capacity, test_arena_clear,
test_arena_destroy, test_commander_cmd_success,