diff options
Diffstat (limited to 'mem/test')
| -rw-r--r-- | mem/test/mem_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mem/test/mem_test.c b/mem/test/mem_test.c index 14718a5..88c8b14 100644 --- a/mem/test/mem_test.c +++ b/mem/test/mem_test.c | |||
| @@ -220,6 +220,8 @@ TEST_CASE(mem_clear_then_reuse) { | |||
| 220 | } | 220 | } |
| 221 | 221 | ||
| 222 | mem_clear(&mem); | 222 | mem_clear(&mem); |
| 223 | TEST_EQUAL(mem_size(&mem), 0); | ||
| 224 | TEST_EQUAL(mem_capacity(&mem), NUM_BLOCKS); | ||
| 223 | 225 | ||
| 224 | // Allocate chunks and assign values 0..N. | 226 | // Allocate chunks and assign values 0..N. |
| 225 | for (int i = 0; i < NUM_BLOCKS; ++i) { | 227 | for (int i = 0; i < NUM_BLOCKS; ++i) { |
