diff options
Diffstat (limited to 'mem/test')
-rw-r--r-- | mem/test/mem_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mem/test/mem_test.c b/mem/test/mem_test.c index a8d482f..52ce5a9 100644 --- a/mem/test/mem_test.c +++ b/mem/test/mem_test.c | |||
@@ -32,6 +32,12 @@ TEST_CASE(mem_create_dyn) { | |||
32 | mem_make_dyn(&mem, NUM_BLOCKS, sizeof(int)); | 32 | mem_make_dyn(&mem, NUM_BLOCKS, sizeof(int)); |
33 | } | 33 | } |
34 | 34 | ||
35 | // Clear an uninitialized allocator. | ||
36 | TEST_CASE(mem_clear_uninitialized) { | ||
37 | test_mem mem = {0}; | ||
38 | mem_clear(&mem); | ||
39 | } | ||
40 | |||
35 | // Allocate N chunks of 1 block each. | 41 | // Allocate N chunks of 1 block each. |
36 | TEST_CASE(mem_fully_allocate) { | 42 | TEST_CASE(mem_fully_allocate) { |
37 | test_mem mem; | 43 | test_mem mem; |