diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-03 09:01:14 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-03 10:42:30 +0200 |
commit | be20a78ab01b924fc1261ff3c71361feb440e592 (patch) | |
tree | f4c54eac158ee92b5dca42d6967fa1b2b5135cde /tests | |
parent | 522c6ea14cd2c1569ce5ff24c0241edba1835308 (diff) |
xv: fix missing search results, incorrect title to thumbnail matches
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.cpp | 8 |
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 ' 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; } |