From 3f3ac6e909e24d648417ade0afa2de3e0ac9c1df Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 10 Jul 2015 23:05:02 +0100 Subject: add some more nsurl compare unit tests to improve coverage --- test/nsurl.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test/nsurl.c') diff --git a/test/nsurl.c b/test/nsurl.c index 514f3a6af..d7faab390 100644 --- a/test/nsurl.c +++ b/test/nsurl.c @@ -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 }, }; /** -- cgit v1.2.3