Tests: Add tests for file: URL credentials and host handling.

This commit is contained in:
Michael Drake 2017-03-27 12:24:37 +01:00
parent 8e96e9bc27
commit 1cced51440

View File

@ -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" },