Software /
code /
prosody
Diff
util/format.lua @ 8383:d967d6f2ad00
util.format: Move tests to spec/
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Nov 2017 05:46:39 +0100 |
parent | 8382:e5d00bf4a4d5 |
child | 8417:e88db5668cfb |
line wrap: on
line diff
--- a/util/format.lua Fri Nov 10 05:42:32 2017 +0100 +++ b/util/format.lua Fri Nov 10 05:46:39 2017 +0100 @@ -4,7 +4,6 @@ local tostring = tostring; local select = select; -local assert = assert; local unpack = unpack; local type = type; @@ -60,15 +59,6 @@ return formatstring:format(unpack(args)); end -local function test() - assert(format("%s", "hello") == "hello"); - assert(format("%s") == "<nil>"); - assert(format("%s", true) == "true"); - assert(format("%d", true) == "[true]"); - assert(format("%%", true) == "% [true]"); -end - return { format = format; - test = test; };