Skip to content

Commit 4ecd01f

Browse files
authored
Merge pull request #687 from swaeberle/check-single-label-idn-hostnames
test single label IDN hostnames
2 parents ab3924a + 732e727 commit 4ecd01f

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed

tests/draft-next/optional/format/idn-hostname.json

+25
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,31 @@
301301
"comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement",
302302
"data": "\u0628\u064a\u200c\u0628\u064a",
303303
"valid": true
304+
},
305+
{
306+
"description": "single label",
307+
"data": "hostname",
308+
"valid": true
309+
},
310+
{
311+
"description": "single label with hyphen",
312+
"data": "host-name",
313+
"valid": true
314+
},
315+
{
316+
"description": "single label with digits",
317+
"data": "h0stn4me",
318+
"valid": true
319+
},
320+
{
321+
"description": "single label starting with digit",
322+
"data": "1host",
323+
"valid": true
324+
},
325+
{
326+
"description": "single label ending with digit",
327+
"data": "hostnam3",
328+
"valid": true
304329
}
305330
]
306331
}

tests/draft2019-09/optional/format/idn-hostname.json

+25
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,31 @@
301301
"comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement",
302302
"data": "\u0628\u064a\u200c\u0628\u064a",
303303
"valid": true
304+
},
305+
{
306+
"description": "single label",
307+
"data": "hostname",
308+
"valid": true
309+
},
310+
{
311+
"description": "single label with hyphen",
312+
"data": "host-name",
313+
"valid": true
314+
},
315+
{
316+
"description": "single label with digits",
317+
"data": "h0stn4me",
318+
"valid": true
319+
},
320+
{
321+
"description": "single label starting with digit",
322+
"data": "1host",
323+
"valid": true
324+
},
325+
{
326+
"description": "single label ending with digit",
327+
"data": "hostnam3",
328+
"valid": true
304329
}
305330
]
306331
}

tests/draft2020-12/optional/format/idn-hostname.json

+25
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,31 @@
301301
"comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement",
302302
"data": "\u0628\u064a\u200c\u0628\u064a",
303303
"valid": true
304+
},
305+
{
306+
"description": "single label",
307+
"data": "hostname",
308+
"valid": true
309+
},
310+
{
311+
"description": "single label with hyphen",
312+
"data": "host-name",
313+
"valid": true
314+
},
315+
{
316+
"description": "single label with digits",
317+
"data": "h0stn4me",
318+
"valid": true
319+
},
320+
{
321+
"description": "single label starting with digit",
322+
"data": "1host",
323+
"valid": true
324+
},
325+
{
326+
"description": "single label ending with digit",
327+
"data": "hostnam3",
328+
"valid": true
304329
}
305330
]
306331
}

tests/draft7/optional/format/idn-hostname.json

+20
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,26 @@
298298
"comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement",
299299
"data": "\u0628\u064a\u200c\u0628\u064a",
300300
"valid": true
301+
},
302+
{
303+
"description": "single label",
304+
"data": "hostname",
305+
"valid": true
306+
},
307+
{
308+
"description": "single label with hyphen",
309+
"data": "host-name",
310+
"valid": true
311+
},
312+
{
313+
"description": "single label with digits",
314+
"data": "h0stn4me",
315+
"valid": true
316+
},
317+
{
318+
"description": "single label ending with digit",
319+
"data": "hostnam3",
320+
"valid": true
301321
}
302322
]
303323
}

0 commit comments

Comments
 (0)