From: Andreas Louv Date: Sun, 16 Apr 2023 21:54:04 +0000 (+0200) Subject: Add test X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8b5e4486be849d332012ed36a03544f667a32efd;p=vim-lsp.git Add test --- diff --git a/test/gopls_tests.vim b/test/gopls_tests.vim index 00fb2c2..1b06e1b 100644 --- a/test/gopls_tests.vim +++ b/test/gopls_tests.vim @@ -98,6 +98,15 @@ def g:Test_LspGoto() assert_equal([], popup_list()) popup_clear() + # Jump to the first implementation + cursor(4, 9) + assert_equal('', execute(':1LspGotoImpl')) + assert_equal([9, 13], [line('.'), col('.')]) + + # Jump to the second implementation + cursor(4, 9) + assert_equal('', execute(':2LspGotoImpl')) + assert_equal([13, 13], [line('.'), col('.')]) bw! enddef