From: Magnus Groß Date: Tue, 11 Jul 2023 17:40:38 +0000 (+0200) Subject: Do not rely on vim's locale in tests X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ecff6472e5f5863ca88663eaad07528124b5eb0f;p=vim-lsp.git Do not rely on vim's locale in tests The language of the user running the tests may be different, which means that the error message may be different as it is translated. Instead match only against the error code, which is safer. --- diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index 5e18f94..54c5ade 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -1343,7 +1343,7 @@ def g:Test_LspTagFunc() :exe "normal \" assert_equal([11, 6], [line('.'), col('.')]) cursor(1, 1) - assert_fails('exe "normal \"', 'E433: No tags file') + assert_fails('exe "normal \"', 'E433:') :set tagfunc& :%bw!