diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/buffer.c | 4 | ||||
| -rw-r--r-- | test/minibuffer.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/buffer.c b/test/buffer.c index f4aefc5..a4b318e 100644 --- a/test/buffer.c +++ b/test/buffer.c @@ -15,6 +15,8 @@ void test_add() { ASSERT(loc.line == 1 && loc.col == strlen(txt), "Expected buffer to have one line with characters"); + + buffer_destroy(&b); } void test_word_at() { @@ -43,6 +45,8 @@ void test_word_at() { ASSERT(region_has_size(word3), "expected 0,100 to be in the last word"); ASSERT(word3.begin.col == 15 && word3.end.col == 22, "Expected word to span cols 15..22"); + + buffer_destroy(&b); } void run_buffer_tests() { diff --git a/test/minibuffer.c b/test/minibuffer.c index 96fecca..5243b6c 100644 --- a/test/minibuffer.c +++ b/test/minibuffer.c @@ -34,6 +34,7 @@ void init() { void destroy() { if (b.name != NULL) { buffer_destroy(&b); + buffers_destroy(&bufs); settings_destroy(); timers_destroy(); windows_destroy(); |
