From 1cced51440e550f2965538b8a4f72c514eca09b6 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 27 Mar 2017 12:24:37 +0100 Subject: Tests: Add tests for file: URL credentials and host handling. --- test/nsurl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/nsurl.c') diff --git a/test/nsurl.c b/test/nsurl.c index 21b8c01de..7e43a6d6c 100644 --- a/test/nsurl.c +++ b/test/nsurl.c @@ -136,6 +136,12 @@ static const struct test_pairs create_tests[] = { { "file:////", "file:////" }, { "file://///", "file://///" }, + { "file://localhost/", "file:///" }, + { "file://foobar/", "file:///" }, + { "file://foobar", "file:///" }, + { "file:///foobar", "file:///foobar" }, + { "file://tlsa@foo/", "file:///" }, + /* test case insensitivity */ { "HTTP://a/b", "http://a/b" }, { "ftp://a/b", "ftp://a/b" }, -- cgit v1.2.3