]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Add test
authorAndreas Louv <andreas@louv.dk>
Sun, 16 Apr 2023 21:54:04 +0000 (23:54 +0200)
committerAndreas Louv <andreas@louv.dk>
Sun, 16 Apr 2023 22:10:39 +0000 (00:10 +0200)
test/gopls_tests.vim

index 00fb2c2d06988339c57ea18b6035c0732e8cbe8f..1b06e1bac26bee332eddd011da2a16ca946bbb75 100644 (file)
@@ -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