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

20
tests/arena/test_arena.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef TEST_ARENA_H
#define TEST_ARENA_H
#include "tester.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
TestFuncResult test_arena_init(void);
TestFuncResult test_arena_alloc_succeeds_when_within_capacity(void);
TestFuncResult test_arena_alloc_fails_when_over_capacity(void);
TestFuncResult test_arena_clear(void);
TestFuncResult test_arena_destroy(void);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // !TEST_ARENA_H