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/text.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/text.c')
| -rw-r--r-- | test/text.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/text.c b/test/text.c index f890e7b..0d1557f 100644 --- a/test/text.c +++ b/test/text.c @@ -8,14 +8,14 @@ #include "stdio.h" #include "test.h" -void assert_line_eq(struct text_chunk line, const char *txt, const char *msg) { +static void assert_line_eq(struct text_chunk line, const char *txt, + const char *msg) { ASSERT(strncmp((const char *)line.text, txt, line.nbytes) == 0, msg); } -void assert_line_equal(struct text_chunk *line) {} - -void test_add_text() { +void test_add_text(void) { uint32_t lines_added; + /* use a silly small initial capacity to test re-alloc */ struct text *t = text_create(1); @@ -65,7 +65,7 @@ void test_add_text() { text_destroy(t); } -void test_delete_text() { +void test_delete_text(void) { uint32_t lines_added; struct text *t = text_create(10); const char *txt = "This is line 1"; @@ -128,7 +128,7 @@ void test_delete_text() { text_destroy(t4); } -void run_text_tests() { +void run_text_tests(void) { run_test(test_add_text); run_test(test_delete_text); } |
