From 30ff09bd83a91b5174ac0898d02f97506d72fdf3 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 31 Oct 2011 22:24:05 +0000 Subject: More test cases. svn path=/trunk/netsurf/; revision=13109 --- test/nsurl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/nsurl.c') 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 } }; -- cgit v1.2.3