]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Change order of the tests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 14 Jul 2021 12:11:51 +0000 (13:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 14 Jul 2021 16:34:04 +0000 (17:34 +0100)
src/libserver/html/html_tests.cxx

index 1181e79ac004a399a5a017dd7eeff819120154e5..4e87d7e2df33d2b1b28177edbae3fa1d1b6424d5 100644 (file)
@@ -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"},
 
        };