diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-09-30 10:56:05 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-09-30 10:56:05 -0400 |
commit | 463b24a951955a324edc093ac3d0509827f6fef2 (patch) | |
tree | 5028cd091b7ed7e699a5b99702294cd645ba9261 /test | |
parent | 622ec95c3f793a814b3e7c0ee697c959f5b77332 (diff) | |
parent | b6fdb7bd0f33724e72f55e9b1ea62f79f26d94b7 (diff) | |
download | rneovim-463b24a951955a324edc093ac3d0509827f6fef2.tar.gz rneovim-463b24a951955a324edc093ac3d0509827f6fef2.tar.bz2 rneovim-463b24a951955a324edc093ac3d0509827f6fef2.zip |
Merge pull request #3365 from ZyX-I/refactor-string
Make `...` occurrences in echo output more useful
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/eval/msgpack_functions_spec.lua | 12 | ||||
-rw-r--r-- | test/functional/legacy/074_global_var_in_viminfo_spec.lua | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/test/functional/eval/msgpack_functions_spec.lua b/test/functional/eval/msgpack_functions_spec.lua index 927d17fca9..943bdfca30 100644 --- a/test/functional/eval/msgpack_functions_spec.lua +++ b/test/functional/eval/msgpack_functions_spec.lua @@ -565,6 +565,18 @@ describe('msgpackdump() function', function() exc_exec('call msgpackdump([todump])')) end) + it('can dump dict with two same dicts inside', function() + execute('let inter = {}') + execute('let todump = {"a": inter, "b": inter}') + eq({"\130\161a\128\161b\128"}, eval('msgpackdump([todump])')) + end) + + it('can dump list with two same lists inside', function() + execute('let inter = []') + execute('let todump = [inter, inter]') + eq({"\146\144\144"}, eval('msgpackdump([todump])')) + end) + it('fails to dump a recursive list in a special dict', function() execute('let todump = {"_TYPE": v:msgpack_types.array, "_VAL": []}') execute('call add(todump._VAL, todump)') diff --git a/test/functional/legacy/074_global_var_in_viminfo_spec.lua b/test/functional/legacy/074_global_var_in_viminfo_spec.lua index 180071118a..a89a4181cd 100644 --- a/test/functional/legacy/074_global_var_in_viminfo_spec.lua +++ b/test/functional/legacy/074_global_var_in_viminfo_spec.lua @@ -12,7 +12,8 @@ describe('storing global variables in viminfo files', function() end) it('is working', function() - local nvim2 = helpers.spawn({helpers.nvim_prog, '-u', 'NONE', '--embed'}) + local nvim2 = helpers.spawn({helpers.nvim_prog, '-u', 'NONE', + '-i', 'Xviminfo', '--embed'}) helpers.set_session(nvim2) local test_dict = {foo = 1, bar = 0, longvarible = 1000} |