mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
lib1560: test with leading zeroes and more IPv4 versions
Inspired by WHATWG URL Spec test inputs Closes #13400
This commit is contained in:
parent
4746b8362b
commit
4dc414c3ec
@ -508,6 +508,17 @@ static const struct testcase get_parts_list[] ={
|
||||
};
|
||||
|
||||
static const struct urltestcase get_url_list[] = {
|
||||
/* WHATWG disgrees, it wants "https:/0.0.0.0/" */
|
||||
{"https://0x.0x.0", "https://0x.0x.0/", 0, 0, CURLUE_OK},
|
||||
|
||||
{"https://example.com:000000000000000000000443/foo",
|
||||
"https://example.com/foo",
|
||||
0, CURLU_NO_DEFAULT_PORT, CURLUE_OK},
|
||||
{"https://example.com:000000000000000000000/foo",
|
||||
"https://example.com:0/foo",
|
||||
0, CURLU_NO_DEFAULT_PORT, CURLUE_OK},
|
||||
{"https://192.0x0000A80001", "https://192.168.0.1/", 0, 0, CURLUE_OK},
|
||||
{"https://0xffffffff", "https://255.255.255.255/", 0, 0, CURLUE_OK},
|
||||
{"https://1.0x1000000", "https://1.0x1000000/", 0, 0, CURLUE_OK},
|
||||
{"https://0x7f.1", "https://127.0.0.1/", 0, 0, CURLUE_OK},
|
||||
{"https://1.2.3.256.com", "https://1.2.3.256.com/", 0, 0, CURLUE_OK},
|
||||
|
Loading…
Reference in New Issue
Block a user