unit test for parsing IPv6 urls with port
This commit is contained in:
parent
4f24fe1e62
commit
fa80c95d62
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue