refactor(test): drop deprecated exc_exec #39242

This commit is contained in:
Justin M. Keyes
2026-04-20 14:16:41 -04:00
committed by GitHub
parent faa7c15b5a
commit 4ceca862fc
77 changed files with 1009 additions and 799 deletions

View File

@@ -1,7 +1,6 @@
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local exc_exec = n.exc_exec
local command = n.command
local clear = n.clear
local api = n.api
@@ -35,7 +34,11 @@ describe('NULL', function()
end)
local null_test = function(name, cmd, err)
it(name, function()
eq(err, exc_exec(cmd))
if err == 0 then
command(cmd)
else
eq(err, t.pcall_err(command, cmd))
end
end)
end
local null_expr_test = function(name, expr, err, val, after)