diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-12-07 05:57:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 05:57:31 -0800 |
commit | e42f03264b424450b560a69994879f09b6c555d8 (patch) | |
tree | 4d18136e38aaa7e0afed05e8e7a6b3a754e39089 /test/functional/vimscript/json_functions_spec.lua | |
parent | 5fa88a7ae13effc02d42070313d3082bf98e22a7 (diff) | |
parent | a16218d4c6773c474011149661470af6e8c90892 (diff) | |
download | rneovim-e42f03264b424450b560a69994879f09b6c555d8.tar.gz rneovim-e42f03264b424450b560a69994879f09b6c555d8.tar.bz2 rneovim-e42f03264b424450b560a69994879f09b6c555d8.zip |
Merge #26426 allow empty string key in msgpack => Vim conversion
Diffstat (limited to 'test/functional/vimscript/json_functions_spec.lua')
-rw-r--r-- | test/functional/vimscript/json_functions_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/vimscript/json_functions_spec.lua b/test/functional/vimscript/json_functions_spec.lua index 53899085e0..c12bcf5099 100644 --- a/test/functional/vimscript/json_functions_spec.lua +++ b/test/functional/vimscript/json_functions_spec.lua @@ -576,8 +576,8 @@ describe('json_encode() function', function() eq('{}', eval('json_encode({})')) eq('{"d": []}', funcs.json_encode({d={}})) eq('{"d": [], "e": []}', funcs.json_encode({d={}, e={}})) - -- Empty keys not allowed (yet?) in object_to_vim() (since 7c01d5ff9286). #25564 - -- eq('{"": []}', funcs.json_encode({['']={}})) + -- Empty keys are allowed per JSON spec (and Vim dicts, and msgpack). + eq('{"": []}', funcs.json_encode({['']={}})) end) it('cannot dump generic mapping with generic mapping keys and values', |