aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/single.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/single.lua b/tests/single.lua
index f5f63f3..c1241de 100644
--- a/tests/single.lua
+++ b/tests/single.lua
@@ -187,3 +187,6 @@ do
checkQ(false)
checkerror("no literal", string.format, "%q", {})
end
+
+assert(string.format("\0%s\0", "\0\0\1") == "\0\0\0\1\0")
+checkerror("contains zeros", string.format, "%10s", "\0")