aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-11-10 05:46:39 +0100
committerKim Alvefur <zash@zash.se>2017-11-10 05:46:39 +0100
commit48f828c117dec5b8cc14afa9fea7ff150fa960de (patch)
tree39901441d959c8344eb5ace3794fbacc15ea962a /util
parent11b00845512b6af26000bd40dbf9f349f8886535 (diff)
downloadprosody-48f828c117dec5b8cc14afa9fea7ff150fa960de.tar.gz
prosody-48f828c117dec5b8cc14afa9fea7ff150fa960de.zip
util.format: Move tests to spec/
Diffstat (limited to 'util')
-rw-r--r--util/format.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/util/format.lua b/util/format.lua
index b3296228..99705d03 100644
--- a/util/format.lua
+++ b/util/format.lua
@@ -4,7 +4,6 @@
local tostring = tostring;
local select = select;
-local assert = assert;
local unpack = unpack;
local type = type;
@@ -60,15 +59,6 @@ local function format(formatstring, ...)
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;
};