test/clangd_tests.vim | 18 +++++++++--------- diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index 08952c5330610863ffc11338186cb39cc1b0e5c3..2d58fc70195cb0047c4c8d94719e614eb9f14f87 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -125,7 +125,7 @@ assert_equal('', execute('LspFormat')) # file without an LSP server edit a.raku - assert_equal('Error: Language server for "raku" file type is not found', + assert_equal('Error: Language server for "raku" file type supporting "documentFormatting" feature is not found', execute('LspFormat')->split("\n")[0]) :%bw! @@ -250,7 +250,7 @@ assert_equal('', execute('LspShowReferences')) # file without an LSP server edit a.raku - assert_equal('Error: Language server for "raku" file type is not found', + assert_equal('Error: Language server for "raku" file type supporting "references" feature is not found', execute('LspShowReferences')->split("\n")[0]) :%bw! @@ -669,7 +669,7 @@ assert_equal('', execute('LspCodeAction')) # file without an LSP server edit a.raku - assert_equal('Error: Language server for "raku" file type is not found', + assert_equal('Error: Language server for "raku" file type supporting "codeAction" feature is not found', execute('LspCodeAction')->split("\n")[0]) :%bw! @@ -739,7 +739,7 @@ assert_equal('', execute('LspRename')) # file without an LSP server edit a.raku - assert_equal('Error: Language server for "raku" file type is not found', + assert_equal('Error: Language server for "raku" file type supporting "rename" feature is not found', execute('LspRename')->split("\n")[0]) :%bw! @@ -839,7 +839,7 @@ assert_equal('', execute('LspSelectionExpand')) # file without an LSP server edit a.raku - assert_equal('Error: Language server for "raku" file type is not found', + assert_equal('Error: Language server for "raku" file type supporting "selectionRange" feature is not found', execute('LspSelectionExpand')->split("\n")[0]) :%bw! @@ -972,11 +972,11 @@ assert_equal('', execute('LspGotoImpl')) # file without an LSP server edit a.raku - assert_equal('Error: Language server for "raku" file type is not found', + assert_equal('Error: Language server for "raku" file type supporting "definition" feature is not found', execute('LspGotoDefinition')->split("\n")[0]) - assert_equal('Error: Language server for "raku" file type is not found', + assert_equal('Error: Language server for "raku" file type supporting "declaration" feature is not found', execute('LspGotoDeclaration')->split("\n")[0]) - assert_equal('Error: Language server for "raku" file type is not found', + assert_equal('Error: Language server for "raku" file type supporting "implementation" feature is not found', execute('LspGotoImpl')->split("\n")[0]) :%bw! @@ -1049,7 +1049,7 @@ var output = execute(':LspHover')->split("\n") assert_equal([], output) var p: list = popup_list() assert_equal(1, p->len()) - assert_equal(['function f1', '', '→ int', 'Parameters:', '- int a', '', 'int f1(int a)'], getbufline(winbufnr(p[0]), 1, '$')) + assert_equal(['### function `f1` ', '', '---', '→ `int` ', 'Parameters: ', '- `int a`', '', '---', '```cpp', 'int f1(int a)', '```'], getbufline(winbufnr(p[0]), 1, '$')) popup_close(p[0]) cursor(7, 1) output = execute(':LspHover')->split("\n")