diff options
author | ZyX <kp-pav@yandex.ru> | 2016-03-07 07:27:14 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-04-18 02:48:20 +0300 |
commit | 394830631f130ad646f23358bf7863e7a37c6d78 (patch) | |
tree | d92f08c3d8a64386e47b31ade25b4c08e17103ad /test/functional/eval/json_functions_spec.lua | |
parent | b725f6b4287d800f22bce32f32022ad07aa2610e (diff) | |
download | rneovim-394830631f130ad646f23358bf7863e7a37c6d78.tar.gz rneovim-394830631f130ad646f23358bf7863e7a37c6d78.tar.bz2 rneovim-394830631f130ad646f23358bf7863e7a37c6d78.zip |
eval/decode: Make sure that U+00C3 is parsed correctly
Diffstat (limited to 'test/functional/eval/json_functions_spec.lua')
-rw-r--r-- | test/functional/eval/json_functions_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/eval/json_functions_spec.lua b/test/functional/eval/json_functions_spec.lua index 59dbb804e4..7ec3882a58 100644 --- a/test/functional/eval/json_functions_spec.lua +++ b/test/functional/eval/json_functions_spec.lua @@ -447,6 +447,10 @@ describe('json_decode() function', function() eq('\xAB', funcs.json_decode('"\\u00AB"')) sp_decode_eq({_TYPE='string', _VAL={'\n\xAB\n'}}, '"\\u0000\\u00AB\\u0000"') end) + + it('parses U+00C3 correctly', function() + eq('\xC3\x83', funcs.json_decode('"\xC3\x83"')) + end) end) describe('json_encode() function', function() |