diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2024-03-09 14:57:57 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2024-03-09 14:57:57 -0700 |
commit | c324271b99eee4c621463f368914d57cd729bd9c (patch) | |
tree | 5d979d333a2d5f9c080991d5482fd5916f8579c6 /test/functional/vimscript/container_functions_spec.lua | |
parent | 931bffbda3668ddc609fc1da8f9eb576b170aa52 (diff) | |
parent | ade1b12f49c3b3914c74847d791eb90ea90b56b7 (diff) | |
download | rneovim-c324271b99eee4c621463f368914d57cd729bd9c.tar.gz rneovim-c324271b99eee4c621463f368914d57cd729bd9c.tar.bz2 rneovim-c324271b99eee4c621463f368914d57cd729bd9c.zip |
Merge remote-tracking branch 'upstream/master' into userreg
Diffstat (limited to 'test/functional/vimscript/container_functions_spec.lua')
-rw-r--r-- | test/functional/vimscript/container_functions_spec.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/functional/vimscript/container_functions_spec.lua b/test/functional/vimscript/container_functions_spec.lua index 5bef3fce05..1b34ea0165 100644 --- a/test/functional/vimscript/container_functions_spec.lua +++ b/test/functional/vimscript/container_functions_spec.lua @@ -2,23 +2,23 @@ local helpers = require('test.functional.helpers')(after_each) local eq = helpers.eq local eval = helpers.eval -local meths = helpers.meths +local api = helpers.api local clear = helpers.clear before_each(clear) describe('extend()', function() it('succeeds to extend list with itself', function() - meths.set_var('l', {1, {}}) - eq({1, {}, 1, {}}, eval('extend(l, l)')) - eq({1, {}, 1, {}}, meths.get_var('l')) + api.nvim_set_var('l', { 1, {} }) + eq({ 1, {}, 1, {} }, eval('extend(l, l)')) + eq({ 1, {}, 1, {} }, api.nvim_get_var('l')) - meths.set_var('l', {1, {}}) - eq({1, {}, 1, {}}, eval('extend(l, l, 0)')) - eq({1, {}, 1, {}}, meths.get_var('l')) + api.nvim_set_var('l', { 1, {} }) + eq({ 1, {}, 1, {} }, eval('extend(l, l, 0)')) + eq({ 1, {}, 1, {} }, api.nvim_get_var('l')) - meths.set_var('l', {1, {}}) - eq({1, 1, {}, {}}, eval('extend(l, l, 1)')) - eq({1, 1, {}, {}}, meths.get_var('l')) + api.nvim_set_var('l', { 1, {} }) + eq({ 1, 1, {}, {} }, eval('extend(l, l, 1)')) + eq({ 1, 1, {}, {} }, api.nvim_get_var('l')) end) end) |