mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 20:30:40 -06:00
test: rename (meths, funcs) -> (api, fn)
This commit is contained in:
1 parent
4f81f506f9
commit
795f896a57
214 files changed
+6443
-6560
No files matched your search
@@ -4,8 +4,8 @@ local eq, command = helpers.eq, helpers.command
|
||||
local clear = helpers.clear
|
||||
local eval, exc_exec = helpers.eval, helpers.exc_exec
|
||||
local exec = helpers.exec
|
||||
local funcs = helpers.funcs
|
||||
local meths = helpers.meths
|
||||
local fn = helpers.fn
|
||||
local api = helpers.api
|
||||
|
||||
describe(':highlight', function()
|
||||
local screen
|
||||
@@ -53,18 +53,18 @@ describe(':highlight', function()
|
||||
end)
|
||||
|
||||
it('clear', function()
|
||||
meths.nvim_set_var('colors_name', 'foo')
|
||||
eq(1, funcs.exists('g:colors_name'))
|
||||
api.nvim_set_var('colors_name', 'foo')
|
||||
eq(1, fn.exists('g:colors_name'))
|
||||
command('hi clear')
|
||||
eq(0, funcs.exists('g:colors_name'))
|
||||
meths.nvim_set_var('colors_name', 'foo')
|
||||
eq(1, funcs.exists('g:colors_name'))
|
||||
eq(0, fn.exists('g:colors_name'))
|
||||
api.nvim_set_var('colors_name', 'foo')
|
||||
eq(1, fn.exists('g:colors_name'))
|
||||
exec([[
|
||||
func HiClear()
|
||||
hi clear
|
||||
endfunc
|
||||
]])
|
||||
funcs.HiClear()
|
||||
eq(0, funcs.exists('g:colors_name'))
|
||||
fn.HiClear()
|
||||
eq(0, fn.exists('g:colors_name'))
|
||||
end)
|
||||
end)
|
||||
Reference in new issue
Block a user