unit test for parsing IPv6 urls with port

This commit is contained in:
Arvid Norberg 2010-11-27 02:08:10 +00:00
parent 4f24fe1e62
commit fa80c95d62
1 changed files with 2 additions and 2 deletions

View File

@ -733,8 +733,8 @@ int test_main()
TEST_CHECK(parse_url_components("http://192.168.0.1/path/to/file", ec)
== make_tuple("http", "", "192.168.0.1", 80, "/path/to/file"));
TEST_CHECK(parse_url_components("http://[::1]/path/to/file", ec)
== make_tuple("http", "", "[::1]", 80, "/path/to/file"));
TEST_CHECK(parse_url_components("http://[2001:ff00::1]:42/path/to/file", ec)
== make_tuple("http", "", "[2001:ff00::1]", 42, "/path/to/file"));
// base64 test vectors from http://www.faqs.org/rfcs/rfc4648.html