From 3e435df42cd1f8237bd11a4b08407a9ec3f81dba Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 21 Mar 2016 00:19:41 +0300 Subject: functests: Replace \xXX escapes with \DDD in lua code --- test/unit/eval/decode_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit') 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, -- cgit