mirror of
https://github.com/neovim/neovim.git
synced 2026-05-24 05:40:08 +00:00
refactor(test): drop deprecated exc_exec #39242
This commit is contained in:
@@ -2,13 +2,13 @@ local t = require('test.testutil')
|
||||
local n = require('test.functional.testnvim')()
|
||||
|
||||
local clear, eval, eq = n.clear, n.eval, t.eq
|
||||
local exc_exec, source = n.exc_exec, n.source
|
||||
local source = n.source
|
||||
|
||||
describe('vimscript', function()
|
||||
before_each(clear)
|
||||
|
||||
it('parses `<SID>` with turkish locale', function()
|
||||
if exc_exec('lang ctype tr_TR.UTF-8') ~= 0 then
|
||||
if not pcall(n.command, 'lang ctype tr_TR.UTF-8') then
|
||||
pending('Locale tr_TR.UTF-8 not supported')
|
||||
return
|
||||
end
|
||||
@@ -23,7 +23,7 @@ describe('vimscript', function()
|
||||
end)
|
||||
|
||||
it('str2float is not affected by locale', function()
|
||||
if exc_exec('lang ctype sv_SE.UTF-8') ~= 0 then
|
||||
if not pcall(n.command, 'lang ctype sv_SE.UTF-8') then
|
||||
pending('Locale sv_SE.UTF-8 not supported')
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user