summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/single.lua1
1 files changed, 1 insertions, 0 deletions
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"]])