summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-12-15 10:25:13 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-12-15 22:57:08 +0100
commitb151faa083528d6131090a2ec424601d68240eef (patch)
treec20a928ec0197b792883c8b5653b25a383c6a3ca
parentcc0aaf6e824e9da70740c6f769a8f6d188fe11ce (diff)
downloadcurl-b151faa083528d6131090a2ec424601d68240eef.tar.gz
lib1560: add some basic IDN host name tests
Closes #10094
-rw-r--r--tests/libtest/lib1560.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c
index f27864c8d..570e5082d 100644
--- a/tests/libtest/lib1560.c
+++ b/tests/libtest/lib1560.c
@@ -138,6 +138,25 @@ struct clearurlcase {
};
static const struct testcase get_parts_list[] ={
+ /* https://ℂᵤⓇℒ。𝐒🄴 */
+ {"https://"
+ "%e2%84%82%e1%b5%a4%e2%93%87%e2%84%92%e3%80%82%f0%9d%90%92%f0%9f%84%b4",
+ "https | [11] | [12] | [13] | ℂᵤⓇℒ。𝐒🄴 | [15] |"
+ " / | [16] | [17]",
+ 0, 0, CURLUE_OK},
+ {"https://"
+ "%e2%84%82%e1%b5%a4%e2%93%87%e2%84%92%e3%80%82%f0%9d%90%92%f0%9f%84%b4",
+ "https | [11] | [12] | [13] | "
+ "%e2%84%82%e1%b5%a4%e2%93%87%e2%84%92%e3%80%82%f0%9d%90%92%f0%9f%84%b4 "
+ "| [15] | / | [16] | [17]",
+ 0, CURLU_URLENCODE, CURLUE_OK},
+ {"https://"
+ "\xe2\x84\x82\xe1\xb5\xa4\xe2\x93\x87\xe2\x84\x92"
+ "\xe3\x80\x82\xf0\x9d\x90\x92\xf0\x9f\x84\xb4",
+ "https | [11] | [12] | [13] | "
+ "%e2%84%82%e1%b5%a4%e2%93%87%e2%84%92%e3%80%82%f0%9d%90%92%f0%9f%84%b4 "
+ "| [15] | / | [16] | [17]",
+ 0, CURLU_URLENCODE, CURLUE_OK},
{"https://user@example.net?he l lo",
"https | user | [12] | [13] | example.net | [15] | / | he+l+lo | [17]",
CURLU_ALLOW_SPACE, CURLU_URLENCODE, CURLUE_OK},