summaryrefslogtreecommitdiff
path: root/test/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/buffer.c')
-rw-r--r--test/buffer.c4
1 files changed, 4 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() {