diff options
author | Linnnus <[email protected]> | 2025-04-08 01:07:22 +0000 |
---|---|---|
committer | Linnnus <[email protected]> | 2025-04-08 01:07:34 +0000 |
commit | 8dd0c4f27aae02dd60f029db4cf03f9902cba26f (patch) | |
tree | 829c4bc0917f6615c55ae61d49932179c038c1e5 /src/unit/test_std_allocator.c |
feat: Initial commit
At this point we have some allocation routines but no work on the actual
language has been done.
Diffstat (limited to 'src/unit/test_std_allocator.c')
-rw-r--r-- | src/unit/test_std_allocator.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/unit/test_std_allocator.c b/src/unit/test_std_allocator.c new file mode 100644 index 0000000..e115952 --- /dev/null +++ b/src/unit/test_std_allocator.c @@ -0,0 +1,16 @@ +#include "../core/allocator.h" +#include "../core/std_allocator.h" +#include "./allocator_utils.h" + +#include "greatest.h" + +SUITE(std_allocator) { +#define RUN_WITH_STD_ALLOCATOR(test) \ + do { \ + SandAllocator a = sand_new_std_allocator(); \ + RUN_TEST1(test, &a); \ + } while(0); + + RUN_ALLOCATOR_TESTS(RUN_WITH_STD_ALLOCATOR); +#undef RUN_WITH_STD_ALLOCATOR +} |