diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 17:59:57 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 18:59:14 +0000 |
commit | 795f896a5772d5e0795f86642bdf90c82efac45c (patch) | |
tree | 308f04fbee18d2ec3f00c12a8bec96b84d8907f0 /test/functional/lua/runtime_spec.lua | |
parent | 4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e (diff) | |
download | rneovim-795f896a5772d5e0795f86642bdf90c82efac45c.tar.gz rneovim-795f896a5772d5e0795f86642bdf90c82efac45c.tar.bz2 rneovim-795f896a5772d5e0795f86642bdf90c82efac45c.zip |
test: rename (meths, funcs) -> (api, fn)
Diffstat (limited to 'test/functional/lua/runtime_spec.lua')
-rw-r--r-- | test/functional/lua/runtime_spec.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/functional/lua/runtime_spec.lua b/test/functional/lua/runtime_spec.lua index 84948490ae..6f36ccfb9e 100644 --- a/test/functional/lua/runtime_spec.lua +++ b/test/functional/lua/runtime_spec.lua @@ -4,7 +4,7 @@ local clear = helpers.clear local eq = helpers.eq local eval = helpers.eval local exec = helpers.exec -local funcs = helpers.funcs +local fn = helpers.fn local mkdir_p = helpers.mkdir_p local rmdir = helpers.rmdir local write_file = helpers.write_file @@ -48,8 +48,8 @@ describe('runtime:', function() local colorscheme_file = table.concat({ colorscheme_folder, 'new_colorscheme.lua' }, sep) write_file(colorscheme_file, [[vim.g.lua_colorscheme = 1]]) - eq({ 'new_colorscheme' }, funcs.getcompletion('new_c', 'color')) - eq({ 'colors/new_colorscheme.lua' }, funcs.getcompletion('colors/new_c', 'runtime')) + eq({ 'new_colorscheme' }, fn.getcompletion('new_c', 'color')) + eq({ 'colors/new_colorscheme.lua' }, fn.getcompletion('colors/new_c', 'runtime')) exec('colorscheme new_colorscheme') @@ -126,8 +126,8 @@ describe('runtime:', function() local compiler_file = compiler_folder .. sep .. 'new_compiler.lua' write_file(compiler_file, [[vim.b.lua_compiler = 1]]) - eq({ 'new_compiler' }, funcs.getcompletion('new_c', 'compiler')) - eq({ 'compiler/new_compiler.lua' }, funcs.getcompletion('compiler/new_c', 'runtime')) + eq({ 'new_compiler' }, fn.getcompletion('new_c', 'compiler')) + eq({ 'compiler/new_compiler.lua' }, fn.getcompletion('compiler/new_c', 'runtime')) exec('compiler new_compiler') @@ -168,8 +168,8 @@ describe('runtime:', function() local ftplugin_file = table.concat({ ftplugin_folder, 'new-ft.lua' }, sep) write_file(ftplugin_file, [[vim.b.lua_ftplugin = 1]]) - eq({ 'new-ft' }, funcs.getcompletion('new-f', 'filetype')) - eq({ 'ftplugin/new-ft.lua' }, funcs.getcompletion('ftplugin/new-f', 'runtime')) + eq({ 'new-ft' }, fn.getcompletion('new-f', 'filetype')) + eq({ 'ftplugin/new-ft.lua' }, fn.getcompletion('ftplugin/new-f', 'runtime')) exec [[set filetype=new-ft]] eq(1, eval('b:lua_ftplugin')) @@ -281,8 +281,8 @@ describe('runtime:', function() local indent_file = table.concat({ indent_folder, 'new-ft.lua' }, sep) write_file(indent_file, [[vim.b.lua_indent = 1]]) - eq({ 'new-ft' }, funcs.getcompletion('new-f', 'filetype')) - eq({ 'indent/new-ft.lua' }, funcs.getcompletion('indent/new-f', 'runtime')) + eq({ 'new-ft' }, fn.getcompletion('new-f', 'filetype')) + eq({ 'indent/new-ft.lua' }, fn.getcompletion('indent/new-f', 'runtime')) exec [[set filetype=new-ft]] eq(1, eval('b:lua_indent')) @@ -338,9 +338,9 @@ describe('runtime:', function() end) it('lua syntaxes are included in cmdline completion', function() - eq({ 'my-lang' }, funcs.getcompletion('my-l', 'filetype')) - eq({ 'my-lang' }, funcs.getcompletion('my-l', 'syntax')) - eq({ 'syntax/my-lang.lua' }, funcs.getcompletion('syntax/my-l', 'runtime')) + eq({ 'my-lang' }, fn.getcompletion('my-l', 'filetype')) + eq({ 'my-lang' }, fn.getcompletion('my-l', 'syntax')) + eq({ 'syntax/my-lang.lua' }, fn.getcompletion('syntax/my-l', 'runtime')) end) it("'rtp' order is respected", function() |