From: Nick Jensen Date: Mon, 8 Apr 2024 01:54:30 +0000 (+1200) Subject: Add tests for :LspDiag nextWrap/prevWrap X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e9f337e2ec0310b2e05a08767677321247c2ccee;p=vim-lsp.git Add tests for :LspDiag nextWrap/prevWrap --- diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index 5ff6a4c..b084e86 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -511,6 +511,9 @@ def g:Test_LspDiag_Multi() 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 @@ def g:Test_LspDiag_Multi() 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