diff options
| author | Albert Cervin <albert@acervin.com> | 2024-05-22 00:00:29 +0200 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2024-09-12 20:17:56 +0200 |
| commit | 405da5f84b072ea97b69359454899f45d92d24b6 (patch) | |
| tree | 20525b4bc44a5d8cbab4d62abe8413e174731db6 /test/undo.c | |
| parent | 4ab7e453e26afc6e9f4938c65f89463fbba9e267 (diff) | |
| download | dged-405da5f84b072ea97b69359454899f45d92d24b6.tar.gz dged-405da5f84b072ea97b69359454899f45d92d24b6.tar.xz dged-405da5f84b072ea97b69359454899f45d92d24b6.zip | |
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.
Diffstat (limited to 'test/undo.c')
| -rw-r--r-- | test/undo.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |
