From 5c73093edb3bd527db9c8abdee53d0f18e6a4cc1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 19 Sep 2018 11:28:40 +0200 Subject: urlapi: document the error codes, remove two unused ones Assisted-by: Daniel Gustafsson Closes #3019 --- tests/libtest/lib1560.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'tests/libtest') diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index 30fb582a2..224cb880f 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -129,7 +129,7 @@ struct querycase { static struct testcase get_parts_list[] ={ {"https://127.0.0.1:443", - "https | [11] | [12] | [13] | 127.0.0.1 | [15] | / | [17] | [18]", + "https | [11] | [12] | [13] | 127.0.0.1 | [15] | / | [16] | [17]", 0, CURLU_NO_DEFAULT_PORT, CURLUE_OK}, {"http://%3a:%3a@ex%0ample/%3f+?+%3f+%23#+%23%3f%g7", "http | : | : | [13] | [6] | [15] | /?+ | ? # | +#?%g7", @@ -138,43 +138,43 @@ static struct testcase get_parts_list[] ={ "http | %3a | %3a | [13] | ex%0ample | [15] | /%3f | %3f%35 | %35%3f%g7", 0, 0, CURLUE_OK}, {"http://HO0_-st%41/", - "http | [11] | [12] | [13] | HO0_-st%41 | [15] | / | [17] | [18]", + "http | [11] | [12] | [13] | HO0_-st%41 | [15] | / | [16] | [17]", 0, 0, CURLUE_OK}, {"file://hello.html", "", 0, 0, CURLUE_MALFORMED_INPUT}, {"http://HO0_-st/", - "http | [11] | [12] | [13] | HO0_-st | [15] | / | [17] | [18]", + "http | [11] | [12] | [13] | HO0_-st | [15] | / | [16] | [17]", 0, 0, CURLUE_OK}, {"imap://user:pass;option@server/path", - "imap | user | pass | option | server | [15] | /path | [17] | [18]", + "imap | user | pass | option | server | [15] | /path | [16] | [17]", 0, 0, CURLUE_OK}, {"http://user:pass;option@server/path", - "http | user | pass;option | [13] | server | [15] | /path | [17] | [18]", + "http | user | pass;option | [13] | server | [15] | /path | [16] | [17]", 0, 0, CURLUE_OK}, {"file:/hello.html", - "file | [11] | [12] | [13] | [14] | [15] | /hello.html | [17] | [18]", + "file | [11] | [12] | [13] | [14] | [15] | /hello.html | [16] | [17]", 0, 0, CURLUE_OK}, {"file://127.0.0.1/hello.html", - "file | [11] | [12] | [13] | [14] | [15] | /hello.html | [17] | [18]", + "file | [11] | [12] | [13] | [14] | [15] | /hello.html | [16] | [17]", 0, 0, CURLUE_OK}, {"file:////hello.html", - "file | [11] | [12] | [13] | [14] | [15] | //hello.html | [17] | [18]", + "file | [11] | [12] | [13] | [14] | [15] | //hello.html | [16] | [17]", 0, 0, CURLUE_OK}, {"file:///hello.html", - "file | [11] | [12] | [13] | [14] | [15] | /hello.html | [17] | [18]", + "file | [11] | [12] | [13] | [14] | [15] | /hello.html | [16] | [17]", 0, 0, CURLUE_OK}, {"https://127.0.0.1", - "https | [11] | [12] | [13] | 127.0.0.1 | 443 | / | [17] | [18]", + "https | [11] | [12] | [13] | 127.0.0.1 | 443 | / | [16] | [17]", 0, CURLU_DEFAULT_PORT, CURLUE_OK}, {"https://127.0.0.1", - "https | [11] | [12] | [13] | 127.0.0.1 | [15] | / | [17] | [18]", + "https | [11] | [12] | [13] | 127.0.0.1 | [15] | / | [16] | [17]", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"https://[::1]:1234", - "https | [11] | [12] | [13] | [::1] | 1234 | / | [17] | [18]", + "https | [11] | [12] | [13] | [::1] | 1234 | / | [16] | [17]", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"https://127abc.com", - "https | [11] | [12] | [13] | 127abc.com | [15] | / | [17] | [18]", + "https | [11] | [12] | [13] | 127abc.com | [15] | / | [16] | [17]", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"https:// example.com?check", "", @@ -183,7 +183,7 @@ static struct testcase get_parts_list[] ={ "", CURLU_DEFAULT_SCHEME, 0, CURLUE_MALFORMED_INPUT}, {"https://example.com?check", - "https | [11] | [12] | [13] | example.com | [15] | / | check | [18]", + "https | [11] | [12] | [13] | example.com | [15] | / | check | [17]", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"https://example.com:65536", "", @@ -193,27 +193,27 @@ static struct testcase get_parts_list[] ={ CURLU_DEFAULT_SCHEME, 0, CURLUE_BAD_PORT_NUMBER}, {"https://example.com:01#moo", "https | [11] | [12] | [13] | example.com | 1 | / | " - "[17] | moo", + "[16] | moo", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"https://example.com:1#moo", "https | [11] | [12] | [13] | example.com | 1 | / | " - "[17] | moo", + "[16] | moo", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"http://example.com#moo", "http | [11] | [12] | [13] | example.com | [15] | / | " - "[17] | moo", + "[16] | moo", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"http://example.com", "http | [11] | [12] | [13] | example.com | [15] | / | " - "[17] | [18]", + "[16] | [17]", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"http://example.com/path/html", "http | [11] | [12] | [13] | example.com | [15] | /path/html | " - "[17] | [18]", + "[16] | [17]", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"http://example.com/path/html?query=name", "http | [11] | [12] | [13] | example.com | [15] | /path/html | " - "query=name | [18]", + "query=name | [17]", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"http://example.com/path/html?query=name#anchor", "http | [11] | [12] | [13] | example.com | [15] | /path/html | " -- cgit v1.2.3