diff options
author | ZyX <kp-pav@yandex.ru> | 2016-02-25 17:27:23 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-04-18 02:48:20 +0300 |
commit | 942e0b338c9bff1dfdcb59e8308160449f1f38b4 (patch) | |
tree | 4abd1ab238dab3c0af386cb5132f1f5fba9513d4 /test/functional/eval/json_functions_spec.lua | |
parent | 406562ac6d3863dfdaedbf40f9d4a23ca37c9ec5 (diff) | |
download | rneovim-942e0b338c9bff1dfdcb59e8308160449f1f38b4.tar.gz rneovim-942e0b338c9bff1dfdcb59e8308160449f1f38b4.tar.bz2 rneovim-942e0b338c9bff1dfdcb59e8308160449f1f38b4.zip |
encode: Handle incomplete surrogates like `\uSURR\uOTHR` properly
Diffstat (limited to 'test/functional/eval/json_functions_spec.lua')
-rw-r--r-- | test/functional/eval/json_functions_spec.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/eval/json_functions_spec.lua b/test/functional/eval/json_functions_spec.lua index 33d177a2b6..d6286611d2 100644 --- a/test/functional/eval/json_functions_spec.lua +++ b/test/functional/eval/json_functions_spec.lua @@ -386,6 +386,8 @@ describe('json_decode() function', function() eq('\xED\xB0\x80', funcs.json_decode('"\\uDC00"')) eq('a\xED\xB0\x80', funcs.json_decode('"a\\uDC00"')) eq('\t\xED\xB0\x80', funcs.json_decode('"\\t\\uDC00"')) + + eq('\xED\xA0\x80¬', funcs.json_decode('"\\uD800\\u00AC"')) end) local sp_decode_eq = function(expected, json) |