aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-30 13:54:11 +0200
committerKim Alvefur <zash@zash.se>2019-05-30 13:54:11 +0200
commit2661a6f5a32731100287df9564c45cbe2406e0f0 (patch)
tree21e8655ccdf297cc318dd8288ef97debf7100fc1 /spec
parent236abc4afed5321e0da406e369a8b23dac6fef83 (diff)
downloadprosody-2661a6f5a32731100287df9564c45cbe2406e0f0.tar.gz
prosody-2661a6f5a32731100287df9564c45cbe2406e0f0.zip
util.format: Handle integer formats the same way on Lua versions without integer support
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 82b70205..50509630 100644
--- a/spec/util_format_spec.lua
+++ b/spec/util_format_spec.lua
@@ -13,6 +13,7 @@ describe("util.format", function()
assert.equal("% [true]", format("%%", true));
assert.equal("{ }", format("%q", { }));
assert.equal("[1.5]", format("%d", 1.5));
+ assert.equal("[7.3786976294838e+19]", format("%d", 73786976294838206464));
end);
end);
end);