From 04f2f864e270e772c6326cefdf24947f0130e492 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 3 Jan 2024 02:09:18 +0100 Subject: refactor: format test/* --- test/functional/legacy/vimscript_spec.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/functional/legacy/vimscript_spec.lua') diff --git a/test/functional/legacy/vimscript_spec.lua b/test/functional/legacy/vimscript_spec.lua index 16a1080396..c97208059b 100644 --- a/test/functional/legacy/vimscript_spec.lua +++ b/test/functional/legacy/vimscript_spec.lua @@ -9,7 +9,7 @@ before_each(clear) describe('Vim script', function() -- oldtest: Test_deep_nest() - it('Error when if/for/while/try/function is nested too deep',function() + it('Error when if/for/while/try/function is nested too deep', function() local screen = Screen.new(80, 24) screen:attach() meths.set_option_value('laststatus', 2, {}) @@ -59,25 +59,25 @@ describe('Vim script', function() let @a = '' endfunc ]]) - screen:expect({any = '%[No Name%]'}) + screen:expect({ any = '%[No Name%]' }) feed(':call Test1()') - screen:expect({any = 'E579: '}) + screen:expect({ any = 'E579: ' }) feed('') - screen:expect({any = '%[No Name%]'}) + screen:expect({ any = '%[No Name%]' }) feed(':call Test2()') - screen:expect({any = 'E585: '}) + screen:expect({ any = 'E585: ' }) feed('') - screen:expect({any = '%[No Name%]'}) + screen:expect({ any = '%[No Name%]' }) feed(':call Test3()') - screen:expect({any = 'E585: '}) + screen:expect({ any = 'E585: ' }) feed('') - screen:expect({any = '%[No Name%]'}) + screen:expect({ any = '%[No Name%]' }) feed(':call Test4()') - screen:expect({any = 'E601: '}) + screen:expect({ any = 'E601: ' }) feed('') - screen:expect({any = '%[No Name%]'}) + screen:expect({ any = '%[No Name%]' }) feed(':call Test5()') - screen:expect({any = 'E1058: '}) + screen:expect({ any = 'E1058: ' }) end) -- oldtest: Test_typed_script_var() @@ -85,6 +85,6 @@ describe('Vim script', function() local screen = Screen.new(80, 24) screen:attach() feed(":echo get(s:, 'foo', 'x')\n") - screen:expect({any = 'E116: '}) + screen:expect({ any = 'E116: ' }) end) end) -- cgit From c30f2e3182e3b50e7c03932027ac55edfc8ada4a Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Fri, 12 Jan 2024 12:44:54 +0000 Subject: test: typing for helpers.meths --- test/functional/legacy/vimscript_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/legacy/vimscript_spec.lua') diff --git a/test/functional/legacy/vimscript_spec.lua b/test/functional/legacy/vimscript_spec.lua index c97208059b..eb3c70ecc6 100644 --- a/test/functional/legacy/vimscript_spec.lua +++ b/test/functional/legacy/vimscript_spec.lua @@ -12,7 +12,7 @@ describe('Vim script', function() it('Error when if/for/while/try/function is nested too deep', function() local screen = Screen.new(80, 24) screen:attach() - meths.set_option_value('laststatus', 2, {}) + meths.nvim_set_option_value('laststatus', 2, {}) exec([[ " Deep nesting of if ... endif func Test1() -- cgit 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/legacy/vimscript_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional/legacy/vimscript_spec.lua') diff --git a/test/functional/legacy/vimscript_spec.lua b/test/functional/legacy/vimscript_spec.lua index eb3c70ecc6..8b0a920a3e 100644 --- a/test/functional/legacy/vimscript_spec.lua +++ b/test/functional/legacy/vimscript_spec.lua @@ -3,7 +3,7 @@ local Screen = require('test.functional.ui.screen') local clear = helpers.clear local exec = helpers.exec local feed = helpers.feed -local meths = helpers.meths +local api = helpers.api before_each(clear) @@ -12,7 +12,7 @@ describe('Vim script', function() it('Error when if/for/while/try/function is nested too deep', function() local screen = Screen.new(80, 24) screen:attach() - meths.nvim_set_option_value('laststatus', 2, {}) + api.nvim_set_option_value('laststatus', 2, {}) exec([[ " Deep nesting of if ... endif func Test1() -- cgit