mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
ci: install Turkish locale and make locale tests more reliable
This commit is contained in:
parent
337299c808
commit
69775f603f
@ -104,9 +104,11 @@ addons:
|
|||||||
- gcc-5-multilib
|
- gcc-5-multilib
|
||||||
- gcc-multilib
|
- gcc-multilib
|
||||||
- gdb
|
- gdb
|
||||||
|
- language-pack-tr
|
||||||
- libc6-dev-i386
|
- libc6-dev-i386
|
||||||
- libtool
|
- libtool
|
||||||
- llvm-3.9-dev
|
- llvm-3.9-dev
|
||||||
|
- locales
|
||||||
- pkg-config
|
- pkg-config
|
||||||
- unzip
|
- unzip
|
||||||
- valgrind
|
- valgrind
|
||||||
|
@ -17,13 +17,7 @@ describe('gu and gU', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
describe('works in Turkish locale', function()
|
describe('works in Turkish locale', function()
|
||||||
if helpers.pending_win32(pending) then return end
|
|
||||||
|
|
||||||
clear()
|
clear()
|
||||||
if eval('has("mac")') ~= 0 then
|
|
||||||
pending("not yet on macOS", function() end)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local err = exc_exec('lang ctype tr_TR.UTF-8')
|
local err = exc_exec('lang ctype tr_TR.UTF-8')
|
||||||
if err ~= 0 then
|
if err ~= 0 then
|
||||||
@ -47,13 +41,23 @@ describe('gu and gU', function()
|
|||||||
|
|
||||||
it('with casemap=""', function()
|
it('with casemap=""', function()
|
||||||
command('set casemap=')
|
command('set casemap=')
|
||||||
-- expect Turkish locale behavior
|
-- expect either Turkish locale behavior or ASCII behavior
|
||||||
insert("iI")
|
local iupper = eval("toupper('i')")
|
||||||
feed("VgU")
|
if iupper == "İ" then
|
||||||
expect("İI")
|
insert("iI")
|
||||||
feed("Vgu")
|
feed("VgU")
|
||||||
expect("iı")
|
expect("İI")
|
||||||
|
feed("Vgu")
|
||||||
|
expect("iı")
|
||||||
|
elseif iupper == "I" then
|
||||||
|
insert("iI")
|
||||||
|
feed("VgU")
|
||||||
|
expect("II")
|
||||||
|
feed("Vgu")
|
||||||
|
expect("ii")
|
||||||
|
else
|
||||||
|
error("expected toupper('i') to be either 'I' or 'İ'")
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user