diff options
author | Kim Alvefur <zash@zash.se> | 2019-05-30 13:54:11 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-05-30 13:54:11 +0200 |
commit | 9991f8892518b2d48cf27b3667a2fe33d25dcd67 (patch) | |
tree | 21e8655ccdf297cc318dd8288ef97debf7100fc1 /spec | |
parent | be249b1a12e22c3276598555bedf7beb8386f550 (diff) | |
download | prosody-9991f8892518b2d48cf27b3667a2fe33d25dcd67.tar.gz prosody-9991f8892518b2d48cf27b3667a2fe33d25dcd67.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.lua | 1 |
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); |