From 405da5f84b072ea97b69359454899f45d92d24b6 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Wed, 22 May 2024 00:00:29 +0200 Subject: WIP LSP client This contains the start of an LSP client. Nothing (except starting the LSP server) works at the moment and the feature is disabled by default. --- test/undo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/undo.c') diff --git a/test/undo.c b/test/undo.c index a4b6ad0..05ec2e4 100644 --- a/test/undo.c +++ b/test/undo.c @@ -5,7 +5,7 @@ #include "assert.h" #include "test.h" -void test_undo_insert() { +void test_undo_insert(void) { struct undo_stack undo; /* small capacity on purpose to force re-sizing */ @@ -15,7 +15,7 @@ void test_undo_insert() { ASSERT(undo_size(&undo) == 1, "Expected undo stack to have one item after inserting a save point"); - undo_push_boundary(&undo, (struct undo_boundary){}); + undo_push_boundary(&undo, (struct undo_boundary){0}); ASSERT(undo_size(&undo) == 2, "Expected undo stack to have two items after inserting a boundary"); @@ -37,7 +37,7 @@ void test_undo_insert() { undo_destroy(&undo); } -void test_undo() { +void test_undo(void) { struct undo_stack undo; undo_init(&undo, 10); @@ -99,7 +99,7 @@ void test_undo() { undo_destroy(&undo); } -void run_undo_tests() { +void run_undo_tests(void) { run_test(test_undo_insert); run_test(test_undo); } -- cgit v1.2.3