diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-31 22:24:05 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-31 22:24:05 +0000 |
commit | 30ff09bd83a91b5174ac0898d02f97506d72fdf3 (patch) | |
tree | 4efb67e194d2154b28deb3492ed5143c0f9e3a1b /test | |
parent | 3ecf3c1eaf81c833f6ee231871fc0dd0f7d003b1 (diff) | |
download | netsurf-30ff09bd83a91b5174ac0898d02f97506d72fdf3.tar.gz netsurf-30ff09bd83a91b5174ac0898d02f97506d72fdf3.tar.bz2 |
More test cases.
svn path=/trunk/netsurf/; revision=13109
Diffstat (limited to 'test')
-rw-r--r-- | test/nsurl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/nsurl.c b/test/nsurl.c index 6f6a838cc..9a0b9c055 100644 --- a/test/nsurl.c +++ b/test/nsurl.c @@ -40,6 +40,20 @@ static const struct test_pairs create_tests[] = { { "http://user:pass@www.ns-b.org:8080/hello", "http://user:pass@www.ns-b.org:8080/hello" }, + { "http://www.ns-b.org:80/", + "http://www.ns-b.org/" }, + { "http://user@www.ns-b.org:80/hello", + "http://user@www.ns-b.org/hello" }, + { "http://user:pass@www.ns-b.org:80/hello", + "http://user:pass@www.ns-b.org/hello" }, + + { "http://www.ns-b.org:/", + "http://www.ns-b.org/" }, + { "http://u@www.ns-b.org:/hello", + "http://u@www.ns-b.org/hello" }, + { "http://u:p@www.ns-b.org:/hello", + "http://u:p@www.ns-b.org/hello" }, + { NULL, NULL } }; |