From 8b5e4486be849d332012ed36a03544f667a32efd Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Sun, 16 Apr 2023 23:54:04 +0200 Subject: [PATCH] Add test --- test/gopls_tests.vim | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.50.0