Skip to content

Commit 27a6dd8

Browse files
authored
test: update web platform tests (#698)
1 parent 46ece6b commit 27a6dd8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/wpt/toascii.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,31 @@
172172
{
173173
"input": "",
174174
"output": "xn--hdh"
175+
},
176+
{
177+
"comment": "NFC normalization (forbidden < and > characters are normalized to valid ones)",
178+
"input": "=\u0338",
179+
"output": "xn--1ch"
180+
},
181+
{
182+
"input": "<\u0338",
183+
"output": "xn--gdh"
184+
},
185+
{
186+
"input": ">\u0338",
187+
"output": "xn--hdh"
188+
},
189+
{
190+
"comment": "Same with inserted IDNA ignored code point",
191+
"input": "=\u00AD\u0338",
192+
"output": "xn--1ch"
193+
},
194+
{
195+
"input": "<\u00AD\u0338",
196+
"output": "xn--gdh"
197+
},
198+
{
199+
"input": ">\u00AD\u0338",
200+
"output": "xn--hdh"
175201
}
176202
]

0 commit comments

Comments
 (0)