diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-06 12:39:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-06 12:39:36 +0100 |
commit | 9eff57fae0488bad97ea61aa15ed1f0576395b27 (patch) | |
tree | 9bd7ff3c908904c08a14e297b5bd58f8a5a9dc66 /test | |
parent | c7f08302cb12ef693328d1ea6ef3f841cb8c3c98 (diff) | |
download | rspamd-9eff57fae0488bad97ea61aa15ed1f0576395b27.tar.gz rspamd-9eff57fae0488bad97ea61aa15ed1f0576395b27.zip |
[Test] Fix broken unit tests
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/logger.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lua/unit/logger.lua b/test/lua/unit/logger.lua index 29ff4c891..fb04bfde3 100644 --- a/test/lua/unit/logger.lua +++ b/test/lua/unit/logger.lua @@ -1,19 +1,19 @@ context("Logger unit tests", function() test("Logger functions", function() local log = require "rspamd_logger" - + local cases = { {'string', 'string'}, {'%1', 'string', 'string'}, - {'%1', '1.100000', 1.1}, + {'%1', '1.1', 1.1}, {'%1', '1', 1}, {'%1', 'true', true}, {'%1', '{[1] = 1, [2] = test}', {1, 'test'}}, {'%1', '{[k1] = 1, [k2] = test}', {k1=1, k2='test'}}, - {'%1', '{[1] = 1, [2] = 2.100000, [k2] = test}', {1, 2.1, k2='test'}}, + {'%1', '{[1] = 1, [2] = 2.1, [k2] = test}', {1, 2.1, k2='test'}}, {'%s', 'true', true}, } - + for _,c in ipairs(cases) do local s if c[3] then @@ -22,7 +22,7 @@ context("Logger unit tests", function() s = log.slog(c[1]) end assert_equal(s, c[2], string.format("'%s' doesn't match with '%s'", - c[2], s)) + c[2], s)) end end) end)
\ No newline at end of file |