From 795f896a5772d5e0795f86642bdf90c82efac45c Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Fri, 12 Jan 2024 17:59:57 +0000 Subject: test: rename (meths, funcs) -> (api, fn) --- test/functional/vimscript/map_functions_spec.lua | 76 ++++++++++++------------ 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'test/functional/vimscript/map_functions_spec.lua') diff --git a/test/functional/vimscript/map_functions_spec.lua b/test/functional/vimscript/map_functions_spec.lua index 9edf54898b..59d427ca90 100644 --- a/test/functional/vimscript/map_functions_spec.lua +++ b/test/functional/vimscript/map_functions_spec.lua @@ -7,8 +7,8 @@ local exec = helpers.exec local exec_lua = helpers.exec_lua local expect = helpers.expect local feed = helpers.feed -local funcs = helpers.funcs -local meths = helpers.meths +local fn = helpers.fn +local api = helpers.api local source = helpers.source local command = helpers.command local exec_capture = helpers.exec_capture @@ -37,32 +37,32 @@ describe('maparg()', function() it('returns a dictionary', function() command('nnoremap foo bar') - eq('bar', funcs.maparg('foo')) - eq(foo_bar_map_table, funcs.maparg('foo', 'n', false, true)) + eq('bar', fn.maparg('foo')) + eq(foo_bar_map_table, fn.maparg('foo', 'n', false, true)) end) it('returns 1 for silent when is used', function() command('nnoremap foo bar') - eq(1, funcs.maparg('foo', 'n', false, true)['silent']) + eq(1, fn.maparg('foo', 'n', false, true)['silent']) command('nnoremap baz bat') - eq(0, funcs.maparg('baz', 'n', false, true)['silent']) + eq(0, fn.maparg('baz', 'n', false, true)['silent']) end) it('returns an empty string when no map is present', function() - eq('', funcs.maparg('not a mapping')) + eq('', fn.maparg('not a mapping')) end) it('returns an empty dictionary when no map is present and dict is requested', function() - eq({}, funcs.maparg('not a mapping', 'n', false, true)) + eq({}, fn.maparg('not a mapping', 'n', false, true)) end) it('returns the same value for noremap and