authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-22 02:56:34 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-22 02:56:34 -08:00
loga61663d2e573c2295e180fa1333accbd7256acd9
tree3c6b944d011cabce55ec2b7206e1d0d1b3399ccf
parentf7a805254e559c21b3fc11f78b46221c0a4b42ab

remove X4_2-only tests for now


3 files changed, 2 insertions(+), 55 deletions(-)

generate.ts+1-1
...@@ -242,7 +242,7 @@ fn toAsciiFail(...@@ -242,7 +242,7 @@ fn toAsciiFail(
242 if (toAsciiNStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiN)}", false); }\n`);242 if (toAsciiNStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiN)}", false); }\n`);
243 if (toAsciiTStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiT)}", true); }\n`);243 if (toAsciiTStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiT)}", true); }\n`);
244244
245 if (toUnicodeStatus !== "[]") w.write(`test { try toUnicodeFail("${E(source)}"); } // ${toUnicodeStatus}\n`);245 if (toUnicodeStatus !== "[]" && toUnicodeStatus !== "[X4_2]") w.write(`test { try toUnicodeFail("${E(source)}"); } // ${toUnicodeStatus}\n`);
246 if (toAsciiNStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", false); } // ${toAsciiNStatus}\n`);246 if (toAsciiNStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", false); } // ${toAsciiNStatus}\n`);
247 if (toAsciiTStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", true); } // ${toAsciiTStatus}\n`);247 if (toAsciiTStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", true); } // ${toAsciiTStatus}\n`);
248 }248 }
idna.zig+1-4
...@@ -41,6 +41,7 @@ pub fn ToASCII(...@@ -41,6 +41,7 @@ pub fn ToASCII(
4141
42 if (VerifyDnsLength) {42 if (VerifyDnsLength) {
43 // 1. The length of the domain name, excluding the root label and its dot, is from 1 to 253.43 // 1. The length of the domain name, excluding the root label and its dot, is from 1 to 253.
44 if (map.list.items.len < 1) return error.IDNAFailure;
44 if (map.list.items.len > 253) return error.IDNAFailure;45 if (map.list.items.len > 253) return error.IDNAFailure;
45 // 2. The length of each label is from 1 to 63.46 // 2. The length of each label is from 1 to 63.
46 for (map.lengths.items, 0..) |l, n| {47 for (map.lengths.items, 0..) |l, n| {
...@@ -176,10 +177,6 @@ fn Processing(...@@ -176,10 +177,6 @@ fn Processing(
176 try Validity_Criteria(label, CheckHyphens, Transitional_Processing, UseSTD3ASCIIRules, CheckJoiners, CheckBidi and domain_is_bidi);177 try Validity_Criteria(label, CheckHyphens, Transitional_Processing, UseSTD3ASCIIRules, CheckJoiners, CheckBidi and domain_is_bidi);
177 }178 }
178 }179 }
179
180 // X4_2
181 if (std.mem.indexOf(u8, map.list.items, "..") != null) return error.IDNAFailure;
182 if (std.mem.startsWith(u8, map.list.items, ".")) return error.IDNAFailure;
183}180}
184181
185//182//
testv2.zig-50
...@@ -323,13 +323,10 @@ test { try toAsciiPass("\xe1\xa7\x9a", "xn--pkf", true); }...@@ -323,13 +323,10 @@ test { try toAsciiPass("\xe1\xa7\x9a", "xn--pkf", true); }
323test { try toUnicodePass("xn--pkf", "\xe1\xa7\x9a"); }323test { try toUnicodePass("xn--pkf", "\xe1\xa7\x9a"); }
324test { try toAsciiPass("xn--pkf", "xn--pkf", false); }324test { try toAsciiPass("xn--pkf", "xn--pkf", false); }
325test { try toAsciiPass("xn--pkf", "xn--pkf", true); }325test { try toAsciiPass("xn--pkf", "xn--pkf", true); }
326test { try toUnicodeFail("\"\""); } // [X4_2]
327test { try toAsciiFail("\"\"", false); } // [A4_1, A4_2]326test { try toAsciiFail("\"\"", false); } // [A4_1, A4_2]
328test { try toAsciiFail("\"\"", true); } // [A4_1, A4_2]327test { try toAsciiFail("\"\"", true); } // [A4_1, A4_2]
329test { try toUnicodeFail("\xe3\x80\x82"); } // [X4_2]
330test { try toAsciiFail("\xe3\x80\x82", false); } // [A4_1, A4_2]328test { try toAsciiFail("\xe3\x80\x82", false); } // [A4_1, A4_2]
331test { try toAsciiFail("\xe3\x80\x82", true); } // [A4_1, A4_2]329test { try toAsciiFail("\xe3\x80\x82", true); } // [A4_1, A4_2]
332test { try toUnicodeFail("."); } // [X4_2]
333test { try toAsciiFail(".", false); } // [A4_1, A4_2]330test { try toAsciiFail(".", false); } // [A4_1, A4_2]
334test { try toAsciiFail(".", true); } // [A4_1, A4_2]331test { try toAsciiFail(".", true); } // [A4_1, A4_2]
335test { try toUnicodePass("\xea\xad\xa0", "\xea\xad\xa0"); }332test { try toUnicodePass("\xea\xad\xa0", "\xea\xad\xa0"); }
...@@ -941,7 +938,6 @@ test { try toAsciiFail("A.b..-Q--A\xcc\x88-.E", true); } // [V2, V3, A4_2]...@@ -941,7 +938,6 @@ test { try toAsciiFail("A.b..-Q--A\xcc\x88-.E", true); } // [V2, V3, A4_2]
941test { try toUnicodeFail("a.b..xn---q----jra.e"); } // [V2, V3, X4_2]938test { try toUnicodeFail("a.b..xn---q----jra.e"); } // [V2, V3, X4_2]
942test { try toAsciiFail("a.b..xn---q----jra.e", false); } // [V2, V3, A4_2]939test { try toAsciiFail("a.b..xn---q----jra.e", false); } // [V2, V3, A4_2]
943test { try toAsciiFail("a.b..xn---q----jra.e", true); } // [V2, V3, A4_2]940test { try toAsciiFail("a.b..xn---q----jra.e", true); } // [V2, V3, A4_2]
944test { try toUnicodeFail("a..c"); } // [X4_2]
945test { try toAsciiFail("a..c", false); } // [A4_2]941test { try toAsciiFail("a..c", false); } // [A4_2]
946test { try toAsciiFail("a..c", true); } // [A4_2]942test { try toAsciiFail("a..c", true); } // [A4_2]
947test { try toUnicodeFail("a.-b."); } // [V3]943test { try toUnicodeFail("a.-b."); } // [V3]
...@@ -959,19 +955,14 @@ test { try toAsciiFail("a.bc--de.f", true); } // [V2]...@@ -959,19 +955,14 @@ test { try toAsciiFail("a.bc--de.f", true); } // [V2]
959test { try toUnicodeFail("xn--xn---epa"); } // [V2, V4]955test { try toUnicodeFail("xn--xn---epa"); } // [V2, V4]
960test { try toAsciiFail("xn--xn---epa", false); } // [V2, V4]956test { try toAsciiFail("xn--xn---epa", false); } // [V2, V4]
961test { try toAsciiFail("xn--xn---epa", true); } // [V2, V4]957test { try toAsciiFail("xn--xn---epa", true); } // [V2, V4]
962test { try toUnicodeFail("\xc3\xa4.\xc2\xad.c"); } // [X4_2]
963test { try toAsciiFail("\xc3\xa4.\xc2\xad.c", false); } // [A4_2]958test { try toAsciiFail("\xc3\xa4.\xc2\xad.c", false); } // [A4_2]
964test { try toAsciiFail("\xc3\xa4.\xc2\xad.c", true); } // [A4_2]959test { try toAsciiFail("\xc3\xa4.\xc2\xad.c", true); } // [A4_2]
965test { try toUnicodeFail("a\xcc\x88.\xc2\xad.c"); } // [X4_2]
966test { try toAsciiFail("a\xcc\x88.\xc2\xad.c", false); } // [A4_2]960test { try toAsciiFail("a\xcc\x88.\xc2\xad.c", false); } // [A4_2]
967test { try toAsciiFail("a\xcc\x88.\xc2\xad.c", true); } // [A4_2]961test { try toAsciiFail("a\xcc\x88.\xc2\xad.c", true); } // [A4_2]
968test { try toUnicodeFail("A\xcc\x88.\xc2\xad.C"); } // [X4_2]
969test { try toAsciiFail("A\xcc\x88.\xc2\xad.C", false); } // [A4_2]962test { try toAsciiFail("A\xcc\x88.\xc2\xad.C", false); } // [A4_2]
970test { try toAsciiFail("A\xcc\x88.\xc2\xad.C", true); } // [A4_2]963test { try toAsciiFail("A\xcc\x88.\xc2\xad.C", true); } // [A4_2]
971test { try toUnicodeFail("\xc3\x84.\xc2\xad.C"); } // [X4_2]
972test { try toAsciiFail("\xc3\x84.\xc2\xad.C", false); } // [A4_2]964test { try toAsciiFail("\xc3\x84.\xc2\xad.C", false); } // [A4_2]
973test { try toAsciiFail("\xc3\x84.\xc2\xad.C", true); } // [A4_2]965test { try toAsciiFail("\xc3\x84.\xc2\xad.C", true); } // [A4_2]
974test { try toUnicodeFail("xn--4ca..c"); } // [X4_2]
975test { try toAsciiFail("xn--4ca..c", false); } // [A4_2]966test { try toAsciiFail("xn--4ca..c", false); } // [A4_2]
976test { try toAsciiFail("xn--4ca..c", true); } // [A4_2]967test { try toAsciiFail("xn--4ca..c", true); } // [A4_2]
977test { try toUnicodeFail("\xc3\xa4.-b."); } // [V3]968test { try toUnicodeFail("\xc3\xa4.-b."); } // [V3]
...@@ -1316,19 +1307,15 @@ test { try toAsciiPass("\xd9\x84", "xn--ghb", true); }...@@ -1316,19 +1307,15 @@ test { try toAsciiPass("\xd9\x84", "xn--ghb", true); }
1316test { try toUnicodeFail("xn--ghb413k"); } // [B3, C1]1307test { try toUnicodeFail("xn--ghb413k"); } // [B3, C1]
1317test { try toAsciiFail("xn--ghb413k", false); } // [B3, C1]1308test { try toAsciiFail("xn--ghb413k", false); } // [B3, C1]
1318test { try toAsciiFail("xn--ghb413k", true); } // [B3, C1]1309test { try toAsciiFail("xn--ghb413k", true); } // [B3, C1]
1319test { try toUnicodeFail("a\xe3\x80\x82\xe3\x80\x82b"); } // [X4_2]
1320test { try toAsciiFail("a\xe3\x80\x82\xe3\x80\x82b", false); } // [A4_2]1310test { try toAsciiFail("a\xe3\x80\x82\xe3\x80\x82b", false); } // [A4_2]
1321test { try toAsciiFail("a\xe3\x80\x82\xe3\x80\x82b", true); } // [A4_2]1311test { try toAsciiFail("a\xe3\x80\x82\xe3\x80\x82b", true); } // [A4_2]
1322test { try toUnicodeFail("A\xe3\x80\x82\xe3\x80\x82B"); } // [X4_2]
1323test { try toAsciiFail("A\xe3\x80\x82\xe3\x80\x82B", false); } // [A4_2]1312test { try toAsciiFail("A\xe3\x80\x82\xe3\x80\x82B", false); } // [A4_2]
1324test { try toAsciiFail("A\xe3\x80\x82\xe3\x80\x82B", true); } // [A4_2]1313test { try toAsciiFail("A\xe3\x80\x82\xe3\x80\x82B", true); } // [A4_2]
1325test { try toUnicodeFail("a..b"); } // [X4_2]
1326test { try toAsciiFail("a..b", false); } // [A4_2]1314test { try toAsciiFail("a..b", false); } // [A4_2]
1327test { try toAsciiFail("a..b", true); } // [A4_2]1315test { try toAsciiFail("a..b", true); } // [A4_2]
1328test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c"); } // [B1, B3, C1, C2, X4_2]1316test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c"); } // [B1, B3, C1, C2, X4_2]
1329test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c", false); } // [B1, B3, C1, C2, A4_2]1317test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c", false); } // [B1, B3, C1, C2, A4_2]
1330test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c", true); } // [A4_2]1318test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c", true); } // [A4_2]
1331test { try toUnicodeFail("..xn--skb"); } // [X4_2]
1332test { try toAsciiFail("..xn--skb", false); } // [A4_2]1319test { try toAsciiFail("..xn--skb", false); } // [A4_2]
1333test { try toAsciiFail("..xn--skb", true); } // [A4_2]1320test { try toAsciiFail("..xn--skb", true); } // [A4_2]
1334test { try toUnicodeFail("xn--1ug..xn--skb080k"); } // [B1, B3, C1, C2, X4_2]1321test { try toUnicodeFail("xn--1ug..xn--skb080k"); } // [B1, B3, C1, C2, X4_2]
...@@ -4559,7 +4546,6 @@ test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80...@@ -4559,7 +4546,6 @@ test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80
4559test { try toUnicodeFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\x98"); } // [B6, C2, X4_2]4546test { try toUnicodeFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\x98"); } // [B6, C2, X4_2]
4560test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\x98", false); } // [B6, C2, A4_2]4547test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\x98", false); } // [B6, C2, A4_2]
4561test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\x98", true); } // [A4_2]4548test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\x98", true); } // [A4_2]
4562test { try toUnicodeFail("xn--09e4694e..xn--ye6h"); } // [X4_2]
4563test { try toAsciiFail("xn--09e4694e..xn--ye6h", false); } // [A4_2]4549test { try toAsciiFail("xn--09e4694e..xn--ye6h", false); } // [A4_2]
4564test { try toAsciiFail("xn--09e4694e..xn--ye6h", true); } // [A4_2]4550test { try toAsciiFail("xn--09e4694e..xn--ye6h", true); } // [A4_2]
4565test { try toUnicodeFail("xn--09e669a6x8j..xn--ye6h"); } // [B6, C2, X4_2]4551test { try toUnicodeFail("xn--09e669a6x8j..xn--ye6h"); } // [B6, C2, X4_2]
...@@ -5543,7 +5529,6 @@ test { try toAsciiFail("\xe2\x80\x8c.\xe2\x89\xaf", true); } // [A4_2]...@@ -5543,7 +5529,6 @@ test { try toAsciiFail("\xe2\x80\x8c.\xe2\x89\xaf", true); } // [A4_2]
5543test { try toUnicodeFail("\xe2\x80\x8c.>\xcc\xb8"); } // [C1]5529test { try toUnicodeFail("\xe2\x80\x8c.>\xcc\xb8"); } // [C1]
5544test { try toAsciiFail("\xe2\x80\x8c.>\xcc\xb8", false); } // [C1]5530test { try toAsciiFail("\xe2\x80\x8c.>\xcc\xb8", false); } // [C1]
5545test { try toAsciiFail("\xe2\x80\x8c.>\xcc\xb8", true); } // [A4_2]5531test { try toAsciiFail("\xe2\x80\x8c.>\xcc\xb8", true); } // [A4_2]
5546test { try toUnicodeFail(".xn--hdh"); } // [X4_2]
5547test { try toAsciiFail(".xn--hdh", false); } // [A4_2]5532test { try toAsciiFail(".xn--hdh", false); } // [A4_2]
5548test { try toAsciiFail(".xn--hdh", true); } // [A4_2]5533test { try toAsciiFail(".xn--hdh", true); } // [A4_2]
5549test { try toUnicodeFail("xn--0ug.xn--hdh"); } // [C1]5534test { try toUnicodeFail("xn--0ug.xn--hdh"); } // [C1]
...@@ -5957,34 +5942,24 @@ test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82\xc3\x9f", true); }...@@ -5957,34 +5942,24 @@ test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82\xc3\x9f", true); }
5957test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f"); } // [V7]5942test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f"); } // [V7]
5958test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f", false); } // [V7]5943test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f", false); } // [V7]
5959test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f", true); } // [V7]5944test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f", true); } // [V7]
5960test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82\xc3\x9f"); } // [X4_2]
5961test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82\xc3\x9f", false); } // [A4_2]5945test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82\xc3\x9f", false); } // [A4_2]
5962test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82\xc3\x9f", true); } // [A4_2]5946test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82\xc3\x9f", true); } // [A4_2]
5963test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82\xc3\x9f"); } // [X4_2]
5964test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82\xc3\x9f", false); } // [A4_2]5947test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82\xc3\x9f", false); } // [A4_2]
5965test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82\xc3\x9f", true); } // [A4_2]5948test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82\xc3\x9f", true); } // [A4_2]
5966test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82SS"); } // [X4_2]
5967test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82SS", false); } // [A4_2]5949test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82SS", false); } // [A4_2]
5968test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82SS", true); } // [A4_2]5950test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82SS", true); } // [A4_2]
5969test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82SS"); } // [X4_2]
5970test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82SS", false); } // [A4_2]5951test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82SS", false); } // [A4_2]
5971test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82SS", true); } // [A4_2]5952test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82SS", true); } // [A4_2]
5972test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82ss"); } // [X4_2]
5973test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82ss", false); } // [A4_2]5953test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82ss", false); } // [A4_2]
5974test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82ss", true); } // [A4_2]5954test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82ss", true); } // [A4_2]
5975test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82ss"); } // [X4_2]
5976test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82ss", false); } // [A4_2]5955test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82ss", false); } // [A4_2]
5977test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82ss", true); } // [A4_2]5956test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82ss", true); } // [A4_2]
5978test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82Ss"); } // [X4_2]
5979test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82Ss", false); } // [A4_2]5957test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82Ss", false); } // [A4_2]
5980test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82Ss", true); } // [A4_2]5958test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82Ss", true); } // [A4_2]
5981test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82Ss"); } // [X4_2]
5982test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82Ss", false); } // [A4_2]5959test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82Ss", false); } // [A4_2]
5983test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82Ss", true); } // [A4_2]5960test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82Ss", true); } // [A4_2]
5984test { try toUnicodeFail("xn--1-ogo..ss"); } // [X4_2]
5985test { try toAsciiFail("xn--1-ogo..ss", false); } // [A4_2]5961test { try toAsciiFail("xn--1-ogo..ss", false); } // [A4_2]
5986test { try toAsciiFail("xn--1-ogo..ss", true); } // [A4_2]5962test { try toAsciiFail("xn--1-ogo..ss", true); } // [A4_2]
5987test { try toUnicodeFail("xn--1-ogo..xn--zca"); } // [X4_2]
5988test { try toAsciiFail("xn--1-ogo..xn--zca", false); } // [A4_2]5963test { try toAsciiFail("xn--1-ogo..xn--zca", false); } // [A4_2]
5989test { try toAsciiFail("xn--1-ogo..xn--zca", true); } // [A4_2]5964test { try toAsciiFail("xn--1-ogo..xn--zca", true); } // [A4_2]
5990test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82SS"); } // [V7]5965test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82SS"); } // [V7]
...@@ -6047,7 +6022,6 @@ test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xa0", true); } // [A4_2...@@ -6047,7 +6022,6 @@ test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xa0", true); } // [A4_2
6047test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8"); } // [C1]6022test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8"); } // [C1]
6048test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8", false); } // [C1]6023test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8", false); } // [C1]
6049test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8", true); } // [A4_2]6024test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8", true); } // [A4_2]
6050test { try toUnicodeFail(".xn--1ch"); } // [X4_2]
6051test { try toAsciiFail(".xn--1ch", false); } // [A4_2]6025test { try toAsciiFail(".xn--1ch", false); } // [A4_2]
6052test { try toAsciiFail(".xn--1ch", true); } // [A4_2]6026test { try toAsciiFail(".xn--1ch", true); } // [A4_2]
6053test { try toUnicodeFail("xn--0ug.xn--1ch"); } // [C1]6027test { try toUnicodeFail("xn--0ug.xn--1ch"); } // [C1]
...@@ -6827,10 +6801,8 @@ test { try toAsciiFail("xn--y86c.xn----73a596nuh9t", true); } // [B1, B5, B6, V7...@@ -6827,10 +6801,8 @@ test { try toAsciiFail("xn--y86c.xn----73a596nuh9t", true); } // [B1, B5, B6, V7
6827test { try toUnicodeFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } // [V7]6801test { try toUnicodeFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } // [V7]
6828test { try toAsciiFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", false); } // [V7]6802test { try toAsciiFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", false); } // [V7]
6829test { try toAsciiFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", true); } // [V7]6803test { try toAsciiFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", true); } // [V7]
6830test { try toUnicodeFail("\xef\xb8\x85\xe3\x80\x82\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } // [X4_2]
6831test { try toAsciiFail("\xef\xb8\x85\xe3\x80\x82\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", false); } // [A4_2]6804test { try toAsciiFail("\xef\xb8\x85\xe3\x80\x82\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", false); } // [A4_2]
6832test { try toAsciiFail("\xef\xb8\x85\xe3\x80\x82\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", true); } // [A4_2]6805test { try toAsciiFail("\xef\xb8\x85\xe3\x80\x82\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", true); } // [A4_2]
6833test { try toUnicodeFail("..xn--t6f5138v"); } // [X4_2]
6834test { try toAsciiFail("..xn--t6f5138v", false); } // [A4_2]6806test { try toAsciiFail("..xn--t6f5138v", false); } // [A4_2]
6835test { try toAsciiFail("..xn--t6f5138v", true); } // [A4_2]6807test { try toAsciiFail("..xn--t6f5138v", true); } // [A4_2]
6836test { try toUnicodeFail("xn--y86c.xn--t6f5138v"); } // [V7]6808test { try toUnicodeFail("xn--y86c.xn--t6f5138v"); } // [V7]
...@@ -8642,10 +8614,8 @@ test { try toAsciiFail("xn--6fb.xn--gmb469jjf1h", true); } // [C1, V6]...@@ -8642,10 +8614,8 @@ test { try toAsciiFail("xn--6fb.xn--gmb469jjf1h", true); } // [C1, V6]
8642test { try toUnicodeFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91"); } // [V7]8614test { try toUnicodeFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91"); } // [V7]
8643test { try toAsciiFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91", false); } // [V7]8615test { try toAsciiFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91", false); } // [V7]
8644test { try toAsciiFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91", true); } // [V7]8616test { try toAsciiFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91", true); } // [V7]
8645test { try toUnicodeFail("\xe1\xa1\x8c.\xe3\x80\x82\xe1\xa2\x91"); } // [X4_2]
8646test { try toAsciiFail("\xe1\xa1\x8c.\xe3\x80\x82\xe1\xa2\x91", false); } // [A4_2]8617test { try toAsciiFail("\xe1\xa1\x8c.\xe3\x80\x82\xe1\xa2\x91", false); } // [A4_2]
8647test { try toAsciiFail("\xe1\xa1\x8c.\xe3\x80\x82\xe1\xa2\x91", true); } // [A4_2]8618test { try toAsciiFail("\xe1\xa1\x8c.\xe3\x80\x82\xe1\xa2\x91", true); } // [A4_2]
8648test { try toUnicodeFail("xn--c8e..xn--bbf"); } // [X4_2]
8649test { try toAsciiFail("xn--c8e..xn--bbf", false); } // [A4_2]8619test { try toAsciiFail("xn--c8e..xn--bbf", false); } // [A4_2]
8650test { try toAsciiFail("xn--c8e..xn--bbf", true); } // [A4_2]8620test { try toAsciiFail("xn--c8e..xn--bbf", true); } // [A4_2]
8651test { try toUnicodeFail("xn--c8e.xn--bbf9168i"); } // [V7]8621test { try toUnicodeFail("xn--c8e.xn--bbf9168i"); } // [V7]
...@@ -8873,19 +8843,14 @@ test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3\xe2\x89\xaf", true)...@@ -8873,19 +8843,14 @@ test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3\xe2\x89\xaf", true)
8873test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8"); } // [V7]8843test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8"); } // [V7]
8874test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8", false); } // [V7]8844test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8", false); } // [V7]
8875test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8", true); } // [V7]8845test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8", true); } // [V7]
8876test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3\xe2\x89\xaf"); } // [X4_2]
8877test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3\xe2\x89\xaf", false); } // [A4_2]8846test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3\xe2\x89\xaf", false); } // [A4_2]
8878test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3\xe2\x89\xaf", true); } // [A4_2]8847test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3\xe2\x89\xaf", true); } // [A4_2]
8879test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3>\xcc\xb8"); } // [X4_2]
8880test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3>\xcc\xb8", false); } // [A4_2]8848test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3>\xcc\xb8", false); } // [A4_2]
8881test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3>\xcc\xb8", true); } // [A4_2]8849test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3>\xcc\xb8", true); } // [A4_2]
8882test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83>\xcc\xb8"); } // [X4_2]
8883test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83>\xcc\xb8", false); } // [A4_2]8850test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83>\xcc\xb8", false); } // [A4_2]
8884test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83>\xcc\xb8", true); } // [A4_2]8851test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83>\xcc\xb8", true); } // [A4_2]
8885test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83\xe2\x89\xaf"); } // [X4_2]
8886test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83\xe2\x89\xaf", false); } // [A4_2]8852test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83\xe2\x89\xaf", false); } // [A4_2]
8887test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83\xe2\x89\xaf", true); } // [A4_2]8853test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83\xe2\x89\xaf", true); } // [A4_2]
8888test { try toUnicodeFail("..xn--hdh782b"); } // [X4_2]
8889test { try toAsciiFail("..xn--hdh782b", false); } // [A4_2]8854test { try toAsciiFail("..xn--hdh782b", false); } // [A4_2]
8890test { try toAsciiFail("..xn--hdh782b", true); } // [A4_2]8855test { try toAsciiFail("..xn--hdh782b", true); } // [A4_2]
8891test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83>\xcc\xb8"); } // [V7]8856test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83>\xcc\xb8"); } // [V7]
...@@ -9035,7 +9000,6 @@ test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\xbf", true); } //...@@ -9035,7 +9000,6 @@ test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\xbf", true); } //
9035test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d"); } // [B1, C1, C2]9000test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d"); } // [B1, C1, C2]
9036test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d", false); } // [B1, C1, C2]9001test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d", false); } // [B1, C1, C2]
9037test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d", true); } // [A4_2]9002test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d", true); } // [A4_2]
9038test { try toUnicodeFail(".xn--3e6h"); } // [X4_2]
9039test { try toAsciiFail(".xn--3e6h", false); } // [A4_2]9003test { try toAsciiFail(".xn--3e6h", false); } // [A4_2]
9040test { try toAsciiFail(".xn--3e6h", true); } // [A4_2]9004test { try toAsciiFail(".xn--3e6h", true); } // [A4_2]
9041test { try toUnicodeFail("xn--0ugc.xn--3e6h"); } // [B1, C1, C2]9005test { try toUnicodeFail("xn--0ugc.xn--3e6h"); } // [B1, C1, C2]
...@@ -9227,10 +9191,8 @@ test { try toAsciiFail("xn--skb.xn--osd737a", true); } // [V7]...@@ -9227,10 +9191,8 @@ test { try toAsciiFail("xn--skb.xn--osd737a", true); } // [V7]
9227test { try toUnicodeFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81"); } // [V7]9191test { try toUnicodeFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81"); } // [V7]
9228test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81", false); } // [V7]9192test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81", false); } // [V7]
9229test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81", true); } // [V7]9193test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81", true); } // [V7]
9230test { try toUnicodeFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xe3\x80\x827\xe0\xb4\x81"); } // [X4_2]
9231test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xe3\x80\x827\xe0\xb4\x81", false); } // [A4_2]9194test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xe3\x80\x827\xe0\xb4\x81", false); } // [A4_2]
9232test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xe3\x80\x827\xe0\xb4\x81", true); } // [A4_2]9195test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xe3\x80\x827\xe0\xb4\x81", true); } // [A4_2]
9233test { try toUnicodeFail("xn--mbm8237g..xn--7-7hf"); } // [X4_2]
9234test { try toAsciiFail("xn--mbm8237g..xn--7-7hf", false); } // [A4_2]9196test { try toAsciiFail("xn--mbm8237g..xn--7-7hf", false); } // [A4_2]
9235test { try toAsciiFail("xn--mbm8237g..xn--7-7hf", true); } // [A4_2]9197test { try toAsciiFail("xn--mbm8237g..xn--7-7hf", true); } // [A4_2]
9236test { try toUnicodeFail("xn--mbm8237g.xn--7-7hf1526p"); } // [V7]9198test { try toUnicodeFail("xn--mbm8237g.xn--7-7hf1526p"); } // [V7]
...@@ -9824,7 +9786,6 @@ test { try toAsciiFail("\xe2\x80\x8d.j", true); } // [A4_2]...@@ -9824,7 +9786,6 @@ test { try toAsciiFail("\xe2\x80\x8d.j", true); } // [A4_2]
9824test { try toUnicodeFail("\xe2\x80\x8d.J"); } // [C2]9786test { try toUnicodeFail("\xe2\x80\x8d.J"); } // [C2]
9825test { try toAsciiFail("\xe2\x80\x8d.J", false); } // [C2]9787test { try toAsciiFail("\xe2\x80\x8d.J", false); } // [C2]
9826test { try toAsciiFail("\xe2\x80\x8d.J", true); } // [A4_2]9788test { try toAsciiFail("\xe2\x80\x8d.J", true); } // [A4_2]
9827test { try toUnicodeFail(".j"); } // [X4_2]
9828test { try toAsciiFail(".j", false); } // [A4_2]9789test { try toAsciiFail(".j", false); } // [A4_2]
9829test { try toAsciiFail(".j", true); } // [A4_2]9790test { try toAsciiFail(".j", true); } // [A4_2]
9830test { try toUnicodeFail("xn--1ug.j"); } // [C2]9791test { try toUnicodeFail("xn--1ug.j"); } // [C2]
...@@ -10778,7 +10739,6 @@ test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xef\xb8\x92", true); } // [V7,...@@ -10778,7 +10739,6 @@ test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xef\xb8\x92", true); } // [V7,
10778test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82"); } // [C1, X4_2]10739test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82"); } // [C1, X4_2]
10779test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82", false); } // [C1, A4_2]10740test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82", false); } // [C1, A4_2]
10780test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82", true); } // [A4_2]10741test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82", true); } // [A4_2]
10781test { try toUnicodeFail(".."); } // [X4_2]
10782test { try toAsciiFail("..", false); } // [A4_2]10742test { try toAsciiFail("..", false); } // [A4_2]
10783test { try toAsciiFail("..", true); } // [A4_2]10743test { try toAsciiFail("..", true); } // [A4_2]
10784test { try toUnicodeFail("xn--0ug.."); } // [C1, X4_2]10744test { try toUnicodeFail("xn--0ug.."); } // [C1, X4_2]
...@@ -11000,7 +10960,6 @@ test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82\xe2\x89\xaf8\xe2\x80\x8d", t...@@ -11000,7 +10960,6 @@ test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82\xe2\x89\xaf8\xe2\x80\x8d", t
11000test { try toUnicodeFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d"); } // [C2, X4_2]10960test { try toUnicodeFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d"); } // [C2, X4_2]
11001test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d", false); } // [C2, A4_2]10961test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d", false); } // [C2, A4_2]
11002test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d", true); } // [A4_2]10962test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d", true); } // [A4_2]
11003test { try toUnicodeFail("51..xn--8-ogo"); } // [X4_2]
11004test { try toAsciiFail("51..xn--8-ogo", false); } // [A4_2]10963test { try toAsciiFail("51..xn--8-ogo", false); } // [A4_2]
11005test { try toAsciiFail("51..xn--8-ogo", true); } // [A4_2]10964test { try toAsciiFail("51..xn--8-ogo", true); } // [A4_2]
11006test { try toUnicodeFail("xn--51-l1t..xn--8-ugn00i"); } // [C2, X4_2]10965test { try toUnicodeFail("xn--51-l1t..xn--8-ugn00i"); } // [C2, X4_2]
...@@ -13598,7 +13557,6 @@ test { try toAsciiFail("\xe3\x80\x82\xe1\x82\xb6\xcd\xa6.\xe2\x80\x8c", true); }...@@ -13598,7 +13557,6 @@ test { try toAsciiFail("\xe3\x80\x82\xe1\x82\xb6\xcd\xa6.\xe2\x80\x8c", true); }
13598test { try toUnicodeFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c"); } // [C1, X4_2]13557test { try toUnicodeFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c"); } // [C1, X4_2]
13599test { try toAsciiFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c", false); } // [C1, A4_2]13558test { try toAsciiFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c", false); } // [C1, A4_2]
13600test { try toAsciiFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c", true); } // [A4_2]13559test { try toAsciiFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c", true); } // [A4_2]
13601test { try toUnicodeFail(".xn--hva754s."); } // [X4_2]
13602test { try toAsciiFail(".xn--hva754s.", false); } // [A4_2]13560test { try toAsciiFail(".xn--hva754s.", false); } // [A4_2]
13603test { try toAsciiFail(".xn--hva754s.", true); } // [A4_2]13561test { try toAsciiFail(".xn--hva754s.", true); } // [A4_2]
13604test { try toUnicodeFail(".xn--hva754s.xn--0ug"); } // [C1, X4_2]13562test { try toUnicodeFail(".xn--hva754s.xn--0ug"); } // [C1, X4_2]
...@@ -14168,7 +14126,6 @@ test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.\xe2\x89\xaf9", tr...@@ -14168,7 +14126,6 @@ test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.\xe2\x89\xaf9", tr
14168test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89"); } // [C1]14126test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89"); } // [C1]
14169test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89", false); } // [C1]14127test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89", false); } // [C1]
14170test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89", true); } // [A4_2]14128test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89", true); } // [A4_2]
14171test { try toUnicodeFail(".1.xn--9-ogo"); } // [X4_2]
14172test { try toAsciiFail(".1.xn--9-ogo", false); } // [A4_2]14129test { try toAsciiFail(".1.xn--9-ogo", false); } // [A4_2]
14173test { try toAsciiFail(".1.xn--9-ogo", true); } // [A4_2]14130test { try toAsciiFail(".1.xn--9-ogo", true); } // [A4_2]
14174test { try toUnicodeFail("xn--0uga.1.xn--9-ogo"); } // [C1]14131test { try toUnicodeFail("xn--0uga.1.xn--9-ogo"); } // [C1]
...@@ -14933,7 +14890,6 @@ test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x98", true); } // [...@@ -14933,7 +14890,6 @@ test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x98", true); } // [
14933test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba"); } // [B1, C2]14890test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba"); } // [B1, C2]
14934test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba", false); } // [B1, C2]14891test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba", false); } // [B1, C2]
14935test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba", true); } // [A4_2]14892test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba", true); } // [A4_2]
14936test { try toUnicodeFail(".xn--ye6h"); } // [X4_2]
14937test { try toAsciiFail(".xn--ye6h", false); } // [A4_2]14893test { try toAsciiFail(".xn--ye6h", false); } // [A4_2]
14938test { try toAsciiFail(".xn--ye6h", true); } // [A4_2]14894test { try toAsciiFail(".xn--ye6h", true); } // [A4_2]
14939test { try toUnicodeFail("xn--1ug.xn--ye6h"); } // [B1, C2]14895test { try toUnicodeFail("xn--1ug.xn--ye6h"); } // [B1, C2]
...@@ -15857,7 +15813,6 @@ test { try toAsciiFail("\xe2\x80\x8d.F", true); } // [A4_2]...@@ -15857,7 +15813,6 @@ test { try toAsciiFail("\xe2\x80\x8d.F", true); } // [A4_2]
15857test { try toUnicodeFail("\xe2\x80\x8d.f"); } // [C2]15813test { try toUnicodeFail("\xe2\x80\x8d.f"); } // [C2]
15858test { try toAsciiFail("\xe2\x80\x8d.f", false); } // [C2]15814test { try toAsciiFail("\xe2\x80\x8d.f", false); } // [C2]
15859test { try toAsciiFail("\xe2\x80\x8d.f", true); } // [A4_2]15815test { try toAsciiFail("\xe2\x80\x8d.f", true); } // [A4_2]
15860test { try toUnicodeFail(".f"); } // [X4_2]
15861test { try toAsciiFail(".f", false); } // [A4_2]15816test { try toAsciiFail(".f", false); } // [A4_2]
15862test { try toAsciiFail(".f", true); } // [A4_2]15817test { try toAsciiFail(".f", true); } // [A4_2]
15863test { try toUnicodeFail("xn--1ug.f"); } // [C2]15818test { try toUnicodeFail("xn--1ug.f"); } // [C2]
...@@ -16610,7 +16565,6 @@ test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82ss\x...@@ -16610,7 +16565,6 @@ test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82ss\x
16610test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83"); } // [C1, C2]16565test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83"); } // [C1, C2]
16611test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83", false); } // [C1, C2]16566test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83", false); } // [C1, C2]
16612test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83", true); } // [A4_2]16567test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83", true); } // [A4_2]
16613test { try toUnicodeFail(".xn--ss-bh7o"); } // [X4_2]
16614test { try toAsciiFail(".xn--ss-bh7o", false); } // [A4_2]16568test { try toAsciiFail(".xn--ss-bh7o", false); } // [A4_2]
16615test { try toAsciiFail(".xn--ss-bh7o", true); } // [A4_2]16569test { try toAsciiFail(".xn--ss-bh7o", true); } // [A4_2]
16616test { try toUnicodeFail("xn--0ugb.xn--ss-bh7o"); } // [C1, C2]16570test { try toUnicodeFail("xn--0ugb.xn--ss-bh7o"); } // [C1, C2]
...@@ -16646,7 +16600,6 @@ test { try toAsciiFail("\xef\xb8\x92\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa...@@ -16646,7 +16600,6 @@ test { try toAsciiFail("\xef\xb8\x92\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa
16646test { try toUnicodeFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } // [C1, X4_2]16600test { try toUnicodeFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } // [C1, X4_2]
16647test { try toAsciiFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", false); } // [C1, A4_2]16601test { try toAsciiFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", false); } // [C1, A4_2]
16648test { try toAsciiFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", true); } // [A4_2]16602test { try toAsciiFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", true); } // [A4_2]
16649test { try toUnicodeFail(".xn--qekw60d.xn--gd9a"); } // [X4_2]
16650test { try toAsciiFail(".xn--qekw60d.xn--gd9a", false); } // [A4_2]16603test { try toAsciiFail(".xn--qekw60d.xn--gd9a", false); } // [A4_2]
16651test { try toAsciiFail(".xn--qekw60d.xn--gd9a", true); } // [A4_2]16604test { try toAsciiFail(".xn--qekw60d.xn--gd9a", true); } // [A4_2]
16652test { try toUnicodeFail(".xn--0ug287dj0o.xn--gd9a"); } // [C1, X4_2]16605test { try toUnicodeFail(".xn--0ug287dj0o.xn--gd9a"); } // [C1, X4_2]
...@@ -16703,10 +16656,8 @@ test { try toAsciiFail("xn--0ug78ol75wzcx4i.xn--jof95xex98m", true); } // [B1, C...@@ -16703,10 +16656,8 @@ test { try toAsciiFail("xn--0ug78ol75wzcx4i.xn--jof95xex98m", true); } // [B1, C
16703test { try toUnicodeFail("\xf0\x9d\x85\xb5\xef\xbd\xa1\xf0\x9d\x9f\xab\xf0\x9e\x80\x88\xe4\xac\xba\xe2\x92\x88"); } // [V7, X4_2]16656test { try toUnicodeFail("\xf0\x9d\x85\xb5\xef\xbd\xa1\xf0\x9d\x9f\xab\xf0\x9e\x80\x88\xe4\xac\xba\xe2\x92\x88"); } // [V7, X4_2]
16704test { try toAsciiFail("\xf0\x9d\x85\xb5\xef\xbd\xa1\xf0\x9d\x9f\xab\xf0\x9e\x80\x88\xe4\xac\xba\xe2\x92\x88", false); } // [V7, A4_2]16657test { try toAsciiFail("\xf0\x9d\x85\xb5\xef\xbd\xa1\xf0\x9d\x9f\xab\xf0\x9e\x80\x88\xe4\xac\xba\xe2\x92\x88", false); } // [V7, A4_2]
16705test { try toAsciiFail("\xf0\x9d\x85\xb5\xef\xbd\xa1\xf0\x9d\x9f\xab\xf0\x9e\x80\x88\xe4\xac\xba\xe2\x92\x88", true); } // [V7, A4_2]16658test { try toAsciiFail("\xf0\x9d\x85\xb5\xef\xbd\xa1\xf0\x9d\x9f\xab\xf0\x9e\x80\x88\xe4\xac\xba\xe2\x92\x88", true); } // [V7, A4_2]
16706test { try toUnicodeFail("\xf0\x9d\x85\xb5\xe3\x80\x829\xf0\x9e\x80\x88\xe4\xac\xba1."); } // [X4_2]
16707test { try toAsciiFail("\xf0\x9d\x85\xb5\xe3\x80\x829\xf0\x9e\x80\x88\xe4\xac\xba1.", false); } // [A4_2]16659test { try toAsciiFail("\xf0\x9d\x85\xb5\xe3\x80\x829\xf0\x9e\x80\x88\xe4\xac\xba1.", false); } // [A4_2]
16708test { try toAsciiFail("\xf0\x9d\x85\xb5\xe3\x80\x829\xf0\x9e\x80\x88\xe4\xac\xba1.", true); } // [A4_2]16660test { try toAsciiFail("\xf0\x9d\x85\xb5\xe3\x80\x829\xf0\x9e\x80\x88\xe4\xac\xba1.", true); } // [A4_2]
16709test { try toUnicodeFail(".xn--91-030c1650n."); } // [X4_2]
16710test { try toAsciiFail(".xn--91-030c1650n.", false); } // [A4_2]16661test { try toAsciiFail(".xn--91-030c1650n.", false); } // [A4_2]
16711test { try toAsciiFail(".xn--91-030c1650n.", true); } // [A4_2]16662test { try toAsciiFail(".xn--91-030c1650n.", true); } // [A4_2]
16712test { try toUnicodeFail(".xn--9-ecp936non25a"); } // [V7, X4_2]16663test { try toUnicodeFail(".xn--9-ecp936non25a"); } // [V7, X4_2]
...@@ -17870,7 +17821,6 @@ test { try toAsciiFail("xn----f3j6s87156i.xn--nfb035hoo2p", true); } // [B1, V3,...@@ -17870,7 +17821,6 @@ test { try toAsciiFail("xn----f3j6s87156i.xn--nfb035hoo2p", true); } // [B1, V3,
17870test { try toUnicodeFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96"); } // [B1, C2]17821test { try toUnicodeFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96"); } // [B1, C2]
17871test { try toAsciiFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96", false); } // [B1, C2]17822test { try toAsciiFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96", false); } // [B1, C2]
17872test { try toAsciiFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96", true); } // [A4_2]17823test { try toAsciiFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96", true); } // [A4_2]
17873test { try toUnicodeFail(".xn--hcb32bni"); } // [X4_2]
17874test { try toAsciiFail(".xn--hcb32bni", false); } // [A4_2]17824test { try toAsciiFail(".xn--hcb32bni", false); } // [A4_2]
17875test { try toAsciiFail(".xn--hcb32bni", true); } // [A4_2]17825test { try toAsciiFail(".xn--hcb32bni", true); } // [A4_2]
17876test { try toUnicodeFail("xn--1ug.xn--hcb32bni"); } // [B1, C2]17826test { try toUnicodeFail("xn--1ug.xn--hcb32bni"); } // [B1, C2]