From: Yegappan Lakshmanan Date: Sat, 22 Jan 2022 17:23:18 +0000 (-0800) Subject: Use the command name in the test function name X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d0432424dcc2f78dadef631a50329b3fabf45588;p=vim-lsp.git Use the command name in the test function name --- diff --git a/test/unit_tests.vim b/test/unit_tests.vim index 1378ef8..4836a9f 100644 --- a/test/unit_tests.vim +++ b/test/unit_tests.vim @@ -86,8 +86,8 @@ func s:WaitForCommon(expr, assert, timeout) return -1 " timed out endfunc -# Test for formatting a file using LSP -def Test_lsp_formatting() +# Test for formatting a file using LspFormat +def Test_LspFormat() :silent! edit Xtest.c setline(1, [' int i;', ' int j;']) :redraw! @@ -189,8 +189,9 @@ def Test_lsp_formatting() :%bw! enddef -# Test for showing all the references of a symbol in a file using LSP -def Test_lsp_show_references() +# Test for :LspShowReferences - showing all the references to a symbol in a +# file using LSP +def Test_LspShowReferences() :silent! edit Xtest.c var lines: list =<< trim END int count; @@ -241,7 +242,7 @@ def Test_lsp_show_references() enddef # Test for LSP diagnostics -def Test_lsp_diags() +def Test_LspDiag() :silent! edit Xtest.c var lines: list =<< trim END void blueFunc() @@ -345,8 +346,8 @@ def Test_LspCodeAction() :%bw! enddef -# Test for LSP symbol rename -def Test_lsp_rename() +# Test for :LspRename +def Test_LspRename() silent! edit Xtest.c sleep 1 var lines: list =<< trim END @@ -397,8 +398,8 @@ def Test_lsp_rename() :%bw! enddef -# Test for LSP selection range -def Test_lsp_selection() +# Test for :LspSelectionRange +def Test_LspSelectionRange() silent! edit Xtest.c sleep 500m var lines: list =<< trim END @@ -448,8 +449,8 @@ def Test_lsp_selection() :%bw! enddef -# Test for LSP goto symobl definition, declaration and implementation -def Test_lsp_goto_definition() +# Test for :LspGotoDefinition, :LspGotoDeclaration and :LspGotoImpl +def Test_LspGotoDefinition() silent! edit Xtest.cpp var lines: list =<< trim END #include