From 454f4676389738808d2231d6813e5eb70167efbe Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 16 Nov 2015 13:54:21 +0000 Subject: [PATCH] Fix HTML tests --- test/lua/unit/html.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/lua/unit/html.lua b/test/lua/unit/html.lua index f29d4eb3b..f1408c25a 100644 --- a/test/lua/unit/html.lua +++ b/test/lua/unit/html.lua @@ -1,7 +1,7 @@ context("HTML processing", function() local rspamd_util = require("rspamd_util") local logger = require("rspamd_logger") - + test("Extract text from HTML", function() local cases = { {[[ @@ -21,10 +21,10 @@ context("HTML processing", function() stuff

? - ]], "Hello, world! test\r\ndata\r\nstuff?"}, + ]], "Hello, world! test data\r\nstuff?"}, {[[ - @@ -35,11 +35,11 @@ context("HTML processing", function()

- Hello, world! - + Hello, world! +

- ]], '\r\nHello, world!\r\n'}, + ]], 'Hello, world!\r\n'}, {[[ @@ -58,12 +58,12 @@ context("HTML processing", function() ]], 'Hello, world!'}, } - + for _,c in ipairs(cases) do local t = rspamd_util.parse_html(c[1]) - + assert_not_nil(t) assert_equal(c[2], tostring(t)) end end) -end) \ No newline at end of file +end) -- 2.39.5