Diff

spec/util_format_spec.lua @ 10035:386f085820e6

util.format: Handle integer formats the same way on Lua versions without integer support
author Kim Alvefur <zash@zash.se>
date Thu, 30 May 2019 13:54:11 +0200
parent 10034:4fca92d60040
child 11638:5f4a657136bc
line wrap: on
line diff
--- a/spec/util_format_spec.lua	Thu May 30 13:41:05 2019 +0200
+++ b/spec/util_format_spec.lua	Thu May 30 13:54:11 2019 +0200
@@ -13,6 +13,7 @@
 			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);