summaryrefslogtreecommitdiffstats
path: root/src/libserver/html/html_tests.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-13 14:12:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-13 14:13:24 +0100
commit235979e848be5322b9f8d5a979a3c8fde46d9fa4 (patch)
treedbca93cf5bfd2580d39a8c8ea42e5c0a3ea5bb56 /src/libserver/html/html_tests.cxx
parentccf4d5d646a4cf1cd29ca9c6c5010c087e8ebe72 (diff)
downloadrspamd-235979e848be5322b9f8d5a979a3c8fde46d9fa4.tar.gz
rspamd-235979e848be5322b9f8d5a979a3c8fde46d9fa4.zip
[Minor] Further fixes for tag state machine
Diffstat (limited to 'src/libserver/html/html_tests.cxx')
-rw-r--r--src/libserver/html/html_tests.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/html/html_tests.cxx b/src/libserver/html/html_tests.cxx
index 07618b273..a0c60b299 100644
--- a/src/libserver/html/html_tests.cxx
+++ b/src/libserver/html/html_tests.cxx
@@ -221,7 +221,8 @@ TEST_CASE("html urls extraction")
{
using namespace std::string_literals;
const std::vector<std::pair<std::string, std::vector<std::string>>> cases{
- {"<a href=\"https://example.com\">test</a>", {"https://example.com"}}
+ {"<a href=\"https://example.com\">test</a>", {"https://example.com"}},
+ {"<a <poo href=\"http://example.com\">hello</a>", {"http://example.com"}},
};
rspamd_url_init(NULL);
@@ -244,6 +245,7 @@ TEST_CASE("html urls extraction")
g_byte_array_free(tmp, TRUE);
g_ptr_array_free(purls, TRUE);
}
+ ++i;
}
rspamd_mempool_delete(pool);