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/functional/eval/msgpack_functions_spec.lua | |
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/functional/eval/msgpack_functions_spec.lua')
-rw-r--r-- | test/functional/eval/msgpack_functions_spec.lua | 12 |
1 files changed, 12 insertions, 0 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)') |