From be20a78ab01b924fc1261ff3c71361feb440e592 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 3 Oct 2021 09:01:14 +0200 Subject: xv: fix missing search results, incorrect title to thumbnail matches --- tests/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/main.cpp b/tests/main.cpp index ca09d4c..32acde6 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -62,5 +62,13 @@ int main() { urls = QuickMedia::ranges_get_strings(str, QuickMedia::extract_urls(str)); assert_equals(urls.size(), 1); assert_equals(urls[0], "https://sneedville.com"); + + std::string html_unescaped_str = "hello ' world"; + QuickMedia::html_unescape_sequences(html_unescaped_str); + assert_equals(html_unescaped_str, "hello ' world"); + + html_unescaped_str = "hello ' world"; + QuickMedia::html_unescape_sequences(html_unescaped_str); + assert_equals(html_unescaped_str, "hello ' world"); return 0; } -- cgit v1.2.3-70-g09d2