mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 18:11:47 +00:00
vim-patch:9.2.0120: tests: test_normal fails
Problem: tests: test_normal fails
Solution: Ensure the terminal width is 40 columns and also
check for existence of the tr.mo file
closes: vim/vim#19608
123a1e6410
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -147,17 +147,17 @@ describe('normal', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
clear({ env = { LANG = 'tr_TR.UTF-8' } })
|
clear({ env = { LANG = 'tr_TR.UTF-8' } })
|
||||||
screen = Screen.new(75, 5)
|
screen = Screen.new(40, 5)
|
||||||
exec('set ruler')
|
exec('set ruler')
|
||||||
exec('lang tr_TR.UTF-8')
|
exec('lang tr_TR.UTF-8')
|
||||||
exec('put =range(1,40)')
|
exec('put =range(1,40)')
|
||||||
exec('5')
|
exec('5')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
3 |
|
3 |
|
||||||
^4 |
|
^4 |
|
||||||
5 |
|
5 |
|
||||||
6 |
|
6 |
|
||||||
40 more lines 5,1 %8 |
|
40 more lines 5,1 %8 |
|
||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -4402,6 +4402,9 @@ func Test_pos_percentage_in_turkish_locale()
|
|||||||
CheckRunVimInTerminal
|
CheckRunVimInTerminal
|
||||||
CheckNotMac
|
CheckNotMac
|
||||||
defer execute(':lang C')
|
defer execute(':lang C')
|
||||||
|
if !filereadable('../po/tr.mo')
|
||||||
|
throw 'Skipped: tr.mo not built, run make in src/po first'
|
||||||
|
endif
|
||||||
|
|
||||||
try
|
try
|
||||||
let dir = expand('$VIMRUNTIME/lang/tr/')
|
let dir = expand('$VIMRUNTIME/lang/tr/')
|
||||||
@@ -4411,7 +4414,7 @@ func Test_pos_percentage_in_turkish_locale()
|
|||||||
call mkdir(target, '')
|
call mkdir(target, '')
|
||||||
call filecopy(tr, target .. 'vim.mo')
|
call filecopy(tr, target .. 'vim.mo')
|
||||||
lang tr_TR.UTF-8
|
lang tr_TR.UTF-8
|
||||||
let buf = RunVimInTerminal('', {'rows': 5})
|
let buf = RunVimInTerminal('', {'rows': 5, 'cols': 40})
|
||||||
call term_sendkeys(buf, ":lang tr_TR.UTF-8\<cr>")
|
call term_sendkeys(buf, ":lang tr_TR.UTF-8\<cr>")
|
||||||
call term_sendkeys(buf, ":put =range(1,40)\<cr>")
|
call term_sendkeys(buf, ":put =range(1,40)\<cr>")
|
||||||
call term_sendkeys(buf, ":5\<cr>")
|
call term_sendkeys(buf, ":5\<cr>")
|
||||||
|
|||||||
Reference in New Issue
Block a user