commit 1a36361: [Minor] Change order of the tests
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Jul 14 16:35:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-07-14 13:11:51 +0100
URL: https://github.com/rspamd/rspamd/commit/1a36361854e80e93c48324379e726ee9298d3764
[Minor] Change order of the tests
---
src/libserver/html/html_tests.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/html/html_tests.cxx b/src/libserver/html/html_tests.cxx
index 1181e79ac..4e87d7e2d 100644
--- a/src/libserver/html/html_tests.cxx
+++ b/src/libserver/html/html_tests.cxx
@@ -69,7 +69,6 @@ TEST_CASE("html text extraction")
{
using namespace std::string_literals;
const std::vector<std::pair<std::string, std::string>> cases{
- {"<html><body><html><head>displayed</body></html></body></html>", "displayed"},
{"test", "test"},
{"test\0"s, "test\uFFFD"s},
{"test\0test"s, "test\uFFFDtest"s},
@@ -185,6 +184,7 @@ TEST_CASE("html text extraction")
/* Head tag with some stuff */
{"<html><head><p>oh my god</head><body></body></html>", "oh my god\n"},
{"<html><head><title>oh my god</head><body></body></html>", ""},
+ {"<html><body><html><head>displayed</body></html></body></html>", "displayed"},
};
More information about the Commits
mailing list