mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test: rename (meths, funcs) -> (api, fn)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local eq, command, funcs = helpers.eq, helpers.command, helpers.funcs
|
||||
local eq, command, fn = helpers.eq, helpers.command, helpers.fn
|
||||
local ok = helpers.ok
|
||||
local clear = helpers.clear
|
||||
local feed = helpers.feed
|
||||
@@ -12,15 +12,15 @@ describe(':edit', function()
|
||||
it('without arguments does not restart :terminal buffer', function()
|
||||
command('terminal')
|
||||
feed([[<C-\><C-N>]])
|
||||
local bufname_before = funcs.bufname('%')
|
||||
local bufnr_before = funcs.bufnr('%')
|
||||
local bufname_before = fn.bufname('%')
|
||||
local bufnr_before = fn.bufnr('%')
|
||||
helpers.ok(nil ~= string.find(bufname_before, '^term://')) -- sanity
|
||||
|
||||
command('edit')
|
||||
|
||||
local bufname_after = funcs.bufname('%')
|
||||
local bufnr_after = funcs.bufnr('%')
|
||||
ok(funcs.line('$') > 1)
|
||||
local bufname_after = fn.bufname('%')
|
||||
local bufnr_after = fn.bufnr('%')
|
||||
ok(fn.line('$') > 1)
|
||||
eq(bufname_before, bufname_after)
|
||||
eq(bufnr_before, bufnr_after)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user