aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-09-15 20:41:16 +0200
committerGitHub <noreply@github.com>2016-09-15 20:41:16 +0200
commitc4199d1866f4159fc14aff85d5e896d240c5ca3d (patch)
treea581b0162b847d20f142706c9085bcf405cc0697 /test/functional/api/vim_spec.lua
parentfee961c8ddda9de00db19895e189a174896d6534 (diff)
parentcd08e6cf72b52fb23aa4556889f35759062c5bf9 (diff)
downloadrneovim-c4199d1866f4159fc14aff85d5e896d240c5ca3d.tar.gz
rneovim-c4199d1866f4159fc14aff85d5e896d240c5ca3d.tar.bz2
rneovim-c4199d1866f4159fc14aff85d5e896d240c5ca3d.zip
Merge pull request #5336 from bfredl/del_var
make del_var and set_var not return the old value.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r--test/functional/api/vim_spec.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index 351094567a..0a2fd18db2 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -88,19 +88,19 @@ describe('vim_* functions', function()
eq(0, funcs.exists('g:lua'))
end)
- it('set_var returns the old value', function()
+ it('vim_set_var returns the old value', function()
local val1 = {1, 2, {['3'] = 1}}
local val2 = {4, 7}
- eq(NIL, nvim('set_var', 'lua', val1))
- eq(val1, nvim('set_var', 'lua', val2))
+ eq(NIL, request('vim_set_var', 'lua', val1))
+ eq(val1, request('vim_set_var', 'lua', val2))
end)
- it('del_var returns the old value', function()
+ it('vim_del_var returns the old value', function()
local val1 = {1, 2, {['3'] = 1}}
local val2 = {4, 7}
- eq(NIL, meths.set_var('lua', val1))
- eq(val1, meths.set_var('lua', val2))
- eq(val2, meths.del_var('lua'))
+ eq(NIL, request('vim_set_var', 'lua', val1))
+ eq(val1, request('vim_set_var', 'lua', val2))
+ eq(val2, request('vim_del_var', 'lua'))
end)
it('truncates values with NULs in them', function()