aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/writefile_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/writefile_spec.lua
parentfaa7c15b5a711435ed9d90f7fbf2a2ff8f1255c7 (diff)
downloadrneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.tar.gz
rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.tar.bz2
rneovim-4ceca862fceb021049144a9aed05c60ae39b7aba.zip
refactor(test): drop deprecated exc_exec #39242
Diffstat (limited to 'test/functional/vimscript/writefile_spec.lua')
-rw-r--r--test/functional/vimscript/writefile_spec.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/vimscript/writefile_spec.lua b/test/functional/vimscript/writefile_spec.lua
index 404aceb92b..b81cb43691 100644
--- a/test/functional/vimscript/writefile_spec.lua
+++ b/test/functional/vimscript/writefile_spec.lua
@@ -6,7 +6,6 @@ local clear = n.clear
local eq = t.eq
local fn = n.fn
local api = n.api
-local exc_exec = n.exc_exec
local read_file = t.read_file
local write_file = t.write_file
local pcall_err = t.pcall_err
@@ -52,16 +51,16 @@ describe('writefile()', function()
end)
it('writes list with an empty string to a file', function()
- eq(0, exc_exec(('call writefile([$XXX_NONEXISTENT_VAR_XXX], "%s", "b")'):format(fname)))
+ command(('call writefile([$XXX_NONEXISTENT_VAR_XXX], "%s", "b")'):format(fname))
eq('', read_file(fname))
- eq(0, exc_exec(('call writefile([$XXX_NONEXISTENT_VAR_XXX], "%s")'):format(fname)))
+ command(('call writefile([$XXX_NONEXISTENT_VAR_XXX], "%s")'):format(fname))
eq('\n', read_file(fname))
end)
it('writes list with a null string to a file', function()
- eq(0, exc_exec(('call writefile([v:_null_string], "%s", "b")'):format(fname)))
+ command(('call writefile([v:_null_string], "%s", "b")'):format(fname))
eq('', read_file(fname))
- eq(0, exc_exec(('call writefile([v:_null_string], "%s")'):format(fname)))
+ command(('call writefile([v:_null_string], "%s")'):format(fname))
eq('\n', read_file(fname))
end)