From 8dd0c4f27aae02dd60f029db4cf03f9902cba26f Mon Sep 17 00:00:00 2001 From: Linnnus Date: Tue, 8 Apr 2025 01:07:22 +0000 Subject: feat: Initial commit At this point we have some allocation routines but no work on the actual language has been done. --- src/unit/test_std_allocator.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/unit/test_std_allocator.c (limited to 'src/unit/test_std_allocator.c') 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 +} -- cgit v1.2.3