diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-07-31 21:45:58 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-15 21:19:30 +0100 |
commit | de9df825d5e38e6a9e5ba254d1d27cb3cfc9f557 (patch) | |
tree | c6bde88a055883090d1809e4d7b67dc2c39087c2 /test/functional/eval/msgpack_functions_spec.lua | |
parent | ef729fb15b34480048c44e76c29657727053101c (diff) | |
download | rneovim-de9df825d5e38e6a9e5ba254d1d27cb3cfc9f557.tar.gz rneovim-de9df825d5e38e6a9e5ba254d1d27cb3cfc9f557.tar.bz2 rneovim-de9df825d5e38e6a9e5ba254d1d27cb3cfc9f557.zip |
feat(decode_string): decode binary string with NULs to Blob
Strings that previously decoded into a msgpack special for representing
BINs with NULs now convert to Blobs. It shouldn't be possible to decode
into this special anymore after this change?
Notably, Lua strings with NULs now convert to Blobs when passed to VimL.
Diffstat (limited to 'test/functional/eval/msgpack_functions_spec.lua')
-rw-r--r-- | test/functional/eval/msgpack_functions_spec.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/eval/msgpack_functions_spec.lua b/test/functional/eval/msgpack_functions_spec.lua index 90e3ccc0e4..d95cea57e4 100644 --- a/test/functional/eval/msgpack_functions_spec.lua +++ b/test/functional/eval/msgpack_functions_spec.lua @@ -364,8 +364,7 @@ describe('msgpack*() functions', function() command('let dumped = ["\\xC4\\x01\\n"]') command('let parsed = msgpackparse(dumped)') command('let dumped2 = msgpackdump(parsed)') - eq({{_TYPE={}, _VAL={'\n'}}}, eval('parsed')) - eq(1, eval('parsed[0]._TYPE is v:msgpack_types.binary')) + eq({'\000'}, eval('parsed')) eq(1, eval('dumped ==# dumped2')) end) |