aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_format_spec.lua
blob: b091a86d0f1d113b33c9a41faec6db11058d0597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local format = require "util.format".format;

describe("util.format", function()
	describe("#format()", function()
		it("should work", function()
			assert.equal("hello", format("%s", "hello"));
			assert.equal("<nil>", format("%s"));
			assert.equal("true", format("%s", true));
			assert.equal("[true]", format("%d", true));
			assert.equal("% [true]", format("%%", true));
		end);
	end);
end);