From 4ceca862fceb021049144a9aed05c60ae39b7aba Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 20 Apr 2026 14:16:41 -0400 Subject: refactor(test): drop deprecated exc_exec #39242 --- test/functional/vimscript/writefile_spec.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/functional/vimscript/writefile_spec.lua') 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) -- cgit