mirror of
https://github.com/neovim/neovim.git
synced 2026-05-29 16:25:35 +00:00
refactor(test): drop deprecated exc_exec #39242
This commit is contained in:
@@ -2,8 +2,9 @@ local t = require('test.testutil')
|
||||
local n = require('test.functional.testnvim')()
|
||||
|
||||
local eq = t.eq
|
||||
local pcall_err = t.pcall_err
|
||||
local clear = n.clear
|
||||
local exc_exec = n.exc_exec
|
||||
local command = n.command
|
||||
|
||||
describe(':syntax', function()
|
||||
before_each(clear)
|
||||
@@ -12,7 +13,7 @@ describe(':syntax', function()
|
||||
it('does not crash when group name contains unprintable characters', function()
|
||||
eq(
|
||||
'Vim(syntax):E669: Unprintable character in group name',
|
||||
exc_exec('syntax keyword \024 foo bar')
|
||||
pcall_err(command, 'syntax keyword \024 foo bar')
|
||||
)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user