Mercurial > vim
changeset 36092:1029ea45d4f8 v9.1.0714
patch 9.1.0714: tests: GuiEnter_Turkish test may fail
Commit: https://github.com/vim/vim/commit/eccc92792ae45fd706b7d8958fd6c23e0e194161
Author: Ken Takata <kentkt@csc.jp>
Date: Tue Sep 3 23:01:55 2024 +0200
patch 9.1.0714: tests: GuiEnter_Turkish test may fail
Problem: tests: GuiEnter_Turkish test may fail
Solution: the message will be translated if the Turkish message file is
installed. Use gettext() to get the expected message
(Ken Takata)
closes: #15615
Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 03 Sep 2024 23:15:02 +0200 |
parents | 9566fc76fd3a |
children | 2814af6d636d |
files | src/testdir/test_autocmd.vim src/version.c |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -3707,7 +3707,7 @@ func Test_autocmd_with_block() } augroup END - let expected = "\n--- Autocommands ---\nblock_testing BufRead\n *.xml {^@ setlocal matchpairs+=<:>^@ /<start^@ }" + let expected = gettext("\n--- Autocommands ---") .. "\nblock_testing BufRead\n *.xml {^@ setlocal matchpairs+=<:>^@ /<start^@ }" call assert_equal(expected, execute('au BufReadPost *.xml')) doautocmd CursorHold @@ -4871,11 +4871,11 @@ func Test_GuiEnter_Turkish_locale() let lng = v:lang lang tr_TR.UTF-8 let result = execute(':au GuiEnter') - call assert_equal("\n--- Autocommands ---", result) + call assert_equal(gettext("\n--- Autocommands ---"), result) let result = execute(':au GUIENTER') - call assert_equal("\n--- Autocommands ---", result) + call assert_equal(gettext("\n--- Autocommands ---"), result) let result = execute(':au guienter') - call assert_equal("\n--- Autocommands ---", result) + call assert_equal(gettext("\n--- Autocommands ---"), result) exe ":lang" lng catch /E197:/ " can't use Turkish locale