mirror of
https://github.com/curl/curl.git
synced 2026-08-03 02:50:28 +03:00
test1675: unit tests for URL API helper functions
- ipv4_normalize - urlencode_str - ipv6_parse - parse_file urlapi: make the string URL encoder normalize to uppercase percent-encoding Closes #21296
This commit is contained in:
parent
d7a991cc9b
commit
0b4ebebb06
8 changed files with 414 additions and 46 deletions
|
|
@ -438,11 +438,9 @@ static const struct testcase get_parts_list[] = {
|
|||
{"file:///C:\\programs\\foo",
|
||||
"file | [11] | [12] | [13] | [14] | [15] | C:\\programs\\foo | [16] | [17]",
|
||||
CURLU_DEFAULT_SCHEME, 0, CURLUE_OK},
|
||||
{"file://host.example.com/Share/path/to/file.txt",
|
||||
"file | [11] | [12] | [13] | host.example.com | [15] | "
|
||||
"//host.example.com/Share/path/to/file.txt | [16] | [17]",
|
||||
CURLU_DEFAULT_SCHEME, 0, CURLUE_OK},
|
||||
#endif
|
||||
{"file://host.example.com/Share/path/to/file.txt", "",
|
||||
CURLU_DEFAULT_SCHEME, 0, CURLUE_BAD_FILE_URL},
|
||||
{"https://example.com/color/#green?no-red",
|
||||
"https | [11] | [12] | [13] | example.com | [15] | /color/ | [16] | "
|
||||
"green?no-red",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue