projects
/
vim-lsp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c788f03
)
Add test
author
Andreas Louv <andreas@louv.dk>
Sun, 16 Apr 2023 21:54:04 +0000 (23:54 +0200)
committer
Andreas Louv <andreas@louv.dk>
Sun, 16 Apr 2023 22:10:39 +0000 (
00:10
+0200)
test/gopls_tests.vim
patch
|
blob
|
history
diff --git
a/test/gopls_tests.vim
b/test/gopls_tests.vim
index 00fb2c2d06988339c57ea18b6035c0732e8cbe8f..1b06e1bac26bee332eddd011da2a16ca946bbb75 100644
(file)
--- 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