diff options
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; } |