aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-03 09:01:14 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-03 10:42:30 +0200
commitbe20a78ab01b924fc1261ff3c71361feb440e592 (patch)
treef4c54eac158ee92b5dca42d6967fa1b2b5135cde /tests
parent522c6ea14cd2c1569ce5ff24c0241edba1835308 (diff)
xv: fix missing search results, incorrect title to thumbnail matches
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp8
1 files changed, 8 insertions, 0 deletions
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 &#039; world";
+ QuickMedia::html_unescape_sequences(html_unescaped_str);
+ assert_equals(html_unescaped_str, "hello ' world");
+
+ html_unescaped_str = "hello &#x27; world";
+ QuickMedia::html_unescape_sequences(html_unescaped_str);
+ assert_equals(html_unescaped_str, "hello ' world");
return 0;
}