diff options
Diffstat (limited to 'test/functional/shada/shada_spec.lua')
-rw-r--r-- | test/functional/shada/shada_spec.lua | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/test/functional/shada/shada_spec.lua b/test/functional/shada/shada_spec.lua index 4b52c1835b..b16a19ef31 100644 --- a/test/functional/shada/shada_spec.lua +++ b/test/functional/shada/shada_spec.lua @@ -175,7 +175,7 @@ describe('ShaDa support code', function() it('correctly uses shada-r option', function() nvim_command('set shellslash') - meths.set_var('__home', paths.test_source_path) + meths.nvim_set_var('__home', paths.test_source_path) nvim_command('let $HOME = __home') nvim_command('unlet __home') nvim_command('edit ~/README.md') @@ -203,7 +203,7 @@ describe('ShaDa support code', function() local pwd = funcs.getcwd() local relfname = 'абв/test' local fname = pwd .. '/' .. relfname - meths.set_var('__fname', fname) + meths.nvim_set_var('__fname', fname) nvim_command('silent! edit `=__fname`') funcs.setline(1, { 'a', 'b', 'c', 'd' }) nvim_command('normal! GmAggmaAabc') @@ -217,30 +217,30 @@ describe('ShaDa support code', function() end) it('is able to set &shada after &viminfo', function() - meths.set_option_value('viminfo', "'10", {}) - eq("'10", meths.get_option_value('viminfo', {})) - eq("'10", meths.get_option_value('shada', {})) - meths.set_option_value('shada', '', {}) - eq('', meths.get_option_value('viminfo', {})) - eq('', meths.get_option_value('shada', {})) + meths.nvim_set_option_value('viminfo', "'10", {}) + eq("'10", meths.nvim_get_option_value('viminfo', {})) + eq("'10", meths.nvim_get_option_value('shada', {})) + meths.nvim_set_option_value('shada', '', {}) + eq('', meths.nvim_get_option_value('viminfo', {})) + eq('', meths.nvim_get_option_value('shada', {})) end) it('is able to set all& after setting &shada', function() - meths.set_option_value('shada', "'10", {}) - eq("'10", meths.get_option_value('viminfo', {})) - eq("'10", meths.get_option_value('shada', {})) + meths.nvim_set_option_value('shada', "'10", {}) + eq("'10", meths.nvim_get_option_value('viminfo', {})) + eq("'10", meths.nvim_get_option_value('shada', {})) nvim_command('set all&') - eq("!,'100,<50,s10,h", meths.get_option_value('viminfo', {})) - eq("!,'100,<50,s10,h", meths.get_option_value('shada', {})) + eq("!,'100,<50,s10,h", meths.nvim_get_option_value('viminfo', {})) + eq("!,'100,<50,s10,h", meths.nvim_get_option_value('shada', {})) end) it('is able to set &shada after &viminfo using :set', function() nvim_command("set viminfo='10") - eq("'10", meths.get_option_value('viminfo', {})) - eq("'10", meths.get_option_value('shada', {})) + eq("'10", meths.nvim_get_option_value('viminfo', {})) + eq("'10", meths.nvim_get_option_value('shada', {})) nvim_command('set shada=') - eq('', meths.get_option_value('viminfo', {})) - eq('', meths.get_option_value('shada', {})) + eq('', meths.nvim_get_option_value('viminfo', {})) + eq('', meths.nvim_get_option_value('shada', {})) end) it('setting &shada gives proper error message on missing number', function() @@ -259,14 +259,14 @@ describe('ShaDa support code', function() funcs.mkdir(dirname, '', 0) eq(0, funcs.filewritable(dirname)) reset { shadafile = dirshada, args = { '--cmd', 'set shada=' } } - meths.set_option_value('shada', "'10", {}) + meths.nvim_set_option_value('shada', "'10", {}) eq( 'Vim(wshada):E886: System error while opening ShaDa file ' .. 'Xtest-functional-shada-shada.d/main.shada for reading to merge ' .. 'before writing it: permission denied', exc_exec('wshada') ) - meths.set_option_value('shada', '', {}) + meths.nvim_set_option_value('shada', '', {}) end) end) |