commit de88fec: [Test] Fix test case

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jul 5 16:42:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-07-05 16:39:14 +0100
URL: https://github.com/rspamd/rspamd/commit/de88fecfb5e67da4df24e3dc310c4a43687d5178

[Test] Fix test case

---
 src/libserver/html/html.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 395648c0c..d46d291d6 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1937,9 +1937,9 @@ TEST_CASE("html text extraction")
 			{"</head>\n"
 			 "<body>\n"
 			 "<p> Hello. I have some bad news.\n"
-			 "<br /> <br /> <br /> <strong> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> </strong><span> <br /> </span></p>\n"
+			 "<br /> <br /> <br /> <strong> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> </strong><span> <br /> </span>test</p>\n"
 			 "</body>\n"
-			 "</html>", " Hello. I have some bad news.\n\n\n\n\n\n\n\n"},
+			 "</html>", "Hello. I have some bad news. \n\n\n\n\n\n\n\n\n\n\n\ntest\n"},
 			{"  <body>\n"
 			 "    <!-- escape content -->\n"
 			 "    a b a > b a < b a & b 'a "a"\n"


More information about the Commits mailing list