diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/util_format_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/util_format_spec.lua b/spec/util_format_spec.lua index 50509630..a8bcfd97 100644 --- a/spec/util_format_spec.lua +++ b/spec/util_format_spec.lua @@ -15,5 +15,10 @@ describe("util.format", function() assert.equal("[1.5]", format("%d", 1.5)); assert.equal("[7.3786976294838e+19]", format("%d", 73786976294838206464)); end); + + it("escapes ascii control stuff", function () + assert.equal("␁", format("%s", "\1")); + end); + end); end); |