11cb0ef41Sopenharmony_ci[
21cb0ef41Sopenharmony_ci  "This resource is focused on highlighting issues with UTS #46 ToASCII",
31cb0ef41Sopenharmony_ci  {
41cb0ef41Sopenharmony_ci    "comment": "Label with hyphens in 3rd and 4th position",
51cb0ef41Sopenharmony_ci    "input": "aa--",
61cb0ef41Sopenharmony_ci    "output": "aa--"
71cb0ef41Sopenharmony_ci  },
81cb0ef41Sopenharmony_ci  {
91cb0ef41Sopenharmony_ci    "input": "a†--",
101cb0ef41Sopenharmony_ci    "output": "xn--a---kp0a"
111cb0ef41Sopenharmony_ci  },
121cb0ef41Sopenharmony_ci  {
131cb0ef41Sopenharmony_ci    "input": "ab--c",
141cb0ef41Sopenharmony_ci    "output": "ab--c"
151cb0ef41Sopenharmony_ci  },
161cb0ef41Sopenharmony_ci  {
171cb0ef41Sopenharmony_ci    "comment": "Label with leading hyphen",
181cb0ef41Sopenharmony_ci    "input": "-x",
191cb0ef41Sopenharmony_ci    "output": "-x"
201cb0ef41Sopenharmony_ci  },
211cb0ef41Sopenharmony_ci  {
221cb0ef41Sopenharmony_ci    "input": "-†",
231cb0ef41Sopenharmony_ci    "output": "xn----xhn"
241cb0ef41Sopenharmony_ci  },
251cb0ef41Sopenharmony_ci  {
261cb0ef41Sopenharmony_ci    "input": "-x.xn--zca",
271cb0ef41Sopenharmony_ci    "output": "-x.xn--zca"
281cb0ef41Sopenharmony_ci  },
291cb0ef41Sopenharmony_ci  {
301cb0ef41Sopenharmony_ci    "input": "-x.ß",
311cb0ef41Sopenharmony_ci    "output": "-x.xn--zca"
321cb0ef41Sopenharmony_ci  },
331cb0ef41Sopenharmony_ci  {
341cb0ef41Sopenharmony_ci    "comment": "Label with trailing hyphen",
351cb0ef41Sopenharmony_ci    "input": "x-.xn--zca",
361cb0ef41Sopenharmony_ci    "output": "x-.xn--zca"
371cb0ef41Sopenharmony_ci  },
381cb0ef41Sopenharmony_ci  {
391cb0ef41Sopenharmony_ci    "input": "x-.ß",
401cb0ef41Sopenharmony_ci    "output": "x-.xn--zca"
411cb0ef41Sopenharmony_ci  },
421cb0ef41Sopenharmony_ci  {
431cb0ef41Sopenharmony_ci    "comment": "Empty labels",
441cb0ef41Sopenharmony_ci    "input": "x..xn--zca",
451cb0ef41Sopenharmony_ci    "output": "x..xn--zca"
461cb0ef41Sopenharmony_ci  },
471cb0ef41Sopenharmony_ci  {
481cb0ef41Sopenharmony_ci    "input": "x..ß",
491cb0ef41Sopenharmony_ci    "output": "x..xn--zca"
501cb0ef41Sopenharmony_ci  },
511cb0ef41Sopenharmony_ci  {
521cb0ef41Sopenharmony_ci    "comment": "Invalid Punycode",
531cb0ef41Sopenharmony_ci    "input": "xn--a",
541cb0ef41Sopenharmony_ci    "output": null
551cb0ef41Sopenharmony_ci  },
561cb0ef41Sopenharmony_ci  {
571cb0ef41Sopenharmony_ci    "input": "xn--a.xn--zca",
581cb0ef41Sopenharmony_ci    "output": null
591cb0ef41Sopenharmony_ci  },
601cb0ef41Sopenharmony_ci  {
611cb0ef41Sopenharmony_ci    "input": "xn--a.ß",
621cb0ef41Sopenharmony_ci    "output": null
631cb0ef41Sopenharmony_ci  },
641cb0ef41Sopenharmony_ci  {
651cb0ef41Sopenharmony_ci    "input": "xn--ls8h=",
661cb0ef41Sopenharmony_ci    "output": null
671cb0ef41Sopenharmony_ci  },
681cb0ef41Sopenharmony_ci  {
691cb0ef41Sopenharmony_ci    "comment": "Invalid Punycode (contains non-ASCII character)",
701cb0ef41Sopenharmony_ci    "input": "xn--tešla",
711cb0ef41Sopenharmony_ci    "output": null
721cb0ef41Sopenharmony_ci  },
731cb0ef41Sopenharmony_ci  {
741cb0ef41Sopenharmony_ci    "comment": "Valid Punycode",
751cb0ef41Sopenharmony_ci    "input": "xn--zca.xn--zca",
761cb0ef41Sopenharmony_ci    "output": "xn--zca.xn--zca"
771cb0ef41Sopenharmony_ci  },
781cb0ef41Sopenharmony_ci  {
791cb0ef41Sopenharmony_ci    "comment": "Mixed",
801cb0ef41Sopenharmony_ci    "input": "xn--zca.ß",
811cb0ef41Sopenharmony_ci    "output": "xn--zca.xn--zca"
821cb0ef41Sopenharmony_ci  },
831cb0ef41Sopenharmony_ci  {
841cb0ef41Sopenharmony_ci    "input": "ab--c.xn--zca",
851cb0ef41Sopenharmony_ci    "output": "ab--c.xn--zca"
861cb0ef41Sopenharmony_ci  },
871cb0ef41Sopenharmony_ci  {
881cb0ef41Sopenharmony_ci    "input": "ab--c.ß",
891cb0ef41Sopenharmony_ci    "output": "ab--c.xn--zca"
901cb0ef41Sopenharmony_ci  },
911cb0ef41Sopenharmony_ci  {
921cb0ef41Sopenharmony_ci    "comment": "CheckJoiners is true",
931cb0ef41Sopenharmony_ci    "input": "\u200D.example",
941cb0ef41Sopenharmony_ci    "output": null
951cb0ef41Sopenharmony_ci  },
961cb0ef41Sopenharmony_ci  {
971cb0ef41Sopenharmony_ci    "input": "xn--1ug.example",
981cb0ef41Sopenharmony_ci    "output": null
991cb0ef41Sopenharmony_ci  },
1001cb0ef41Sopenharmony_ci  {
1011cb0ef41Sopenharmony_ci    "comment": "CheckBidi is true",
1021cb0ef41Sopenharmony_ci    "input": "يa",
1031cb0ef41Sopenharmony_ci    "output": null
1041cb0ef41Sopenharmony_ci  },
1051cb0ef41Sopenharmony_ci  {
1061cb0ef41Sopenharmony_ci    "input": "xn--a-yoc",
1071cb0ef41Sopenharmony_ci    "output": null
1081cb0ef41Sopenharmony_ci  },
1091cb0ef41Sopenharmony_ci  {
1101cb0ef41Sopenharmony_ci    "comment": "processing_option is Nontransitional_Processing",
1111cb0ef41Sopenharmony_ci    "input": "ශ්‍රී",
1121cb0ef41Sopenharmony_ci    "output": "xn--10cl1a0b660p"
1131cb0ef41Sopenharmony_ci  },
1141cb0ef41Sopenharmony_ci  {
1151cb0ef41Sopenharmony_ci    "input": "نامه‌ای",
1161cb0ef41Sopenharmony_ci    "output": "xn--mgba3gch31f060k"
1171cb0ef41Sopenharmony_ci  },
1181cb0ef41Sopenharmony_ci  {
1191cb0ef41Sopenharmony_ci    "comment": "U+FFFD",
1201cb0ef41Sopenharmony_ci    "input": "\uFFFD.com",
1211cb0ef41Sopenharmony_ci    "output": null
1221cb0ef41Sopenharmony_ci  },
1231cb0ef41Sopenharmony_ci  {
1241cb0ef41Sopenharmony_ci    "comment": "U+FFFD character encoded in Punycode",
1251cb0ef41Sopenharmony_ci    "input": "xn--zn7c.com",
1261cb0ef41Sopenharmony_ci    "output": null
1271cb0ef41Sopenharmony_ci  },
1281cb0ef41Sopenharmony_ci  {
1291cb0ef41Sopenharmony_ci    "comment": "Label longer than 63 code points",
1301cb0ef41Sopenharmony_ci    "input": "x01234567890123456789012345678901234567890123456789012345678901x",
1311cb0ef41Sopenharmony_ci    "output": "x01234567890123456789012345678901234567890123456789012345678901x"
1321cb0ef41Sopenharmony_ci  },
1331cb0ef41Sopenharmony_ci  {
1341cb0ef41Sopenharmony_ci    "input": "x01234567890123456789012345678901234567890123456789012345678901†",
1351cb0ef41Sopenharmony_ci    "output": "xn--x01234567890123456789012345678901234567890123456789012345678901-6963b"
1361cb0ef41Sopenharmony_ci  },
1371cb0ef41Sopenharmony_ci  {
1381cb0ef41Sopenharmony_ci    "input": "x01234567890123456789012345678901234567890123456789012345678901x.xn--zca",
1391cb0ef41Sopenharmony_ci    "output": "x01234567890123456789012345678901234567890123456789012345678901x.xn--zca"
1401cb0ef41Sopenharmony_ci  },
1411cb0ef41Sopenharmony_ci  {
1421cb0ef41Sopenharmony_ci    "input": "x01234567890123456789012345678901234567890123456789012345678901x.ß",
1431cb0ef41Sopenharmony_ci    "output": "x01234567890123456789012345678901234567890123456789012345678901x.xn--zca"
1441cb0ef41Sopenharmony_ci  },
1451cb0ef41Sopenharmony_ci  {
1461cb0ef41Sopenharmony_ci    "comment": "Domain excluding TLD longer than 253 code points",
1471cb0ef41Sopenharmony_ci    "input": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.x",
1481cb0ef41Sopenharmony_ci    "output": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.x"
1491cb0ef41Sopenharmony_ci  },
1501cb0ef41Sopenharmony_ci  {
1511cb0ef41Sopenharmony_ci    "input": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--zca",
1521cb0ef41Sopenharmony_ci    "output": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--zca"
1531cb0ef41Sopenharmony_ci  },
1541cb0ef41Sopenharmony_ci  {
1551cb0ef41Sopenharmony_ci    "input": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.ß",
1561cb0ef41Sopenharmony_ci    "output": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--zca"
1571cb0ef41Sopenharmony_ci  },
1581cb0ef41Sopenharmony_ci  {
1591cb0ef41Sopenharmony_ci    "comment": "IDNA ignored code points",
1601cb0ef41Sopenharmony_ci    "input": "a\u00ADb",
1611cb0ef41Sopenharmony_ci    "output": "ab"
1621cb0ef41Sopenharmony_ci  },
1631cb0ef41Sopenharmony_ci  {
1641cb0ef41Sopenharmony_ci    "comment": "Interesting UseSTD3ASCIIRules=false cases",
1651cb0ef41Sopenharmony_ci    "input": "≠",
1661cb0ef41Sopenharmony_ci    "output": "xn--1ch"
1671cb0ef41Sopenharmony_ci  },
1681cb0ef41Sopenharmony_ci  {
1691cb0ef41Sopenharmony_ci    "input": "≮",
1701cb0ef41Sopenharmony_ci    "output": "xn--gdh"
1711cb0ef41Sopenharmony_ci  },
1721cb0ef41Sopenharmony_ci  {
1731cb0ef41Sopenharmony_ci    "input": "≯",
1741cb0ef41Sopenharmony_ci    "output": "xn--hdh"
1751cb0ef41Sopenharmony_ci  }
1761cb0ef41Sopenharmony_ci]
177