From 4ad1557d27d84000f23ca8bb27629c640b6a09e9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 3 Nov 2011 12:16:01 +0000 Subject: Add some tests. svn path=/trunk/netsurf/; revision=13114 --- test/nsurl.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/nsurl.c b/test/nsurl.c index 9a0b9c055..c82bc888c 100644 --- a/test/nsurl.c +++ b/test/nsurl.c @@ -54,6 +54,14 @@ static const struct test_pairs create_tests[] = { { "http://u:p@www.ns-b.org:/hello", "http://u:p@www.ns-b.org/hello" }, + { "http:a/", "http://a/" }, + { "http:/a/", "http://a/" }, + { "http://u@a", "http://u@a/" }, + { "http://@a", "http://a/" }, + + { "mailto:u@a", "mailto:u@a" }, + { "mailto:@a", "mailto:a" }, + { NULL, NULL } }; -- cgit v1.2.3