Skip to content

Commit eccc927

Browse files
k-takatachrisbra
authored andcommitted
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 <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 2432b4a commit eccc927

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/testdir/test_autocmd.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3707,7 +3707,7 @@ func Test_autocmd_with_block()
37073707
}
37083708
augroup END
37093709

3710-
let expected = "\n--- Autocommands ---\nblock_testing BufRead\n *.xml {^@ setlocal matchpairs+=<:>^@ /<start^@ }"
3710+
let expected = gettext("\n--- Autocommands ---") .. "\nblock_testing BufRead\n *.xml {^@ setlocal matchpairs+=<:>^@ /<start^@ }"
37113711
call assert_equal(expected, execute('au BufReadPost *.xml'))
37123712

37133713
doautocmd CursorHold
@@ -4871,11 +4871,11 @@ func Test_GuiEnter_Turkish_locale()
48714871
let lng = v:lang
48724872
lang tr_TR.UTF-8
48734873
let result = execute(':au GuiEnter')
4874-
call assert_equal("\n--- Autocommands ---", result)
4874+
call assert_equal(gettext("\n--- Autocommands ---"), result)
48754875
let result = execute(':au GUIENTER')
4876-
call assert_equal("\n--- Autocommands ---", result)
4876+
call assert_equal(gettext("\n--- Autocommands ---"), result)
48774877
let result = execute(':au guienter')
4878-
call assert_equal("\n--- Autocommands ---", result)
4878+
call assert_equal(gettext("\n--- Autocommands ---"), result)
48794879
exe ":lang" lng
48804880
catch /E197:/
48814881
" can't use Turkish locale

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
714,
707709
/**/
708710
713,
709711
/**/

0 commit comments

Comments
 (0)