test/clangd_tests.vim | 7 +++++++ diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index 5ff6a4cfb3e01ab1a2f289ca6924bd9679135544..b084e8618728056f79378e1caf0f7d9ae06500a5 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -511,6 +511,9 @@ var output = execute('LspDiag prev')->split("\n") assert_equal('Warn: No more diagnostics found', output[0]) + assert_equal('', execute('LspDiag prevWrap')) + assert_equal([2, 9], [line('.'), col('.')]) + cursor(2, 1) assert_equal('', execute('LspDiag first')) assert_equal([1, 5], [line('.'), col('.')]) @@ -519,6 +522,10 @@ assert_equal([1, 9], [line('.'), col('.')]) cursor(1, 1) assert_equal('', execute('LspDiag last')) assert_equal([2, 9], [line('.'), col('.')]) + assert_equal('', execute('LspDiag nextWrap')) + assert_equal([1, 5], [line('.'), col('.')]) + assert_equal('', execute('LspDiag nextWrap')) + assert_equal([1, 9], [line('.'), col('.')]) popup_clear() # Test for :LspDiag here on a line with multiple diagnostics