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>
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index a863a23..fc6f377 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -3707,7 +3707,7 @@
}
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 @@
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
diff --git a/src/version.c b/src/version.c
index f53da01..b35a89e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 714,
+/**/
713,
/**/
712,