From 92089dcbc59b8c71909386c86e36097f98258f2d Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 24 Mar 2017 15:05:59 +0100 Subject: Fixed bad quoted cntrl chars --- tests/single.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/single.lua b/tests/single.lua index e206568..e3ba2f5 100644 --- a/tests/single.lua +++ b/tests/single.lua @@ -150,3 +150,4 @@ end x = '"ílo"\n\\' assert(string.format('%q%s', x, x) == '"\\"ílo\\"\\\n\\\\""ílo"\n\\') +assert(string.format('%q', "\0") == [["\0"]]) -- cgit v1.2.3-70-g09d2