mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
test: rename (meths, funcs) -> (api, fn)
This commit is contained in:
@@ -2,7 +2,7 @@ local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear = helpers.clear
|
||||
local command = helpers.command
|
||||
local eq = helpers.eq
|
||||
local funcs = helpers.funcs
|
||||
local fn = helpers.fn
|
||||
local rmdir = helpers.rmdir
|
||||
local mkdir = helpers.mkdir
|
||||
|
||||
@@ -29,6 +29,6 @@ describe(':file', function()
|
||||
command('edit! ' .. testfile)
|
||||
-- Before #6487 this gave "E301: Oops, lost the swap file !!!" on Windows.
|
||||
command('file ' .. testfile_renamed)
|
||||
eq(testfile_renamed .. '.swp', string.match(funcs.execute('swapname'), '[^%%]+$'))
|
||||
eq(testfile_renamed .. '.swp', string.match(fn.execute('swapname'), '[^%%]+$'))
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user