aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-12 01:29:34 +0200
committerKim Alvefur <zash@zash.se>2018-10-12 01:29:34 +0200
commit177420df39c60de47eb47bc5ed574e2ccf082ec4 (patch)
tree771c72f485c59b84ac9169be1acdee8e4cd360d3 /spec
parent5a608450d505944cbac268f28e48751c8fa3ee10 (diff)
downloadprosody-177420df39c60de47eb47bc5ed574e2ccf082ec4.tar.gz
prosody-177420df39c60de47eb47bc5ed574e2ccf082ec4.zip
util.format: Serialize values for the %q format
Improves eg debug logs
Diffstat (limited to 'spec')
-rw-r--r--spec/util_format_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/util_format_spec.lua b/spec/util_format_spec.lua
index 8a2e9312..b9652d19 100644
--- a/spec/util_format_spec.lua
+++ b/spec/util_format_spec.lua
@@ -11,6 +11,7 @@ describe("util.format", function()
assert.equal("true", format("%s", true));
assert.equal("[true]", format("%d", true));
assert.equal("% [true]", format("%%", true));
+ assert.equal("{ }", format("%q", { }));
end);
end);
end);