aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_format_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-30 13:41:05 +0200
committerKim Alvefur <zash@zash.se>2019-05-30 13:41:05 +0200
commit236abc4afed5321e0da406e369a8b23dac6fef83 (patch)
tree081f89c13f1e99ee994923454030effe81b09778 /spec/util_format_spec.lua
parent2a65eae651302a17c925e0340e59e73976aa07fb (diff)
downloadprosody-236abc4afed5321e0da406e369a8b23dac6fef83.tar.gz
prosody-236abc4afed5321e0da406e369a8b23dac6fef83.zip
util.format: Handle formats expecting an integer in Lua 5.3+ (fixes #1371)
Diffstat (limited to 'spec/util_format_spec.lua')
-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 b9652d19..82b70205 100644
--- a/spec/util_format_spec.lua
+++ b/spec/util_format_spec.lua
@@ -12,6 +12,7 @@ describe("util.format", function()
assert.equal("[true]", format("%d", true));
assert.equal("% [true]", format("%%", true));
assert.equal("{ }", format("%q", { }));
+ assert.equal("[1.5]", format("%d", 1.5));
end);
end);
end);