diff options
author | ZyX <kp-pav@yandex.ru> | 2016-03-21 00:19:41 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-04-18 02:48:20 +0300 |
commit | 3e435df42cd1f8237bd11a4b08407a9ec3f81dba (patch) | |
tree | 695aa20a6d359c8bb9f37b3f9a87d92effb1bf9b /test/unit/eval/decode_spec.lua | |
parent | fd92e648ac206340752c420ad639f2a6dab2a579 (diff) | |
download | rneovim-3e435df42cd1f8237bd11a4b08407a9ec3f81dba.tar.gz rneovim-3e435df42cd1f8237bd11a4b08407a9ec3f81dba.tar.bz2 rneovim-3e435df42cd1f8237bd11a4b08407a9ec3f81dba.zip |
functests: Replace \xXX escapes with \DDD in lua code
Diffstat (limited to 'test/unit/eval/decode_spec.lua')
-rw-r--r-- | test/unit/eval/decode_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/eval/decode_spec.lua b/test/unit/eval/decode_spec.lua index 44471c1877..d94d809c14 100644 --- a/test/unit/eval/decode_spec.lua +++ b/test/unit/eval/decode_spec.lua @@ -115,7 +115,7 @@ describe('json_decode_string()', function() '"\t"test', 3, 'E474: ASCII control characters cannot be present inside string: \t"') check_failure('"\194"test', 3, 'E474: Only UTF-8 strings allowed: \194"') - check_failure('"\xFC\x90\x80\x80\x80\x80"test', 8, 'E474: Only UTF-8 code points up to U+10FFFF are allowed to appear unescaped: \xFC\x90\x80\x80\x80\x80"') + check_failure('"\252\144\128\128\128\128"test', 8, 'E474: Only UTF-8 code points up to U+10FFFF are allowed to appear unescaped: \252\144\128\128\128\128"') check_failure('"test', 1, 'E474: Expected string end: "') decode.p_enc = to_cstr('latin1') check_failure('"\\uABCD"test', 8, |