aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-16 23:36:37 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-16 23:36:37 +0200
commit78f01f5d041ba291aca05f768bb71eba71ebb58e (patch)
treee63c4992ff642813770f5ac093fa0eb57e69eb97 /tests
parent1376a92ef6d6a6418efefbcde5e01d1958e52fd5 (diff)
Add a combined manga search page, highlight urls ending with ?
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 306cdf2..ca09d4c 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -33,6 +33,11 @@ int main() {
assert_equals(urls.size(), 1);
assert_equals(urls[0], "example.com");
+ str = "is it example.com? or not?";
+ urls = QuickMedia::ranges_get_strings(str, QuickMedia::extract_urls(str));
+ assert_equals(urls.size(), 1);
+ assert_equals(urls[0], "example.com");
+
str = "these. are. not. websites.";
urls = QuickMedia::ranges_get_strings(str, QuickMedia::extract_urls(str));
assert_equals(urls.size(), 0);