summaryrefslogtreecommitdiff
path: root/test/main.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2025-01-13 18:59:41 +0100
committerAlbert Cervin <albert@acervin.com>2025-01-21 20:07:30 +0100
commit186374797aa883de9c4ac49d428af8dca000d2ed (patch)
tree48da2530988eb900889d781c5d35c9fedfc5e4f5 /test/main.c
parent98b060b8aa93e27908148b145731e3f4b770d1a8 (diff)
downloaddged-186374797aa883de9c4ac49d428af8dca000d2ed.tar.gz
dged-186374797aa883de9c4ac49d428af8dca000d2ed.tar.xz
dged-186374797aa883de9c4ac49d428af8dca000d2ed.zip
Fix buffer list not having stable ptrs
Was caused by using a vector that used realloc to grow. That only works sometimes. Now instead, the buffer list is a chunked linked list, i.e. a linked list where each element is a fixed size array.
Diffstat (limited to 'test/main.c')
-rw-r--r--test/main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/main.c b/test/main.c
index 29e031f..f8e1eca 100644
--- a/test/main.c
+++ b/test/main.c
@@ -29,9 +29,12 @@ int main(void) {
printf("\nāŖ \x1b[1;36mRunning undo tests...\x1b[0m\n");
run_undo_tests();
- printf("\nšŸ•“ļø \x1b[1;36mRunning buffer tests...\x1b[0m\n");
+ printf("\nšŸ•“ļø \x1b[1;36mRunning buffer tests...\x1b[0m\n");
run_buffer_tests();
+ printf("\nšŸ“‹ \x1b[1;36mRunning buffer list tests...\x1b[0m\n");
+ run_buflist_tests();
+
printf("\nšŸ’ \x1b[1;36mRunning command tests...\x1b[0m\n");
run_command_tests();
@@ -44,14 +47,14 @@ int main(void) {
printf("\n🐜 \x1b[1;36mRunning minibuffer tests...\x1b[0m\n");
run_minibuffer_tests();
- printf("\n šŸ““ \x1b[1;36mRunning settings tests...\x1b[0m\n");
+ printf("\nšŸ““ \x1b[1;36mRunning settings tests...\x1b[0m\n");
run_settings_tests();
- printf("\n šŸŽ \x1b[1;36mRunning container tests...\x1b[0m\n");
+ printf("\nšŸŽ \x1b[1;36mRunning container tests...\x1b[0m\n");
run_container_tests();
#if defined(LSP_ENABLED)
- printf("\n šŸ“ƒ \x1b[1;36mRunning JSON tests...\x1b[0m\n");
+ printf("\nšŸ“ƒ \x1b[1;36mRunning JSON tests...\x1b[0m\n");
run_json_tests();
#endif