summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/vimscript/string_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-04-20 14:16:41 -0400
committerGitHub <noreply@github.com>2026-04-20 14:16:41 -0400
commit4ceca862fceb021049144a9aed05c60ae39b7aba (patch)
treeb7b1f1e421aeeaa2d30a348745c17f9f9b69b8d7 /test/functional/vimscript/string_spec.lua
parentfaa7c15b5a711435ed9d90f7fbf2a2ff8f1255c7 (diff)
refactor(test): drop deprecated exc_exec #39242
Diffstat (limited to 'test/functional/vimscript/string_spec.lua')
-rw-r--r--test/functional/vimscript/string_spec.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/vimscript/string_spec.lua b/test/functional/vimscript/string_spec.lua
index 7a3debd14c..6e86e11667 100644
--- a/test/functional/vimscript/string_spec.lua
+++ b/test/functional/vimscript/string_spec.lua
@@ -6,7 +6,6 @@ local eq = t.eq
local command = n.command
local api = n.api
local eval = n.eval
-local exc_exec = n.exc_exec
local pcall_err = t.pcall_err
local fn = n.fn
local NIL = vim.NIL
@@ -237,7 +236,7 @@ describe('string() function', function()
eval('add(l, l)')
eq(
'Vim(echo):E724: unable to correctly dump variable with self-referencing container',
- exc_exec('echo string(l)')
+ pcall_err(command, 'echo string(l)')
)
end)
@@ -276,7 +275,7 @@ describe('string() function', function()
eval('extend(d, {"d": d})')
eq(
'Vim(echo):E724: unable to correctly dump variable with self-referencing container',
- exc_exec('echo string(d)')
+ pcall_err(command, 'echo string(d)')
)
end)