add some more nsurl compare unit tests to improve coverage

This commit is contained in:
Vincent Sanders 2015-07-10 23:05:02 +01:00
parent 956283366b
commit 3f3ac6e909
1 changed files with 20 additions and 0 deletions

View File

@ -532,6 +532,26 @@ static const struct test_compare compare_tests[] = {
"http://a/b/c/d;p?q",
NSURL_WITH_FRAGMENT,
true },
{ "http://a.b.c/d?a",
"http://a.b.c/e?a",
NSURL_WITH_FRAGMENT,
false },
{ "http://a.b.c/",
"http://g.h.i/",
NSURL_WITH_FRAGMENT,
false },
{ "http://a.b.c/d?a",
"http://a.b.c/d?b",
NSURL_WITH_FRAGMENT,
false },
{ "http://a.b.c/d?a",
"https://a.b.c/d?a",
NSURL_WITH_FRAGMENT,
false },
};
/**