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>
This commit is contained in:
committed by
Christian Brabandt
parent
2432b4a753
commit
eccc92792a
@ -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
|
||||
|
||||
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
714,
|
||||
/**/
|
||||
713,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user