From ecff6472e5f5863ca88663eaad07528124b5eb0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Magnus=20Gro=C3=9F?= Date: Tue, 11 Jul 2023 19:40:38 +0200 Subject: [PATCH] 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. --- test/clangd_tests.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! -- 2.48.1