diff options
Diffstat (limited to 'testes/strings.lua')
-rw-r--r-- | testes/strings.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testes/strings.lua b/testes/strings.lua index 88480924..da53a87e 100644 --- a/testes/strings.lua +++ b/testes/strings.lua | |||
@@ -199,6 +199,7 @@ end | |||
199 | 199 | ||
200 | assert(string.format("\0%s\0", "\0\0\1") == "\0\0\0\1\0") | 200 | assert(string.format("\0%s\0", "\0\0\1") == "\0\0\0\1\0") |
201 | checkerror("contains zeros", string.format, "%10s", "\0") | 201 | checkerror("contains zeros", string.format, "%10s", "\0") |
202 | checkerror("cannot have modifiers", string.format, "%10q", "1") | ||
202 | 203 | ||
203 | -- format x tostring | 204 | -- format x tostring |
204 | assert(string.format("%s %s", nil, true) == "nil true") | 205 | assert(string.format("%s %s", nil, true) == "nil true") |