authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-20 23:08:53 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-20 23:08:53 -08:00
log4135860076538f7718ec2a6dd8e06c40c0449c11
tree056bfc1e1023a088133a66d4bdcbb8af3d779364
parentf592a52d3d49814e12d9311974bdc4d844c7c510

pass toAsciiFail

All 19176 tests passed.

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

generate.ts+2-2
......@@ -243,8 +243,8 @@ fn toAsciiFail(
243243 if (toAsciiTStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiT)}", true); }\n`);
244244
245245 if (toUnicodeStatus !== "[]") w.write(`test { try toUnicodeFail("${E(source)}"); } // ${toUnicodeStatus}\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`);
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`);
248248 }
249249
250250 w.flush();
idna.zig+1
......@@ -41,6 +41,7 @@ pub fn ToASCII(
4141
4242 if (VerifyDnsLength) {
4343 // 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 > 253) return error.IDNAFailure;
4445 // 2. The length of each label is from 1 to 63.
4546 for (map.lengths.items, 0..) |l, n| {
4647 if (n % 2 == 1) continue;
testv2.zig+11554
......@@ -69,15 +69,35 @@ test { try toUnicodePass("xn--fa-hia.de", "fa\xc3\x9f.de"); }
6969test { try toAsciiPass("xn--fa-hia.de", "xn--fa-hia.de", false); }
7070test { try toAsciiPass("xn--fa-hia.de", "xn--fa-hia.de", true); }
7171test { try toUnicodeFail("\xc3\xa0\xd7\x90"); } // [B5, B6]
72test { try toAsciiFail("\xc3\xa0\xd7\x90", false); } // [B5, B6]
73test { try toAsciiFail("\xc3\xa0\xd7\x90", true); } // [B5, B6]
7274test { try toUnicodeFail("a\xcc\x80\xd7\x90"); } // [B5, B6]
75test { try toAsciiFail("a\xcc\x80\xd7\x90", false); } // [B5, B6]
76test { try toAsciiFail("a\xcc\x80\xd7\x90", true); } // [B5, B6]
7377test { try toUnicodeFail("A\xcc\x80\xd7\x90"); } // [B5, B6]
78test { try toAsciiFail("A\xcc\x80\xd7\x90", false); } // [B5, B6]
79test { try toAsciiFail("A\xcc\x80\xd7\x90", true); } // [B5, B6]
7480test { try toUnicodeFail("\xc3\x80\xd7\x90"); } // [B5, B6]
81test { try toAsciiFail("\xc3\x80\xd7\x90", false); } // [B5, B6]
82test { try toAsciiFail("\xc3\x80\xd7\x90", true); } // [B5, B6]
7583test { try toUnicodeFail("xn--0ca24w"); } // [B5, B6]
84test { try toAsciiFail("xn--0ca24w", false); } // [B5, B6]
85test { try toAsciiFail("xn--0ca24w", true); } // [B5, B6]
7686test { try toUnicodeFail("0\xc3\xa0.\xd7\x90"); } // [B1]
87test { try toAsciiFail("0\xc3\xa0.\xd7\x90", false); } // [B1]
88test { try toAsciiFail("0\xc3\xa0.\xd7\x90", true); } // [B1]
7789test { try toUnicodeFail("0a\xcc\x80.\xd7\x90"); } // [B1]
90test { try toAsciiFail("0a\xcc\x80.\xd7\x90", false); } // [B1]
91test { try toAsciiFail("0a\xcc\x80.\xd7\x90", true); } // [B1]
7892test { try toUnicodeFail("0A\xcc\x80.\xd7\x90"); } // [B1]
93test { try toAsciiFail("0A\xcc\x80.\xd7\x90", false); } // [B1]
94test { try toAsciiFail("0A\xcc\x80.\xd7\x90", true); } // [B1]
7995test { try toUnicodeFail("0\xc3\x80.\xd7\x90"); } // [B1]
96test { try toAsciiFail("0\xc3\x80.\xd7\x90", false); } // [B1]
97test { try toAsciiFail("0\xc3\x80.\xd7\x90", true); } // [B1]
8098test { try toUnicodeFail("xn--0-sfa.xn--4db"); } // [B1]
99test { try toAsciiFail("xn--0-sfa.xn--4db", false); } // [B1]
100test { try toAsciiFail("xn--0-sfa.xn--4db", true); } // [B1]
81101test { try toUnicodePass("\xc3\xa0.\xd7\x90\xcc\x88", "\xc3\xa0.\xd7\x90\xcc\x88"); }
82102test { try toAsciiPass("\xc3\xa0.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", false); }
83103test { try toAsciiPass("\xc3\xa0.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", true); }
......@@ -94,22 +114,56 @@ test { try toUnicodePass("xn--0ca.xn--ssa73l", "\xc3\xa0.\xd7\x90\xcc\x88"); }
94114test { try toAsciiPass("xn--0ca.xn--ssa73l", "xn--0ca.xn--ssa73l", false); }
95115test { try toAsciiPass("xn--0ca.xn--ssa73l", "xn--0ca.xn--ssa73l", true); }
96116test { try toUnicodeFail("\xc3\xa0.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4]
117test { try toAsciiFail("\xc3\xa0.\xd7\x900\xd9\xa0\xd7\x90", false); } // [B4]
118test { try toAsciiFail("\xc3\xa0.\xd7\x900\xd9\xa0\xd7\x90", true); } // [B4]
97119test { try toUnicodeFail("a\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4]
120test { try toAsciiFail("a\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90", false); } // [B4]
121test { try toAsciiFail("a\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90", true); } // [B4]
98122test { try toUnicodeFail("A\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4]
123test { try toAsciiFail("A\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90", false); } // [B4]
124test { try toAsciiFail("A\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90", true); } // [B4]
99125test { try toUnicodeFail("\xc3\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4]
126test { try toAsciiFail("\xc3\x80.\xd7\x900\xd9\xa0\xd7\x90", false); } // [B4]
127test { try toAsciiFail("\xc3\x80.\xd7\x900\xd9\xa0\xd7\x90", true); } // [B4]
100128test { try toUnicodeFail("xn--0ca.xn--0-zhcb98c"); } // [B4]
129test { try toAsciiFail("xn--0ca.xn--0-zhcb98c", false); } // [B4]
130test { try toAsciiFail("xn--0ca.xn--0-zhcb98c", true); } // [B4]
101131test { try toUnicodeFail("\xcc\x88.\xd7\x90"); } // [B1, V6]
132test { try toAsciiFail("\xcc\x88.\xd7\x90", false); } // [B1, V6]
133test { try toAsciiFail("\xcc\x88.\xd7\x90", true); } // [B1, V6]
102134test { try toUnicodeFail("xn--ssa.xn--4db"); } // [B1, V6]
135test { try toAsciiFail("xn--ssa.xn--4db", false); } // [B1, V6]
136test { try toAsciiFail("xn--ssa.xn--4db", true); } // [B1, V6]
103137test { try toUnicodeFail("\xc3\xa0.\xd7\x900\xd9\xa0"); } // [B4]
138test { try toAsciiFail("\xc3\xa0.\xd7\x900\xd9\xa0", false); } // [B4]
139test { try toAsciiFail("\xc3\xa0.\xd7\x900\xd9\xa0", true); } // [B4]
104140test { try toUnicodeFail("a\xcc\x80.\xd7\x900\xd9\xa0"); } // [B4]
141test { try toAsciiFail("a\xcc\x80.\xd7\x900\xd9\xa0", false); } // [B4]
142test { try toAsciiFail("a\xcc\x80.\xd7\x900\xd9\xa0", true); } // [B4]
105143test { try toUnicodeFail("A\xcc\x80.\xd7\x900\xd9\xa0"); } // [B4]
144test { try toAsciiFail("A\xcc\x80.\xd7\x900\xd9\xa0", false); } // [B4]
145test { try toAsciiFail("A\xcc\x80.\xd7\x900\xd9\xa0", true); } // [B4]
106146test { try toUnicodeFail("\xc3\x80.\xd7\x900\xd9\xa0"); } // [B4]
147test { try toAsciiFail("\xc3\x80.\xd7\x900\xd9\xa0", false); } // [B4]
148test { try toAsciiFail("\xc3\x80.\xd7\x900\xd9\xa0", true); } // [B4]
107149test { try toUnicodeFail("xn--0ca.xn--0-zhc74b"); } // [B4]
150test { try toAsciiFail("xn--0ca.xn--0-zhc74b", false); } // [B4]
151test { try toAsciiFail("xn--0ca.xn--0-zhc74b", true); } // [B4]
108152test { try toUnicodeFail("\xc3\xa0\xcb\x87.\xd7\x90"); } // [B6]
153test { try toAsciiFail("\xc3\xa0\xcb\x87.\xd7\x90", false); } // [B6]
154test { try toAsciiFail("\xc3\xa0\xcb\x87.\xd7\x90", true); } // [B6]
109155test { try toUnicodeFail("a\xcc\x80\xcb\x87.\xd7\x90"); } // [B6]
156test { try toAsciiFail("a\xcc\x80\xcb\x87.\xd7\x90", false); } // [B6]
157test { try toAsciiFail("a\xcc\x80\xcb\x87.\xd7\x90", true); } // [B6]
110158test { try toUnicodeFail("A\xcc\x80\xcb\x87.\xd7\x90"); } // [B6]
159test { try toAsciiFail("A\xcc\x80\xcb\x87.\xd7\x90", false); } // [B6]
160test { try toAsciiFail("A\xcc\x80\xcb\x87.\xd7\x90", true); } // [B6]
111161test { try toUnicodeFail("\xc3\x80\xcb\x87.\xd7\x90"); } // [B6]
162test { try toAsciiFail("\xc3\x80\xcb\x87.\xd7\x90", false); } // [B6]
163test { try toAsciiFail("\xc3\x80\xcb\x87.\xd7\x90", true); } // [B6]
112164test { try toUnicodeFail("xn--0ca88g.xn--4db"); } // [B6]
165test { try toAsciiFail("xn--0ca88g.xn--4db", false); } // [B6]
166test { try toAsciiFail("xn--0ca88g.xn--4db", true); } // [B6]
113167test { try toUnicodePass("\xc3\xa0\xcc\x88.\xd7\x90", "\xc3\xa0\xcc\x88.\xd7\x90"); }
114168test { try toAsciiPass("\xc3\xa0\xcc\x88.\xd7\x90", "xn--0ca81i.xn--4db", false); }
115169test { try toAsciiPass("\xc3\xa0\xcc\x88.\xd7\x90", "xn--0ca81i.xn--4db", true); }
......@@ -127,14 +181,19 @@ test { try toAsciiPass("xn--0ca81i.xn--4db", "xn--0ca81i.xn--4db", false); }
127181test { try toAsciiPass("xn--0ca81i.xn--4db", "xn--0ca81i.xn--4db", true); }
128182test { try toAsciiPass("a\xe2\x80\x8cb", "ab", true); }
129183test { try toUnicodeFail("a\xe2\x80\x8cb"); } // [C1]
184test { try toAsciiFail("a\xe2\x80\x8cb", false); } // [C1]
130185test { try toAsciiPass("A\xe2\x80\x8cB", "ab", true); }
131186test { try toUnicodeFail("A\xe2\x80\x8cB"); } // [C1]
187test { try toAsciiFail("A\xe2\x80\x8cB", false); } // [C1]
132188test { try toAsciiPass("A\xe2\x80\x8cb", "ab", true); }
133189test { try toUnicodeFail("A\xe2\x80\x8cb"); } // [C1]
190test { try toAsciiFail("A\xe2\x80\x8cb", false); } // [C1]
134191test { try toUnicodePass("ab", "ab"); }
135192test { try toAsciiPass("ab", "ab", false); }
136193test { try toAsciiPass("ab", "ab", true); }
137194test { try toUnicodeFail("xn--ab-j1t"); } // [C1]
195test { try toAsciiFail("xn--ab-j1t", false); } // [C1]
196test { try toAsciiFail("xn--ab-j1t", true); } // [C1]
138197test { try toUnicodePass("a\xe0\xa5\x8d\xe2\x80\x8cb", "a\xe0\xa5\x8d\xe2\x80\x8cb"); }
139198test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8cb", "xn--ab-fsf604u", false); }
140199test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8cb", "xn--ab-fsf", true); }
......@@ -160,25 +219,56 @@ test { try toUnicodePass("xn--ab-fsf604u", "a\xe0\xa5\x8d\xe2\x80\x8cb"); }
160219test { try toAsciiPass("xn--ab-fsf604u", "xn--ab-fsf604u", false); }
161220test { try toAsciiPass("xn--ab-fsf604u", "xn--ab-fsf604u", true); }
162221test { try toUnicodeFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B1, C1, V6]
222test { try toAsciiFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b", false); } // [B1, C1, V6]
223test { try toAsciiFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b", true); } // [B1, V6]
163224test { try toUnicodeFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B"); } // [B1, C1, V6]
225test { try toAsciiFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B", false); } // [B1, C1, V6]
226test { try toAsciiFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B", true); } // [B1, V6]
164227test { try toUnicodeFail("xn--b-bcba413a"); } // [B1, V6]
228test { try toAsciiFail("xn--b-bcba413a", false); } // [B1, V6]
229test { try toAsciiFail("xn--b-bcba413a", true); } // [B1, V6]
165230test { try toUnicodeFail("xn--b-bcba413a2w8b"); } // [B1, C1, V6]
231test { try toAsciiFail("xn--b-bcba413a2w8b", false); } // [B1, C1, V6]
232test { try toAsciiFail("xn--b-bcba413a2w8b", true); } // [B1, C1, V6]
166233test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88"); } // [B5, B6, C1]
234test { try toAsciiFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88", false); } // [B5, B6, C1]
235test { try toAsciiFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88", true); } // [B5, B6]
167236test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88"); } // [B5, B6, C1]
237test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88", false); } // [B5, B6, C1]
238test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88", true); } // [B5, B6]
168239test { try toUnicodeFail("xn--a-ccba213a"); } // [B5, B6]
240test { try toAsciiFail("xn--a-ccba213a", false); } // [B5, B6]
241test { try toAsciiFail("xn--a-ccba213a", true); } // [B5, B6]
169242test { try toUnicodeFail("xn--a-ccba213a5w8b"); } // [B5, B6, C1]
243test { try toAsciiFail("xn--a-ccba213a5w8b", false); } // [B5, B6, C1]
244test { try toAsciiFail("xn--a-ccba213a5w8b", true); } // [B5, B6, C1]
170245test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B5]
246test { try toAsciiFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b", false); } // [B5]
247test { try toAsciiFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b", true); } // [B5]
171248test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B"); } // [B5]
249test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B", false); } // [B5]
250test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B", true); } // [B5]
172251test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B5]
252test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b", false); } // [B5]
253test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b", true); } // [B5]
173254test { try toUnicodeFail("xn--ab-uuba211bca"); } // [B5]
255test { try toAsciiFail("xn--ab-uuba211bca", false); } // [B5]
256test { try toAsciiFail("xn--ab-uuba211bca", true); } // [B5]
174257test { try toUnicodeFail("xn--ab-uuba211bca8057b"); } // [B5]
258test { try toAsciiFail("xn--ab-uuba211bca8057b", false); } // [B5]
259test { try toAsciiFail("xn--ab-uuba211bca8057b", true); } // [B5]
175260test { try toAsciiPass("a\xe2\x80\x8db", "ab", true); }
176261test { try toUnicodeFail("a\xe2\x80\x8db"); } // [C2]
262test { try toAsciiFail("a\xe2\x80\x8db", false); } // [C2]
177263test { try toAsciiPass("A\xe2\x80\x8dB", "ab", true); }
178264test { try toUnicodeFail("A\xe2\x80\x8dB"); } // [C2]
265test { try toAsciiFail("A\xe2\x80\x8dB", false); } // [C2]
179266test { try toAsciiPass("A\xe2\x80\x8db", "ab", true); }
180267test { try toUnicodeFail("A\xe2\x80\x8db"); } // [C2]
268test { try toAsciiFail("A\xe2\x80\x8db", false); } // [C2]
181269test { try toUnicodeFail("xn--ab-m1t"); } // [C2]
270test { try toAsciiFail("xn--ab-m1t", false); } // [C2]
271test { try toAsciiFail("xn--ab-m1t", true); } // [C2]
182272test { try toUnicodePass("a\xe0\xa5\x8d\xe2\x80\x8db", "a\xe0\xa5\x8d\xe2\x80\x8db"); }
183273test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf014u", false); }
184274test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf", true); }
......@@ -192,15 +282,35 @@ test { try toUnicodePass("xn--ab-fsf014u", "a\xe0\xa5\x8d\xe2\x80\x8db"); }
192282test { try toAsciiPass("xn--ab-fsf014u", "xn--ab-fsf014u", false); }
193283test { try toAsciiPass("xn--ab-fsf014u", "xn--ab-fsf014u", true); }
194284test { try toUnicodeFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B1, C2, V6]
285test { try toAsciiFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b", false); } // [B1, C2, V6]
286test { try toAsciiFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b", true); } // [B1, V6]
195287test { try toUnicodeFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B"); } // [B1, C2, V6]
288test { try toAsciiFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B", false); } // [B1, C2, V6]
289test { try toAsciiFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B", true); } // [B1, V6]
196290test { try toUnicodeFail("xn--b-bcba413a7w8b"); } // [B1, C2, V6]
291test { try toAsciiFail("xn--b-bcba413a7w8b", false); } // [B1, C2, V6]
292test { try toAsciiFail("xn--b-bcba413a7w8b", true); } // [B1, C2, V6]
197293test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88"); } // [B5, B6, C2]
294test { try toAsciiFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88", false); } // [B5, B6, C2]
295test { try toAsciiFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88", true); } // [B5, B6]
198296test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88"); } // [B5, B6, C2]
297test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88", false); } // [B5, B6, C2]
298test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88", true); } // [B5, B6]
199299test { try toUnicodeFail("xn--a-ccba213abx8b"); } // [B5, B6, C2]
300test { try toAsciiFail("xn--a-ccba213abx8b", false); } // [B5, B6, C2]
301test { try toAsciiFail("xn--a-ccba213abx8b", true); } // [B5, B6, C2]
200302test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B5, C2]
303test { try toAsciiFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b", false); } // [B5, C2]
304test { try toAsciiFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b", true); } // [B5]
201305test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B"); } // [B5, C2]
306test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B", false); } // [B5, C2]
307test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B", true); } // [B5]
202308test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B5, C2]
309test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b", false); } // [B5, C2]
310test { try toAsciiFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b", true); } // [B5]
203311test { try toUnicodeFail("xn--ab-uuba211bca5157b"); } // [B5, C2]
312test { try toAsciiFail("xn--ab-uuba211bca5157b", false); } // [B5, C2]
313test { try toAsciiFail("xn--ab-uuba211bca5157b", true); } // [B5, C2]
204314test { try toUnicodePass("\xc2\xa1", "\xc2\xa1"); }
205315test { try toAsciiPass("\xc2\xa1", "xn--7a", false); }
206316test { try toAsciiPass("\xc2\xa1", "xn--7a", true); }
......@@ -214,8 +324,14 @@ test { try toUnicodePass("xn--pkf", "\xe1\xa7\x9a"); }
214324test { try toAsciiPass("xn--pkf", "xn--pkf", false); }
215325test { try toAsciiPass("xn--pkf", "xn--pkf", true); }
216326test { try toUnicodeFail("\"\""); } // [X4_2]
327test { try toAsciiFail("\"\"", false); } // [A4_1, A4_2]
328test { try toAsciiFail("\"\"", true); } // [A4_1, A4_2]
217329test { try toUnicodeFail("\xe3\x80\x82"); } // [X4_2]
330test { try toAsciiFail("\xe3\x80\x82", false); } // [A4_1, A4_2]
331test { try toAsciiFail("\xe3\x80\x82", true); } // [A4_1, A4_2]
218332test { try toUnicodeFail("."); } // [X4_2]
333test { try toAsciiFail(".", false); } // [A4_1, A4_2]
334test { try toAsciiFail(".", true); } // [A4_1, A4_2]
219335test { try toUnicodePass("\xea\xad\xa0", "\xea\xad\xa0"); }
220336test { try toAsciiPass("\xea\xad\xa0", "xn--3y9a", false); }
221337test { try toAsciiPass("\xea\xad\xa0", "xn--3y9a", true); }
......@@ -223,10 +339,20 @@ test { try toUnicodePass("xn--3y9a", "\xea\xad\xa0"); }
223339test { try toAsciiPass("xn--3y9a", "xn--3y9a", false); }
224340test { try toAsciiPass("xn--3y9a", "xn--3y9a", true); }
225341test { try toUnicodePass("1234567890\xc3\xa41234567890123456789012345678901234567890123456", "1234567890\xc3\xa41234567890123456789012345678901234567890123456"); }
342test { try toAsciiFail("1234567890\xc3\xa41234567890123456789012345678901234567890123456", false); } // [A4_2]
343test { try toAsciiFail("1234567890\xc3\xa41234567890123456789012345678901234567890123456", true); } // [A4_2]
226344test { try toUnicodePass("1234567890a\xcc\x881234567890123456789012345678901234567890123456", "1234567890\xc3\xa41234567890123456789012345678901234567890123456"); }
345test { try toAsciiFail("1234567890a\xcc\x881234567890123456789012345678901234567890123456", false); } // [A4_2]
346test { try toAsciiFail("1234567890a\xcc\x881234567890123456789012345678901234567890123456", true); } // [A4_2]
227347test { try toUnicodePass("1234567890A\xcc\x881234567890123456789012345678901234567890123456", "1234567890\xc3\xa41234567890123456789012345678901234567890123456"); }
348test { try toAsciiFail("1234567890A\xcc\x881234567890123456789012345678901234567890123456", false); } // [A4_2]
349test { try toAsciiFail("1234567890A\xcc\x881234567890123456789012345678901234567890123456", true); } // [A4_2]
228350test { try toUnicodePass("1234567890\xc3\x841234567890123456789012345678901234567890123456", "1234567890\xc3\xa41234567890123456789012345678901234567890123456"); }
351test { try toAsciiFail("1234567890\xc3\x841234567890123456789012345678901234567890123456", false); } // [A4_2]
352test { try toAsciiFail("1234567890\xc3\x841234567890123456789012345678901234567890123456", true); } // [A4_2]
229353test { try toUnicodePass("xn--12345678901234567890123456789012345678901234567890123456-fxe", "1234567890\xc3\xa41234567890123456789012345678901234567890123456"); }
354test { try toAsciiFail("xn--12345678901234567890123456789012345678901234567890123456-fxe", false); } // [A4_2]
355test { try toAsciiFail("xn--12345678901234567890123456789012345678901234567890123456-fxe", true); } // [A4_2]
230356test { try toUnicodePass("www.eXample.cOm", "www.example.com"); }
231357test { try toAsciiPass("www.eXample.cOm", "www.example.com", false); }
232358test { try toAsciiPass("www.eXample.cOm", "www.example.com", true); }
......@@ -405,12 +531,26 @@ test { try toUnicodePass("\xd9\x86\xd8\xa7\xd9\x85\xd9\x87\xd8\xa7\xdb\x8c.COM",
405531test { try toAsciiPass("\xd9\x86\xd8\xa7\xd9\x85\xd9\x87\xd8\xa7\xdb\x8c.COM", "xn--mgba3gch31f.com", false); }
406532test { try toAsciiPass("\xd9\x86\xd8\xa7\xd9\x85\xd9\x87\xd8\xa7\xdb\x8c.COM", "xn--mgba3gch31f.com", true); }
407533test { try toUnicodePass("a.b\xef\xbc\x8ec\xe3\x80\x82d\xef\xbd\xa1", "a.b.c.d."); }
534test { try toAsciiFail("a.b\xef\xbc\x8ec\xe3\x80\x82d\xef\xbd\xa1", false); } // [A4_2]
535test { try toAsciiFail("a.b\xef\xbc\x8ec\xe3\x80\x82d\xef\xbd\xa1", true); } // [A4_2]
408536test { try toUnicodePass("a.b.c\xe3\x80\x82d\xe3\x80\x82", "a.b.c.d."); }
537test { try toAsciiFail("a.b.c\xe3\x80\x82d\xe3\x80\x82", false); } // [A4_2]
538test { try toAsciiFail("a.b.c\xe3\x80\x82d\xe3\x80\x82", true); } // [A4_2]
409539test { try toUnicodePass("A.B.C\xe3\x80\x82D\xe3\x80\x82", "a.b.c.d."); }
540test { try toAsciiFail("A.B.C\xe3\x80\x82D\xe3\x80\x82", false); } // [A4_2]
541test { try toAsciiFail("A.B.C\xe3\x80\x82D\xe3\x80\x82", true); } // [A4_2]
410542test { try toUnicodePass("A.b.c\xe3\x80\x82D\xe3\x80\x82", "a.b.c.d."); }
543test { try toAsciiFail("A.b.c\xe3\x80\x82D\xe3\x80\x82", false); } // [A4_2]
544test { try toAsciiFail("A.b.c\xe3\x80\x82D\xe3\x80\x82", true); } // [A4_2]
411545test { try toUnicodePass("a.b.c.d.", "a.b.c.d."); }
546test { try toAsciiFail("a.b.c.d.", false); } // [A4_2]
547test { try toAsciiFail("a.b.c.d.", true); } // [A4_2]
412548test { try toUnicodePass("A.B\xef\xbc\x8eC\xe3\x80\x82D\xef\xbd\xa1", "a.b.c.d."); }
549test { try toAsciiFail("A.B\xef\xbc\x8eC\xe3\x80\x82D\xef\xbd\xa1", false); } // [A4_2]
550test { try toAsciiFail("A.B\xef\xbc\x8eC\xe3\x80\x82D\xef\xbd\xa1", true); } // [A4_2]
413551test { try toUnicodePass("A.b\xef\xbc\x8ec\xe3\x80\x82D\xef\xbd\xa1", "a.b.c.d."); }
552test { try toAsciiFail("A.b\xef\xbc\x8ec\xe3\x80\x82D\xef\xbd\xa1", false); } // [A4_2]
553test { try toAsciiFail("A.b\xef\xbc\x8ec\xe3\x80\x82D\xef\xbd\xa1", true); } // [A4_2]
414554test { try toUnicodePass("U\xcc\x88.xn--tda", "\xc3\xbc.\xc3\xbc"); }
415555test { try toAsciiPass("U\xcc\x88.xn--tda", "xn--tda.xn--tda", false); }
416556test { try toAsciiPass("U\xcc\x88.xn--tda", "xn--tda.xn--tda", true); }
......@@ -457,25 +597,59 @@ test { try toUnicodePass("U\xcc\x88.u\xcc\x88", "\xc3\xbc.\xc3\xbc"); }
457597test { try toAsciiPass("U\xcc\x88.u\xcc\x88", "xn--tda.xn--tda", false); }
458598test { try toAsciiPass("U\xcc\x88.u\xcc\x88", "xn--tda.xn--tda", true); }
459599test { try toUnicodeFail("xn--u-ccb"); } // [V1]
600test { try toAsciiFail("xn--u-ccb", false); } // [V1]
601test { try toAsciiFail("xn--u-ccb", true); } // [V1]
460602test { try toUnicodeFail("a\xe2\x92\x88com"); } // [V7]
603test { try toAsciiFail("a\xe2\x92\x88com", false); } // [V7]
604test { try toAsciiFail("a\xe2\x92\x88com", true); } // [V7]
461605test { try toUnicodePass("a1.com", "a1.com"); }
462606test { try toAsciiPass("a1.com", "a1.com", false); }
463607test { try toAsciiPass("a1.com", "a1.com", true); }
464608test { try toUnicodeFail("A\xe2\x92\x88COM"); } // [V7]
609test { try toAsciiFail("A\xe2\x92\x88COM", false); } // [V7]
610test { try toAsciiFail("A\xe2\x92\x88COM", true); } // [V7]
465611test { try toUnicodeFail("A\xe2\x92\x88Com"); } // [V7]
612test { try toAsciiFail("A\xe2\x92\x88Com", false); } // [V7]
613test { try toAsciiFail("A\xe2\x92\x88Com", true); } // [V7]
466614test { try toUnicodeFail("xn--acom-0w1b"); } // [V7]
615test { try toAsciiFail("xn--acom-0w1b", false); } // [V7]
616test { try toAsciiFail("xn--acom-0w1b", true); } // [V7]
467617test { try toUnicodeFail("xn--a-ecp.ru"); } // [V7]
618test { try toAsciiFail("xn--a-ecp.ru", false); } // [V7]
619test { try toAsciiFail("xn--a-ecp.ru", true); } // [V7]
468620test { try toUnicodeFail("xn--0.pt"); } // [P4]
621test { try toAsciiFail("xn--0.pt", false); } // [P4]
622test { try toAsciiFail("xn--0.pt", true); } // [P4]
469623test { try toUnicodeFail("xn--a.pt"); } // [V7]
624test { try toAsciiFail("xn--a.pt", false); } // [V7]
625test { try toAsciiFail("xn--a.pt", true); } // [V7]
470626test { try toUnicodeFail("xn--a-\xc3\x84.pt"); } // [P4]
627test { try toAsciiFail("xn--a-\xc3\x84.pt", false); } // [P4]
628test { try toAsciiFail("xn--a-\xc3\x84.pt", true); } // [P4]
471629test { try toUnicodeFail("xn--a-A\xcc\x88.pt"); } // [P4]
630test { try toAsciiFail("xn--a-A\xcc\x88.pt", false); } // [P4]
631test { try toAsciiFail("xn--a-A\xcc\x88.pt", true); } // [P4]
472632test { try toUnicodeFail("xn--a-a\xcc\x88.pt"); } // [P4]
633test { try toAsciiFail("xn--a-a\xcc\x88.pt", false); } // [P4]
634test { try toAsciiFail("xn--a-a\xcc\x88.pt", true); } // [P4]
473635test { try toUnicodeFail("xn--a-\xc3\xa4.pt"); } // [P4]
636test { try toAsciiFail("xn--a-\xc3\xa4.pt", false); } // [P4]
637test { try toAsciiFail("xn--a-\xc3\xa4.pt", true); } // [P4]
474638test { try toUnicodeFail("XN--A-\xc3\x84.PT"); } // [P4]
639test { try toAsciiFail("XN--A-\xc3\x84.PT", false); } // [P4]
640test { try toAsciiFail("XN--A-\xc3\x84.PT", true); } // [P4]
475641test { try toUnicodeFail("XN--A-A\xcc\x88.PT"); } // [P4]
642test { try toAsciiFail("XN--A-A\xcc\x88.PT", false); } // [P4]
643test { try toAsciiFail("XN--A-A\xcc\x88.PT", true); } // [P4]
476644test { try toUnicodeFail("Xn--A-A\xcc\x88.pt"); } // [P4]
645test { try toAsciiFail("Xn--A-A\xcc\x88.pt", false); } // [P4]
646test { try toAsciiFail("Xn--A-A\xcc\x88.pt", true); } // [P4]
477647test { try toUnicodeFail("Xn--A-\xc3\x84.pt"); } // [P4]
648test { try toAsciiFail("Xn--A-\xc3\x84.pt", false); } // [P4]
649test { try toAsciiFail("Xn--A-\xc3\x84.pt", true); } // [P4]
478650test { try toUnicodeFail("xn--xn--a--gua.pt"); } // [V2, V4]
651test { try toAsciiFail("xn--xn--a--gua.pt", false); } // [V2, V4]
652test { try toAsciiFail("xn--xn--a--gua.pt", true); } // [V2, V4]
479653test { try toUnicodePass("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xe3\x80\x82\xef\xbc\xaa\xef\xbc\xb0", "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e.jp"); }
480654test { try toAsciiPass("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xe3\x80\x82\xef\xbc\xaa\xef\xbc\xb0", "xn--wgv71a119e.jp", false); }
481655test { try toAsciiPass("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xe3\x80\x82\xef\xbc\xaa\xef\xbc\xb0", "xn--wgv71a119e.jp", true); }
......@@ -513,30 +687,68 @@ test { try toUnicodePass("xn--53h", "\xe2\x98\x95"); }
513687test { try toAsciiPass("xn--53h", "xn--53h", false); }
514688test { try toAsciiPass("xn--53h", "xn--53h", true); }
515689test { try toUnicodeFail("1.a\xc3\x9f\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dc\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fd\xcf\x82\xcf\x83\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fe\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fx\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fy\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xcc\x82\xc3\x9fz"); } // [C1, C2]
690test { try toAsciiFail("1.a\xc3\x9f\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dc\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fd\xcf\x82\xcf\x83\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fe\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fx\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fy\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xcc\x82\xc3\x9fz", false); } // [C1, C2, A4_2]
691test { try toAsciiFail("1.a\xc3\x9f\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dc\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fd\xcf\x82\xcf\x83\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fe\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fx\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fy\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xcc\x82\xc3\x9fz", true); } // [A4_2]
516692test { try toUnicodeFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\xcc\x82SSZ"); } // [C1, C2]
693test { try toAsciiFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\xcc\x82SSZ", false); } // [C1, C2, A4_2]
694test { try toAsciiFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\xcc\x82SSZ", true); } // [A4_2]
517695test { try toUnicodeFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ"); } // [C1, C2]
696test { try toAsciiFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ", false); } // [C1, C2, A4_2]
697test { try toAsciiFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ", true); } // [A4_2]
518698test { try toUnicodeFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } // [C1, C2]
699test { try toAsciiFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", false); } // [C1, C2, A4_2]
700test { try toAsciiFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", true); } // [A4_2]
519701test { try toUnicodeFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz"); } // [C1, C2]
702test { try toAsciiFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", false); } // [C1, C2, A4_2]
703test { try toAsciiFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", true); } // [A4_2]
520704test { try toUnicodeFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz"); } // [C1, C2]
705test { try toAsciiFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", false); } // [C1, C2, A4_2]
706test { try toAsciiFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", true); } // [A4_2]
521707test { try toUnicodeFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } // [C1, C2]
708test { try toAsciiFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", false); } // [C1, C2, A4_2]
709test { try toAsciiFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", true); } // [A4_2]
522710test { try toUnicodePass("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
711test { try toAsciiFail("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa", false); } // [A4_2]
712test { try toAsciiFail("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa", true); } // [A4_2]
523713test { try toUnicodePass("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
714test { try toAsciiFail("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", false); } // [A4_2]
715test { try toAsciiFail("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", true); } // [A4_2]
524716test { try toUnicodePass("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
717test { try toAsciiFail("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", false); } // [A4_2]
718test { try toAsciiFail("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", true); } // [A4_2]
525719test { try toUnicodePass("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\xcc\x82SSZ", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
720test { try toAsciiFail("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\xcc\x82SSZ", false); } // [A4_2]
721test { try toAsciiFail("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\xcc\x82SSZ", true); } // [A4_2]
526722test { try toUnicodePass("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
723test { try toAsciiFail("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ", false); } // [A4_2]
724test { try toAsciiFail("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ", true); } // [A4_2]
527725test { try toUnicodePass("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
726test { try toAsciiFail("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", false); } // [A4_2]
727test { try toAsciiFail("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", true); } // [A4_2]
528728test { try toUnicodePass("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
729test { try toAsciiFail("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", false); } // [A4_2]
730test { try toAsciiFail("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", true); } // [A4_2]
529731test { try toUnicodeFail("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa69989dba9gc"); } // [C1, C2]
732test { try toAsciiFail("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa69989dba9gc", false); } // [C1, C2, A4_2]
733test { try toAsciiFail("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa69989dba9gc", true); } // [C1, C2, A4_2]
530734test { try toUnicodeFail("1.A\xc3\x9f\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dc\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fd\xcf\x82\xcf\x83\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fe\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fx\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fy\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xcc\x82\xc3\x9fz"); } // [C1, C2]
735test { try toAsciiFail("1.A\xc3\x9f\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dc\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fd\xcf\x82\xcf\x83\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fe\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fx\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fy\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xcc\x82\xc3\x9fz", false); } // [C1, C2, A4_2]
736test { try toAsciiFail("1.A\xc3\x9f\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dc\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fd\xcf\x82\xcf\x83\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fe\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fx\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9fy\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xc3\x9f\xcc\x82\xc3\x9fz", true); } // [A4_2]
531737test { try toUnicodeFail("1.xn--abcdexyz-qyacaaabaaaaaaabaaaaaaaaabaaaaaaaaabaaaaaaaa010ze2isb1140zba8cc"); } // [C1, C2]
738test { try toAsciiFail("1.xn--abcdexyz-qyacaaabaaaaaaabaaaaaaaaabaaaaaaaaabaaaaaaaa010ze2isb1140zba8cc", false); } // [C1, C2, A4_2]
739test { try toAsciiFail("1.xn--abcdexyz-qyacaaabaaaaaaabaaaaaaaaabaaaaaaaaabaaaaaaaa010ze2isb1140zba8cc", true); } // [C1, C2, A4_2]
532740test { try toAsciiPass("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-b\xc3\x9f", "xn--bss", true); }
533741test { try toUnicodeFail("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-b\xc3\x9f"); } // [C1, C2]
742test { try toAsciiFail("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-b\xc3\x9f", false); } // [C1, C2]
534743test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dN\xe2\x80\x8c-\xe2\x80\x8d-BSS", "xn--bss", true); }
535744test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dN\xe2\x80\x8c-\xe2\x80\x8d-BSS"); } // [C1, C2]
745test { try toAsciiFail("\xe2\x80\x8cX\xe2\x80\x8dN\xe2\x80\x8c-\xe2\x80\x8d-BSS", false); } // [C1, C2]
536746test { try toAsciiPass("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-bss", "xn--bss", true); }
537747test { try toUnicodeFail("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-bss"); } // [C1, C2]
748test { try toAsciiFail("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-bss", false); } // [C1, C2]
538749test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-Bss", "xn--bss", true); }
539750test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-Bss"); } // [C1, C2]
751test { try toAsciiFail("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-Bss", false); } // [C1, C2]
540752test { try toUnicodePass("xn--bss", "\xe5\xa4\x99"); }
541753test { try toAsciiPass("xn--bss", "xn--bss", false); }
542754test { try toAsciiPass("xn--bss", "xn--bss", true); }
......@@ -544,9 +756,14 @@ test { try toUnicodePass("\xe5\xa4\x99", "\xe5\xa4\x99"); }
544756test { try toAsciiPass("\xe5\xa4\x99", "xn--bss", false); }
545757test { try toAsciiPass("\xe5\xa4\x99", "xn--bss", true); }
546758test { try toUnicodeFail("xn--xn--bss-7z6ccid"); } // [C1, C2]
759test { try toAsciiFail("xn--xn--bss-7z6ccid", false); } // [C1, C2]
760test { try toAsciiFail("xn--xn--bss-7z6ccid", true); } // [C1, C2]
547761test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-B\xc3\x9f", "xn--bss", true); }
548762test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-B\xc3\x9f"); } // [C1, C2]
763test { try toAsciiFail("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-B\xc3\x9f", false); } // [C1, C2]
549764test { try toUnicodeFail("xn--xn--b-pqa5796ccahd"); } // [C1, C2]
765test { try toAsciiFail("xn--xn--b-pqa5796ccahd", false); } // [C1, C2]
766test { try toAsciiFail("xn--xn--b-pqa5796ccahd", true); } // [C1, C2]
550767test { try toUnicodePass("\xcb\xa3\xcd\x8f\xe2\x84\x95\xe2\x80\x8b\xef\xb9\xa3\xc2\xad\xef\xbc\x8d\xe1\xa0\x8c\xe2\x84\xac\xef\xb8\x80\xc5\xbf\xe2\x81\xa4\xf0\x9d\x94\xb0\xf3\xa0\x87\xaf\xef\xac\x84", "\xe5\xa4\xa1\xe5\xa4\x9e\xe5\xa4\x9c\xe5\xa4\x99"); }
551768test { try toAsciiPass("\xcb\xa3\xcd\x8f\xe2\x84\x95\xe2\x80\x8b\xef\xb9\xa3\xc2\xad\xef\xbc\x8d\xe1\xa0\x8c\xe2\x84\xac\xef\xb8\x80\xc5\xbf\xe2\x81\xa4\xf0\x9d\x94\xb0\xf3\xa0\x87\xaf\xef\xac\x84", "xn--bssffl", false); }
552769test { try toAsciiPass("\xcb\xa3\xcd\x8f\xe2\x84\x95\xe2\x80\x8b\xef\xb9\xa3\xc2\xad\xef\xbc\x8d\xe1\xa0\x8c\xe2\x84\xac\xef\xb8\x80\xc5\xbf\xe2\x81\xa4\xf0\x9d\x94\xb0\xf3\xa0\x87\xaf\xef\xac\x84", "xn--bssffl", true); }
......@@ -581,10 +798,20 @@ test { try toUnicodePass("123456789012345678901234567890123456789012345678901234
581798test { try toAsciiPass("123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); }
582799test { try toAsciiPass("123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); }
583800test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", "123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b."); }
801test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", false); } // [A4_2]
802test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", true); } // [A4_2]
584803test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", "123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c"); }
804test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", false); } // [A4_1]
805test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", true); } // [A4_1]
585806test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", "123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a"); }
807test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", false); } // [A4_2]
808test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", true); } // [A4_2]
586809test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
810test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", false); } // [A4_2]
811test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", true); } // [A4_2]
587812test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
813test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); } // [A4_1, A4_2]
814test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901234.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); } // [A4_1, A4_2]
588815test { try toUnicodePass("\xc3\xa41234567890123456789012345678901234567890123456789012345", "\xc3\xa41234567890123456789012345678901234567890123456789012345"); }
589816test { try toAsciiPass("\xc3\xa41234567890123456789012345678901234567890123456789012345", "xn--1234567890123456789012345678901234567890123456789012345-9te", false); }
590817test { try toAsciiPass("\xc3\xa41234567890123456789012345678901234567890123456789012345", "xn--1234567890123456789012345678901234567890123456789012345-9te", true); }
......@@ -616,77 +843,221 @@ test { try toUnicodePass("123456789012345678901234567890123456789012345678901234
616843test { try toAsciiPass("123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); }
617844test { try toAsciiPass("123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); }
618845test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b."); }
846test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", false); } // [A4_2]
847test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", true); } // [A4_2]
619848test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b."); }
849test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", false); } // [A4_2]
850test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", true); } // [A4_2]
620851test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b."); }
852test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.", false); } // [A4_2]
853test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.", true); } // [A4_2]
621854test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b."); }
855test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.", false); } // [A4_2]
856test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B.", true); } // [A4_2]
622857test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b."); }
858test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", false); } // [A4_2]
859test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", true); } // [A4_2]
623860test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c"); }
861test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", false); } // [A4_1]
862test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", true); } // [A4_1]
624863test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c"); }
864test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", false); } // [A4_1]
865test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", true); } // [A4_1]
625866test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c"); }
867test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C", false); } // [A4_1]
868test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C", true); } // [A4_1]
626869test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c"); }
870test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C", false); } // [A4_1]
871test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901C", true); } // [A4_1]
627872test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c"); }
873test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", false); } // [A4_1]
874test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", true); } // [A4_1]
628875test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a"); }
876test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", false); } // [A4_2]
877test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", true); } // [A4_2]
629878test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a"); }
879test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", false); } // [A4_2]
880test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", true); } // [A4_2]
630881test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a"); }
882test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A", false); } // [A4_2]
883test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A", true); } // [A4_2]
631884test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a"); }
885test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A", false); } // [A4_2]
886test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A", true); } // [A4_2]
632887test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a"); }
888test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", false); } // [A4_2]
889test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", true); } // [A4_2]
633890test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
891test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", false); } // [A4_2]
892test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", true); } // [A4_2]
634893test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
894test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", false); } // [A4_2]
895test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", true); } // [A4_2]
635896test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
897test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.", false); } // [A4_2]
898test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.", true); } // [A4_2]
636899test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
900test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.", false); } // [A4_2]
901test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789A.", true); } // [A4_2]
637902test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
903test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", false); } // [A4_2]
904test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", true); } // [A4_2]
638905test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
906test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); } // [A4_1, A4_2]
907test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); } // [A4_1, A4_2]
639908test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
909test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); } // [A4_1, A4_2]
910test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890a\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); } // [A4_1, A4_2]
640911test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
912test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", false); } // [A4_1, A4_2]
913test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", true); } // [A4_1, A4_2]
641914test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
915test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", false); } // [A4_1, A4_2]
916test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", true); } // [A4_1, A4_2]
642917test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
918test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); } // [A4_1, A4_2]
919test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); } // [A4_1, A4_2]
643920test { try toUnicodeFail("a.b..-q--a-.e"); } // [V2, V3, X4_2]
921test { try toAsciiFail("a.b..-q--a-.e", false); } // [V2, V3, A4_2]
922test { try toAsciiFail("a.b..-q--a-.e", true); } // [V2, V3, A4_2]
644923test { try toUnicodeFail("a.b..-q--\xc3\xa4-.e"); } // [V2, V3, X4_2]
924test { try toAsciiFail("a.b..-q--\xc3\xa4-.e", false); } // [V2, V3, A4_2]
925test { try toAsciiFail("a.b..-q--\xc3\xa4-.e", true); } // [V2, V3, A4_2]
645926test { try toUnicodeFail("a.b..-q--a\xcc\x88-.e"); } // [V2, V3, X4_2]
927test { try toAsciiFail("a.b..-q--a\xcc\x88-.e", false); } // [V2, V3, A4_2]
928test { try toAsciiFail("a.b..-q--a\xcc\x88-.e", true); } // [V2, V3, A4_2]
646929test { try toUnicodeFail("A.B..-Q--A\xcc\x88-.E"); } // [V2, V3, X4_2]
930test { try toAsciiFail("A.B..-Q--A\xcc\x88-.E", false); } // [V2, V3, A4_2]
931test { try toAsciiFail("A.B..-Q--A\xcc\x88-.E", true); } // [V2, V3, A4_2]
647932test { try toUnicodeFail("A.B..-Q--\xc3\x84-.E"); } // [V2, V3, X4_2]
933test { try toAsciiFail("A.B..-Q--\xc3\x84-.E", false); } // [V2, V3, A4_2]
934test { try toAsciiFail("A.B..-Q--\xc3\x84-.E", true); } // [V2, V3, A4_2]
648935test { try toUnicodeFail("A.b..-Q--\xc3\x84-.E"); } // [V2, V3, X4_2]
936test { try toAsciiFail("A.b..-Q--\xc3\x84-.E", false); } // [V2, V3, A4_2]
937test { try toAsciiFail("A.b..-Q--\xc3\x84-.E", true); } // [V2, V3, A4_2]
649938test { try toUnicodeFail("A.b..-Q--A\xcc\x88-.E"); } // [V2, V3, X4_2]
939test { try toAsciiFail("A.b..-Q--A\xcc\x88-.E", false); } // [V2, V3, A4_2]
940test { try toAsciiFail("A.b..-Q--A\xcc\x88-.E", true); } // [V2, V3, A4_2]
650941test { 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]
943test { try toAsciiFail("a.b..xn---q----jra.e", true); } // [V2, V3, A4_2]
651944test { try toUnicodeFail("a..c"); } // [X4_2]
945test { try toAsciiFail("a..c", false); } // [A4_2]
946test { try toAsciiFail("a..c", true); } // [A4_2]
652947test { try toUnicodeFail("a.-b."); } // [V3]
948test { try toAsciiFail("a.-b.", false); } // [V3, A4_2]
949test { try toAsciiFail("a.-b.", true); } // [V3, A4_2]
653950test { try toUnicodeFail("a.b-.c"); } // [V3]
951test { try toAsciiFail("a.b-.c", false); } // [V3]
952test { try toAsciiFail("a.b-.c", true); } // [V3]
654953test { try toUnicodeFail("a.-.c"); } // [V3]
954test { try toAsciiFail("a.-.c", false); } // [V3]
955test { try toAsciiFail("a.-.c", true); } // [V3]
655956test { try toUnicodeFail("a.bc--de.f"); } // [V2]
957test { try toAsciiFail("a.bc--de.f", false); } // [V2]
958test { try toAsciiFail("a.bc--de.f", true); } // [V2]
656959test { try toUnicodeFail("xn--xn---epa"); } // [V2, V4]
960test { try toAsciiFail("xn--xn---epa", false); } // [V2, V4]
961test { try toAsciiFail("xn--xn---epa", true); } // [V2, V4]
657962test { try toUnicodeFail("\xc3\xa4.\xc2\xad.c"); } // [X4_2]
963test { try toAsciiFail("\xc3\xa4.\xc2\xad.c", false); } // [A4_2]
964test { try toAsciiFail("\xc3\xa4.\xc2\xad.c", true); } // [A4_2]
658965test { try toUnicodeFail("a\xcc\x88.\xc2\xad.c"); } // [X4_2]
966test { try toAsciiFail("a\xcc\x88.\xc2\xad.c", false); } // [A4_2]
967test { try toAsciiFail("a\xcc\x88.\xc2\xad.c", true); } // [A4_2]
659968test { try toUnicodeFail("A\xcc\x88.\xc2\xad.C"); } // [X4_2]
969test { try toAsciiFail("A\xcc\x88.\xc2\xad.C", false); } // [A4_2]
970test { try toAsciiFail("A\xcc\x88.\xc2\xad.C", true); } // [A4_2]
660971test { try toUnicodeFail("\xc3\x84.\xc2\xad.C"); } // [X4_2]
972test { try toAsciiFail("\xc3\x84.\xc2\xad.C", false); } // [A4_2]
973test { try toAsciiFail("\xc3\x84.\xc2\xad.C", true); } // [A4_2]
661974test { try toUnicodeFail("xn--4ca..c"); } // [X4_2]
975test { try toAsciiFail("xn--4ca..c", false); } // [A4_2]
976test { try toAsciiFail("xn--4ca..c", true); } // [A4_2]
662977test { try toUnicodeFail("\xc3\xa4.-b."); } // [V3]
978test { try toAsciiFail("\xc3\xa4.-b.", false); } // [V3, A4_2]
979test { try toAsciiFail("\xc3\xa4.-b.", true); } // [V3, A4_2]
663980test { try toUnicodeFail("a\xcc\x88.-b."); } // [V3]
981test { try toAsciiFail("a\xcc\x88.-b.", false); } // [V3, A4_2]
982test { try toAsciiFail("a\xcc\x88.-b.", true); } // [V3, A4_2]
664983test { try toUnicodeFail("A\xcc\x88.-B."); } // [V3]
984test { try toAsciiFail("A\xcc\x88.-B.", false); } // [V3, A4_2]
985test { try toAsciiFail("A\xcc\x88.-B.", true); } // [V3, A4_2]
665986test { try toUnicodeFail("\xc3\x84.-B."); } // [V3]
987test { try toAsciiFail("\xc3\x84.-B.", false); } // [V3, A4_2]
988test { try toAsciiFail("\xc3\x84.-B.", true); } // [V3, A4_2]
666989test { try toUnicodeFail("xn--4ca.-b."); } // [V3]
990test { try toAsciiFail("xn--4ca.-b.", false); } // [V3, A4_2]
991test { try toAsciiFail("xn--4ca.-b.", true); } // [V3, A4_2]
667992test { try toUnicodeFail("\xc3\xa4.b-.c"); } // [V3]
993test { try toAsciiFail("\xc3\xa4.b-.c", false); } // [V3]
994test { try toAsciiFail("\xc3\xa4.b-.c", true); } // [V3]
668995test { try toUnicodeFail("a\xcc\x88.b-.c"); } // [V3]
996test { try toAsciiFail("a\xcc\x88.b-.c", false); } // [V3]
997test { try toAsciiFail("a\xcc\x88.b-.c", true); } // [V3]
669998test { try toUnicodeFail("A\xcc\x88.B-.C"); } // [V3]
999test { try toAsciiFail("A\xcc\x88.B-.C", false); } // [V3]
1000test { try toAsciiFail("A\xcc\x88.B-.C", true); } // [V3]
6701001test { try toUnicodeFail("\xc3\x84.B-.C"); } // [V3]
1002test { try toAsciiFail("\xc3\x84.B-.C", false); } // [V3]
1003test { try toAsciiFail("\xc3\x84.B-.C", true); } // [V3]
6711004test { try toUnicodeFail("\xc3\x84.b-.C"); } // [V3]
1005test { try toAsciiFail("\xc3\x84.b-.C", false); } // [V3]
1006test { try toAsciiFail("\xc3\x84.b-.C", true); } // [V3]
6721007test { try toUnicodeFail("A\xcc\x88.b-.C"); } // [V3]
1008test { try toAsciiFail("A\xcc\x88.b-.C", false); } // [V3]
1009test { try toAsciiFail("A\xcc\x88.b-.C", true); } // [V3]
6731010test { try toUnicodeFail("xn--4ca.b-.c"); } // [V3]
1011test { try toAsciiFail("xn--4ca.b-.c", false); } // [V3]
1012test { try toAsciiFail("xn--4ca.b-.c", true); } // [V3]
6741013test { try toUnicodeFail("\xc3\xa4.-.c"); } // [V3]
1014test { try toAsciiFail("\xc3\xa4.-.c", false); } // [V3]
1015test { try toAsciiFail("\xc3\xa4.-.c", true); } // [V3]
6751016test { try toUnicodeFail("a\xcc\x88.-.c"); } // [V3]
1017test { try toAsciiFail("a\xcc\x88.-.c", false); } // [V3]
1018test { try toAsciiFail("a\xcc\x88.-.c", true); } // [V3]
6761019test { try toUnicodeFail("A\xcc\x88.-.C"); } // [V3]
1020test { try toAsciiFail("A\xcc\x88.-.C", false); } // [V3]
1021test { try toAsciiFail("A\xcc\x88.-.C", true); } // [V3]
6771022test { try toUnicodeFail("\xc3\x84.-.C"); } // [V3]
1023test { try toAsciiFail("\xc3\x84.-.C", false); } // [V3]
1024test { try toAsciiFail("\xc3\x84.-.C", true); } // [V3]
6781025test { try toUnicodeFail("xn--4ca.-.c"); } // [V3]
1026test { try toAsciiFail("xn--4ca.-.c", false); } // [V3]
1027test { try toAsciiFail("xn--4ca.-.c", true); } // [V3]
6791028test { try toUnicodeFail("\xc3\xa4.bc--de.f"); } // [V2]
1029test { try toAsciiFail("\xc3\xa4.bc--de.f", false); } // [V2]
1030test { try toAsciiFail("\xc3\xa4.bc--de.f", true); } // [V2]
6801031test { try toUnicodeFail("a\xcc\x88.bc--de.f"); } // [V2]
1032test { try toAsciiFail("a\xcc\x88.bc--de.f", false); } // [V2]
1033test { try toAsciiFail("a\xcc\x88.bc--de.f", true); } // [V2]
6811034test { try toUnicodeFail("A\xcc\x88.BC--DE.F"); } // [V2]
1035test { try toAsciiFail("A\xcc\x88.BC--DE.F", false); } // [V2]
1036test { try toAsciiFail("A\xcc\x88.BC--DE.F", true); } // [V2]
6821037test { try toUnicodeFail("\xc3\x84.BC--DE.F"); } // [V2]
1038test { try toAsciiFail("\xc3\x84.BC--DE.F", false); } // [V2]
1039test { try toAsciiFail("\xc3\x84.BC--DE.F", true); } // [V2]
6831040test { try toUnicodeFail("\xc3\x84.bc--De.f"); } // [V2]
1041test { try toAsciiFail("\xc3\x84.bc--De.f", false); } // [V2]
1042test { try toAsciiFail("\xc3\x84.bc--De.f", true); } // [V2]
6841043test { try toUnicodeFail("A\xcc\x88.bc--De.f"); } // [V2]
1044test { try toAsciiFail("A\xcc\x88.bc--De.f", false); } // [V2]
1045test { try toAsciiFail("A\xcc\x88.bc--De.f", true); } // [V2]
6851046test { try toUnicodeFail("xn--4ca.bc--de.f"); } // [V2]
1047test { try toAsciiFail("xn--4ca.bc--de.f", false); } // [V2]
1048test { try toAsciiFail("xn--4ca.bc--de.f", true); } // [V2]
6861049test { try toUnicodeFail("a.b.\xcc\x88c.d"); } // [V6]
1050test { try toAsciiFail("a.b.\xcc\x88c.d", false); } // [V6]
1051test { try toAsciiFail("a.b.\xcc\x88c.d", true); } // [V6]
6871052test { try toUnicodeFail("A.B.\xcc\x88C.D"); } // [V6]
1053test { try toAsciiFail("A.B.\xcc\x88C.D", false); } // [V6]
1054test { try toAsciiFail("A.B.\xcc\x88C.D", true); } // [V6]
6881055test { try toUnicodeFail("A.b.\xcc\x88c.d"); } // [V6]
1056test { try toAsciiFail("A.b.\xcc\x88c.d", false); } // [V6]
1057test { try toAsciiFail("A.b.\xcc\x88c.d", true); } // [V6]
6891058test { try toUnicodeFail("a.b.xn--c-bcb.d"); } // [V6]
1059test { try toAsciiFail("a.b.xn--c-bcb.d", false); } // [V6]
1060test { try toAsciiFail("a.b.xn--c-bcb.d", true); } // [V6]
6901061test { try toUnicodePass("A0", "a0"); }
6911062test { try toAsciiPass("A0", "a0", false); }
6921063test { try toAsciiPass("A0", "a0", true); }
......@@ -694,16 +1065,38 @@ test { try toUnicodePass("0A", "0a"); }
6941065test { try toAsciiPass("0A", "0a", false); }
6951066test { try toAsciiPass("0A", "0a", true); }
6961067test { try toUnicodeFail("0A.\xd7\x90"); } // [B1]
1068test { try toAsciiFail("0A.\xd7\x90", false); } // [B1]
1069test { try toAsciiFail("0A.\xd7\x90", true); } // [B1]
6971070test { try toUnicodeFail("0a.\xd7\x90"); } // [B1]
1071test { try toAsciiFail("0a.\xd7\x90", false); } // [B1]
1072test { try toAsciiFail("0a.\xd7\x90", true); } // [B1]
6981073test { try toUnicodeFail("0a.xn--4db"); } // [B1]
1074test { try toAsciiFail("0a.xn--4db", false); } // [B1]
1075test { try toAsciiFail("0a.xn--4db", true); } // [B1]
6991076test { try toUnicodeFail("c.xn--0-eha.xn--4db"); } // [B1]
1077test { try toAsciiFail("c.xn--0-eha.xn--4db", false); } // [B1]
1078test { try toAsciiFail("c.xn--0-eha.xn--4db", true); } // [B1]
7001079test { try toUnicodeFail("b-.\xd7\x90"); } // [B6, V3]
1080test { try toAsciiFail("b-.\xd7\x90", false); } // [B6, V3]
1081test { try toAsciiFail("b-.\xd7\x90", true); } // [B6, V3]
7011082test { try toUnicodeFail("B-.\xd7\x90"); } // [B6, V3]
1083test { try toAsciiFail("B-.\xd7\x90", false); } // [B6, V3]
1084test { try toAsciiFail("B-.\xd7\x90", true); } // [B6, V3]
7021085test { try toUnicodeFail("b-.xn--4db"); } // [B6, V3]
1086test { try toAsciiFail("b-.xn--4db", false); } // [B6, V3]
1087test { try toAsciiFail("b-.xn--4db", true); } // [B6, V3]
7031088test { try toUnicodeFail("d.xn----dha.xn--4db"); } // [B6, V3]
1089test { try toAsciiFail("d.xn----dha.xn--4db", false); } // [B6, V3]
1090test { try toAsciiFail("d.xn----dha.xn--4db", true); } // [B6, V3]
7041091test { try toUnicodeFail("a\xd7\x90"); } // [B5, B6]
1092test { try toAsciiFail("a\xd7\x90", false); } // [B5, B6]
1093test { try toAsciiFail("a\xd7\x90", true); } // [B5, B6]
7051094test { try toUnicodeFail("A\xd7\x90"); } // [B5, B6]
1095test { try toAsciiFail("A\xd7\x90", false); } // [B5, B6]
1096test { try toAsciiFail("A\xd7\x90", true); } // [B5, B6]
7061097test { try toUnicodeFail("xn--a-0hc"); } // [B5, B6]
1098test { try toAsciiFail("xn--a-0hc", false); } // [B5, B6]
1099test { try toAsciiFail("xn--a-0hc", true); } // [B5, B6]
7071100test { try toUnicodePass("\xd7\x90\xd7\x87", "\xd7\x90\xd7\x87"); }
7081101test { try toAsciiPass("\xd7\x90\xd7\x87", "xn--vdbr", false); }
7091102test { try toAsciiPass("\xd7\x90\xd7\x87", "xn--vdbr", true); }
......@@ -717,8 +1110,14 @@ test { try toUnicodePass("xn--9-ihcz", "\xd7\x909\xd7\x87"); }
7171110test { try toAsciiPass("xn--9-ihcz", "xn--9-ihcz", false); }
7181111test { try toAsciiPass("xn--9-ihcz", "xn--9-ihcz", true); }
7191112test { try toUnicodeFail("\xd7\x90a\xd7\x87"); } // [B2, B3]
1113test { try toAsciiFail("\xd7\x90a\xd7\x87", false); } // [B2, B3]
1114test { try toAsciiFail("\xd7\x90a\xd7\x87", true); } // [B2, B3]
7201115test { try toUnicodeFail("\xd7\x90A\xd7\x87"); } // [B2, B3]
1116test { try toAsciiFail("\xd7\x90A\xd7\x87", false); } // [B2, B3]
1117test { try toAsciiFail("\xd7\x90A\xd7\x87", true); } // [B2, B3]
7211118test { try toUnicodeFail("xn--a-ihcz"); } // [B2, B3]
1119test { try toAsciiFail("xn--a-ihcz", false); } // [B2, B3]
1120test { try toAsciiFail("xn--a-ihcz", true); } // [B2, B3]
7221121test { try toUnicodePass("\xd7\x90\xd7\xaa", "\xd7\x90\xd7\xaa"); }
7231122test { try toAsciiPass("\xd7\x90\xd7\xaa", "xn--4db6c", false); }
7241123test { try toAsciiPass("\xd7\x90\xd7\xaa", "xn--4db6c", true); }
......@@ -732,13 +1131,29 @@ test { try toUnicodePass("xn--4db6c0a", "\xd7\x90\xd7\xb3\xd7\xaa"); }
7321131test { try toAsciiPass("xn--4db6c0a", "xn--4db6c0a", false); }
7331132test { try toAsciiPass("xn--4db6c0a", "xn--4db6c0a", true); }
7341133test { try toUnicodeFail("a\xd7\x90Tz"); } // [B5]
1134test { try toAsciiFail("a\xd7\x90Tz", false); } // [B5]
1135test { try toAsciiFail("a\xd7\x90Tz", true); } // [B5]
7351136test { try toUnicodeFail("a\xd7\x90tz"); } // [B5]
1137test { try toAsciiFail("a\xd7\x90tz", false); } // [B5]
1138test { try toAsciiFail("a\xd7\x90tz", true); } // [B5]
7361139test { try toUnicodeFail("A\xd7\x90TZ"); } // [B5]
1140test { try toAsciiFail("A\xd7\x90TZ", false); } // [B5]
1141test { try toAsciiFail("A\xd7\x90TZ", true); } // [B5]
7371142test { try toUnicodeFail("A\xd7\x90tz"); } // [B5]
1143test { try toAsciiFail("A\xd7\x90tz", false); } // [B5]
1144test { try toAsciiFail("A\xd7\x90tz", true); } // [B5]
7381145test { try toUnicodeFail("xn--atz-qpe"); } // [B5]
1146test { try toAsciiFail("xn--atz-qpe", false); } // [B5]
1147test { try toAsciiFail("xn--atz-qpe", true); } // [B5]
7391148test { try toUnicodeFail("\xd7\x90T\xd7\xaa"); } // [B2]
1149test { try toAsciiFail("\xd7\x90T\xd7\xaa", false); } // [B2]
1150test { try toAsciiFail("\xd7\x90T\xd7\xaa", true); } // [B2]
7401151test { try toUnicodeFail("\xd7\x90t\xd7\xaa"); } // [B2]
1152test { try toAsciiFail("\xd7\x90t\xd7\xaa", false); } // [B2]
1153test { try toAsciiFail("\xd7\x90t\xd7\xaa", true); } // [B2]
7411154test { try toUnicodeFail("xn--t-zhc3f"); } // [B2]
1155test { try toAsciiFail("xn--t-zhc3f", false); } // [B2]
1156test { try toAsciiFail("xn--t-zhc3f", true); } // [B2]
7421157test { try toUnicodePass("\xd7\x907\xd7\xaa", "\xd7\x907\xd7\xaa"); }
7431158test { try toAsciiPass("\xd7\x907\xd7\xaa", "xn--7-zhc3f", false); }
7441159test { try toAsciiPass("\xd7\x907\xd7\xaa", "xn--7-zhc3f", true); }
......@@ -752,11 +1167,23 @@ test { try toUnicodePass("xn--4db6c6t", "\xd7\x90\xd9\xa7\xd7\xaa"); }
7521167test { try toAsciiPass("xn--4db6c6t", "xn--4db6c6t", false); }
7531168test { try toAsciiPass("xn--4db6c6t", "xn--4db6c6t", true); }
7541169test { try toUnicodeFail("a7\xd9\xa7z"); } // [B5]
1170test { try toAsciiFail("a7\xd9\xa7z", false); } // [B5]
1171test { try toAsciiFail("a7\xd9\xa7z", true); } // [B5]
7551172test { try toUnicodeFail("A7\xd9\xa7Z"); } // [B5]
1173test { try toAsciiFail("A7\xd9\xa7Z", false); } // [B5]
1174test { try toAsciiFail("A7\xd9\xa7Z", true); } // [B5]
7561175test { try toUnicodeFail("A7\xd9\xa7z"); } // [B5]
1176test { try toAsciiFail("A7\xd9\xa7z", false); } // [B5]
1177test { try toAsciiFail("A7\xd9\xa7z", true); } // [B5]
7571178test { try toUnicodeFail("xn--a7z-06e"); } // [B5]
1179test { try toAsciiFail("xn--a7z-06e", false); } // [B5]
1180test { try toAsciiFail("xn--a7z-06e", true); } // [B5]
7581181test { try toUnicodeFail("\xd7\x907\xd9\xa7\xd7\xaa"); } // [B4]
1182test { try toAsciiFail("\xd7\x907\xd9\xa7\xd7\xaa", false); } // [B4]
1183test { try toAsciiFail("\xd7\x907\xd9\xa7\xd7\xaa", true); } // [B4]
7591184test { try toUnicodeFail("xn--7-zhc3fty"); } // [B4]
1185test { try toAsciiFail("xn--7-zhc3fty", false); } // [B4]
1186test { try toAsciiFail("xn--7-zhc3fty", true); } // [B4]
7601187test { try toUnicodePass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d"); }
7611188test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "xn--dmc4b194h", false); }
7621189test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "xn--dmc4b", true); }
......@@ -771,6 +1198,7 @@ test { try toAsciiPass("xn--dmc4b194h", "xn--dmc4b194h", false); }
7711198test { try toAsciiPass("xn--dmc4b194h", "xn--dmc4b194h", true); }
7721199test { try toAsciiPass("\xe0\xae\xb9\xe2\x80\x8d", "xn--dmc", true); }
7731200test { try toUnicodeFail("\xe0\xae\xb9\xe2\x80\x8d"); } // [C2]
1201test { try toAsciiFail("\xe0\xae\xb9\xe2\x80\x8d", false); } // [C2]
7741202test { try toUnicodePass("xn--dmc", "\xe0\xae\xb9"); }
7751203test { try toAsciiPass("xn--dmc", "xn--dmc", false); }
7761204test { try toAsciiPass("xn--dmc", "xn--dmc", true); }
......@@ -778,8 +1206,14 @@ test { try toUnicodePass("\xe0\xae\xb9", "\xe0\xae\xb9"); }
7781206test { try toAsciiPass("\xe0\xae\xb9", "xn--dmc", false); }
7791207test { try toAsciiPass("\xe0\xae\xb9", "xn--dmc", true); }
7801208test { try toUnicodeFail("xn--dmc225h"); } // [C2]
1209test { try toAsciiFail("xn--dmc225h", false); } // [C2]
1210test { try toAsciiFail("xn--dmc225h", true); } // [C2]
7811211test { try toUnicodeFail("\xe2\x80\x8d"); } // [C2]
1212test { try toAsciiFail("\xe2\x80\x8d", false); } // [C2]
1213test { try toAsciiFail("\xe2\x80\x8d", true); } // [A4_1, A4_2]
7821214test { try toUnicodeFail("xn--1ug"); } // [C2]
1215test { try toAsciiFail("xn--1ug", false); } // [C2]
1216test { try toAsciiFail("xn--1ug", true); } // [C2]
7831217test { try toUnicodePass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c"); }
7841218test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "xn--dmc4by94h", false); }
7851219test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "xn--dmc4b", true); }
......@@ -788,9 +1222,16 @@ test { try toAsciiPass("xn--dmc4by94h", "xn--dmc4by94h", false); }
7881222test { try toAsciiPass("xn--dmc4by94h", "xn--dmc4by94h", true); }
7891223test { try toAsciiPass("\xe0\xae\xb9\xe2\x80\x8c", "xn--dmc", true); }
7901224test { try toUnicodeFail("\xe0\xae\xb9\xe2\x80\x8c"); } // [C1]
1225test { try toAsciiFail("\xe0\xae\xb9\xe2\x80\x8c", false); } // [C1]
7911226test { try toUnicodeFail("xn--dmc025h"); } // [C1]
1227test { try toAsciiFail("xn--dmc025h", false); } // [C1]
1228test { try toAsciiFail("xn--dmc025h", true); } // [C1]
7921229test { try toUnicodeFail("\xe2\x80\x8c"); } // [C1]
1230test { try toAsciiFail("\xe2\x80\x8c", false); } // [C1]
1231test { try toAsciiFail("\xe2\x80\x8c", true); } // [A4_1, A4_2]
7931232test { try toUnicodeFail("xn--0ug"); } // [C1]
1233test { try toAsciiFail("xn--0ug", false); } // [C1]
1234test { try toAsciiFail("xn--0ug", true); } // [C1]
7941235test { try toUnicodePass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf"); }
7951236test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "xn--ghb2gxqia7523a", false); }
7961237test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "xn--ghb2gxqia", true); }
......@@ -841,6 +1282,7 @@ test { try toAsciiPass("xn--ghb65a953d", "xn--ghb65a953d", false); }
8411282test { try toAsciiPass("xn--ghb65a953d", "xn--ghb65a953d", true); }
8421283test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad", "xn--ghb2gxq", true); }
8431284test { try toUnicodeFail("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad"); } // [B3, C1]
1285test { try toAsciiFail("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad", false); } // [B3, C1]
8441286test { try toUnicodePass("xn--ghb2gxq", "\xd9\x84\xd9\xb0\xdb\xad"); }
8451287test { try toAsciiPass("xn--ghb2gxq", "xn--ghb2gxq", false); }
8461288test { try toAsciiPass("xn--ghb2gxq", "xn--ghb2gxq", true); }
......@@ -848,8 +1290,11 @@ test { try toUnicodePass("\xd9\x84\xd9\xb0\xdb\xad", "\xd9\x84\xd9\xb0\xdb\xad")
8481290test { try toAsciiPass("\xd9\x84\xd9\xb0\xdb\xad", "xn--ghb2gxq", false); }
8491291test { try toAsciiPass("\xd9\x84\xd9\xb0\xdb\xad", "xn--ghb2gxq", true); }
8501292test { try toUnicodeFail("xn--ghb2gxqy34f"); } // [B3, C1]
1293test { try toAsciiFail("xn--ghb2gxqy34f", false); } // [B3, C1]
1294test { try toAsciiFail("xn--ghb2gxqy34f", true); } // [B3, C1]
8511295test { try toAsciiPass("\xdb\xaf\xe2\x80\x8c\xdb\xaf", "xn--cmba", true); }
8521296test { try toUnicodeFail("\xdb\xaf\xe2\x80\x8c\xdb\xaf"); } // [C1]
1297test { try toAsciiFail("\xdb\xaf\xe2\x80\x8c\xdb\xaf", false); } // [C1]
8531298test { try toUnicodePass("xn--cmba", "\xdb\xaf\xdb\xaf"); }
8541299test { try toAsciiPass("xn--cmba", "xn--cmba", false); }
8551300test { try toAsciiPass("xn--cmba", "xn--cmba", true); }
......@@ -857,8 +1302,11 @@ test { try toUnicodePass("\xdb\xaf\xdb\xaf", "\xdb\xaf\xdb\xaf"); }
8571302test { try toAsciiPass("\xdb\xaf\xdb\xaf", "xn--cmba", false); }
8581303test { try toAsciiPass("\xdb\xaf\xdb\xaf", "xn--cmba", true); }
8591304test { try toUnicodeFail("xn--cmba004q"); } // [C1]
1305test { try toAsciiFail("xn--cmba004q", false); } // [C1]
1306test { try toAsciiFail("xn--cmba004q", true); } // [C1]
8601307test { try toAsciiPass("\xd9\x84\xe2\x80\x8c", "xn--ghb", true); }
8611308test { try toUnicodeFail("\xd9\x84\xe2\x80\x8c"); } // [B3, C1]
1309test { try toAsciiFail("\xd9\x84\xe2\x80\x8c", false); } // [B3, C1]
8621310test { try toUnicodePass("xn--ghb", "\xd9\x84"); }
8631311test { try toAsciiPass("xn--ghb", "xn--ghb", false); }
8641312test { try toAsciiPass("xn--ghb", "xn--ghb", true); }
......@@ -866,28 +1314,68 @@ test { try toUnicodePass("\xd9\x84", "\xd9\x84"); }
8661314test { try toAsciiPass("\xd9\x84", "xn--ghb", false); }
8671315test { try toAsciiPass("\xd9\x84", "xn--ghb", true); }
8681316test { try toUnicodeFail("xn--ghb413k"); } // [B3, C1]
1317test { try toAsciiFail("xn--ghb413k", false); } // [B3, C1]
1318test { try toAsciiFail("xn--ghb413k", true); } // [B3, C1]
8691319test { try toUnicodeFail("a\xe3\x80\x82\xe3\x80\x82b"); } // [X4_2]
1320test { 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]
8701322test { try toUnicodeFail("A\xe3\x80\x82\xe3\x80\x82B"); } // [X4_2]
1323test { 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]
8711325test { try toUnicodeFail("a..b"); } // [X4_2]
1326test { try toAsciiFail("a..b", false); } // [A4_2]
1327test { try toAsciiFail("a..b", true); } // [A4_2]
8721328test { 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]
1330test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c", true); } // [A4_2]
8731331test { try toUnicodeFail("..xn--skb"); } // [X4_2]
1332test { try toAsciiFail("..xn--skb", false); } // [A4_2]
1333test { try toAsciiFail("..xn--skb", true); } // [A4_2]
8741334test { try toUnicodeFail("xn--1ug..xn--skb080k"); } // [B1, B3, C1, C2, X4_2]
1335test { try toAsciiFail("xn--1ug..xn--skb080k", false); } // [B1, B3, C1, C2, A4_2]
1336test { try toAsciiFail("xn--1ug..xn--skb080k", true); } // [B1, B3, C1, C2, A4_2]
8751337test { try toUnicodeFail("\xd7\x900\xd9\xa0"); } // [B4]
1338test { try toAsciiFail("\xd7\x900\xd9\xa0", false); } // [B4]
1339test { try toAsciiFail("\xd7\x900\xd9\xa0", true); } // [B4]
8761340test { try toUnicodeFail("xn--0-zhc74b"); } // [B4]
1341test { try toAsciiFail("xn--0-zhc74b", false); } // [B4]
1342test { try toAsciiFail("xn--0-zhc74b", true); } // [B4]
8771343test { try toUnicodeFail("$"); } // [U1]
1344test { try toAsciiFail("$", false); } // [U1]
1345test { try toAsciiFail("$", true); } // [U1]
8781346test { try toUnicodeFail("\xe2\x91\xb7.four"); } // [U1]
1347test { try toAsciiFail("\xe2\x91\xb7.four", false); } // [U1]
1348test { try toAsciiFail("\xe2\x91\xb7.four", true); } // [U1]
8791349test { try toUnicodeFail("(4).four"); } // [U1]
1350test { try toAsciiFail("(4).four", false); } // [U1]
1351test { try toAsciiFail("(4).four", true); } // [U1]
8801352test { try toUnicodeFail("\xe2\x91\xb7.FOUR"); } // [U1]
1353test { try toAsciiFail("\xe2\x91\xb7.FOUR", false); } // [U1]
1354test { try toAsciiFail("\xe2\x91\xb7.FOUR", true); } // [U1]
8811355test { try toUnicodeFail("\xe2\x91\xb7.Four"); } // [U1]
1356test { try toAsciiFail("\xe2\x91\xb7.Four", false); } // [U1]
1357test { try toAsciiFail("\xe2\x91\xb7.Four", true); } // [U1]
8821358test { try toUnicodeFail("a\xef\xbf\xbdz"); } // [V7]
1359test { try toAsciiFail("a\xef\xbf\xbdz", false); } // [V7, A3]
1360test { try toAsciiFail("a\xef\xbf\xbdz", true); } // [V7, A3]
8831361test { try toUnicodeFail("A\xef\xbf\xbdZ"); } // [V7]
1362test { try toAsciiFail("A\xef\xbf\xbdZ", false); } // [V7, A3]
1363test { try toAsciiFail("A\xef\xbf\xbdZ", true); } // [V7, A3]
8841364test { try toUnicodeFail("xn--"); } // [P4, X4_2]
1365test { try toAsciiFail("xn--", false); } // [P4, A4_1, A4_2]
1366test { try toAsciiFail("xn--", true); } // [P4, A4_1, A4_2]
8851367test { try toUnicodeFail("xn---"); } // [P4]
1368test { try toAsciiFail("xn---", false); } // [P4]
1369test { try toAsciiFail("xn---", true); } // [P4]
8861370test { try toUnicodeFail("xn--ASCII-"); } // [P4]
1371test { try toAsciiFail("xn--ASCII-", false); } // [P4]
1372test { try toAsciiFail("xn--ASCII-", true); } // [P4]
8871373test { try toUnicodePass("ascii", "ascii"); }
8881374test { try toAsciiPass("ascii", "ascii", false); }
8891375test { try toAsciiPass("ascii", "ascii", true); }
8901376test { try toUnicodeFail("xn--unicode-.org"); } // [P4]
1377test { try toAsciiFail("xn--unicode-.org", false); } // [P4]
1378test { try toAsciiFail("xn--unicode-.org", true); } // [P4]
8911379test { try toUnicodePass("unicode.org", "unicode.org"); }
8921380test { try toAsciiPass("unicode.org", "unicode.org", false); }
8931381test { try toAsciiPass("unicode.org", "unicode.org", true); }
......@@ -946,25 +1434,65 @@ test { try toUnicodePass("123456789012345678901234567890123456789012345678901234
9461434test { try toAsciiPass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); }
9471435test { try toAsciiPass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.xn--1234567890123456789012345678901234567890123456789012345-kue.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); }
9481436test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b."); }
1437test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", false); } // [A4_2]
1438test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", true); } // [A4_2]
9491439test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b."); }
1440test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", false); } // [A4_2]
1441test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b.", true); } // [A4_2]
9501442test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c"); }
1443test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", false); } // [A4_1]
1444test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x88123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", true); } // [A4_1]
9511445test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa4123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c"); }
1446test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", false); } // [A4_1]
1447test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x84123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345678901234567890123.1234567890123456789012345678901234567890123456789012345678901c", true); } // [A4_1]
9521448test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a"); }
1449test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", false); } // [A4_2]
1450test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", true); } // [A4_2]
9531451test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a"); }
1452test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", false); } // [A4_2]
1453test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a", true); } // [A4_2]
9541454test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
1455test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", false); } // [A4_2]
1456test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", true); } // [A4_2]
9551457test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
1458test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", false); } // [A4_2]
1459test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", true); } // [A4_2]
9561460test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
1461test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); } // [A4_1, A4_2]
1462test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); } // [A4_1, A4_2]
9571463test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
1464test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", false); } // [A4_1, A4_2]
1465test { try toAsciiFail("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", true); } // [A4_1, A4_2]
9581466test { try toUnicodeFail("c.0\xc3\xbc.\xd7\x90"); } // [B1]
1467test { try toAsciiFail("c.0\xc3\xbc.\xd7\x90", false); } // [B1]
1468test { try toAsciiFail("c.0\xc3\xbc.\xd7\x90", true); } // [B1]
9591469test { try toUnicodeFail("c.0u\xcc\x88.\xd7\x90"); } // [B1]
1470test { try toAsciiFail("c.0u\xcc\x88.\xd7\x90", false); } // [B1]
1471test { try toAsciiFail("c.0u\xcc\x88.\xd7\x90", true); } // [B1]
9601472test { try toUnicodeFail("C.0U\xcc\x88.\xd7\x90"); } // [B1]
1473test { try toAsciiFail("C.0U\xcc\x88.\xd7\x90", false); } // [B1]
1474test { try toAsciiFail("C.0U\xcc\x88.\xd7\x90", true); } // [B1]
9611475test { try toUnicodeFail("C.0\xc3\x9c.\xd7\x90"); } // [B1]
1476test { try toAsciiFail("C.0\xc3\x9c.\xd7\x90", false); } // [B1]
1477test { try toAsciiFail("C.0\xc3\x9c.\xd7\x90", true); } // [B1]
9621478test { try toUnicodeFail("C.0\xc3\xbc.\xd7\x90"); } // [B1]
1479test { try toAsciiFail("C.0\xc3\xbc.\xd7\x90", false); } // [B1]
1480test { try toAsciiFail("C.0\xc3\xbc.\xd7\x90", true); } // [B1]
9631481test { try toUnicodeFail("C.0u\xcc\x88.\xd7\x90"); } // [B1]
1482test { try toAsciiFail("C.0u\xcc\x88.\xd7\x90", false); } // [B1]
1483test { try toAsciiFail("C.0u\xcc\x88.\xd7\x90", true); } // [B1]
9641484test { try toUnicodeFail("\xe2\x92\x95\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6\xef\xbc\x8e-\xf3\xa0\x84\xaf"); } // [V3, V7]
1485test { try toAsciiFail("\xe2\x92\x95\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6\xef\xbc\x8e-\xf3\xa0\x84\xaf", false); } // [V3, V7]
1486test { try toAsciiFail("\xe2\x92\x95\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6\xef\xbc\x8e-\xf3\xa0\x84\xaf", true); } // [V3, V7]
9651487test { try toUnicodeFail("14.\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6.-\xf3\xa0\x84\xaf"); } // [V3, V7]
1488test { try toAsciiFail("14.\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6.-\xf3\xa0\x84\xaf", false); } // [V3, V7]
1489test { try toAsciiFail("14.\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6.-\xf3\xa0\x84\xaf", true); } // [V3, V7]
9661490test { try toUnicodeFail("14.xn--7hb713l3v90n.-"); } // [V3, V7]
1491test { try toAsciiFail("14.xn--7hb713l3v90n.-", false); } // [V3, V7]
1492test { try toAsciiFail("14.xn--7hb713l3v90n.-", true); } // [V3, V7]
9671493test { try toUnicodeFail("xn--7hb713lfwbi1311b.-"); } // [V3, V7]
1494test { try toAsciiFail("xn--7hb713lfwbi1311b.-", false); } // [V3, V7]
1495test { try toAsciiFail("xn--7hb713lfwbi1311b.-", true); } // [V3, V7]
9681496test { try toUnicodePass("\xea\xa1\xa3.\xdf\x8f", "\xea\xa1\xa3.\xdf\x8f"); }
9691497test { try toAsciiPass("\xea\xa1\xa3.\xdf\x8f", "xn--8c9a.xn--qsb", false); }
9701498test { try toAsciiPass("\xea\xa1\xa3.\xdf\x8f", "xn--8c9a.xn--qsb", true); }
......@@ -972,34 +1500,80 @@ test { try toUnicodePass("xn--8c9a.xn--qsb", "\xea\xa1\xa3.\xdf\x8f"); }
9721500test { try toAsciiPass("xn--8c9a.xn--qsb", "xn--8c9a.xn--qsb", false); }
9731501test { try toAsciiPass("xn--8c9a.xn--qsb", "xn--8c9a.xn--qsb", true); }
9741502test { try toUnicodeFail("\xe2\x89\xaf\xd8\x83\xef\xbd\xa1-"); } // [B1, V3, V7]
1503test { try toAsciiFail("\xe2\x89\xaf\xd8\x83\xef\xbd\xa1-", false); } // [B1, V3, V7]
1504test { try toAsciiFail("\xe2\x89\xaf\xd8\x83\xef\xbd\xa1-", true); } // [B1, V3, V7]
9751505test { try toUnicodeFail(">\xcc\xb8\xd8\x83\xef\xbd\xa1-"); } // [B1, V3, V7]
1506test { try toAsciiFail(">\xcc\xb8\xd8\x83\xef\xbd\xa1-", false); } // [B1, V3, V7]
1507test { try toAsciiFail(">\xcc\xb8\xd8\x83\xef\xbd\xa1-", true); } // [B1, V3, V7]
9761508test { try toUnicodeFail("\xe2\x89\xaf\xd8\x83\xe3\x80\x82-"); } // [B1, V3, V7]
1509test { try toAsciiFail("\xe2\x89\xaf\xd8\x83\xe3\x80\x82-", false); } // [B1, V3, V7]
1510test { try toAsciiFail("\xe2\x89\xaf\xd8\x83\xe3\x80\x82-", true); } // [B1, V3, V7]
9771511test { try toUnicodeFail(">\xcc\xb8\xd8\x83\xe3\x80\x82-"); } // [B1, V3, V7]
1512test { try toAsciiFail(">\xcc\xb8\xd8\x83\xe3\x80\x82-", false); } // [B1, V3, V7]
1513test { try toAsciiFail(">\xcc\xb8\xd8\x83\xe3\x80\x82-", true); } // [B1, V3, V7]
9781514test { try toUnicodeFail("xn--lfb566l.-"); } // [B1, V3, V7]
1515test { try toAsciiFail("xn--lfb566l.-", false); } // [B1, V3, V7]
1516test { try toAsciiFail("xn--lfb566l.-", true); } // [B1, V3, V7]
9791517test { try toUnicodeFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe1\x82\xad"); } // [B1, B5, V7]
1518test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe1\x82\xad", false); } // [B1, B5, V7]
1519test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe1\x82\xad", true); } // [B1, B5, V7]
9801520test { try toUnicodeFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe1\x82\xad"); } // [B1, B5, V7]
1521test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe1\x82\xad", false); } // [B1, B5, V7]
1522test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe1\x82\xad", true); } // [B1, B5, V7]
9811523test { try toUnicodeFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe2\xb4\x8d"); } // [B1, B5, V7]
1524test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe2\xb4\x8d", false); } // [B1, B5, V7]
1525test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe2\xb4\x8d", true); } // [B1, B5, V7]
9821526test { try toUnicodeFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe1\x82\xad"); } // [B1, B5, V7]
1527test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe1\x82\xad", false); } // [B1, B5, V7]
1528test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe1\x82\xad", true); } // [B1, B5, V7]
9831529test { try toUnicodeFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x83\xe2\xb4\x8d"); } // [B1, B5, V7]
1530test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x83\xe2\xb4\x8d", false); } // [B1, B5, V7]
1531test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x83\xe2\xb4\x8d", true); } // [B1, B5, V7]
9841532test { try toUnicodeFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe2\xb4\x8d"); } // [B1, B5, V7]
1533test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe2\xb4\x8d", false); } // [B1, B5, V7]
1534test { try toAsciiFail("\xe8\xb5\xb0\xf0\x90\xb9\xa7\xe8\xb0\xb7.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe2\xb4\x8d", true); } // [B1, B5, V7]
9851535test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa452s5d17u"); } // [B1, B5, V7]
1536test { try toAsciiFail("xn--6g3a1x434z.xn--4xa452s5d17u", false); } // [B1, B5, V7]
1537test { try toAsciiFail("xn--6g3a1x434z.xn--4xa452s5d17u", true); } // [B1, B5, V7]
9861538test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa652s5d17u"); } // [B1, B5, V7]
1539test { try toAsciiFail("xn--6g3a1x434z.xn--3xa652s5d17u", false); } // [B1, B5, V7]
1540test { try toAsciiFail("xn--6g3a1x434z.xn--3xa652s5d17u", true); } // [B1, B5, V7]
9871541test { try toUnicodeFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe2\xb4\x8d"); } // [B1, B5, V7]
1542test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe2\xb4\x8d", false); } // [B1, B5, V7]
1543test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x82\xe2\xb4\x8d", true); } // [B1, B5, V7]
9881544test { try toUnicodeFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe1\x82\xad"); } // [B1, B5, V7]
1545test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe1\x82\xad", false); } // [B1, B5, V7]
1546test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe1\x82\xad", true); } // [B1, B5, V7]
9891547test { try toUnicodeFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x83\xe2\xb4\x8d"); } // [B1, B5, V7]
1548test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x83\xe2\xb4\x8d", false); } // [B1, B5, V7]
1549test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xcf\x83\xe2\xb4\x8d", true); } // [B1, B5, V7]
9901550test { try toUnicodeFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe2\xb4\x8d"); } // [B1, B5, V7]
1551test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe2\xb4\x8d", false); } // [B1, B5, V7]
1552test { try toAsciiFail("\xe2\xbe\x9b\xf0\x90\xb9\xa7\xe2\xbe\x95.\xe1\x85\x9f\xf3\xa0\x97\xb0\xce\xa3\xe2\xb4\x8d", true); } // [B1, B5, V7]
9911553test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa180eotvh7453a"); } // [B5, V7]
1554test { try toAsciiFail("xn--6g3a1x434z.xn--4xa180eotvh7453a", false); } // [B5, V7]
1555test { try toAsciiFail("xn--6g3a1x434z.xn--4xa180eotvh7453a", true); } // [B5, V7]
9921556test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa627dhpae6345i"); } // [B5, V7]
1557test { try toAsciiFail("xn--6g3a1x434z.xn--4xa627dhpae6345i", false); } // [B5, V7]
1558test { try toAsciiFail("xn--6g3a1x434z.xn--4xa627dhpae6345i", true); } // [B5, V7]
9931559test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa380eotvh7453a"); } // [B5, V7]
1560test { try toAsciiFail("xn--6g3a1x434z.xn--3xa380eotvh7453a", false); } // [B5, V7]
1561test { try toAsciiFail("xn--6g3a1x434z.xn--3xa380eotvh7453a", true); } // [B5, V7]
9941562test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa827dhpae6345i"); } // [B5, V7]
1563test { try toAsciiFail("xn--6g3a1x434z.xn--3xa827dhpae6345i", false); } // [B5, V7]
1564test { try toAsciiFail("xn--6g3a1x434z.xn--3xa827dhpae6345i", true); } // [B5, V7]
9951565test { try toAsciiPass("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0", "xn--jbf911clb.xn----p9j493ivi4l", true); }
9961566test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0"); } // [C2]
1567test { try toAsciiFail("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0", false); } // [C2]
9971568test { try toAsciiPass("\xe2\x80\x8d=\xcc\xb8\xe1\xa2\x99>\xcc\xb8.\xe1\x84\x89\xe1\x85\xa9\xe1\x86\xbe-\xe1\xa1\xb4\xe1\x82\xa0", "xn--jbf911clb.xn----p9j493ivi4l", true); }
9981569test { try toUnicodeFail("\xe2\x80\x8d=\xcc\xb8\xe1\xa2\x99>\xcc\xb8.\xe1\x84\x89\xe1\x85\xa9\xe1\x86\xbe-\xe1\xa1\xb4\xe1\x82\xa0"); } // [C2]
1570test { try toAsciiFail("\xe2\x80\x8d=\xcc\xb8\xe1\xa2\x99>\xcc\xb8.\xe1\x84\x89\xe1\x85\xa9\xe1\x86\xbe-\xe1\xa1\xb4\xe1\x82\xa0", false); } // [C2]
9991571test { try toAsciiPass("\xe2\x80\x8d=\xcc\xb8\xe1\xa2\x99>\xcc\xb8.\xe1\x84\x89\xe1\x85\xa9\xe1\x86\xbe-\xe1\xa1\xb4\xe2\xb4\x80", "xn--jbf911clb.xn----p9j493ivi4l", true); }
10001572test { try toUnicodeFail("\xe2\x80\x8d=\xcc\xb8\xe1\xa2\x99>\xcc\xb8.\xe1\x84\x89\xe1\x85\xa9\xe1\x86\xbe-\xe1\xa1\xb4\xe2\xb4\x80"); } // [C2]
1573test { try toAsciiFail("\xe2\x80\x8d=\xcc\xb8\xe1\xa2\x99>\xcc\xb8.\xe1\x84\x89\xe1\x85\xa9\xe1\x86\xbe-\xe1\xa1\xb4\xe2\xb4\x80", false); } // [C2]
10011574test { try toAsciiPass("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80", "xn--jbf911clb.xn----p9j493ivi4l", true); }
10021575test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); } // [C2]
1576test { try toAsciiFail("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80", false); } // [C2]
10031577test { try toUnicodePass("xn--jbf911clb.xn----p9j493ivi4l", "\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); }
10041578test { try toAsciiPass("xn--jbf911clb.xn----p9j493ivi4l", "xn--jbf911clb.xn----p9j493ivi4l", false); }
10051579test { try toAsciiPass("xn--jbf911clb.xn----p9j493ivi4l", "xn--jbf911clb.xn----p9j493ivi4l", true); }
......@@ -1016,269 +1590,797 @@ test { try toUnicodePass("\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1
10161590test { try toAsciiPass("\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0", "xn--jbf911clb.xn----p9j493ivi4l", false); }
10171591test { try toAsciiPass("\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0", "xn--jbf911clb.xn----p9j493ivi4l", true); }
10181592test { try toUnicodeFail("xn--jbf929a90b0b.xn----p9j493ivi4l"); } // [C2]
1593test { try toAsciiFail("xn--jbf929a90b0b.xn----p9j493ivi4l", false); } // [C2]
1594test { try toAsciiFail("xn--jbf929a90b0b.xn----p9j493ivi4l", true); } // [C2]
10191595test { try toUnicodeFail("xn--jbf911clb.xn----6zg521d196p"); } // [V7]
1596test { try toAsciiFail("xn--jbf911clb.xn----6zg521d196p", false); } // [V7]
1597test { try toAsciiFail("xn--jbf911clb.xn----6zg521d196p", true); } // [V7]
10201598test { try toUnicodeFail("xn--jbf929a90b0b.xn----6zg521d196p"); } // [C2, V7]
1599test { try toAsciiFail("xn--jbf929a90b0b.xn----6zg521d196p", false); } // [C2, V7]
1600test { try toAsciiFail("xn--jbf929a90b0b.xn----6zg521d196p", true); } // [C2, V7]
10211601test { try toUnicodeFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa2\xdd\xbd\xd8\x80"); } // [V7]
1602test { try toAsciiFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa2\xdd\xbd\xd8\x80", false); } // [V7]
1603test { try toAsciiFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa2\xdd\xbd\xd8\x80", true); } // [V7]
10221604test { try toUnicodeFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80"); } // [V7]
1605test { try toAsciiFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80", false); } // [V7]
1606test { try toAsciiFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80", true); } // [V7]
10231607test { try toUnicodeFail("\xf1\xaf\x9e\x9c.\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80"); } // [V7]
1608test { try toAsciiFail("\xf1\xaf\x9e\x9c.\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80", false); } // [V7]
1609test { try toAsciiFail("\xf1\xaf\x9e\x9c.\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80", true); } // [V7]
10241610test { try toUnicodeFail("xn--gw68a.xn--ifb57ev2psc6027m"); } // [V7]
1611test { try toAsciiFail("xn--gw68a.xn--ifb57ev2psc6027m", false); } // [V7]
1612test { try toAsciiFail("xn--gw68a.xn--ifb57ev2psc6027m", true); } // [V7]
10251613test { try toUnicodeFail("\xf0\xa3\xb3\x94\xcc\x83.\xf0\x91\x93\x82"); } // [V6]
1614test { try toAsciiFail("\xf0\xa3\xb3\x94\xcc\x83.\xf0\x91\x93\x82", false); } // [V6]
1615test { try toAsciiFail("\xf0\xa3\xb3\x94\xcc\x83.\xf0\x91\x93\x82", true); } // [V6]
10261616test { try toUnicodeFail("xn--nsa95820a.xn--wz1d"); } // [V6]
1617test { try toAsciiFail("xn--nsa95820a.xn--wz1d", false); } // [V6]
1618test { try toAsciiFail("xn--nsa95820a.xn--wz1d", true); } // [V6]
10271619test { try toUnicodeFail("\xf0\x9e\xa4\x80\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe1\x83\x83\xea\xa1\xa5"); } // [B2, B3, V7]
1620test { try toAsciiFail("\xf0\x9e\xa4\x80\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe1\x83\x83\xea\xa1\xa5", false); } // [B2, B3, V7]
1621test { try toAsciiFail("\xf0\x9e\xa4\x80\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe1\x83\x83\xea\xa1\xa5", true); } // [B2, B3, V7]
10281622test { try toUnicodeFail("\xf0\x9e\xa4\xa2\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe2\xb4\xa3\xea\xa1\xa5"); } // [B2, B3, V7]
1623test { try toAsciiFail("\xf0\x9e\xa4\xa2\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe2\xb4\xa3\xea\xa1\xa5", false); } // [B2, B3, V7]
1624test { try toAsciiFail("\xf0\x9e\xa4\xa2\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe2\xb4\xa3\xea\xa1\xa5", true); } // [B2, B3, V7]
10291625test { try toUnicodeFail("xn--9d6hgcy3556a.xn--rlju750b"); } // [B2, B3, V7]
1626test { try toAsciiFail("xn--9d6hgcy3556a.xn--rlju750b", false); } // [B2, B3, V7]
1627test { try toAsciiFail("xn--9d6hgcy3556a.xn--rlju750b", true); } // [B2, B3, V7]
10301628test { try toUnicodeFail("xn--9d6hgcy3556a.xn--7nd0578e"); } // [B2, B3, V7]
1629test { try toAsciiFail("xn--9d6hgcy3556a.xn--7nd0578e", false); } // [B2, B3, V7]
1630test { try toAsciiFail("xn--9d6hgcy3556a.xn--7nd0578e", true); } // [B2, B3, V7]
10311631test { try toUnicodeFail("\xf0\x9e\xa4\x80\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe2\xb4\xa3\xea\xa1\xa5"); } // [B2, B3, V7]
1632test { try toAsciiFail("\xf0\x9e\xa4\x80\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe2\xb4\xa3\xea\xa1\xa5", false); } // [B2, B3, V7]
1633test { try toAsciiFail("\xf0\x9e\xa4\x80\xf0\x9e\xa5\x85\xf1\x98\x90\xb1\xe3\x80\x82\xf3\xa0\x84\x8c\xe2\xb4\xa3\xea\xa1\xa5", true); } // [B2, B3, V7]
10321634test { try toUnicodeFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x82\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7"); } // [B1, V7]
1635test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x82\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7", false); } // [B1, V7]
1636test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x82\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7", true); } // [B1, V7]
10331637test { try toUnicodeFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x82\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa"); } // [B1, V7]
1638test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x82\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa", false); } // [B1, V7]
1639test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x82\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa", true); } // [B1, V7]
10341640test { try toUnicodeFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xce\xa3\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa"); } // [B1, V7]
1641test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xce\xa3\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa", false); } // [B1, V7]
1642test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xce\xa3\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa", true); } // [B1, V7]
10351643test { try toUnicodeFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xce\xa3\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7"); } // [B1, V7]
1644test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xce\xa3\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7", false); } // [B1, V7]
1645test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xce\xa3\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7", true); } // [B1, V7]
10361646test { try toUnicodeFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x83\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7"); } // [B1, V7]
1647test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x83\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7", false); } // [B1, V7]
1648test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x83\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xeb\xa0\xa7", true); } // [B1, V7]
10371649test { try toUnicodeFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x83\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa"); } // [B1, V7]
1650test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x83\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa", false); } // [B1, V7]
1651test { try toAsciiFail("\xe0\xa3\xa2\xf0\x91\x81\xbf\xcf\x83\xf0\x96\xac\xb1\xe3\x80\x82\xf3\xa0\x85\xa1\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xaa", true); } // [B1, V7]
10381652test { try toUnicodeFail("xn--4xa53xp48ys2xc.xn--kn2b"); } // [B1, V7]
1653test { try toAsciiFail("xn--4xa53xp48ys2xc.xn--kn2b", false); } // [B1, V7]
1654test { try toAsciiFail("xn--4xa53xp48ys2xc.xn--kn2b", true); } // [B1, V7]
10391655test { try toUnicodeFail("xn--3xa73xp48ys2xc.xn--kn2b"); } // [B1, V7]
1656test { try toAsciiFail("xn--3xa73xp48ys2xc.xn--kn2b", false); } // [B1, V7]
1657test { try toAsciiFail("xn--3xa73xp48ys2xc.xn--kn2b", true); } // [B1, V7]
10401658test { try toUnicodeFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x8d\xe2\x80\x8c\xe2\x80\x8d\xe2\x92\x88"); } // [B1, C1, C2, V3, V7]
1659test { try toAsciiFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x8d\xe2\x80\x8c\xe2\x80\x8d\xe2\x92\x88", false); } // [B1, C1, C2, V3, V7]
1660test { try toAsciiFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x8d\xe2\x80\x8c\xe2\x80\x8d\xe2\x92\x88", true); } // [B1, V3, V7]
10411661test { try toUnicodeFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x8d\xe2\x80\x8c\xe2\x80\x8d1."); } // [B1, C1, C2, V3]
1662test { try toAsciiFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x8d\xe2\x80\x8c\xe2\x80\x8d1.", false); } // [B1, C1, C2, V3, A4_2]
1663test { try toAsciiFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x8d\xe2\x80\x8c\xe2\x80\x8d1.", true); } // [B1, V3, A4_2]
10421664test { try toUnicodeFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xaf\xe2\x80\x8c\xe2\x80\x8d1."); } // [B1, C1, C2, V3]
1665test { try toAsciiFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xaf\xe2\x80\x8c\xe2\x80\x8d1.", false); } // [B1, C1, C2, V3, A4_2]
1666test { try toAsciiFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xaf\xe2\x80\x8c\xe2\x80\x8d1.", true); } // [B1, V3, A4_2]
10431667test { try toUnicodeFail("-.xn--1-0i8r."); } // [B1, V3]
1668test { try toAsciiFail("-.xn--1-0i8r.", false); } // [B1, V3, A4_2]
1669test { try toAsciiFail("-.xn--1-0i8r.", true); } // [B1, V3, A4_2]
10441670test { try toUnicodeFail("xn----ugn.xn--1-rgnd61297b."); } // [B1, C1, C2, V3]
1671test { try toAsciiFail("xn----ugn.xn--1-rgnd61297b.", false); } // [B1, C1, C2, V3, A4_2]
1672test { try toAsciiFail("xn----ugn.xn--1-rgnd61297b.", true); } // [B1, C1, C2, V3, A4_2]
10451673test { try toUnicodeFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xaf\xe2\x80\x8c\xe2\x80\x8d\xe2\x92\x88"); } // [B1, C1, C2, V3, V7]
1674test { try toAsciiFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xaf\xe2\x80\x8c\xe2\x80\x8d\xe2\x92\x88", false); } // [B1, C1, C2, V3, V7]
1675test { try toAsciiFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xaf\xe2\x80\x8c\xe2\x80\x8d\xe2\x92\x88", true); } // [B1, V3, V7]
10461676test { try toUnicodeFail("-.xn--tsh3666n"); } // [B1, V3, V7]
1677test { try toAsciiFail("-.xn--tsh3666n", false); } // [B1, V3, V7]
1678test { try toAsciiFail("-.xn--tsh3666n", true); } // [B1, V3, V7]
10471679test { try toUnicodeFail("xn----ugn.xn--0ugc555aiv51d"); } // [B1, C1, C2, V3, V7]
1680test { try toAsciiFail("xn----ugn.xn--0ugc555aiv51d", false); } // [B1, C1, C2, V3, V7]
1681test { try toAsciiFail("xn----ugn.xn--0ugc555aiv51d", true); } // [B1, C1, C2, V3, V7]
10481682test { try toUnicodeFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe1\x82\xb2\xf0\x91\x87\x80"); } // [C1, V7]
1683test { try toAsciiFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe1\x82\xb2\xf0\x91\x87\x80", false); } // [C1, V7]
1684test { try toAsciiFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe1\x82\xb2\xf0\x91\x87\x80", true); } // [V7]
10491685test { try toUnicodeFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe2\xb4\x92\xf0\x91\x87\x80"); } // [C1, V7]
1686test { try toAsciiFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe2\xb4\x92\xf0\x91\x87\x80", false); } // [C1, V7]
1687test { try toAsciiFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe2\xb4\x92\xf0\x91\x87\x80", true); } // [V7]
10501688test { try toUnicodeFail("xn--bn95b.xn--9kj2034e"); } // [V7]
1689test { try toAsciiFail("xn--bn95b.xn--9kj2034e", false); } // [V7]
1690test { try toAsciiFail("xn--bn95b.xn--9kj2034e", true); } // [V7]
10511691test { try toUnicodeFail("xn--0ug15083f.xn--9kj2034e"); } // [C1, V7]
1692test { try toAsciiFail("xn--0ug15083f.xn--9kj2034e", false); } // [C1, V7]
1693test { try toAsciiFail("xn--0ug15083f.xn--9kj2034e", true); } // [C1, V7]
10521694test { try toUnicodeFail("xn--bn95b.xn--qnd6272k"); } // [V7]
1695test { try toAsciiFail("xn--bn95b.xn--qnd6272k", false); } // [V7]
1696test { try toAsciiFail("xn--bn95b.xn--qnd6272k", true); } // [V7]
10531697test { try toUnicodeFail("xn--0ug15083f.xn--qnd6272k"); } // [C1, V7]
1698test { try toAsciiFail("xn--0ug15083f.xn--qnd6272k", false); } // [C1, V7]
1699test { try toAsciiFail("xn--0ug15083f.xn--qnd6272k", true); } // [C1, V7]
10541700test { try toUnicodeFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.\xef\xbc\x98\xef\xb8\x92"); } // [V7]
1701test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.\xef\xbc\x98\xef\xb8\x92", false); } // [V7]
1702test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.\xef\xbc\x98\xef\xb8\x92", true); } // [V7]
10551703test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.8\xe3\x80\x82", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.8."); }
1704test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.8\xe3\x80\x82", false); } // [A4_2]
1705test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.8\xe3\x80\x82", true); } // [A4_2]
10561706test { try toUnicodePass("xn--gl0as212a.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf.i."); }
1707test { try toAsciiFail("xn--gl0as212a.i.", false); } // [A4_2]
1708test { try toAsciiFail("xn--gl0as212a.i.", true); } // [A4_2]
10571709test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf.i."); }
1710test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf.i.", false); } // [A4_2]
1711test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf.i.", true); } // [A4_2]
10581712test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf.I.", "\xe7\xb9\xb1\xf0\x91\x96\xbf.i."); }
1713test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf.I.", false); } // [A4_2]
1714test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf.I.", true); } // [A4_2]
10591715test { try toUnicodePass("xn--1ug6928ac48e.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }
1716test { try toAsciiFail("xn--1ug6928ac48e.i.", false); } // [A4_2]
1717test { try toAsciiFail("xn--1ug6928ac48e.i.", true); } // [A4_2]
10601718test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }
1719test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i.", false); } // [A4_2]
1720test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i.", true); } // [A4_2]
10611721test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.I.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }
1722test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.I.", false); } // [A4_2]
1723test { try toAsciiFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.I.", true); } // [A4_2]
10621724test { try toUnicodeFail("xn--gl0as212a.xn--8-o89h"); } // [V7]
1725test { try toAsciiFail("xn--gl0as212a.xn--8-o89h", false); } // [V7]
1726test { try toAsciiFail("xn--gl0as212a.xn--8-o89h", true); } // [V7]
10631727test { try toUnicodeFail("xn--1ug6928ac48e.xn--8-o89h"); } // [V7]
1728test { try toAsciiFail("xn--1ug6928ac48e.xn--8-o89h", false); } // [V7]
1729test { try toAsciiFail("xn--1ug6928ac48e.xn--8-o89h", true); } // [V7]
10641730test { try toUnicodeFail("\xf3\xa0\x86\xbe\xef\xbc\x8e\xf0\x9e\x80\x88"); } // [V6, X4_2]
1731test { try toAsciiFail("\xf3\xa0\x86\xbe\xef\xbc\x8e\xf0\x9e\x80\x88", false); } // [V6, A4_2]
1732test { try toAsciiFail("\xf3\xa0\x86\xbe\xef\xbc\x8e\xf0\x9e\x80\x88", true); } // [V6, A4_2]
10651733test { try toUnicodeFail("\xf3\xa0\x86\xbe.\xf0\x9e\x80\x88"); } // [V6, X4_2]
1734test { try toAsciiFail("\xf3\xa0\x86\xbe.\xf0\x9e\x80\x88", false); } // [V6, A4_2]
1735test { try toAsciiFail("\xf3\xa0\x86\xbe.\xf0\x9e\x80\x88", true); } // [V6, A4_2]
10661736test { try toUnicodeFail(".xn--ph4h"); } // [V6, X4_2]
1737test { try toAsciiFail(".xn--ph4h", false); } // [V6, A4_2]
1738test { try toAsciiFail(".xn--ph4h", true); } // [V6, A4_2]
10671739test { try toUnicodeFail("\xc3\x9f\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
1740test { try toAsciiFail("\xc3\x9f\xdb\xab\xe3\x80\x82\xe2\x80\x8d", false); } // [C2]
1741test { try toAsciiFail("\xc3\x9f\xdb\xab\xe3\x80\x82\xe2\x80\x8d", true); } // [A4_2]
10681742test { try toUnicodeFail("SS\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
1743test { try toAsciiFail("SS\xdb\xab\xe3\x80\x82\xe2\x80\x8d", false); } // [C2]
1744test { try toAsciiFail("SS\xdb\xab\xe3\x80\x82\xe2\x80\x8d", true); } // [A4_2]
10691745test { try toUnicodeFail("ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
1746test { try toAsciiFail("ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d", false); } // [C2]
1747test { try toAsciiFail("ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d", true); } // [A4_2]
10701748test { try toUnicodeFail("Ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
1749test { try toAsciiFail("Ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d", false); } // [C2]
1750test { try toAsciiFail("Ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d", true); } // [A4_2]
10711751test { try toUnicodePass("xn--ss-59d.", "ss\xdb\xab."); }
1752test { try toAsciiFail("xn--ss-59d.", false); } // [A4_2]
1753test { try toAsciiFail("xn--ss-59d.", true); } // [A4_2]
10721754test { try toUnicodePass("ss\xdb\xab.", "ss\xdb\xab."); }
1755test { try toAsciiFail("ss\xdb\xab.", false); } // [A4_2]
1756test { try toAsciiFail("ss\xdb\xab.", true); } // [A4_2]
10731757test { try toUnicodePass("SS\xdb\xab.", "ss\xdb\xab."); }
1758test { try toAsciiFail("SS\xdb\xab.", false); } // [A4_2]
1759test { try toAsciiFail("SS\xdb\xab.", true); } // [A4_2]
10741760test { try toUnicodePass("Ss\xdb\xab.", "ss\xdb\xab."); }
1761test { try toAsciiFail("Ss\xdb\xab.", false); } // [A4_2]
1762test { try toAsciiFail("Ss\xdb\xab.", true); } // [A4_2]
10751763test { try toUnicodeFail("xn--ss-59d.xn--1ug"); } // [C2]
1764test { try toAsciiFail("xn--ss-59d.xn--1ug", false); } // [C2]
1765test { try toAsciiFail("xn--ss-59d.xn--1ug", true); } // [C2]
10761766test { try toUnicodeFail("xn--zca012a.xn--1ug"); } // [C2]
1767test { try toAsciiFail("xn--zca012a.xn--1ug", false); } // [C2]
1768test { try toAsciiFail("xn--zca012a.xn--1ug", true); } // [C2]
10771769test { try toUnicodeFail("\xf3\xa0\x90\xb5\xe2\x80\x8c\xe2\x92\x88\xef\xbc\x8e\xf3\xa0\x8e\x87"); } // [C1, V7]
1770test { try toAsciiFail("\xf3\xa0\x90\xb5\xe2\x80\x8c\xe2\x92\x88\xef\xbc\x8e\xf3\xa0\x8e\x87", false); } // [C1, V7]
1771test { try toAsciiFail("\xf3\xa0\x90\xb5\xe2\x80\x8c\xe2\x92\x88\xef\xbc\x8e\xf3\xa0\x8e\x87", true); } // [V7]
10781772test { try toUnicodeFail("\xf3\xa0\x90\xb5\xe2\x80\x8c1..\xf3\xa0\x8e\x87"); } // [C1, V7, X4_2]
1773test { try toAsciiFail("\xf3\xa0\x90\xb5\xe2\x80\x8c1..\xf3\xa0\x8e\x87", false); } // [C1, V7, A4_2]
1774test { try toAsciiFail("\xf3\xa0\x90\xb5\xe2\x80\x8c1..\xf3\xa0\x8e\x87", true); } // [V7, A4_2]
10791775test { try toUnicodeFail("xn--1-bs31m..xn--tv36e"); } // [V7, X4_2]
1776test { try toAsciiFail("xn--1-bs31m..xn--tv36e", false); } // [V7, A4_2]
1777test { try toAsciiFail("xn--1-bs31m..xn--tv36e", true); } // [V7, A4_2]
10801778test { try toUnicodeFail("xn--1-rgn37671n..xn--tv36e"); } // [C1, V7, X4_2]
1779test { try toAsciiFail("xn--1-rgn37671n..xn--tv36e", false); } // [C1, V7, A4_2]
1780test { try toAsciiFail("xn--1-rgn37671n..xn--tv36e", true); } // [C1, V7, A4_2]
10811781test { try toUnicodeFail("xn--tshz2001k.xn--tv36e"); } // [V7]
1782test { try toAsciiFail("xn--tshz2001k.xn--tv36e", false); } // [V7]
1783test { try toAsciiFail("xn--tshz2001k.xn--tv36e", true); } // [V7]
10821784test { try toUnicodeFail("xn--0ug88o47900b.xn--tv36e"); } // [C1, V7]
1785test { try toAsciiFail("xn--0ug88o47900b.xn--tv36e", false); } // [C1, V7]
1786test { try toAsciiFail("xn--0ug88o47900b.xn--tv36e", true); } // [C1, V7]
10831787test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2\xc3\x9f\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7]
1788test { try toAsciiFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2\xc3\x9f\xe3\x80\x82\xf3\x8c\x93\xa7", false); } // [V7]
1789test { try toAsciiFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2\xc3\x9f\xe3\x80\x82\xf3\x8c\x93\xa7", true); } // [V7]
10841790test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2SS\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7]
1791test { try toAsciiFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2SS\xe3\x80\x82\xf3\x8c\x93\xa7", false); } // [V7]
1792test { try toAsciiFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2SS\xe3\x80\x82\xf3\x8c\x93\xa7", true); } // [V7]
10851793test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2ss\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7]
1794test { try toAsciiFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2ss\xe3\x80\x82\xf3\x8c\x93\xa7", false); } // [V7]
1795test { try toAsciiFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2ss\xe3\x80\x82\xf3\x8c\x93\xa7", true); } // [V7]
10861796test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2Ss\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7]
1797test { try toAsciiFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2Ss\xe3\x80\x82\xf3\x8c\x93\xa7", false); } // [V7]
1798test { try toAsciiFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2Ss\xe3\x80\x82\xf3\x8c\x93\xa7", true); } // [V7]
10871799test { try toUnicodeFail("xn--ss-3xd2839nncy1m.xn--bb79d"); } // [V7]
1800test { try toAsciiFail("xn--ss-3xd2839nncy1m.xn--bb79d", false); } // [V7]
1801test { try toAsciiFail("xn--ss-3xd2839nncy1m.xn--bb79d", true); } // [V7]
10881802test { try toUnicodeFail("xn--zca92z0t7n5w96j.xn--bb79d"); } // [V7]
1803test { try toAsciiFail("xn--zca92z0t7n5w96j.xn--bb79d", false); } // [V7]
1804test { try toAsciiFail("xn--zca92z0t7n5w96j.xn--bb79d", true); } // [V7]
10891805test { try toUnicodeFail("\xdd\xb4\xe2\x80\x8c\xf0\x9e\xa4\xbf\xe3\x80\x82\xf0\xbd\x98\x90\xe4\x89\x9c\xe2\x80\x8d\xf1\xbf\xa4\xbc"); } // [C1, C2, V7]
1806test { try toAsciiFail("\xdd\xb4\xe2\x80\x8c\xf0\x9e\xa4\xbf\xe3\x80\x82\xf0\xbd\x98\x90\xe4\x89\x9c\xe2\x80\x8d\xf1\xbf\xa4\xbc", false); } // [C1, C2, V7]
1807test { try toAsciiFail("\xdd\xb4\xe2\x80\x8c\xf0\x9e\xa4\xbf\xe3\x80\x82\xf0\xbd\x98\x90\xe4\x89\x9c\xe2\x80\x8d\xf1\xbf\xa4\xbc", true); } // [V7]
10901808test { try toUnicodeFail("\xdd\xb4\xe2\x80\x8c\xf0\x9e\xa4\x9d\xe3\x80\x82\xf0\xbd\x98\x90\xe4\x89\x9c\xe2\x80\x8d\xf1\xbf\xa4\xbc"); } // [C1, C2, V7]
1809test { try toAsciiFail("\xdd\xb4\xe2\x80\x8c\xf0\x9e\xa4\x9d\xe3\x80\x82\xf0\xbd\x98\x90\xe4\x89\x9c\xe2\x80\x8d\xf1\xbf\xa4\xbc", false); } // [C1, C2, V7]
1810test { try toAsciiFail("\xdd\xb4\xe2\x80\x8c\xf0\x9e\xa4\x9d\xe3\x80\x82\xf0\xbd\x98\x90\xe4\x89\x9c\xe2\x80\x8d\xf1\xbf\xa4\xbc", true); } // [V7]
10911811test { try toUnicodeFail("xn--4pb2977v.xn--z0nt555ukbnv"); } // [V7]
1812test { try toAsciiFail("xn--4pb2977v.xn--z0nt555ukbnv", false); } // [V7]
1813test { try toAsciiFail("xn--4pb2977v.xn--z0nt555ukbnv", true); } // [V7]
10921814test { try toUnicodeFail("xn--4pb607jjt73a.xn--1ug236ke314donv1a"); } // [C1, C2, V7]
1815test { try toAsciiFail("xn--4pb607jjt73a.xn--1ug236ke314donv1a", false); } // [C1, C2, V7]
1816test { try toAsciiFail("xn--4pb607jjt73a.xn--1ug236ke314donv1a", true); } // [C1, C2, V7]
10931817test { try toUnicodeFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7]
1818test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7]
1819test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7]
10941820test { try toUnicodeFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7]
1821test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7]
1822test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7]
10951823test { try toUnicodeFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7, X4_2]
1824test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7, A4_2]
1825test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7, A4_2]
10961826test { try toUnicodeFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7, X4_2]
1827test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7, A4_2]
1828test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x82\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7, A4_2]
10971829test { try toUnicodeFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7, X4_2]
1830test { try toAsciiFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7, A4_2]
1831test { try toAsciiFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7, A4_2]
10981832test { try toUnicodeFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7, X4_2]
1833test { try toAsciiFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7, A4_2]
1834test { try toAsciiFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7, A4_2]
10991835test { try toUnicodeFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7, X4_2]
1836test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7, A4_2]
1837test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb11..\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7, A4_2]
11001838test { try toUnicodeFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7, X4_2]
1839test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7, A4_2]
1840test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb11..<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7, A4_2]
11011841test { try toUnicodeFail("xn--1-zmb699meq63t..xn--gdh5392g6sd"); } // [B1, V7, X4_2]
1842test { try toAsciiFail("xn--1-zmb699meq63t..xn--gdh5392g6sd", false); } // [B1, V7, A4_2]
1843test { try toAsciiFail("xn--1-zmb699meq63t..xn--gdh5392g6sd", true); } // [B1, V7, A4_2]
11021844test { try toUnicodeFail("xn--1-zmb699meq63t..xn--1ug85gn777ahze"); } // [B1, V7, X4_2]
1845test { try toAsciiFail("xn--1-zmb699meq63t..xn--1ug85gn777ahze", false); } // [B1, V7, A4_2]
1846test { try toAsciiFail("xn--1-zmb699meq63t..xn--1ug85gn777ahze", true); } // [B1, V7, A4_2]
11031847test { try toUnicodeFail("xn--1-xmb999meq63t..xn--1ug85gn777ahze"); } // [B1, V7, X4_2]
1848test { try toAsciiFail("xn--1-xmb999meq63t..xn--1ug85gn777ahze", false); } // [B1, V7, A4_2]
1849test { try toAsciiFail("xn--1-xmb999meq63t..xn--1ug85gn777ahze", true); } // [B1, V7, A4_2]
11041850test { try toUnicodeFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7]
1851test { try toAsciiFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7]
1852test { try toAsciiFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7]
11051853test { try toUnicodeFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7]
1854test { try toAsciiFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7]
1855test { try toAsciiFail("\xf2\x94\xad\x9c\xce\xa3\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7]
11061856test { try toUnicodeFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7]
1857test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7]
1858test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb1\xe2\x92\x88.\xe2\x89\xae\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7]
11071859test { try toUnicodeFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d"); } // [B1, V7]
1860test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", false); } // [B1, V7]
1861test { try toAsciiFail("\xf2\x94\xad\x9c\xcf\x83\xe1\xa1\xb1\xe2\x92\x88.<\xcc\xb8\xf0\x91\x84\xb3\xe2\x80\x8d\xf0\x90\xae\x8d", true); } // [B1, V7]
11081862test { try toUnicodeFail("xn--4xa207hkzinr77u.xn--gdh5392g6sd"); } // [B1, V7]
1863test { try toAsciiFail("xn--4xa207hkzinr77u.xn--gdh5392g6sd", false); } // [B1, V7]
1864test { try toAsciiFail("xn--4xa207hkzinr77u.xn--gdh5392g6sd", true); } // [B1, V7]
11091865test { try toUnicodeFail("xn--4xa207hkzinr77u.xn--1ug85gn777ahze"); } // [B1, V7]
1866test { try toAsciiFail("xn--4xa207hkzinr77u.xn--1ug85gn777ahze", false); } // [B1, V7]
1867test { try toAsciiFail("xn--4xa207hkzinr77u.xn--1ug85gn777ahze", true); } // [B1, V7]
11101868test { try toUnicodeFail("xn--3xa407hkzinr77u.xn--1ug85gn777ahze"); } // [B1, V7]
1869test { try toAsciiFail("xn--3xa407hkzinr77u.xn--1ug85gn777ahze", false); } // [B1, V7]
1870test { try toAsciiFail("xn--3xa407hkzinr77u.xn--1ug85gn777ahze", true); } // [B1, V7]
11111871test { try toUnicodeFail("\xe3\x85\xa4\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6]
1872test { try toAsciiFail("\xe3\x85\xa4\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b", false); } // [V6, A4_2]
1873test { try toAsciiFail("\xe3\x85\xa4\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b", true); } // [V6, A4_2]
11121874test { try toUnicodeFail("\xe1\x85\xa0\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6]
1875test { try toAsciiFail("\xe1\x85\xa0\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b", false); } // [V6, A4_2]
1876test { try toAsciiFail("\xe1\x85\xa0\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b", true); } // [V6, A4_2]
11131877test { try toUnicodeFail("\xe1\x85\xa0\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6]
1878test { try toAsciiFail("\xe1\x85\xa0\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b", false); } // [V6, A4_2]
1879test { try toAsciiFail("\xe1\x85\xa0\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b", true); } // [V6, A4_2]
11141880test { try toUnicodeFail("xn--n3b445e53p."); } // [V6]
1881test { try toAsciiFail("xn--n3b445e53p.", false); } // [V6, A4_2]
1882test { try toAsciiFail("xn--n3b445e53p.", true); } // [V6, A4_2]
11151883test { try toUnicodeFail("\xe3\x85\xa4\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6]
1884test { try toAsciiFail("\xe3\x85\xa4\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b", false); } // [V6, A4_2]
1885test { try toAsciiFail("\xe3\x85\xa4\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b", true); } // [V6, A4_2]
11161886test { try toUnicodeFail("xn--n3b742bkqf4ty."); } // [V7]
1887test { try toAsciiFail("xn--n3b742bkqf4ty.", false); } // [V7, A4_2]
1888test { try toAsciiFail("xn--n3b742bkqf4ty.", true); } // [V7, A4_2]
11171889test { try toUnicodeFail("xn--n3b468aoqa89r."); } // [V7]
1890test { try toAsciiFail("xn--n3b468aoqa89r.", false); } // [V7, A4_2]
1891test { try toAsciiFail("xn--n3b468aoqa89r.", true); } // [V7, A4_2]
11181892test { try toUnicodeFail("xn--n3b445e53po6d."); } // [V7]
1893test { try toAsciiFail("xn--n3b445e53po6d.", false); } // [V7, A4_2]
1894test { try toAsciiFail("xn--n3b445e53po6d.", true); } // [V7, A4_2]
11191895test { try toUnicodeFail("xn--n3b468azngju2a."); } // [V7]
1896test { try toAsciiFail("xn--n3b468azngju2a.", false); } // [V7, A4_2]
1897test { try toAsciiFail("xn--n3b468azngju2a.", true); } // [V7, A4_2]
11201898test { try toUnicodeFail("\xe2\x9d\xa3\xe2\x80\x8d\xef\xbc\x8e\xe0\xa7\x8d\xf0\x91\xb0\xbd\xd8\x92\xea\xa4\xa9"); } // [C2, V6]
1899test { try toAsciiFail("\xe2\x9d\xa3\xe2\x80\x8d\xef\xbc\x8e\xe0\xa7\x8d\xf0\x91\xb0\xbd\xd8\x92\xea\xa4\xa9", false); } // [C2, V6]
1900test { try toAsciiFail("\xe2\x9d\xa3\xe2\x80\x8d\xef\xbc\x8e\xe0\xa7\x8d\xf0\x91\xb0\xbd\xd8\x92\xea\xa4\xa9", true); } // [V6]
11211901test { try toUnicodeFail("\xe2\x9d\xa3\xe2\x80\x8d.\xe0\xa7\x8d\xf0\x91\xb0\xbd\xd8\x92\xea\xa4\xa9"); } // [C2, V6]
1902test { try toAsciiFail("\xe2\x9d\xa3\xe2\x80\x8d.\xe0\xa7\x8d\xf0\x91\xb0\xbd\xd8\x92\xea\xa4\xa9", false); } // [C2, V6]
1903test { try toAsciiFail("\xe2\x9d\xa3\xe2\x80\x8d.\xe0\xa7\x8d\xf0\x91\xb0\xbd\xd8\x92\xea\xa4\xa9", true); } // [V6]
11221904test { try toUnicodeFail("xn--pei.xn--0fb32q3w7q2g4d"); } // [V6]
1905test { try toAsciiFail("xn--pei.xn--0fb32q3w7q2g4d", false); } // [V6]
1906test { try toAsciiFail("xn--pei.xn--0fb32q3w7q2g4d", true); } // [V6]
11231907test { try toUnicodeFail("xn--1ugy10a.xn--0fb32q3w7q2g4d"); } // [C2, V6]
1908test { try toAsciiFail("xn--1ugy10a.xn--0fb32q3w7q2g4d", false); } // [C2, V6]
1909test { try toAsciiFail("xn--1ugy10a.xn--0fb32q3w7q2g4d", true); } // [C2, V6]
11241910test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb3\xba\xf0\x90\xb9\x84.\xe2\x89\xaf\xf1\xaa\xae\xb8\xea\xa1\x85"); } // [B1, V7]
1911test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb3\xba\xf0\x90\xb9\x84.\xe2\x89\xaf\xf1\xaa\xae\xb8\xea\xa1\x85", false); } // [B1, V7]
1912test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb3\xba\xf0\x90\xb9\x84.\xe2\x89\xaf\xf1\xaa\xae\xb8\xea\xa1\x85", true); } // [B1, V7]
11251913test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb3\xba\xf0\x90\xb9\x84.>\xcc\xb8\xf1\xaa\xae\xb8\xea\xa1\x85"); } // [B1, V7]
1914test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb3\xba\xf0\x90\xb9\x84.>\xcc\xb8\xf1\xaa\xae\xb8\xea\xa1\x85", false); } // [B1, V7]
1915test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb3\xba\xf0\x90\xb9\x84.>\xcc\xb8\xf1\xaa\xae\xb8\xea\xa1\x85", true); } // [B1, V7]
11261916test { try toUnicodeFail("xn--gdh7943gk2a.xn--hdh1383c5e36c"); } // [B1, V7]
1917test { try toAsciiFail("xn--gdh7943gk2a.xn--hdh1383c5e36c", false); } // [B1, V7]
1918test { try toAsciiFail("xn--gdh7943gk2a.xn--hdh1383c5e36c", true); } // [B1, V7]
11271919test { try toUnicodeFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb3\x8f\xf3\xa0\xb2\xba\xef\xbd\xa1\xe0\xb3\x8d\xe1\xa0\xa6"); } // [B1, V6, V7]
1920test { try toAsciiFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb3\x8f\xf3\xa0\xb2\xba\xef\xbd\xa1\xe0\xb3\x8d\xe1\xa0\xa6", false); } // [B1, V6, V7]
1921test { try toAsciiFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb3\x8f\xf3\xa0\xb2\xba\xef\xbd\xa1\xe0\xb3\x8d\xe1\xa0\xa6", true); } // [B1, V6, V7]
11281922test { try toUnicodeFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb3\x8f\xf3\xa0\xb2\xba\xe3\x80\x82\xe0\xb3\x8d\xe1\xa0\xa6"); } // [B1, V6, V7]
1923test { try toAsciiFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb3\x8f\xf3\xa0\xb2\xba\xe3\x80\x82\xe0\xb3\x8d\xe1\xa0\xa6", false); } // [B1, V6, V7]
1924test { try toAsciiFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb3\x8f\xf3\xa0\xb2\xba\xe3\x80\x82\xe0\xb3\x8d\xe1\xa0\xa6", true); } // [B1, V6, V7]
11291925test { try toUnicodeFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb2\x8f\xf3\xa0\xb2\xba\xe3\x80\x82\xe0\xb3\x8d\xe1\xa0\xa6"); } // [B1, V6, V7]
1926test { try toAsciiFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb2\x8f\xf3\xa0\xb2\xba\xe3\x80\x82\xe0\xb3\x8d\xe1\xa0\xa6", false); } // [B1, V6, V7]
1927test { try toAsciiFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb2\x8f\xf3\xa0\xb2\xba\xe3\x80\x82\xe0\xb3\x8d\xe1\xa0\xa6", true); } // [B1, V6, V7]
11301928test { try toUnicodeFail("xn--7tc6360ky5bn2732c.xn--8tc429c"); } // [B1, V6, V7]
1929test { try toAsciiFail("xn--7tc6360ky5bn2732c.xn--8tc429c", false); } // [B1, V6, V7]
1930test { try toAsciiFail("xn--7tc6360ky5bn2732c.xn--8tc429c", true); } // [B1, V6, V7]
11311931test { try toUnicodeFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb2\x8f\xf3\xa0\xb2\xba\xef\xbd\xa1\xe0\xb3\x8d\xe1\xa0\xa6"); } // [B1, V6, V7]
1932test { try toAsciiFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb2\x8f\xf3\xa0\xb2\xba\xef\xbd\xa1\xe0\xb3\x8d\xe1\xa0\xa6", false); } // [B1, V6, V7]
1933test { try toAsciiFail("\xe0\xb3\x8c\xf0\x90\xa7\x85\xf0\x90\xb2\x8f\xf3\xa0\xb2\xba\xef\xbd\xa1\xe0\xb3\x8d\xe1\xa0\xa6", true); } // [B1, V6, V7]
11321934test { try toUnicodeFail("\xcd\x89\xe3\x80\x82\xf0\xa7\xa1\xab"); } // [V6]
1935test { try toAsciiFail("\xcd\x89\xe3\x80\x82\xf0\xa7\xa1\xab", false); } // [V6]
1936test { try toAsciiFail("\xcd\x89\xe3\x80\x82\xf0\xa7\xa1\xab", true); } // [V6]
11331937test { try toUnicodeFail("xn--nua.xn--bc6k"); } // [V6]
1938test { try toAsciiFail("xn--nua.xn--bc6k", false); } // [V6]
1939test { try toAsciiFail("xn--nua.xn--bc6k", true); } // [V6]
11341940test { try toUnicodeFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6\xef\xbc\x8e\xe1\x85\xa0"); } // [V6]
1941test { try toAsciiFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6\xef\xbc\x8e\xe1\x85\xa0", false); } // [V6, A4_2]
1942test { try toAsciiFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6\xef\xbc\x8e\xe1\x85\xa0", true); } // [V6, A4_2]
11351943test { try toUnicodeFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6.\xe1\x85\xa0"); } // [V6]
1944test { try toAsciiFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6.\xe1\x85\xa0", false); } // [V6, A4_2]
1945test { try toAsciiFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6.\xe1\x85\xa0", true); } // [V6, A4_2]
11361946test { try toUnicodeFail("xn--ok3d."); } // [V6]
1947test { try toAsciiFail("xn--ok3d.", false); } // [V6, A4_2]
1948test { try toAsciiFail("xn--ok3d.", true); } // [V6, A4_2]
11371949test { try toUnicodeFail("xn--ok3d.xn--psd"); } // [V6, V7]
1950test { try toAsciiFail("xn--ok3d.xn--psd", false); } // [V6, V7]
1951test { try toAsciiFail("xn--ok3d.xn--psd", true); } // [V6, V7]
11381952test { try toUnicodeFail("-\xf0\x9e\xa4\x86\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xbc\x84\xf0\x9e\xb3\x92"); } // [B1, B5, B6, C2, V3, V7]
1953test { try toAsciiFail("-\xf0\x9e\xa4\x86\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xbc\x84\xf0\x9e\xb3\x92", false); } // [B1, B5, B6, C2, V3, V7]
1954test { try toAsciiFail("-\xf0\x9e\xa4\x86\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xbc\x84\xf0\x9e\xb3\x92", true); } // [B1, B5, B6, V3, V7]
11391955test { try toUnicodeFail("-\xf0\x9e\xa4\xa8\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xbc\x84\xf0\x9e\xb3\x92"); } // [B1, B5, B6, C2, V3, V7]
1956test { try toAsciiFail("-\xf0\x9e\xa4\xa8\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xbc\x84\xf0\x9e\xb3\x92", false); } // [B1, B5, B6, C2, V3, V7]
1957test { try toAsciiFail("-\xf0\x9e\xa4\xa8\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xbc\x84\xf0\x9e\xb3\x92", true); } // [B1, B5, B6, V3, V7]
11401958test { try toUnicodeFail("xn----ni8r.xn--846h96596c"); } // [B1, B5, B6, V3, V7]
1959test { try toAsciiFail("xn----ni8r.xn--846h96596c", false); } // [B1, B5, B6, V3, V7]
1960test { try toAsciiFail("xn----ni8r.xn--846h96596c", true); } // [B1, B5, B6, V3, V7]
11411961test { try toUnicodeFail("xn----ugnx367r.xn--846h96596c"); } // [B1, B5, B6, C2, V3, V7]
1962test { try toAsciiFail("xn----ugnx367r.xn--846h96596c", false); } // [B1, B5, B6, C2, V3, V7]
1963test { try toAsciiFail("xn----ugnx367r.xn--846h96596c", true); } // [B1, B5, B6, C2, V3, V7]
11421964test { try toUnicodeFail("\xea\xa1\x8f\xf3\xa0\x87\xb6\xe2\x89\xaf\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe2\xbe\x87\xe6\xbb\xb8\xf0\x90\xb9\xb0"); } // [B1, V6, V7]
1965test { try toAsciiFail("\xea\xa1\x8f\xf3\xa0\x87\xb6\xe2\x89\xaf\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe2\xbe\x87\xe6\xbb\xb8\xf0\x90\xb9\xb0", false); } // [B1, V6, V7]
1966test { try toAsciiFail("\xea\xa1\x8f\xf3\xa0\x87\xb6\xe2\x89\xaf\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe2\xbe\x87\xe6\xbb\xb8\xf0\x90\xb9\xb0", true); } // [B1, V6, V7]
11431967test { try toUnicodeFail("\xea\xa1\x8f\xf3\xa0\x87\xb6>\xcc\xb8\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe2\xbe\x87\xe6\xbb\xb8\xf0\x90\xb9\xb0"); } // [B1, V6, V7]
1968test { try toAsciiFail("\xea\xa1\x8f\xf3\xa0\x87\xb6>\xcc\xb8\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe2\xbe\x87\xe6\xbb\xb8\xf0\x90\xb9\xb0", false); } // [B1, V6, V7]
1969test { try toAsciiFail("\xea\xa1\x8f\xf3\xa0\x87\xb6>\xcc\xb8\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe2\xbe\x87\xe6\xbb\xb8\xf0\x90\xb9\xb0", true); } // [B1, V6, V7]
11441970test { try toUnicodeFail("\xea\xa1\x8f\xf3\xa0\x87\xb6\xe2\x89\xaf\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe8\x88\x9b\xe6\xbb\xb8\xf0\x90\xb9\xb0"); } // [B1, V6, V7]
1971test { try toAsciiFail("\xea\xa1\x8f\xf3\xa0\x87\xb6\xe2\x89\xaf\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe8\x88\x9b\xe6\xbb\xb8\xf0\x90\xb9\xb0", false); } // [B1, V6, V7]
1972test { try toAsciiFail("\xea\xa1\x8f\xf3\xa0\x87\xb6\xe2\x89\xaf\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe8\x88\x9b\xe6\xbb\xb8\xf0\x90\xb9\xb0", true); } // [B1, V6, V7]
11451973test { try toUnicodeFail("\xea\xa1\x8f\xf3\xa0\x87\xb6>\xcc\xb8\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe8\x88\x9b\xe6\xbb\xb8\xf0\x90\xb9\xb0"); } // [B1, V6, V7]
1974test { try toAsciiFail("\xea\xa1\x8f\xf3\xa0\x87\xb6>\xcc\xb8\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe8\x88\x9b\xe6\xbb\xb8\xf0\x90\xb9\xb0", false); } // [B1, V6, V7]
1975test { try toAsciiFail("\xea\xa1\x8f\xf3\xa0\x87\xb6>\xcc\xb8\xf0\xb3\xbe\xbd\xe3\x80\x82\xe1\xb7\xbd\xe8\x88\x9b\xe6\xbb\xb8\xf0\x90\xb9\xb0", true); } // [B1, V6, V7]
11461976test { try toUnicodeFail("xn--hdh7483cu6twwki8e.xn--yfg0765a58l0n6k"); } // [B1, V6, V7]
1977test { try toAsciiFail("xn--hdh7483cu6twwki8e.xn--yfg0765a58l0n6k", false); } // [B1, V6, V7]
1978test { try toAsciiFail("xn--hdh7483cu6twwki8e.xn--yfg0765a58l0n6k", true); } // [B1, V6, V7]
11471979test { try toUnicodeFail("\xe8\x94\x8f\xef\xbd\xa1\xf0\x91\xb0\xba"); } // [V6]
1980test { try toAsciiFail("\xe8\x94\x8f\xef\xbd\xa1\xf0\x91\xb0\xba", false); } // [V6]
1981test { try toAsciiFail("\xe8\x94\x8f\xef\xbd\xa1\xf0\x91\xb0\xba", true); } // [V6]
11481982test { try toUnicodeFail("\xe8\x94\x8f\xe3\x80\x82\xf0\x91\xb0\xba"); } // [V6]
1983test { try toAsciiFail("\xe8\x94\x8f\xe3\x80\x82\xf0\x91\xb0\xba", false); } // [V6]
1984test { try toAsciiFail("\xe8\x94\x8f\xe3\x80\x82\xf0\x91\xb0\xba", true); } // [V6]
11491985test { try toUnicodeFail("xn--uy1a.xn--jk3d"); } // [V6]
1986test { try toAsciiFail("xn--uy1a.xn--jk3d", false); } // [V6]
1987test { try toAsciiFail("xn--uy1a.xn--jk3d", true); } // [V6]
11501988test { try toUnicodeFail("\xf0\x9d\x9f\xbf\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a"); } // [B1]
1989test { try toAsciiFail("\xf0\x9d\x9f\xbf\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a", false); } // [B1, A4_2]
1990test { try toAsciiFail("\xf0\x9d\x9f\xbf\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a", true); } // [B1, A4_2]
11511991test { try toUnicodeFail("9\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a"); } // [B1]
1992test { try toAsciiFail("9\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a", false); } // [B1, A4_2]
1993test { try toAsciiFail("9\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a", true); } // [B1, A4_2]
11521994test { try toUnicodeFail("xn--9-rv5i."); } // [B1]
1995test { try toAsciiFail("xn--9-rv5i.", false); } // [B1, A4_2]
1996test { try toAsciiFail("xn--9-rv5i.", true); } // [B1, A4_2]
11531997test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2"); } // [B4, V7]
1998test { try toAsciiFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2", false); } // [B4, V7]
1999test { try toAsciiFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2", true); } // [B4, V7]
11542000test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b1.\xd9\xa2"); } // [B1, V7]
2001test { try toAsciiFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b1.\xd9\xa2", false); } // [B1, V7]
2002test { try toAsciiFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b1.\xd9\xa2", true); } // [B1, V7]
11552003test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b1.\xd9\xa2"); } // [B1, V7]
2004test { try toAsciiFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b1.\xd9\xa2", false); } // [B1, V7]
2005test { try toAsciiFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b1.\xd9\xa2", true); } // [B1, V7]
11562006test { try toUnicodeFail("xn---f-mz8b08788k.xn--1-ybd.xn--bib"); } // [B1, V7]
2007test { try toAsciiFail("xn---f-mz8b08788k.xn--1-ybd.xn--bib", false); } // [B1, V7]
2008test { try toAsciiFail("xn---f-mz8b08788k.xn--1-ybd.xn--bib", true); } // [B1, V7]
11572009test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2"); } // [B4, V7]
2010test { try toAsciiFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2", false); } // [B4, V7]
2011test { try toAsciiFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2", true); } // [B4, V7]
11582012test { try toUnicodeFail("xn---f-mz8b08788k.xn--bib53ev44d"); } // [B4, V7]
2013test { try toAsciiFail("xn---f-mz8b08788k.xn--bib53ev44d", false); } // [B4, V7]
2014test { try toAsciiFail("xn---f-mz8b08788k.xn--bib53ev44d", true); } // [B4, V7]
11592015test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xf0\x90\xb9\xba"); } // [B1, C1]
2016test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xf0\x90\xb9\xba", false); } // [B1, C1]
2017test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xf0\x90\xb9\xba", true); } // [B1, A4_2]
11602018test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xf0\x90\xb9\xba"); } // [B1, C1]
2019test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xf0\x90\xb9\xba", false); } // [B1, C1]
2020test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xf0\x90\xb9\xba", true); } // [B1, A4_2]
11612021test { try toUnicodeFail(".xn--yo0d"); } // [B1, X4_2]
2022test { try toAsciiFail(".xn--yo0d", false); } // [B1, A4_2]
2023test { try toAsciiFail(".xn--yo0d", true); } // [B1, A4_2]
11622024test { try toUnicodeFail("xn--0ug.xn--yo0d"); } // [B1, C1]
2025test { try toAsciiFail("xn--0ug.xn--yo0d", false); } // [B1, C1]
2026test { try toAsciiFail("xn--0ug.xn--yo0d", true); } // [B1, C1]
11632027test { try toUnicodeFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa5\x80"); } // [B1, C1]
2028test { try toAsciiFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa5\x80", false); } // [B1, C1]
2029test { try toAsciiFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa5\x80", true); } // [B1]
11642030test { try toUnicodeFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa5\x80"); } // [B1, C1]
2031test { try toAsciiFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa5\x80", false); } // [B1, C1]
2032test { try toAsciiFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa5\x80", true); } // [B1]
11652033test { try toUnicodeFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa4\x9e"); } // [B1, C1]
2034test { try toAsciiFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa4\x9e", false); } // [B1, C1]
2035test { try toAsciiFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa4\x9e", true); } // [B1]
11662036test { try toUnicodeFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa4\x9e"); } // [B1, C1]
2037test { try toAsciiFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa4\x9e", false); } // [B1, C1]
2038test { try toAsciiFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa4\x9e", true); } // [B1]
11672039test { try toUnicodeFail("xn--le9c.xn----ogo9956r"); } // [B1]
2040test { try toAsciiFail("xn--le9c.xn----ogo9956r", false); } // [B1]
2041test { try toAsciiFail("xn--le9c.xn----ogo9956r", true); } // [B1]
11682042test { try toUnicodeFail("xn--le9c.xn----rgn40iy359e"); } // [B1, C1]
2043test { try toAsciiFail("xn--le9c.xn----rgn40iy359e", false); } // [B1, C1]
2044test { try toAsciiFail("xn--le9c.xn----rgn40iy359e", true); } // [B1, C1]
11692045test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xef\xb3\x97"); } // [B1, V3, V7]
2046test { try toAsciiFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xef\xb3\x97", false); } // [B1, V3, V7]
2047test { try toAsciiFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xef\xb3\x97", true); } // [B1, V3, V7]
11702048test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xef\xb3\x97"); } // [B1, V3, V7]
2049test { try toAsciiFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xef\xb3\x97", false); } // [B1, V3, V7]
2050test { try toAsciiFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xef\xb3\x97", true); } // [B1, V3, V7]
11712051test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xd9\x87\xd8\xac"); } // [B1, V3, V7]
2052test { try toAsciiFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xd9\x87\xd8\xac", false); } // [B1, V3, V7]
2053test { try toAsciiFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xd9\x87\xd8\xac", true); } // [B1, V3, V7]
11722054test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xd9\x87\xd8\xac"); } // [B1, V3, V7]
2055test { try toAsciiFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xd9\x87\xd8\xac", false); } // [B1, V3, V7]
2056test { try toAsciiFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xd9\x87\xd8\xac", true); } // [B1, V3, V7]
11732057test { try toUnicodeFail("xn----f411m.xn--rgb7c611j"); } // [B1, V3, V7]
2058test { try toAsciiFail("xn----f411m.xn--rgb7c611j", false); } // [B1, V3, V7]
2059test { try toAsciiFail("xn----f411m.xn--rgb7c611j", true); } // [B1, V3, V7]
11742060test { try toUnicodeFail("\xf1\xbb\xac\xb9\xf0\x91\x88\xb5\xe3\x80\x82\xe2\x80\x8d\xf0\x9e\xa8\xb6"); } // [B1, C2, V7]
2061test { try toAsciiFail("\xf1\xbb\xac\xb9\xf0\x91\x88\xb5\xe3\x80\x82\xe2\x80\x8d\xf0\x9e\xa8\xb6", false); } // [B1, C2, V7]
2062test { try toAsciiFail("\xf1\xbb\xac\xb9\xf0\x91\x88\xb5\xe3\x80\x82\xe2\x80\x8d\xf0\x9e\xa8\xb6", true); } // [V7]
11752063test { try toUnicodeFail("xn--8g1d12120a.xn--5l6h"); } // [V7]
2064test { try toAsciiFail("xn--8g1d12120a.xn--5l6h", false); } // [V7]
2065test { try toAsciiFail("xn--8g1d12120a.xn--5l6h", true); } // [V7]
11762066test { try toUnicodeFail("xn--8g1d12120a.xn--1ug6651p"); } // [B1, C2, V7]
2067test { try toAsciiFail("xn--8g1d12120a.xn--1ug6651p", false); } // [B1, C2, V7]
2068test { try toAsciiFail("xn--8g1d12120a.xn--1ug6651p", true); } // [B1, C2, V7]
11772069test { try toUnicodeFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xef\xbd\xa1\xe3\xa7\x89\xf2\x92\x96\x84"); } // [V6, V7]
2070test { try toAsciiFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xef\xbd\xa1\xe3\xa7\x89\xf2\x92\x96\x84", false); } // [V6, V7]
2071test { try toAsciiFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xef\xbd\xa1\xe3\xa7\x89\xf2\x92\x96\x84", true); } // [V6, V7]
11782072test { try toUnicodeFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xe3\x80\x82\xe3\xa7\x89\xf2\x92\x96\x84"); } // [V6, V7]
2073test { try toAsciiFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xe3\x80\x82\xe3\xa7\x89\xf2\x92\x96\x84", false); } // [V6, V7]
2074test { try toAsciiFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xe3\x80\x82\xe3\xa7\x89\xf2\x92\x96\x84", true); } // [V6, V7]
11792075test { try toUnicodeFail("xn--2-5z4eu89y.xn--97l02706d"); } // [V6, V7]
2076test { try toAsciiFail("xn--2-5z4eu89y.xn--97l02706d", false); } // [V6, V7]
2077test { try toAsciiFail("xn--2-5z4eu89y.xn--97l02706d", true); } // [V6, V7]
11802078test { try toUnicodeFail("\xe2\x80\x8c\xf0\xbd\xac\x84\xf0\x90\xb9\xb4\xf0\x9e\xa9\xa5\xe3\x80\x82\xe2\x89\xaf6"); } // [B1, C1, V7]
2079test { try toAsciiFail("\xe2\x80\x8c\xf0\xbd\xac\x84\xf0\x90\xb9\xb4\xf0\x9e\xa9\xa5\xe3\x80\x82\xe2\x89\xaf6", false); } // [B1, C1, V7]
2080test { try toAsciiFail("\xe2\x80\x8c\xf0\xbd\xac\x84\xf0\x90\xb9\xb4\xf0\x9e\xa9\xa5\xe3\x80\x82\xe2\x89\xaf6", true); } // [B1, B5, B6, V7]
11812081test { try toUnicodeFail("\xe2\x80\x8c\xf0\xbd\xac\x84\xf0\x90\xb9\xb4\xf0\x9e\xa9\xa5\xe3\x80\x82>\xcc\xb86"); } // [B1, C1, V7]
2082test { try toAsciiFail("\xe2\x80\x8c\xf0\xbd\xac\x84\xf0\x90\xb9\xb4\xf0\x9e\xa9\xa5\xe3\x80\x82>\xcc\xb86", false); } // [B1, C1, V7]
2083test { try toAsciiFail("\xe2\x80\x8c\xf0\xbd\xac\x84\xf0\x90\xb9\xb4\xf0\x9e\xa9\xa5\xe3\x80\x82>\xcc\xb86", true); } // [B1, B5, B6, V7]
11822084test { try toUnicodeFail("xn--so0du768aim9m.xn--6-ogo"); } // [B1, B5, B6, V7]
2085test { try toAsciiFail("xn--so0du768aim9m.xn--6-ogo", false); } // [B1, B5, B6, V7]
2086test { try toAsciiFail("xn--so0du768aim9m.xn--6-ogo", true); } // [B1, B5, B6, V7]
11832087test { try toUnicodeFail("xn--0ug7105gf5wfxepq.xn--6-ogo"); } // [B1, C1, V7]
2088test { try toAsciiFail("xn--0ug7105gf5wfxepq.xn--6-ogo", false); } // [B1, C1, V7]
2089test { try toAsciiFail("xn--0ug7105gf5wfxepq.xn--6-ogo", true); } // [B1, C1, V7]
11842090test { try toUnicodeFail("\xf0\x91\x81\xbf\xef\xbc\x8e\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d"); } // [B1, C2, V6, V7]
2091test { try toAsciiFail("\xf0\x91\x81\xbf\xef\xbc\x8e\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d", false); } // [B1, C2, V6, V7]
2092test { try toAsciiFail("\xf0\x91\x81\xbf\xef\xbc\x8e\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d", true); } // [B1, V3, V6, V7]
11852093test { try toUnicodeFail("\xf0\x91\x81\xbf.\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d"); } // [B1, C2, V6, V7]
2094test { try toAsciiFail("\xf0\x91\x81\xbf.\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d", false); } // [B1, C2, V6, V7]
2095test { try toAsciiFail("\xf0\x91\x81\xbf.\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d", true); } // [B1, V3, V6, V7]
11862096test { try toUnicodeFail("xn--q30d.xn----i26i1299n"); } // [B1, V3, V6, V7]
2097test { try toAsciiFail("xn--q30d.xn----i26i1299n", false); } // [B1, V3, V6, V7]
2098test { try toAsciiFail("xn--q30d.xn----i26i1299n", true); } // [B1, V3, V6, V7]
11872099test { try toUnicodeFail("xn--q30d.xn----ugn1088hfsxv"); } // [B1, C2, V6, V7]
2100test { try toAsciiFail("xn--q30d.xn----ugn1088hfsxv", false); } // [B1, C2, V6, V7]
2101test { try toAsciiFail("xn--q30d.xn----ugn1088hfsxv", true); } // [B1, C2, V6, V7]
11882102test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7]
2103test { try toAsciiFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0", false); } // [V7, A4_2]
2104test { try toAsciiFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0", true); } // [V7, A4_2]
11892105test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7]
2106test { try toAsciiFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0", false); } // [V7, A4_2]
2107test { try toAsciiFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0", true); } // [V7, A4_2]
11902108test { try toUnicodeFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7]
2109test { try toAsciiFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0", false); } // [V7, A4_2]
2110test { try toAsciiFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0", true); } // [V7, A4_2]
11912111test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7]
2112test { try toAsciiFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0", false); } // [V7, A4_2]
2113test { try toAsciiFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0", true); } // [V7, A4_2]
11922114test { try toUnicodeFail("xn--4xa192qmp03d."); } // [V7]
2115test { try toAsciiFail("xn--4xa192qmp03d.", false); } // [V7, A4_2]
2116test { try toAsciiFail("xn--4xa192qmp03d.", true); } // [V7, A4_2]
11932117test { try toUnicodeFail("xn--3xa392qmp03d."); } // [V7]
2118test { try toAsciiFail("xn--3xa392qmp03d.", false); } // [V7, A4_2]
2119test { try toAsciiFail("xn--3xa392qmp03d.", true); } // [V7, A4_2]
11942120test { try toUnicodeFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7]
2121test { try toAsciiFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0", false); } // [V7, A4_2]
2122test { try toAsciiFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0", true); } // [V7, A4_2]
11952123test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7]
2124test { try toAsciiFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0", false); } // [V7, A4_2]
2125test { try toAsciiFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0", true); } // [V7, A4_2]
11962126test { try toUnicodeFail("xn--4xa192qmp03d.xn--psd"); } // [V7]
2127test { try toAsciiFail("xn--4xa192qmp03d.xn--psd", false); } // [V7]
2128test { try toAsciiFail("xn--4xa192qmp03d.xn--psd", true); } // [V7]
11972129test { try toUnicodeFail("xn--3xa392qmp03d.xn--psd"); } // [V7]
2130test { try toAsciiFail("xn--3xa392qmp03d.xn--psd", false); } // [V7]
2131test { try toAsciiFail("xn--3xa392qmp03d.xn--psd", true); } // [V7]
11982132test { try toUnicodeFail("xn--4xa192qmp03d.xn--cl7c"); } // [V7]
2133test { try toAsciiFail("xn--4xa192qmp03d.xn--cl7c", false); } // [V7]
2134test { try toAsciiFail("xn--4xa192qmp03d.xn--cl7c", true); } // [V7]
11992135test { try toUnicodeFail("xn--3xa392qmp03d.xn--cl7c"); } // [V7]
2136test { try toAsciiFail("xn--3xa392qmp03d.xn--cl7c", false); } // [V7]
2137test { try toAsciiFail("xn--3xa392qmp03d.xn--cl7c", true); } // [V7]
12002138test { try toUnicodeFail("\xdd\xa5\xe1\x80\xb5\xf0\x90\xab\x94\xdb\x95.\xf0\x90\xa6\xac\xf0\x91\x8b\xaa\xe1\x82\xa3"); } // [B2, B3]
2139test { try toAsciiFail("\xdd\xa5\xe1\x80\xb5\xf0\x90\xab\x94\xdb\x95.\xf0\x90\xa6\xac\xf0\x91\x8b\xaa\xe1\x82\xa3", false); } // [B2, B3]
2140test { try toAsciiFail("\xdd\xa5\xe1\x80\xb5\xf0\x90\xab\x94\xdb\x95.\xf0\x90\xa6\xac\xf0\x91\x8b\xaa\xe1\x82\xa3", true); } // [B2, B3]
12012141test { try toUnicodeFail("\xdd\xa5\xe1\x80\xb5\xf0\x90\xab\x94\xdb\x95.\xf0\x90\xa6\xac\xf0\x91\x8b\xaa\xe2\xb4\x83"); } // [B2, B3]
2142test { try toAsciiFail("\xdd\xa5\xe1\x80\xb5\xf0\x90\xab\x94\xdb\x95.\xf0\x90\xa6\xac\xf0\x91\x8b\xaa\xe2\xb4\x83", false); } // [B2, B3]
2143test { try toAsciiFail("\xdd\xa5\xe1\x80\xb5\xf0\x90\xab\x94\xdb\x95.\xf0\x90\xa6\xac\xf0\x91\x8b\xaa\xe2\xb4\x83", true); } // [B2, B3]
12022144test { try toUnicodeFail("xn--llb10as9tqp5y.xn--ukj7371e21f"); } // [B2, B3]
2145test { try toAsciiFail("xn--llb10as9tqp5y.xn--ukj7371e21f", false); } // [B2, B3]
2146test { try toAsciiFail("xn--llb10as9tqp5y.xn--ukj7371e21f", true); } // [B2, B3]
12032147test { try toUnicodeFail("xn--llb10as9tqp5y.xn--bnd9168j21f"); } // [B2, B3, V7]
2148test { try toAsciiFail("xn--llb10as9tqp5y.xn--bnd9168j21f", false); } // [B2, B3, V7]
2149test { try toAsciiFail("xn--llb10as9tqp5y.xn--bnd9168j21f", true); } // [B2, B3, V7]
12042150test { try toUnicodeFail("\xd9\xa1\xe1\xad\x84-\xed\x82\xbc.\xe1\xae\xaa\xd8\x96\xd9\xac\xe2\x89\xaf"); } // [B1, B5, B6, V6]
2151test { try toAsciiFail("\xd9\xa1\xe1\xad\x84-\xed\x82\xbc.\xe1\xae\xaa\xd8\x96\xd9\xac\xe2\x89\xaf", false); } // [B1, B5, B6, V6]
2152test { try toAsciiFail("\xd9\xa1\xe1\xad\x84-\xed\x82\xbc.\xe1\xae\xaa\xd8\x96\xd9\xac\xe2\x89\xaf", true); } // [B1, B5, B6, V6]
12052153test { try toUnicodeFail("\xd9\xa1\xe1\xad\x84-\xe1\x84\x8f\xe1\x85\xb5\xe1\x86\xbf.\xe1\xae\xaa\xd8\x96\xd9\xac>\xcc\xb8"); } // [B1, B5, B6, V6]
2154test { try toAsciiFail("\xd9\xa1\xe1\xad\x84-\xe1\x84\x8f\xe1\x85\xb5\xe1\x86\xbf.\xe1\xae\xaa\xd8\x96\xd9\xac>\xcc\xb8", false); } // [B1, B5, B6, V6]
2155test { try toAsciiFail("\xd9\xa1\xe1\xad\x84-\xe1\x84\x8f\xe1\x85\xb5\xe1\x86\xbf.\xe1\xae\xaa\xd8\x96\xd9\xac>\xcc\xb8", true); } // [B1, B5, B6, V6]
12062156test { try toUnicodeFail("xn----9pc551nk39n.xn--4fb6o571degg"); } // [B1, B5, B6, V6]
2157test { try toAsciiFail("xn----9pc551nk39n.xn--4fb6o571degg", false); } // [B1, B5, B6, V6]
2158test { try toAsciiFail("xn----9pc551nk39n.xn--4fb6o571degg", true); } // [B1, B5, B6, V6]
12072159test { try toUnicodeFail("-\xe3\x80\x82\xdb\x82\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82"); } // [B1, B2, B3, V3, V7]
2160test { try toAsciiFail("-\xe3\x80\x82\xdb\x82\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82", false); } // [B1, B2, B3, V3, V7]
2161test { try toAsciiFail("-\xe3\x80\x82\xdb\x82\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82", true); } // [B1, B2, B3, V3, V7]
12082162test { try toUnicodeFail("-\xe3\x80\x82\xdb\x81\xd9\x94\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82"); } // [B1, B2, B3, V3, V7]
2163test { try toAsciiFail("-\xe3\x80\x82\xdb\x81\xd9\x94\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82", false); } // [B1, B2, B3, V3, V7]
2164test { try toAsciiFail("-\xe3\x80\x82\xdb\x81\xd9\x94\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82", true); } // [B1, B2, B3, V3, V7]
12092165test { try toUnicodeFail("-.xn--mfb39a7208dzgs3d"); } // [B1, B2, B3, V3, V7]
2166test { try toAsciiFail("-.xn--mfb39a7208dzgs3d", false); } // [B1, B2, B3, V3, V7]
2167test { try toAsciiFail("-.xn--mfb39a7208dzgs3d", true); } // [B1, B2, B3, V3, V7]
12102168test { try toUnicodeFail("\xe2\x80\x8d\xf3\xaf\x91\x96\xf3\xa0\x81\x90\xef\xbc\x8e\xd6\xbd\xf0\x99\xae\xb0\xea\xa1\x9d\xf0\x90\x8b\xa1"); } // [C2, V6, V7]
2169test { try toAsciiFail("\xe2\x80\x8d\xf3\xaf\x91\x96\xf3\xa0\x81\x90\xef\xbc\x8e\xd6\xbd\xf0\x99\xae\xb0\xea\xa1\x9d\xf0\x90\x8b\xa1", false); } // [C2, V6, V7]
2170test { try toAsciiFail("\xe2\x80\x8d\xf3\xaf\x91\x96\xf3\xa0\x81\x90\xef\xbc\x8e\xd6\xbd\xf0\x99\xae\xb0\xea\xa1\x9d\xf0\x90\x8b\xa1", true); } // [V6, V7]
12112171test { try toUnicodeFail("\xe2\x80\x8d\xf3\xaf\x91\x96\xf3\xa0\x81\x90.\xd6\xbd\xf0\x99\xae\xb0\xea\xa1\x9d\xf0\x90\x8b\xa1"); } // [C2, V6, V7]
2172test { try toAsciiFail("\xe2\x80\x8d\xf3\xaf\x91\x96\xf3\xa0\x81\x90.\xd6\xbd\xf0\x99\xae\xb0\xea\xa1\x9d\xf0\x90\x8b\xa1", false); } // [C2, V6, V7]
2173test { try toAsciiFail("\xe2\x80\x8d\xf3\xaf\x91\x96\xf3\xa0\x81\x90.\xd6\xbd\xf0\x99\xae\xb0\xea\xa1\x9d\xf0\x90\x8b\xa1", true); } // [V6, V7]
12122174test { try toUnicodeFail("xn--b726ey18m.xn--ldb8734fg0qcyzzg"); } // [V6, V7]
2175test { try toAsciiFail("xn--b726ey18m.xn--ldb8734fg0qcyzzg", false); } // [V6, V7]
2176test { try toAsciiFail("xn--b726ey18m.xn--ldb8734fg0qcyzzg", true); } // [V6, V7]
12132177test { try toUnicodeFail("xn--1ug66101lt8me.xn--ldb8734fg0qcyzzg"); } // [C2, V6, V7]
2178test { try toAsciiFail("xn--1ug66101lt8me.xn--ldb8734fg0qcyzzg", false); } // [C2, V6, V7]
2179test { try toAsciiFail("xn--1ug66101lt8me.xn--ldb8734fg0qcyzzg", true); } // [C2, V6, V7]
12142180test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x82\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7]
2181test { try toAsciiFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x82\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88", false); } // [B1, V7]
2182test { try toAsciiFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x82\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88", true); } // [B1, V7]
12152183test { try toUnicodeFail("\xe3\x80\x82\xf4\x83\x88\xb5\xcf\x82\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88"); } // [V7, X4_2]
2184test { try toAsciiFail("\xe3\x80\x82\xf4\x83\x88\xb5\xcf\x82\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88", false); } // [V7, A4_2]
2185test { try toAsciiFail("\xe3\x80\x82\xf4\x83\x88\xb5\xcf\x82\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88", true); } // [V7, A4_2]
12162186test { try toUnicodeFail("\xe3\x80\x82\xf4\x83\x88\xb5\xce\xa3\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88"); } // [V7, X4_2]
2187test { try toAsciiFail("\xe3\x80\x82\xf4\x83\x88\xb5\xce\xa3\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88", false); } // [V7, A4_2]
2188test { try toAsciiFail("\xe3\x80\x82\xf4\x83\x88\xb5\xce\xa3\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88", true); } // [V7, A4_2]
12172189test { try toUnicodeFail("\xe3\x80\x82\xf4\x83\x88\xb5\xcf\x83\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88"); } // [V7, X4_2]
2190test { try toAsciiFail("\xe3\x80\x82\xf4\x83\x88\xb5\xcf\x83\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88", false); } // [V7, A4_2]
2191test { try toAsciiFail("\xe3\x80\x82\xf4\x83\x88\xb5\xcf\x83\xf1\x80\xa0\x87\xe3\x80\x82\xf0\x90\xae\x88", true); } // [V7, A4_2]
12182192test { try toUnicodeFail(".xn--4xa68573c7n64d.xn--f29c"); } // [V7, X4_2]
2193test { try toAsciiFail(".xn--4xa68573c7n64d.xn--f29c", false); } // [V7, A4_2]
2194test { try toAsciiFail(".xn--4xa68573c7n64d.xn--f29c", true); } // [V7, A4_2]
12192195test { try toUnicodeFail(".xn--3xa88573c7n64d.xn--f29c"); } // [V7, X4_2]
2196test { try toAsciiFail(".xn--3xa88573c7n64d.xn--f29c", false); } // [V7, A4_2]
2197test { try toAsciiFail(".xn--3xa88573c7n64d.xn--f29c", true); } // [V7, A4_2]
12202198test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xce\xa3\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7]
2199test { try toAsciiFail("\xef\xb8\x92\xf4\x83\x88\xb5\xce\xa3\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88", false); } // [B1, V7]
2200test { try toAsciiFail("\xef\xb8\x92\xf4\x83\x88\xb5\xce\xa3\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88", true); } // [B1, V7]
12212201test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x83\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7]
2202test { try toAsciiFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x83\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88", false); } // [B1, V7]
2203test { try toAsciiFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x83\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88", true); } // [B1, V7]
12222204test { try toUnicodeFail("xn--4xa1729jwz5t7gl5f.xn--f29c"); } // [B1, V7]
2205test { try toAsciiFail("xn--4xa1729jwz5t7gl5f.xn--f29c", false); } // [B1, V7]
2206test { try toAsciiFail("xn--4xa1729jwz5t7gl5f.xn--f29c", true); } // [B1, V7]
12232207test { try toUnicodeFail("xn--3xa3729jwz5t7gl5f.xn--f29c"); } // [B1, V7]
2208test { try toAsciiFail("xn--3xa3729jwz5t7gl5f.xn--f29c", false); } // [B1, V7]
2209test { try toAsciiFail("xn--3xa3729jwz5t7gl5f.xn--f29c", true); } // [B1, V7]
12242210test { try toUnicodeFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2"); } // [B2, B3, V7]
2211test { try toAsciiFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2", false); } // [B2, B3, V7]
2212test { try toAsciiFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2", true); } // [B2, B3, V7]
12252213test { try toUnicodeFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2"); } // [B2, B3, V7]
2214test { try toAsciiFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2", false); } // [B2, B3, V7]
2215test { try toAsciiFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2", true); } // [B2, B3, V7]
12262216test { try toUnicodeFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2"); } // [B2, B3, V7]
2217test { try toAsciiFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2", false); } // [B2, B3, V7]
2218test { try toAsciiFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2", true); } // [B2, B3, V7]
12272219test { try toUnicodeFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2"); } // [B2, B3, V7]
2220test { try toAsciiFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2", false); } // [B2, B3, V7]
2221test { try toAsciiFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2", true); } // [B2, B3, V7]
12282222test { try toUnicodeFail("xn--0sb.xn--bmb691l0524t"); } // [B2, B3, V7]
2223test { try toAsciiFail("xn--0sb.xn--bmb691l0524t", false); } // [B2, B3, V7]
2224test { try toAsciiFail("xn--0sb.xn--bmb691l0524t", true); } // [B2, B3, V7]
12292225test { try toUnicodeFail("\xe1\xa9\xb3\xf3\x9a\x99\xb8.\xf0\x90\xad\x8d"); } // [B1, V6, V7]
2226test { try toAsciiFail("\xe1\xa9\xb3\xf3\x9a\x99\xb8.\xf0\x90\xad\x8d", false); } // [B1, V6, V7]
2227test { try toAsciiFail("\xe1\xa9\xb3\xf3\x9a\x99\xb8.\xf0\x90\xad\x8d", true); } // [B1, V6, V7]
12302228test { try toUnicodeFail("xn--2of22352n.xn--q09c"); } // [B1, V6, V7]
2229test { try toAsciiFail("xn--2of22352n.xn--q09c", false); } // [B1, V6, V7]
2230test { try toAsciiFail("xn--2of22352n.xn--q09c", true); } // [B1, V6, V7]
12312231test { try toUnicodeFail("\xe2\x92\x89\xf3\xa0\x8a\x93\xe2\x89\xa0\xef\xbd\xa1\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7]
2232test { try toAsciiFail("\xe2\x92\x89\xf3\xa0\x8a\x93\xe2\x89\xa0\xef\xbd\xa1\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8", false); } // [V7]
2233test { try toAsciiFail("\xe2\x92\x89\xf3\xa0\x8a\x93\xe2\x89\xa0\xef\xbd\xa1\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8", true); } // [V7]
12322234test { try toUnicodeFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7]
2235test { try toAsciiFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8", false); } // [V7]
2236test { try toAsciiFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8", true); } // [V7]
12332237test { try toUnicodeFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7]
2238test { try toAsciiFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8", false); } // [V7]
2239test { try toAsciiFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8", true); } // [V7]
12342240test { try toUnicodeFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7]
2241test { try toAsciiFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8", false); } // [V7]
2242test { try toAsciiFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8", true); } // [V7]
12352243test { try toUnicodeFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7]
2244test { try toAsciiFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88", false); } // [V7]
2245test { try toAsciiFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88", true); } // [V7]
12362246test { try toUnicodeFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7]
2247test { try toAsciiFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88", false); } // [V7]
2248test { try toAsciiFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88", true); } // [V7]
12372249test { try toUnicodeFail("2.xn--1chz4101l.xn--45iz7d6b"); } // [V7]
2250test { try toAsciiFail("2.xn--1chz4101l.xn--45iz7d6b", false); } // [V7]
2251test { try toAsciiFail("2.xn--1chz4101l.xn--45iz7d6b", true); } // [V7]
12382252test { try toUnicodeFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7]
2253test { try toAsciiFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88", false); } // [V7]
2254test { try toAsciiFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88", true); } // [V7]
12392255test { try toUnicodeFail("\xe2\x92\x89\xf3\xa0\x8a\x93\xe2\x89\xa0\xef\xbd\xa1\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7]
2256test { try toAsciiFail("\xe2\x92\x89\xf3\xa0\x8a\x93\xe2\x89\xa0\xef\xbd\xa1\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88", false); } // [V7]
2257test { try toAsciiFail("\xe2\x92\x89\xf3\xa0\x8a\x93\xe2\x89\xa0\xef\xbd\xa1\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88", true); } // [V7]
12402258test { try toUnicodeFail("xn--1ch07f91401d.xn--45iz7d6b"); } // [V7]
2259test { try toAsciiFail("xn--1ch07f91401d.xn--45iz7d6b", false); } // [V7]
2260test { try toAsciiFail("xn--1ch07f91401d.xn--45iz7d6b", true); } // [V7]
12412261test { try toUnicodeFail("2.xn--1chz4101l.xn--gnd9b297j"); } // [V7]
2262test { try toAsciiFail("2.xn--1chz4101l.xn--gnd9b297j", false); } // [V7]
2263test { try toAsciiFail("2.xn--1chz4101l.xn--gnd9b297j", true); } // [V7]
12422264test { try toUnicodeFail("xn--1ch07f91401d.xn--gnd9b297j"); } // [V7]
2265test { try toAsciiFail("xn--1ch07f91401d.xn--gnd9b297j", false); } // [V7]
2266test { try toAsciiFail("xn--1ch07f91401d.xn--gnd9b297j", true); } // [V7]
12432267test { try toUnicodeFail("-\xf3\xa0\x89\xb1\xe0\xbe\xb8\xe1\x83\x85\xe3\x80\x82-\xf0\x90\xb9\xbd\xdd\xb4\xf0\x9e\xa3\x91"); } // [B1, V3, V7]
2268test { try toAsciiFail("-\xf3\xa0\x89\xb1\xe0\xbe\xb8\xe1\x83\x85\xe3\x80\x82-\xf0\x90\xb9\xbd\xdd\xb4\xf0\x9e\xa3\x91", false); } // [B1, V3, V7]
2269test { try toAsciiFail("-\xf3\xa0\x89\xb1\xe0\xbe\xb8\xe1\x83\x85\xe3\x80\x82-\xf0\x90\xb9\xbd\xdd\xb4\xf0\x9e\xa3\x91", true); } // [B1, V3, V7]
12442270test { try toUnicodeFail("-\xf3\xa0\x89\xb1\xe0\xbe\xb8\xe2\xb4\xa5\xe3\x80\x82-\xf0\x90\xb9\xbd\xdd\xb4\xf0\x9e\xa3\x91"); } // [B1, V3, V7]
2271test { try toAsciiFail("-\xf3\xa0\x89\xb1\xe0\xbe\xb8\xe2\xb4\xa5\xe3\x80\x82-\xf0\x90\xb9\xbd\xdd\xb4\xf0\x9e\xa3\x91", false); } // [B1, V3, V7]
2272test { try toAsciiFail("-\xf3\xa0\x89\xb1\xe0\xbe\xb8\xe2\xb4\xa5\xe3\x80\x82-\xf0\x90\xb9\xbd\xdd\xb4\xf0\x9e\xa3\x91", true); } // [B1, V3, V7]
12452273test { try toUnicodeFail("xn----xmg317tgv352a.xn----05c4213ryr0g"); } // [B1, V3, V7]
2274test { try toAsciiFail("xn----xmg317tgv352a.xn----05c4213ryr0g", false); } // [B1, V3, V7]
2275test { try toAsciiFail("xn----xmg317tgv352a.xn----05c4213ryr0g", true); } // [B1, V3, V7]
12462276test { try toUnicodeFail("xn----xmg12fm2555h.xn----05c4213ryr0g"); } // [B1, V3, V7]
2277test { try toAsciiFail("xn----xmg12fm2555h.xn----05c4213ryr0g", false); } // [B1, V3, V7]
2278test { try toAsciiFail("xn----xmg12fm2555h.xn----05c4213ryr0g", true); } // [B1, V3, V7]
12472279test { try toUnicodeFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xef\xb8\x92\xd8\xa7\xdf\x9d"); } // [B1, V6, V7]
2280test { try toAsciiFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xef\xb8\x92\xd8\xa7\xdf\x9d", false); } // [B1, V6, V7]
2281test { try toAsciiFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xef\xb8\x92\xd8\xa7\xdf\x9d", true); } // [B1, V6, V7]
12482282test { try toUnicodeFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xe3\x80\x82\xd8\xa7\xdf\x9d"); } // [B1, V6]
2283test { try toAsciiFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xe3\x80\x82\xd8\xa7\xdf\x9d", false); } // [B1, V6]
2284test { try toAsciiFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xe3\x80\x82\xd8\xa7\xdf\x9d", true); } // [B1, V6]
12492285test { try toUnicodeFail("xn--1hb.xn--w80d.xn--mgb09f"); } // [B1, V6]
2286test { try toAsciiFail("xn--1hb.xn--w80d.xn--mgb09f", false); } // [B1, V6]
2287test { try toAsciiFail("xn--1hb.xn--w80d.xn--mgb09f", true); } // [B1, V6]
12502288test { try toUnicodeFail("xn--1hb.xn--mgb09fp820c08pa"); } // [B1, V6, V7]
2289test { try toAsciiFail("xn--1hb.xn--mgb09fp820c08pa", false); } // [B1, V6, V7]
2290test { try toAsciiFail("xn--1hb.xn--mgb09fp820c08pa", true); } // [B1, V6, V7]
12512291test { try toUnicodeFail("\xe1\x82\xb9\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d"); } // [B1, B5, B6, C2]
2292test { try toAsciiFail("\xe1\x82\xb9\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d", false); } // [B1, B5, B6, C2]
2293test { try toAsciiFail("\xe1\x82\xb9\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d", true); } // [B5, B6, A4_2]
12522294test { try toUnicodeFail("\xe2\xb4\x99\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d"); } // [B1, B5, B6, C2]
2295test { try toAsciiFail("\xe2\xb4\x99\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d", false); } // [B1, B5, B6, C2]
2296test { try toAsciiFail("\xe2\xb4\x99\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d", true); } // [B5, B6, A4_2]
12532297test { try toUnicodeFail("xn--3gb910r."); } // [B5, B6]
2298test { try toAsciiFail("xn--3gb910r.", false); } // [B5, B6, A4_2]
2299test { try toAsciiFail("xn--3gb910r.", true); } // [B5, B6, A4_2]
12542300test { try toUnicodeFail("xn--3gb910r.xn--1ug"); } // [B1, B5, B6, C2]
2301test { try toAsciiFail("xn--3gb910r.xn--1ug", false); } // [B1, B5, B6, C2]
2302test { try toAsciiFail("xn--3gb910r.xn--1ug", true); } // [B1, B5, B6, C2]
12552303test { try toUnicodeFail("xn--3gb194c."); } // [B5, B6, V7]
2304test { try toAsciiFail("xn--3gb194c.", false); } // [B5, B6, V7, A4_2]
2305test { try toAsciiFail("xn--3gb194c.", true); } // [B5, B6, V7, A4_2]
12562306test { try toUnicodeFail("xn--3gb194c.xn--1ug"); } // [B1, B5, B6, C2, V7]
2307test { try toAsciiFail("xn--3gb194c.xn--1ug", false); } // [B1, B5, B6, C2, V7]
2308test { try toAsciiFail("xn--3gb194c.xn--1ug", true); } // [B1, B5, B6, C2, V7]
12572309test { try toUnicodeFail("\xf3\xa0\x86\xb8\xef\xbd\xa1\xe2\x82\x86\xef\xbc\x90\xf0\x90\xba\xa7\xdd\x96"); } // [B1, X4_2]
2310test { try toAsciiFail("\xf3\xa0\x86\xb8\xef\xbd\xa1\xe2\x82\x86\xef\xbc\x90\xf0\x90\xba\xa7\xdd\x96", false); } // [B1, A4_2]
2311test { try toAsciiFail("\xf3\xa0\x86\xb8\xef\xbd\xa1\xe2\x82\x86\xef\xbc\x90\xf0\x90\xba\xa7\xdd\x96", true); } // [B1, A4_2]
12582312test { try toUnicodeFail("\xf3\xa0\x86\xb8\xe3\x80\x8260\xf0\x90\xba\xa7\xdd\x96"); } // [B1, X4_2]
2313test { try toAsciiFail("\xf3\xa0\x86\xb8\xe3\x80\x8260\xf0\x90\xba\xa7\xdd\x96", false); } // [B1, A4_2]
2314test { try toAsciiFail("\xf3\xa0\x86\xb8\xe3\x80\x8260\xf0\x90\xba\xa7\xdd\x96", true); } // [B1, A4_2]
12592315test { try toUnicodeFail(".xn--60-cke9470y"); } // [B1, X4_2]
2316test { try toAsciiFail(".xn--60-cke9470y", false); } // [B1, A4_2]
2317test { try toAsciiFail(".xn--60-cke9470y", true); } // [B1, A4_2]
12602318test { try toUnicodeFail("6\xe0\xa1\x8f\xef\xbd\xa1-\xf0\x91\x88\xb4"); } // [B1, V3]
2319test { try toAsciiFail("6\xe0\xa1\x8f\xef\xbd\xa1-\xf0\x91\x88\xb4", false); } // [B1, V3]
2320test { try toAsciiFail("6\xe0\xa1\x8f\xef\xbd\xa1-\xf0\x91\x88\xb4", true); } // [B1, V3]
12612321test { try toUnicodeFail("6\xe0\xa1\x8f\xe3\x80\x82-\xf0\x91\x88\xb4"); } // [B1, V3]
2322test { try toAsciiFail("6\xe0\xa1\x8f\xe3\x80\x82-\xf0\x91\x88\xb4", false); } // [B1, V3]
2323test { try toAsciiFail("6\xe0\xa1\x8f\xe3\x80\x82-\xf0\x91\x88\xb4", true); } // [B1, V3]
12622324test { try toUnicodeFail("xn--6-jjd.xn----6n8i"); } // [B1, V3]
2325test { try toAsciiFail("xn--6-jjd.xn----6n8i", false); } // [B1, V3]
2326test { try toAsciiFail("xn--6-jjd.xn----6n8i", true); } // [B1, V3]
12632327test { try toUnicodeFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xcf\x82\xf0\x9e\xb0\x8e\xe0\xa3\x96"); } // [B1, C2, V6, V7]
2328test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xcf\x82\xf0\x9e\xb0\x8e\xe0\xa3\x96", false); } // [B1, C2, V6, V7]
2329test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xcf\x82\xf0\x9e\xb0\x8e\xe0\xa3\x96", true); } // [B1, B5, B6, V6, V7]
12642330test { try toUnicodeFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xcf\x82\xf0\x9e\xb0\x8e\xe0\xa3\x96"); } // [B1, C2, V6, V7]
2331test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xcf\x82\xf0\x9e\xb0\x8e\xe0\xa3\x96", false); } // [B1, C2, V6, V7]
2332test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xcf\x82\xf0\x9e\xb0\x8e\xe0\xa3\x96", true); } // [B1, B5, B6, V6, V7]
12652333test { try toUnicodeFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xce\xa3\xf0\x9e\xb0\x8e\xe0\xa3\x96"); } // [B1, C2, V6, V7]
2334test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xce\xa3\xf0\x9e\xb0\x8e\xe0\xa3\x96", false); } // [B1, C2, V6, V7]
2335test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xce\xa3\xf0\x9e\xb0\x8e\xe0\xa3\x96", true); } // [B1, B5, B6, V6, V7]
12662336test { try toUnicodeFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xcf\x83\xf0\x9e\xb0\x8e\xe0\xa3\x96"); } // [B1, C2, V6, V7]
2337test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xcf\x83\xf0\x9e\xb0\x8e\xe0\xa3\x96", false); } // [B1, C2, V6, V7]
2338test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xe3\x80\x82\xe0\xab\x8d\xcf\x83\xf0\x9e\xb0\x8e\xe0\xa3\x96", true); } // [B1, B5, B6, V6, V7]
12672339test { try toUnicodeFail("xn--oo0d1330n.xn--4xa21xcwbfz15g"); } // [B1, B5, B6, V6, V7]
2340test { try toAsciiFail("xn--oo0d1330n.xn--4xa21xcwbfz15g", false); } // [B1, B5, B6, V6, V7]
2341test { try toAsciiFail("xn--oo0d1330n.xn--4xa21xcwbfz15g", true); } // [B1, B5, B6, V6, V7]
12682342test { try toUnicodeFail("xn--1ugx105gq26y.xn--4xa21xcwbfz15g"); } // [B1, C2, V6, V7]
2343test { try toAsciiFail("xn--1ugx105gq26y.xn--4xa21xcwbfz15g", false); } // [B1, C2, V6, V7]
2344test { try toAsciiFail("xn--1ugx105gq26y.xn--4xa21xcwbfz15g", true); } // [B1, C2, V6, V7]
12692345test { try toUnicodeFail("xn--1ugx105gq26y.xn--3xa41xcwbfz15g"); } // [B1, C2, V6, V7]
2346test { try toAsciiFail("xn--1ugx105gq26y.xn--3xa41xcwbfz15g", false); } // [B1, C2, V6, V7]
2347test { try toAsciiFail("xn--1ugx105gq26y.xn--3xa41xcwbfz15g", true); } // [B1, C2, V6, V7]
12702348test { try toUnicodeFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xce\xa3\xf0\x9e\xb0\x8e\xe0\xa3\x96"); } // [B1, C2, V6, V7]
2349test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xce\xa3\xf0\x9e\xb0\x8e\xe0\xa3\x96", false); } // [B1, C2, V6, V7]
2350test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xce\xa3\xf0\x9e\xb0\x8e\xe0\xa3\x96", true); } // [B1, B5, B6, V6, V7]
12712351test { try toUnicodeFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xcf\x83\xf0\x9e\xb0\x8e\xe0\xa3\x96"); } // [B1, C2, V6, V7]
2352test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xcf\x83\xf0\x9e\xb0\x8e\xe0\xa3\x96", false); } // [B1, C2, V6, V7]
2353test { try toAsciiFail("\xe2\x80\x8d\xf1\x8b\x8c\xbf\xf0\x90\xb9\xb0\xef\xbd\xa1\xe0\xab\x8d\xcf\x83\xf0\x9e\xb0\x8e\xe0\xa3\x96", true); } // [B1, B5, B6, V6, V7]
12722354test { try toUnicodeFail("\xe2\x92\x88\xf1\x9f\x84\x9c\xe1\x82\xb3\xe2\x92\xaa\xef\xbc\x8e\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2"); } // [B1, V6, V7, U1]
2355test { try toAsciiFail("\xe2\x92\x88\xf1\x9f\x84\x9c\xe1\x82\xb3\xe2\x92\xaa\xef\xbc\x8e\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", false); } // [B1, V6, V7, U1]
2356test { try toAsciiFail("\xe2\x92\x88\xf1\x9f\x84\x9c\xe1\x82\xb3\xe2\x92\xaa\xef\xbc\x8e\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", true); } // [B1, V6, V7, U1]
12732357test { try toUnicodeFail("1.\xf1\x9f\x84\x9c\xe1\x82\xb3(o).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2"); } // [B1, B6, V6, V7, U1]
2358test { try toAsciiFail("1.\xf1\x9f\x84\x9c\xe1\x82\xb3(o).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", false); } // [B1, B6, V6, V7, U1]
2359test { try toAsciiFail("1.\xf1\x9f\x84\x9c\xe1\x82\xb3(o).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", true); } // [B1, B6, V6, V7, U1]
12742360test { try toUnicodeFail("1.\xf1\x9f\x84\x9c\xe2\xb4\x93(o).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2"); } // [B1, B6, V6, V7, U1]
2361test { try toAsciiFail("1.\xf1\x9f\x84\x9c\xe2\xb4\x93(o).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", false); } // [B1, B6, V6, V7, U1]
2362test { try toAsciiFail("1.\xf1\x9f\x84\x9c\xe2\xb4\x93(o).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", true); } // [B1, B6, V6, V7, U1]
12752363test { try toUnicodeFail("1.\xf1\x9f\x84\x9c\xe1\x82\xb3(O).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2"); } // [B1, B6, V6, V7, U1]
2364test { try toAsciiFail("1.\xf1\x9f\x84\x9c\xe1\x82\xb3(O).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", false); } // [B1, B6, V6, V7, U1]
2365test { try toAsciiFail("1.\xf1\x9f\x84\x9c\xe1\x82\xb3(O).\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", true); } // [B1, B6, V6, V7, U1]
12762366test { try toUnicodeFail("1.xn--(o)-ej1bu5389e.xn--3xb99xpx1yoes3e"); } // [B1, B6, V6, V7, U1]
2367test { try toAsciiFail("1.xn--(o)-ej1bu5389e.xn--3xb99xpx1yoes3e", false); } // [B1, B6, V6, V7, U1]
2368test { try toAsciiFail("1.xn--(o)-ej1bu5389e.xn--3xb99xpx1yoes3e", true); } // [B1, B6, V6, V7, U1]
12772369test { try toUnicodeFail("\xe2\x92\x88\xf1\x9f\x84\x9c\xe2\xb4\x93\xe2\x92\xaa\xef\xbc\x8e\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2"); } // [B1, V6, V7, U1]
2370test { try toAsciiFail("\xe2\x92\x88\xf1\x9f\x84\x9c\xe2\xb4\x93\xe2\x92\xaa\xef\xbc\x8e\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", false); } // [B1, V6, V7, U1]
2371test { try toAsciiFail("\xe2\x92\x88\xf1\x9f\x84\x9c\xe2\xb4\x93\xe2\x92\xaa\xef\xbc\x8e\xe0\xb7\x8a\xf2\x98\x98\xb6\xe0\xa2\x8b\xf0\x90\xb9\xa2", true); } // [B1, V6, V7, U1]
12782372test { try toUnicodeFail("xn--(o)-ge4ax01c3t74t.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7, U1]
2373test { try toAsciiFail("xn--(o)-ge4ax01c3t74t.xn--3xb99xpx1yoes3e", false); } // [B1, V6, V7, U1]
2374test { try toAsciiFail("xn--(o)-ge4ax01c3t74t.xn--3xb99xpx1yoes3e", true); } // [B1, V6, V7, U1]
12792375test { try toUnicodeFail("1.xn--(o)-7sn88849j.xn--3xb99xpx1yoes3e"); } // [B1, B6, V6, V7, U1]
2376test { try toAsciiFail("1.xn--(o)-7sn88849j.xn--3xb99xpx1yoes3e", false); } // [B1, B6, V6, V7, U1]
2377test { try toAsciiFail("1.xn--(o)-7sn88849j.xn--3xb99xpx1yoes3e", true); } // [B1, B6, V6, V7, U1]
12802378test { try toUnicodeFail("xn--tsh0ds63atl31n.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7]
2379test { try toAsciiFail("xn--tsh0ds63atl31n.xn--3xb99xpx1yoes3e", false); } // [B1, V6, V7]
2380test { try toAsciiFail("xn--tsh0ds63atl31n.xn--3xb99xpx1yoes3e", true); } // [B1, V6, V7]
12812381test { try toUnicodeFail("xn--rnd762h7cx3027d.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7]
2382test { try toAsciiFail("xn--rnd762h7cx3027d.xn--3xb99xpx1yoes3e", false); } // [B1, V6, V7]
2383test { try toAsciiFail("xn--rnd762h7cx3027d.xn--3xb99xpx1yoes3e", true); } // [B1, V6, V7]
12822384test { try toUnicodePass("\xf0\x9e\xa4\xb7.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x90\xb9\xa0\xd8\xa4", "\xf0\x9e\xa4\xb7.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x90\xb9\xa0\xd8\xa4"); }
12832385test { try toAsciiPass("\xf0\x9e\xa4\xb7.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x90\xb9\xa0\xd8\xa4", "xn--ve6h.xn--jgb1694kz0b2176a", false); }
12842386test { try toAsciiPass("\xf0\x9e\xa4\xb7.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x90\xb9\xa0\xd8\xa4", "xn--ve6h.xn--jgb1694kz0b2176a", true); }
......@@ -1295,32 +2397,86 @@ test { try toUnicodePass("xn--ve6h.xn--jgb1694kz0b2176a", "\xf0\x9e\xa4\xb7.\xf0
12952397test { try toAsciiPass("xn--ve6h.xn--jgb1694kz0b2176a", "xn--ve6h.xn--jgb1694kz0b2176a", false); }
12962398test { try toAsciiPass("xn--ve6h.xn--jgb1694kz0b2176a", "xn--ve6h.xn--jgb1694kz0b2176a", true); }
12972399test { try toUnicodeFail("\xf0\x90\xb2\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7]
2400test { try toAsciiFail("\xf0\x90\xb2\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb", false); } // [B1, B3, V3, V6, V7]
2401test { try toAsciiFail("\xf0\x90\xb2\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb", true); } // [B1, B3, V3, V6, V7]
12982402test { try toUnicodeFail("\xf0\x90\xb2\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7]
2403test { try toAsciiFail("\xf0\x90\xb2\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb", false); } // [B1, B3, V3, V6, V7]
2404test { try toAsciiFail("\xf0\x90\xb2\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb", true); } // [B1, B3, V3, V6, V7]
12992405test { try toUnicodeFail("\xf0\x90\xb3\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7]
2406test { try toAsciiFail("\xf0\x90\xb3\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb", false); } // [B1, B3, V3, V6, V7]
2407test { try toAsciiFail("\xf0\x90\xb3\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb", true); } // [B1, B3, V3, V6, V7]
13002408test { try toUnicodeFail("xn----ue6i.xn--v80d6662t"); } // [B1, B3, V3, V6, V7]
2409test { try toAsciiFail("xn----ue6i.xn--v80d6662t", false); } // [B1, B3, V3, V6, V7]
2410test { try toAsciiFail("xn----ue6i.xn--v80d6662t", true); } // [B1, B3, V3, V6, V7]
13012411test { try toUnicodeFail("\xf0\x90\xb3\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7]
2412test { try toAsciiFail("\xf0\x90\xb3\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb", false); } // [B1, B3, V3, V6, V7]
2413test { try toAsciiFail("\xf0\x90\xb3\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb", true); } // [B1, B3, V3, V6, V7]
13022414test { try toUnicodeFail("-\xf3\xa0\x89\x96\xea\xa1\xa7\xef\xbc\x8e\xf3\xa0\x8a\x82\xf1\x87\x86\x83\xf0\x9f\x84\x89"); } // [V3, V7, U1]
2415test { try toAsciiFail("-\xf3\xa0\x89\x96\xea\xa1\xa7\xef\xbc\x8e\xf3\xa0\x8a\x82\xf1\x87\x86\x83\xf0\x9f\x84\x89", false); } // [V3, V7, U1]
2416test { try toAsciiFail("-\xf3\xa0\x89\x96\xea\xa1\xa7\xef\xbc\x8e\xf3\xa0\x8a\x82\xf1\x87\x86\x83\xf0\x9f\x84\x89", true); } // [V3, V7, U1]
13032417test { try toUnicodeFail("-\xf3\xa0\x89\x96\xea\xa1\xa7.\xf3\xa0\x8a\x82\xf1\x87\x86\x838,"); } // [V3, V7, U1]
2418test { try toAsciiFail("-\xf3\xa0\x89\x96\xea\xa1\xa7.\xf3\xa0\x8a\x82\xf1\x87\x86\x838,", false); } // [V3, V7, U1]
2419test { try toAsciiFail("-\xf3\xa0\x89\x96\xea\xa1\xa7.\xf3\xa0\x8a\x82\xf1\x87\x86\x838,", true); } // [V3, V7, U1]
13042420test { try toUnicodeFail("xn----hg4ei0361g.xn--8,-k362evu488a"); } // [V3, V7, U1]
2421test { try toAsciiFail("xn----hg4ei0361g.xn--8,-k362evu488a", false); } // [V3, V7, U1]
2422test { try toAsciiFail("xn----hg4ei0361g.xn--8,-k362evu488a", true); } // [V3, V7, U1]
13052423test { try toUnicodeFail("xn----hg4ei0361g.xn--207ht163h7m94c"); } // [V3, V7]
2424test { try toAsciiFail("xn----hg4ei0361g.xn--207ht163h7m94c", false); } // [V3, V7]
2425test { try toAsciiFail("xn----hg4ei0361g.xn--207ht163h7m94c", true); } // [V3, V7]
13062426test { try toUnicodeFail("\xf3\xa0\xbe\x9b\xf3\xa0\x88\xb4\xe8\x87\xaf\xf0\xa7\x94\xa4.\xdd\xa8\xf0\x9d\x9f\x9d"); } // [B1, V7]
2427test { try toAsciiFail("\xf3\xa0\xbe\x9b\xf3\xa0\x88\xb4\xe8\x87\xaf\xf0\xa7\x94\xa4.\xdd\xa8\xf0\x9d\x9f\x9d", false); } // [B1, V7]
2428test { try toAsciiFail("\xf3\xa0\xbe\x9b\xf3\xa0\x88\xb4\xe8\x87\xaf\xf0\xa7\x94\xa4.\xdd\xa8\xf0\x9d\x9f\x9d", true); } // [B1, V7]
13072429test { try toUnicodeFail("\xf3\xa0\xbe\x9b\xf3\xa0\x88\xb4\xe8\x87\xaf\xf0\xa7\x94\xa4.\xdd\xa85"); } // [B1, V7]
2430test { try toAsciiFail("\xf3\xa0\xbe\x9b\xf3\xa0\x88\xb4\xe8\x87\xaf\xf0\xa7\x94\xa4.\xdd\xa85", false); } // [B1, V7]
2431test { try toAsciiFail("\xf3\xa0\xbe\x9b\xf3\xa0\x88\xb4\xe8\x87\xaf\xf0\xa7\x94\xa4.\xdd\xa85", true); } // [B1, V7]
13082432test { try toUnicodeFail("xn--zb1at733hm579ddhla.xn--5-b5c"); } // [B1, V7]
2433test { try toAsciiFail("xn--zb1at733hm579ddhla.xn--5-b5c", false); } // [B1, V7]
2434test { try toAsciiFail("xn--zb1at733hm579ddhla.xn--5-b5c", true); } // [B1, V7]
13092435test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf"); } // [B1, V6]
2436test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf", false); } // [B1, V6]
2437test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf", true); } // [B1, V6]
13102438test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf"); } // [B1, V6]
2439test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf", false); } // [B1, V6]
2440test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf", true); } // [B1, V6]
13112441test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf"); } // [B1, V6]
2442test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf", false); } // [B1, V6]
2443test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf", true); } // [B1, V6]
13122444test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf"); } // [B1, V6]
2445test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf", false); } // [B1, V6]
2446test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf", true); } // [B1, V6]
13132447test { try toUnicodeFail("xn--gdh1504g.xn--e92h"); } // [B1, V6]
2448test { try toAsciiFail("xn--gdh1504g.xn--e92h", false); } // [B1, V6]
2449test { try toAsciiFail("xn--gdh1504g.xn--e92h", true); } // [B1, V6]
13142450test { try toUnicodeFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xef\xbd\xa1\xe8\x84\xa5"); } // [B1]
2451test { try toAsciiFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xef\xbd\xa1\xe8\x84\xa5", false); } // [B1]
2452test { try toAsciiFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xef\xbd\xa1\xe8\x84\xa5", true); } // [B1]
13152453test { try toUnicodeFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xe3\x80\x82\xe8\x84\xa5"); } // [B1]
2454test { try toAsciiFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xe3\x80\x82\xe8\x84\xa5", false); } // [B1]
2455test { try toAsciiFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xe3\x80\x82\xe8\x84\xa5", true); } // [B1]
13162456test { try toUnicodeFail("xn--ybc101g3m1p.xn--740a"); } // [B1]
2457test { try toAsciiFail("xn--ybc101g3m1p.xn--740a", false); } // [B1]
2458test { try toAsciiFail("xn--ybc101g3m1p.xn--740a", true); } // [B1]
13172459test { try toUnicodeFail("\xe1\xad\x84\xe1\x85\x9f\xf0\x9e\xb7\xbf\xf2\x83\x80\x8d.-"); } // [B1, B5, V3, V6, V7]
2460test { try toAsciiFail("\xe1\xad\x84\xe1\x85\x9f\xf0\x9e\xb7\xbf\xf2\x83\x80\x8d.-", false); } // [B1, B5, V3, V6, V7]
2461test { try toAsciiFail("\xe1\xad\x84\xe1\x85\x9f\xf0\x9e\xb7\xbf\xf2\x83\x80\x8d.-", true); } // [B1, B5, V3, V6, V7]
13182462test { try toUnicodeFail("xn--1uf9538sxny9a.-"); } // [B1, B5, V3, V6, V7]
2463test { try toAsciiFail("xn--1uf9538sxny9a.-", false); } // [B1, B5, V3, V6, V7]
2464test { try toAsciiFail("xn--1uf9538sxny9a.-", true); } // [B1, B5, V3, V6, V7]
13192465test { try toUnicodeFail("xn--osd971cpx70btgt8b.-"); } // [B1, B5, V3, V6, V7]
2466test { try toAsciiFail("xn--osd971cpx70btgt8b.-", false); } // [B1, B5, V3, V6, V7]
2467test { try toAsciiFail("xn--osd971cpx70btgt8b.-", true); } // [B1, B5, V3, V6, V7]
13202468test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xcd\x94"); } // [C1, V6]
2469test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xcd\x94", false); } // [C1, V6]
2470test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xcd\x94", true); } // [V6, A4_2]
13212471test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xcd\x94"); } // [C1, V6]
2472test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xcd\x94", false); } // [C1, V6]
2473test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xcd\x94", true); } // [V6, A4_2]
13222474test { try toUnicodeFail(".xn--yua"); } // [V6, X4_2]
2475test { try toAsciiFail(".xn--yua", false); } // [V6, A4_2]
2476test { try toAsciiFail(".xn--yua", true); } // [V6, A4_2]
13232477test { try toUnicodeFail("xn--0ug.xn--yua"); } // [C1, V6]
2478test { try toAsciiFail("xn--0ug.xn--yua", false); } // [C1, V6]
2479test { try toAsciiFail("xn--0ug.xn--yua", true); } // [C1, V6]
13242480test { try toUnicodePass("\xf0\x9e\xa4\xa5\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe1\x82\xae", "\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe2\xb4\x8e"); }
13252481test { try toAsciiPass("\xf0\x9e\xa4\xa5\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", false); }
13262482test { try toAsciiPass("\xf0\x9e\xa4\xa5\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", true); }
......@@ -1358,290 +2514,842 @@ test { try toUnicodePass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x
13582514test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "xn--de6h.xn--37e857h", false); }
13592515test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "xn--de6h.xn--37e857h", true); }
13602516test { try toUnicodeFail("xn--de6h.xn--mnd799a"); } // [V7]
2517test { try toAsciiFail("xn--de6h.xn--mnd799a", false); } // [V7]
2518test { try toAsciiFail("xn--de6h.xn--mnd799a", true); } // [V7]
13612519test { try toUnicodePass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe2\xb4\x8e"); }
13622520test { try toAsciiPass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", false); }
13632521test { try toAsciiPass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", true); }
13642522test { try toUnicodeFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\x9e\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8"); } // [B2, B3, B6]
2523test { try toAsciiFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\x9e\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", false); } // [B2, B3, B6]
2524test { try toAsciiFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\x9e\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", true); } // [B2, B3, B6]
13652525test { try toUnicodeFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\x9e.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8"); } // [B2, B3, B6]
2526test { try toAsciiFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\x9e.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", false); } // [B2, B3, B6]
2527test { try toAsciiFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\x9e.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", true); } // [B2, B3, B6]
13662528test { try toUnicodeFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\xbe.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8"); } // [B2, B3, B6]
2529test { try toAsciiFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\xbe.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", false); } // [B2, B3, B6]
2530test { try toAsciiFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\xbe.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", true); } // [B2, B3, B6]
13672531test { try toUnicodeFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\x9e.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8"); } // [B2, B3, B6]
2532test { try toAsciiFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\x9e.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", false); } // [B2, B3, B6]
2533test { try toAsciiFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\x9e.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", true); } // [B2, B3, B6]
13682534test { try toUnicodeFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\xbe.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8"); } // [B2, B3, B6]
2535test { try toAsciiFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\xbe.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", false); } // [B2, B3, B6]
2536test { try toAsciiFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\xbe.\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", true); } // [B2, B3, B6]
13692537test { try toUnicodeFail("xn--zxa5691vboja.xn--bfi293ci119b"); } // [B2, B3, B6]
2538test { try toAsciiFail("xn--zxa5691vboja.xn--bfi293ci119b", false); } // [B2, B3, B6]
2539test { try toAsciiFail("xn--zxa5691vboja.xn--bfi293ci119b", true); } // [B2, B3, B6]
13702540test { try toUnicodeFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\xbe\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8"); } // [B2, B3, B6]
2541test { try toAsciiFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\xbe\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", false); } // [B2, B3, B6]
2542test { try toAsciiFail("\xf0\x9e\xa4\xa7\xf0\x9d\xa8\xa8\xce\xbe\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", true); } // [B2, B3, B6]
13712543test { try toUnicodeFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\x9e\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8"); } // [B2, B3, B6]
2544test { try toAsciiFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\x9e\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", false); } // [B2, B3, B6]
2545test { try toAsciiFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\x9e\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", true); } // [B2, B3, B6]
13722546test { try toUnicodeFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\xbe\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8"); } // [B2, B3, B6]
2547test { try toAsciiFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\xbe\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", false); } // [B2, B3, B6]
2548test { try toAsciiFail("\xf0\x9e\xa4\x85\xf0\x9d\xa8\xa8\xce\xbe\xef\xbc\x8e\xf0\xaa\xba\x8f\xe3\x9b\xa8\xe2\x9d\xb8", true); } // [B2, B3, B6]
13732549test { try toUnicodeFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xef\xbd\xa1\xe1\x82\xbb\xf0\x90\xa6\x85\xef\xb8\x92"); } // [B1, B5, B6, C1, V3, V7]
2550test { try toAsciiFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xef\xbd\xa1\xe1\x82\xbb\xf0\x90\xa6\x85\xef\xb8\x92", false); } // [B1, B5, B6, C1, V3, V7]
2551test { try toAsciiFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xef\xbd\xa1\xe1\x82\xbb\xf0\x90\xa6\x85\xef\xb8\x92", true); } // [B1, B5, B6, V3, V7]
13742552test { try toUnicodeFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xef\xbd\xa1\xe1\x82\xbb\xf0\x90\xa6\x85\xef\xb8\x92"); } // [B1, B5, B6, C1, V3, V7]
2553test { try toAsciiFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xef\xbd\xa1\xe1\x82\xbb\xf0\x90\xa6\x85\xef\xb8\x92", false); } // [B1, B5, B6, C1, V3, V7]
2554test { try toAsciiFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xef\xbd\xa1\xe1\x82\xbb\xf0\x90\xa6\x85\xef\xb8\x92", true); } // [B1, B5, B6, V3, V7]
13752555test { try toUnicodeFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xe3\x80\x82\xe1\x82\xbb\xf0\x90\xa6\x85\xe3\x80\x82"); } // [B1, B5, B6, C1, V3]
2556test { try toAsciiFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xe3\x80\x82\xe1\x82\xbb\xf0\x90\xa6\x85\xe3\x80\x82", false); } // [B1, B5, B6, C1, V3, A4_2]
2557test { try toAsciiFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xe3\x80\x82\xe1\x82\xbb\xf0\x90\xa6\x85\xe3\x80\x82", true); } // [B1, B5, B6, V3, A4_2]
13762558test { try toUnicodeFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xe3\x80\x82\xe1\x82\xbb\xf0\x90\xa6\x85\xe3\x80\x82"); } // [B1, B5, B6, C1, V3]
2559test { try toAsciiFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xe3\x80\x82\xe1\x82\xbb\xf0\x90\xa6\x85\xe3\x80\x82", false); } // [B1, B5, B6, C1, V3, A4_2]
2560test { try toAsciiFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xe3\x80\x82\xe1\x82\xbb\xf0\x90\xa6\x85\xe3\x80\x82", true); } // [B1, B5, B6, V3, A4_2]
13772561test { try toUnicodeFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xe3\x80\x82\xe2\xb4\x9b\xf0\x90\xa6\x85\xe3\x80\x82"); } // [B1, B5, B6, C1, V3]
2562test { try toAsciiFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xe3\x80\x82\xe2\xb4\x9b\xf0\x90\xa6\x85\xe3\x80\x82", false); } // [B1, B5, B6, C1, V3, A4_2]
2563test { try toAsciiFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xe3\x80\x82\xe2\xb4\x9b\xf0\x90\xa6\x85\xe3\x80\x82", true); } // [B1, B5, B6, V3, A4_2]
13782564test { try toUnicodeFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xe3\x80\x82\xe2\xb4\x9b\xf0\x90\xa6\x85\xe3\x80\x82"); } // [B1, B5, B6, C1, V3]
2565test { try toAsciiFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xe3\x80\x82\xe2\xb4\x9b\xf0\x90\xa6\x85\xe3\x80\x82", false); } // [B1, B5, B6, C1, V3, A4_2]
2566test { try toAsciiFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xe3\x80\x82\xe2\xb4\x9b\xf0\x90\xa6\x85\xe3\x80\x82", true); } // [B1, B5, B6, V3, A4_2]
13792567test { try toUnicodeFail("xn----e3j6620g.xn--jlju661e."); } // [B1, B5, B6, V3]
2568test { try toAsciiFail("xn----e3j6620g.xn--jlju661e.", false); } // [B1, B5, B6, V3, A4_2]
2569test { try toAsciiFail("xn----e3j6620g.xn--jlju661e.", true); } // [B1, B5, B6, V3, A4_2]
13802570test { try toUnicodeFail("xn----e3j425bsk1o.xn--jlju661e."); } // [B1, B5, B6, C1, V3]
2571test { try toAsciiFail("xn----e3j425bsk1o.xn--jlju661e.", false); } // [B1, B5, B6, C1, V3, A4_2]
2572test { try toAsciiFail("xn----e3j425bsk1o.xn--jlju661e.", true); } // [B1, B5, B6, C1, V3, A4_2]
13812573test { try toUnicodeFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xef\xbd\xa1\xe2\xb4\x9b\xf0\x90\xa6\x85\xef\xb8\x92"); } // [B1, B5, B6, C1, V3, V7]
2574test { try toAsciiFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xef\xbd\xa1\xe2\xb4\x9b\xf0\x90\xa6\x85\xef\xb8\x92", false); } // [B1, B5, B6, C1, V3, V7]
2575test { try toAsciiFail("\xe1\xa0\x86\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xbd\xe2\x80\x8c-\xef\xbd\xa1\xe2\xb4\x9b\xf0\x90\xa6\x85\xef\xb8\x92", true); } // [B1, B5, B6, V3, V7]
13822576test { try toUnicodeFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xef\xbd\xa1\xe2\xb4\x9b\xf0\x90\xa6\x85\xef\xb8\x92"); } // [B1, B5, B6, C1, V3, V7]
2577test { try toAsciiFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xef\xbd\xa1\xe2\xb4\x9b\xf0\x90\xa6\x85\xef\xb8\x92", false); } // [B1, B5, B6, C1, V3, V7]
2578test { try toAsciiFail("\xe1\xa0\x86\xeb\xaa\x86\xe2\x80\x8c-\xef\xbd\xa1\xe2\xb4\x9b\xf0\x90\xa6\x85\xef\xb8\x92", true); } // [B1, B5, B6, V3, V7]
13832579test { try toUnicodeFail("xn----e3j6620g.xn--jlj4997dhgh"); } // [B1, B5, B6, V3, V7]
2580test { try toAsciiFail("xn----e3j6620g.xn--jlj4997dhgh", false); } // [B1, B5, B6, V3, V7]
2581test { try toAsciiFail("xn----e3j6620g.xn--jlj4997dhgh", true); } // [B1, B5, B6, V3, V7]
13842582test { try toUnicodeFail("xn----e3j425bsk1o.xn--jlj4997dhgh"); } // [B1, B5, B6, C1, V3, V7]
2583test { try toAsciiFail("xn----e3j425bsk1o.xn--jlj4997dhgh", false); } // [B1, B5, B6, C1, V3, V7]
2584test { try toAsciiFail("xn----e3j425bsk1o.xn--jlj4997dhgh", true); } // [B1, B5, B6, C1, V3, V7]
13852585test { try toUnicodeFail("xn----e3j6620g.xn--znd4948j."); } // [B1, B5, B6, V3, V7]
2586test { try toAsciiFail("xn----e3j6620g.xn--znd4948j.", false); } // [B1, B5, B6, V3, V7, A4_2]
2587test { try toAsciiFail("xn----e3j6620g.xn--znd4948j.", true); } // [B1, B5, B6, V3, V7, A4_2]
13862588test { try toUnicodeFail("xn----e3j425bsk1o.xn--znd4948j."); } // [B1, B5, B6, C1, V3, V7]
2589test { try toAsciiFail("xn----e3j425bsk1o.xn--znd4948j.", false); } // [B1, B5, B6, C1, V3, V7, A4_2]
2590test { try toAsciiFail("xn----e3j425bsk1o.xn--znd4948j.", true); } // [B1, B5, B6, C1, V3, V7, A4_2]
13872591test { try toUnicodeFail("xn----e3j6620g.xn--znd2362jhgh"); } // [B1, B5, B6, V3, V7]
2592test { try toAsciiFail("xn----e3j6620g.xn--znd2362jhgh", false); } // [B1, B5, B6, V3, V7]
2593test { try toAsciiFail("xn----e3j6620g.xn--znd2362jhgh", true); } // [B1, B5, B6, V3, V7]
13882594test { try toUnicodeFail("xn----e3j425bsk1o.xn--znd2362jhgh"); } // [B1, B5, B6, C1, V3, V7]
2595test { try toAsciiFail("xn----e3j425bsk1o.xn--znd2362jhgh", false); } // [B1, B5, B6, C1, V3, V7]
2596test { try toAsciiFail("xn----e3j425bsk1o.xn--znd2362jhgh", true); } // [B1, B5, B6, C1, V3, V7]
13892597test { try toUnicodeFail("\xf3\xa0\xbe\xb3.\xef\xb8\x92\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac"); } // [B1, C1, V7]
2598test { try toAsciiFail("\xf3\xa0\xbe\xb3.\xef\xb8\x92\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac", false); } // [B1, C1, V7]
2599test { try toAsciiFail("\xf3\xa0\xbe\xb3.\xef\xb8\x92\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac", true); } // [B1, V7]
13902600test { try toUnicodeFail("\xf3\xa0\xbe\xb3.\xe3\x80\x82\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac"); } // [B1, C1, V7, X4_2]
2601test { try toAsciiFail("\xf3\xa0\xbe\xb3.\xe3\x80\x82\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac", false); } // [B1, C1, V7, A4_2]
2602test { try toAsciiFail("\xf3\xa0\xbe\xb3.\xe3\x80\x82\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac", true); } // [B1, V7, A4_2]
13912603test { try toUnicodeFail("xn--uf66e..xn--qti2829e"); } // [B1, V7, X4_2]
2604test { try toAsciiFail("xn--uf66e..xn--qti2829e", false); } // [B1, V7, A4_2]
2605test { try toAsciiFail("xn--uf66e..xn--qti2829e", true); } // [B1, V7, A4_2]
13922606test { try toUnicodeFail("xn--uf66e..xn--0ugz28as66q"); } // [B1, C1, V7, X4_2]
2607test { try toAsciiFail("xn--uf66e..xn--0ugz28as66q", false); } // [B1, C1, V7, A4_2]
2608test { try toAsciiFail("xn--uf66e..xn--0ugz28as66q", true); } // [B1, C1, V7, A4_2]
13932609test { try toUnicodeFail("xn--uf66e.xn--qtiz073e3ik"); } // [B1, V7]
2610test { try toAsciiFail("xn--uf66e.xn--qtiz073e3ik", false); } // [B1, V7]
2611test { try toAsciiFail("xn--uf66e.xn--qtiz073e3ik", true); } // [B1, V7]
13942612test { try toUnicodeFail("xn--uf66e.xn--0ugz28axl3pqxna"); } // [B1, C1, V7]
2613test { try toAsciiFail("xn--uf66e.xn--0ugz28axl3pqxna", false); } // [B1, C1, V7]
2614test { try toAsciiFail("xn--uf66e.xn--0ugz28axl3pqxna", true); } // [B1, C1, V7]
13952615test { try toUnicodeFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe1\x82\xb1\xf1\x9a\x87\x9c\xf0\x90\xab\x8a"); } // [B1, V7]
2616test { try toAsciiFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe1\x82\xb1\xf1\x9a\x87\x9c\xf0\x90\xab\x8a", false); } // [B1, V7]
2617test { try toAsciiFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe1\x82\xb1\xf1\x9a\x87\x9c\xf0\x90\xab\x8a", true); } // [B1, V7]
13962618test { try toUnicodeFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe2\xb4\x91\xf1\x9a\x87\x9c\xf0\x90\xab\x8a"); } // [B1, V7]
2619test { try toAsciiFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe2\xb4\x91\xf1\x9a\x87\x9c\xf0\x90\xab\x8a", false); } // [B1, V7]
2620test { try toAsciiFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe2\xb4\x91\xf1\x9a\x87\x9c\xf0\x90\xab\x8a", true); } // [B1, V7]
13972621test { try toUnicodeFail("xn--n49c.xn--8kj8702ewicl862o"); } // [B1, V7]
2622test { try toAsciiFail("xn--n49c.xn--8kj8702ewicl862o", false); } // [B1, V7]
2623test { try toAsciiFail("xn--n49c.xn--8kj8702ewicl862o", true); } // [B1, V7]
13982624test { try toUnicodeFail("xn--n49c.xn--pnd4619jwicl862o"); } // [B1, V7]
2625test { try toAsciiFail("xn--n49c.xn--pnd4619jwicl862o", false); } // [B1, V7]
2626test { try toAsciiFail("xn--n49c.xn--pnd4619jwicl862o", true); } // [B1, V7]
13992627test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe1\x82\xbb"); } // [V6, V7]
2628test { try toAsciiFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe1\x82\xbb", false); } // [V6, V7]
2629test { try toAsciiFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe1\x82\xbb", true); } // [V6, V7]
14002630test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe1\x82\xbb"); } // [V6, V7]
2631test { try toAsciiFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe1\x82\xbb", false); } // [V6, V7]
2632test { try toAsciiFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe1\x82\xbb", true); } // [V6, V7]
14012633test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe2\xb4\x9b"); } // [V6, V7]
2634test { try toAsciiFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe2\xb4\x9b", false); } // [V6, V7]
2635test { try toAsciiFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe2\xb4\x9b", true); } // [V6, V7]
14022636test { try toUnicodeFail("xn--0fd40533g.xn--1-tws"); } // [V6, V7]
2637test { try toAsciiFail("xn--0fd40533g.xn--1-tws", false); } // [V6, V7]
2638test { try toAsciiFail("xn--0fd40533g.xn--1-tws", true); } // [V6, V7]
14032639test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe2\xb4\x9b"); } // [V6, V7]
2640test { try toAsciiFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe2\xb4\x9b", false); } // [V6, V7]
2641test { try toAsciiFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe2\xb4\x9b", true); } // [V6, V7]
14042642test { try toUnicodeFail("xn--0fd40533g.xn--1-q1g"); } // [V6, V7]
2643test { try toAsciiFail("xn--0fd40533g.xn--1-q1g", false); } // [V6, V7]
2644test { try toAsciiFail("xn--0fd40533g.xn--1-q1g", true); } // [V6, V7]
14052645test { try toUnicodeFail("-\xe0\xa0\xa6\xe9\xbd\x80\xe3\x80\x82\xeb\xa6\xbf\xf0\x90\xb8\x8b"); } // [B1, B5, B6, V3, V7]
2646test { try toAsciiFail("-\xe0\xa0\xa6\xe9\xbd\x80\xe3\x80\x82\xeb\xa6\xbf\xf0\x90\xb8\x8b", false); } // [B1, B5, B6, V3, V7]
2647test { try toAsciiFail("-\xe0\xa0\xa6\xe9\xbd\x80\xe3\x80\x82\xeb\xa6\xbf\xf0\x90\xb8\x8b", true); } // [B1, B5, B6, V3, V7]
14062648test { try toUnicodeFail("-\xe0\xa0\xa6\xe9\xbd\x80\xe3\x80\x82\xe1\x84\x85\xe1\x85\xb5\xe1\x86\xba\xf0\x90\xb8\x8b"); } // [B1, B5, B6, V3, V7]
2649test { try toAsciiFail("-\xe0\xa0\xa6\xe9\xbd\x80\xe3\x80\x82\xe1\x84\x85\xe1\x85\xb5\xe1\x86\xba\xf0\x90\xb8\x8b", false); } // [B1, B5, B6, V3, V7]
2650test { try toAsciiFail("-\xe0\xa0\xa6\xe9\xbd\x80\xe3\x80\x82\xe1\x84\x85\xe1\x85\xb5\xe1\x86\xba\xf0\x90\xb8\x8b", true); } // [B1, B5, B6, V3, V7]
14072651test { try toUnicodeFail("xn----6gd0617i.xn--7y2bm55m"); } // [B1, B5, B6, V3, V7]
2652test { try toAsciiFail("xn----6gd0617i.xn--7y2bm55m", false); } // [B1, B5, B6, V3, V7]
2653test { try toAsciiFail("xn----6gd0617i.xn--7y2bm55m", true); } // [B1, B5, B6, V3, V7]
14082654test { try toUnicodeFail("\xf3\xa0\x94\x8a\xdc\x9c\xe9\xb9\x9d\xea\xbe\x97\xe3\x80\x82\xf1\xbe\xb5\x90\xe2\x80\x8d\xe2\x80\x8d\xe2\x8f\x83"); } // [B1, B6, C2, V7]
2655test { try toAsciiFail("\xf3\xa0\x94\x8a\xdc\x9c\xe9\xb9\x9d\xea\xbe\x97\xe3\x80\x82\xf1\xbe\xb5\x90\xe2\x80\x8d\xe2\x80\x8d\xe2\x8f\x83", false); } // [B1, B6, C2, V7]
2656test { try toAsciiFail("\xf3\xa0\x94\x8a\xdc\x9c\xe9\xb9\x9d\xea\xbe\x97\xe3\x80\x82\xf1\xbe\xb5\x90\xe2\x80\x8d\xe2\x80\x8d\xe2\x8f\x83", true); } // [B1, B6, V7]
14092657test { try toUnicodeFail("\xf3\xa0\x94\x8a\xdc\x9c\xe9\xb9\x9d\xe1\x84\x81\xe1\x85\xac\xe1\x86\xbe\xe3\x80\x82\xf1\xbe\xb5\x90\xe2\x80\x8d\xe2\x80\x8d\xe2\x8f\x83"); } // [B1, B6, C2, V7]
2658test { try toAsciiFail("\xf3\xa0\x94\x8a\xdc\x9c\xe9\xb9\x9d\xe1\x84\x81\xe1\x85\xac\xe1\x86\xbe\xe3\x80\x82\xf1\xbe\xb5\x90\xe2\x80\x8d\xe2\x80\x8d\xe2\x8f\x83", false); } // [B1, B6, C2, V7]
2659test { try toAsciiFail("\xf3\xa0\x94\x8a\xdc\x9c\xe9\xb9\x9d\xe1\x84\x81\xe1\x85\xac\xe1\x86\xbe\xe3\x80\x82\xf1\xbe\xb5\x90\xe2\x80\x8d\xe2\x80\x8d\xe2\x8f\x83", true); } // [B1, B6, V7]
14102660test { try toUnicodeFail("xn--mnb6558e91kyq533a.xn--6mh27269e"); } // [B1, B6, V7]
2661test { try toAsciiFail("xn--mnb6558e91kyq533a.xn--6mh27269e", false); } // [B1, B6, V7]
2662test { try toAsciiFail("xn--mnb6558e91kyq533a.xn--6mh27269e", true); } // [B1, B6, V7]
14112663test { try toUnicodeFail("xn--mnb6558e91kyq533a.xn--1uga46zs309y"); } // [B1, B6, C2, V7]
2664test { try toAsciiFail("xn--mnb6558e91kyq533a.xn--1uga46zs309y", false); } // [B1, B6, C2, V7]
2665test { try toAsciiFail("xn--mnb6558e91kyq533a.xn--1uga46zs309y", true); } // [B1, B6, C2, V7]
14122666test { try toUnicodeFail("\xe2\x89\xae\xef\xbc\x8e-\xdc\x88--"); } // [B1, V2, V3]
2667test { try toAsciiFail("\xe2\x89\xae\xef\xbc\x8e-\xdc\x88--", false); } // [B1, V2, V3]
2668test { try toAsciiFail("\xe2\x89\xae\xef\xbc\x8e-\xdc\x88--", true); } // [B1, V2, V3]
14132669test { try toUnicodeFail("<\xcc\xb8\xef\xbc\x8e-\xdc\x88--"); } // [B1, V2, V3]
2670test { try toAsciiFail("<\xcc\xb8\xef\xbc\x8e-\xdc\x88--", false); } // [B1, V2, V3]
2671test { try toAsciiFail("<\xcc\xb8\xef\xbc\x8e-\xdc\x88--", true); } // [B1, V2, V3]
14142672test { try toUnicodeFail("\xe2\x89\xae.-\xdc\x88--"); } // [B1, V2, V3]
2673test { try toAsciiFail("\xe2\x89\xae.-\xdc\x88--", false); } // [B1, V2, V3]
2674test { try toAsciiFail("\xe2\x89\xae.-\xdc\x88--", true); } // [B1, V2, V3]
14152675test { try toUnicodeFail("<\xcc\xb8.-\xdc\x88--"); } // [B1, V2, V3]
2676test { try toAsciiFail("<\xcc\xb8.-\xdc\x88--", false); } // [B1, V2, V3]
2677test { try toAsciiFail("<\xcc\xb8.-\xdc\x88--", true); } // [B1, V2, V3]
14162678test { try toUnicodeFail("xn--gdh.xn------eqf"); } // [B1, V2, V3]
2679test { try toAsciiFail("xn--gdh.xn------eqf", false); } // [B1, V2, V3]
2680test { try toAsciiFail("xn--gdh.xn------eqf", true); } // [B1, V2, V3]
14172681test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x82\xf0\x9d\x9f\xa9"); } // [B1, C2, V7]
2682test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x82\xf0\x9d\x9f\xa9", false); } // [B1, C2, V7]
2683test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x82\xf0\x9d\x9f\xa9", true); } // [B1, V7]
14182684test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x827"); } // [B1, C2, V7]
2685test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x827", false); } // [B1, C2, V7]
2686test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x827", true); } // [B1, V7]
14192687test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xce\xa37"); } // [B1, C2, V7]
2688test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xce\xa37", false); } // [B1, C2, V7]
2689test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xce\xa37", true); } // [B1, V7]
14202690test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x837"); } // [B1, C2, V7]
2691test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x837", false); } // [B1, C2, V7]
2692test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x837", true); } // [B1, V7]
14212693test { try toUnicodeFail("xn--wo0di5177c.xn--7-zmb"); } // [B1, V7]
2694test { try toAsciiFail("xn--wo0di5177c.xn--7-zmb", false); } // [B1, V7]
2695test { try toAsciiFail("xn--wo0di5177c.xn--7-zmb", true); } // [B1, V7]
14222696test { try toUnicodeFail("xn--wo0di5177c.xn--7-zmb938s"); } // [B1, C2, V7]
2697test { try toAsciiFail("xn--wo0di5177c.xn--7-zmb938s", false); } // [B1, C2, V7]
2698test { try toAsciiFail("xn--wo0di5177c.xn--7-zmb938s", true); } // [B1, C2, V7]
14232699test { try toUnicodeFail("xn--wo0di5177c.xn--7-xmb248s"); } // [B1, C2, V7]
2700test { try toAsciiFail("xn--wo0di5177c.xn--7-xmb248s", false); } // [B1, C2, V7]
2701test { try toAsciiFail("xn--wo0di5177c.xn--7-xmb248s", true); } // [B1, C2, V7]
14242702test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xce\xa3\xf0\x9d\x9f\xa9"); } // [B1, C2, V7]
2703test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xce\xa3\xf0\x9d\x9f\xa9", false); } // [B1, C2, V7]
2704test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xce\xa3\xf0\x9d\x9f\xa9", true); } // [B1, V7]
14252705test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x83\xf0\x9d\x9f\xa9"); } // [B1, C2, V7]
2706test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x83\xf0\x9d\x9f\xa9", false); } // [B1, C2, V7]
2707test { try toAsciiFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x83\xf0\x9d\x9f\xa9", true); } // [B1, V7]
14262708test { try toUnicodeFail("\xcf\x82\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7]
2709test { try toAsciiFail("\xcf\x82\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4", false); } // [V7]
2710test { try toAsciiFail("\xcf\x82\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4", true); } // [V7]
14272711test { try toUnicodeFail("\xcf\x82\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7]
2712test { try toAsciiFail("\xcf\x82\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4", false); } // [V7]
2713test { try toAsciiFail("\xcf\x82\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4", true); } // [V7]
14282714test { try toUnicodeFail("\xce\xa3\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7]
2715test { try toAsciiFail("\xce\xa3\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4", false); } // [V7]
2716test { try toAsciiFail("\xce\xa3\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4", true); } // [V7]
14292717test { try toUnicodeFail("\xcf\x83\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7]
2718test { try toAsciiFail("\xcf\x83\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4", false); } // [V7]
2719test { try toAsciiFail("\xcf\x83\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4", true); } // [V7]
14302720test { try toUnicodeFail("xn--8-zmb14974n.xn--su6h"); } // [V7]
2721test { try toAsciiFail("xn--8-zmb14974n.xn--su6h", false); } // [V7]
2722test { try toAsciiFail("xn--8-zmb14974n.xn--su6h", true); } // [V7]
14312723test { try toUnicodeFail("xn--8-xmb44974n.xn--su6h"); } // [V7]
2724test { try toAsciiFail("xn--8-xmb44974n.xn--su6h", false); } // [V7]
2725test { try toAsciiFail("xn--8-xmb44974n.xn--su6h", true); } // [V7]
14322726test { try toUnicodeFail("\xce\xa3\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7]
2727test { try toAsciiFail("\xce\xa3\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4", false); } // [V7]
2728test { try toAsciiFail("\xce\xa3\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4", true); } // [V7]
14332729test { try toUnicodeFail("\xcf\x83\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7]
2730test { try toAsciiFail("\xcf\x83\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4", false); } // [V7]
2731test { try toAsciiFail("\xcf\x83\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4", true); } // [V7]
14342732test { try toUnicodeFail("\xe2\x80\x8c\xe1\xa1\x91\xf0\x9f\x84\x80\xda\x84\xef\xbc\x8e-\xf0\x90\xab\x84\xf0\x91\xb2\xa4"); } // [B1, C1, V3, V7]
2733test { try toAsciiFail("\xe2\x80\x8c\xe1\xa1\x91\xf0\x9f\x84\x80\xda\x84\xef\xbc\x8e-\xf0\x90\xab\x84\xf0\x91\xb2\xa4", false); } // [B1, C1, V3, V7]
2734test { try toAsciiFail("\xe2\x80\x8c\xe1\xa1\x91\xf0\x9f\x84\x80\xda\x84\xef\xbc\x8e-\xf0\x90\xab\x84\xf0\x91\xb2\xa4", true); } // [B1, B5, B6, V3, V7]
14352735test { try toUnicodeFail("\xe2\x80\x8c\xe1\xa1\x910.\xda\x84.-\xf0\x90\xab\x84\xf0\x91\xb2\xa4"); } // [B1, C1, V3]
2736test { try toAsciiFail("\xe2\x80\x8c\xe1\xa1\x910.\xda\x84.-\xf0\x90\xab\x84\xf0\x91\xb2\xa4", false); } // [B1, C1, V3]
2737test { try toAsciiFail("\xe2\x80\x8c\xe1\xa1\x910.\xda\x84.-\xf0\x90\xab\x84\xf0\x91\xb2\xa4", true); } // [B1, V3]
14362738test { try toUnicodeFail("xn--0-o7j.xn--9ib.xn----ek5i065b"); } // [B1, V3]
2739test { try toAsciiFail("xn--0-o7j.xn--9ib.xn----ek5i065b", false); } // [B1, V3]
2740test { try toAsciiFail("xn--0-o7j.xn--9ib.xn----ek5i065b", true); } // [B1, V3]
14372741test { try toUnicodeFail("xn--0-o7j263b.xn--9ib.xn----ek5i065b"); } // [B1, C1, V3]
2742test { try toAsciiFail("xn--0-o7j263b.xn--9ib.xn----ek5i065b", false); } // [B1, C1, V3]
2743test { try toAsciiFail("xn--0-o7j263b.xn--9ib.xn----ek5i065b", true); } // [B1, C1, V3]
14382744test { try toUnicodeFail("xn--9ib722gbw95a.xn----ek5i065b"); } // [B1, B5, B6, V3, V7]
2745test { try toAsciiFail("xn--9ib722gbw95a.xn----ek5i065b", false); } // [B1, B5, B6, V3, V7]
2746test { try toAsciiFail("xn--9ib722gbw95a.xn----ek5i065b", true); } // [B1, B5, B6, V3, V7]
14392747test { try toUnicodeFail("xn--9ib722gvtfi563c.xn----ek5i065b"); } // [B1, C1, V3, V7]
2748test { try toAsciiFail("xn--9ib722gvtfi563c.xn----ek5i065b", false); } // [B1, C1, V3, V7]
2749test { try toAsciiFail("xn--9ib722gvtfi563c.xn----ek5i065b", true); } // [B1, C1, V3, V7]
14402750test { try toUnicodeFail("\xf0\x96\xa0\x8d\xe3\x80\x82\xf0\x90\xaa\xbf\xeb\x84\xaf\xf2\x9e\xb5\xb2"); } // [B2, B3, V7]
2751test { try toAsciiFail("\xf0\x96\xa0\x8d\xe3\x80\x82\xf0\x90\xaa\xbf\xeb\x84\xaf\xf2\x9e\xb5\xb2", false); } // [B2, B3, V7]
2752test { try toAsciiFail("\xf0\x96\xa0\x8d\xe3\x80\x82\xf0\x90\xaa\xbf\xeb\x84\xaf\xf2\x9e\xb5\xb2", true); } // [B2, B3, V7]
14412753test { try toUnicodeFail("\xf0\x96\xa0\x8d\xe3\x80\x82\xf0\x90\xaa\xbf\xe1\x84\x82\xe1\x85\xa6\xe1\x86\xb2\xf2\x9e\xb5\xb2"); } // [B2, B3, V7]
2754test { try toAsciiFail("\xf0\x96\xa0\x8d\xe3\x80\x82\xf0\x90\xaa\xbf\xe1\x84\x82\xe1\x85\xa6\xe1\x86\xb2\xf2\x9e\xb5\xb2", false); } // [B2, B3, V7]
2755test { try toAsciiFail("\xf0\x96\xa0\x8d\xe3\x80\x82\xf0\x90\xaa\xbf\xe1\x84\x82\xe1\x85\xa6\xe1\x86\xb2\xf2\x9e\xb5\xb2", true); } // [B2, B3, V7]
14422756test { try toUnicodeFail("xn--4e9e.xn--l60bj21opd57g"); } // [B2, B3, V7]
2757test { try toAsciiFail("xn--4e9e.xn--l60bj21opd57g", false); } // [B2, B3, V7]
2758test { try toAsciiFail("xn--4e9e.xn--l60bj21opd57g", true); } // [B2, B3, V7]
14432759test { try toUnicodeFail("\xe1\xa0\x87\xe1\x82\xb8\xe3\x80\x82\xd8\x83\xe1\x82\xa8\xf0\x9d\x86\x8a"); } // [B1, V7]
2760test { try toAsciiFail("\xe1\xa0\x87\xe1\x82\xb8\xe3\x80\x82\xd8\x83\xe1\x82\xa8\xf0\x9d\x86\x8a", false); } // [B1, V7]
2761test { try toAsciiFail("\xe1\xa0\x87\xe1\x82\xb8\xe3\x80\x82\xd8\x83\xe1\x82\xa8\xf0\x9d\x86\x8a", true); } // [B1, V7]
14442762test { try toUnicodeFail("\xe1\xa0\x87\xe2\xb4\x98\xe3\x80\x82\xd8\x83\xe2\xb4\x88\xf0\x9d\x86\x8a"); } // [B1, V7]
2763test { try toAsciiFail("\xe1\xa0\x87\xe2\xb4\x98\xe3\x80\x82\xd8\x83\xe2\xb4\x88\xf0\x9d\x86\x8a", false); } // [B1, V7]
2764test { try toAsciiFail("\xe1\xa0\x87\xe2\xb4\x98\xe3\x80\x82\xd8\x83\xe2\xb4\x88\xf0\x9d\x86\x8a", true); } // [B1, V7]
14452765test { try toUnicodeFail("xn--d6e009h.xn--lfb290rfu3z"); } // [B1, V7]
2766test { try toAsciiFail("xn--d6e009h.xn--lfb290rfu3z", false); } // [B1, V7]
2767test { try toAsciiFail("xn--d6e009h.xn--lfb290rfu3z", true); } // [B1, V7]
14462768test { try toUnicodeFail("xn--wnd558a.xn--lfb465c1v87a"); } // [B1, V7]
2769test { try toAsciiFail("xn--wnd558a.xn--lfb465c1v87a", false); } // [B1, V7]
2770test { try toAsciiFail("xn--wnd558a.xn--lfb465c1v87a", true); } // [B1, V7]
14472771test { try toUnicodeFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5"); } // [B1, B5, V7]
2772test { try toAsciiFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5", false); } // [B1, B5, V7]
2773test { try toAsciiFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5", true); } // [B1, B5, V7]
14482774test { try toUnicodeFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5"); } // [B1, B5, V7]
2775test { try toAsciiFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5", false); } // [B1, B5, V7]
2776test { try toAsciiFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5", true); } // [B1, B5, V7]
14492777test { try toUnicodeFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5"); } // [B1, B5, V7]
2778test { try toAsciiFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5", false); } // [B1, B5, V7]
2779test { try toAsciiFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5", true); } // [B1, B5, V7]
14502780test { try toUnicodeFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5"); } // [B1, B5, V7]
2781test { try toAsciiFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5", false); } // [B1, B5, V7]
2782test { try toAsciiFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5", true); } // [B1, B5, V7]
14512783test { try toUnicodeFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5"); } // [B1, B5, V7]
2784test { try toAsciiFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5", false); } // [B1, B5, V7]
2785test { try toAsciiFail("19.\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5", true); } // [B1, B5, V7]
14522786test { try toUnicodeFail("19.xn--oe6h75760c.xn--gib285gtxo2l9d"); } // [B1, B5, V7]
2787test { try toAsciiFail("19.xn--oe6h75760c.xn--gib285gtxo2l9d", false); } // [B1, B5, V7]
2788test { try toAsciiFail("19.xn--oe6h75760c.xn--gib285gtxo2l9d", true); } // [B1, B5, V7]
14532789test { try toUnicodeFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5"); } // [B1, B5, V7]
2790test { try toAsciiFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5", false); } // [B1, B5, V7]
2791test { try toAsciiFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\xb0\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5", true); } // [B1, B5, V7]
14542792test { try toUnicodeFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5"); } // [B1, B5, V7]
2793test { try toAsciiFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5", false); } // [B1, B5, V7]
2794test { try toAsciiFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe1\x82\xbc\xe1\xa3\xa5", true); } // [B1, B5, V7]
14552795test { try toUnicodeFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5"); } // [B1, B5, V7]
2796test { try toAsciiFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5", false); } // [B1, B5, V7]
2797test { try toAsciiFail("\xe2\x92\x9a\xf3\xa0\x8b\x91\xf0\x9e\xa4\x8e\xe3\x80\x82\xe7\x89\xa3\xd9\xa7\xe2\xb4\x9c\xe1\xa3\xa5", true); } // [B1, B5, V7]
14562798test { try toUnicodeFail("xn--cthy466n29j3e.xn--gib285gtxo2l9d"); } // [B1, B5, V7]
2799test { try toAsciiFail("xn--cthy466n29j3e.xn--gib285gtxo2l9d", false); } // [B1, B5, V7]
2800test { try toAsciiFail("xn--cthy466n29j3e.xn--gib285gtxo2l9d", true); } // [B1, B5, V7]
14572801test { try toUnicodeFail("19.xn--oe6h75760c.xn--gib404ccxgh00h"); } // [B1, B5, V7]
2802test { try toAsciiFail("19.xn--oe6h75760c.xn--gib404ccxgh00h", false); } // [B1, B5, V7]
2803test { try toAsciiFail("19.xn--oe6h75760c.xn--gib404ccxgh00h", true); } // [B1, B5, V7]
14582804test { try toUnicodeFail("xn--cthy466n29j3e.xn--gib404ccxgh00h"); } // [B1, B5, V7]
2805test { try toAsciiFail("xn--cthy466n29j3e.xn--gib404ccxgh00h", false); } // [B1, B5, V7]
2806test { try toAsciiFail("xn--cthy466n29j3e.xn--gib404ccxgh00h", true); } // [B1, B5, V7]
14592807test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe1\x82\xb3"); } // [B1, V3, V7]
2808test { try toAsciiFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe1\x82\xb3", false); } // [B1, V3, V7]
2809test { try toAsciiFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe1\x82\xb3", true); } // [B1, V3, V7]
14602810test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe1\x82\xb3"); } // [B1, V3, X4_2]
2811test { try toAsciiFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe1\x82\xb3", false); } // [B1, V3, A4_2]
2812test { try toAsciiFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe1\x82\xb3", true); } // [B1, V3, A4_2]
14612813test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe2\xb4\x93"); } // [B1, V3, X4_2]
2814test { try toAsciiFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe2\xb4\x93", false); } // [B1, V3, A4_2]
2815test { try toAsciiFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe2\xb4\x93", true); } // [B1, V3, A4_2]
14622816test { try toUnicodeFail("xn---1-895nq11a..xn--blj"); } // [B1, V3, X4_2]
2817test { try toAsciiFail("xn---1-895nq11a..xn--blj", false); } // [B1, V3, A4_2]
2818test { try toAsciiFail("xn---1-895nq11a..xn--blj", true); } // [B1, V3, A4_2]
14632819test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe2\xb4\x93"); } // [B1, V3, V7]
2820test { try toAsciiFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe2\xb4\x93", false); } // [B1, V3, V7]
2821test { try toAsciiFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe2\xb4\x93", true); } // [B1, V3, V7]
14642822test { try toUnicodeFail("xn----ecp0206g90h.xn--blj"); } // [B1, V3, V7]
2823test { try toAsciiFail("xn----ecp0206g90h.xn--blj", false); } // [B1, V3, V7]
2824test { try toAsciiFail("xn----ecp0206g90h.xn--blj", true); } // [B1, V3, V7]
14652825test { try toUnicodeFail("xn---1-895nq11a..xn--rnd"); } // [B1, V3, V7, X4_2]
2826test { try toAsciiFail("xn---1-895nq11a..xn--rnd", false); } // [B1, V3, V7, A4_2]
2827test { try toAsciiFail("xn---1-895nq11a..xn--rnd", true); } // [B1, V3, V7, A4_2]
14662828test { try toUnicodeFail("xn----ecp0206g90h.xn--rnd"); } // [B1, V3, V7]
2829test { try toAsciiFail("xn----ecp0206g90h.xn--rnd", false); } // [B1, V3, V7]
2830test { try toAsciiFail("xn----ecp0206g90h.xn--rnd", true); } // [B1, V3, V7]
14672831test { try toUnicodeFail("\xe2\x80\x8c\xea\xb8\x83.\xe6\xa6\xb6-"); } // [C1, V3]
2832test { try toAsciiFail("\xe2\x80\x8c\xea\xb8\x83.\xe6\xa6\xb6-", false); } // [C1, V3]
2833test { try toAsciiFail("\xe2\x80\x8c\xea\xb8\x83.\xe6\xa6\xb6-", true); } // [V3]
14682834test { try toUnicodeFail("\xe2\x80\x8c\xe1\x84\x80\xe1\x85\xb3\xe1\x86\xb2.\xe6\xa6\xb6-"); } // [C1, V3]
2835test { try toAsciiFail("\xe2\x80\x8c\xe1\x84\x80\xe1\x85\xb3\xe1\x86\xb2.\xe6\xa6\xb6-", false); } // [C1, V3]
2836test { try toAsciiFail("\xe2\x80\x8c\xe1\x84\x80\xe1\x85\xb3\xe1\x86\xb2.\xe6\xa6\xb6-", true); } // [V3]
14692837test { try toUnicodeFail("xn--ej0b.xn----d87b"); } // [V3]
2838test { try toAsciiFail("xn--ej0b.xn----d87b", false); } // [V3]
2839test { try toAsciiFail("xn--ej0b.xn----d87b", true); } // [V3]
14702840test { try toUnicodeFail("xn--0ug3307c.xn----d87b"); } // [C1, V3]
2841test { try toAsciiFail("xn--0ug3307c.xn----d87b", false); } // [C1, V3]
2842test { try toAsciiFail("xn--0ug3307c.xn----d87b", true); } // [C1, V3]
14712843test { try toUnicodeFail("\xeb\x89\x93\xe6\xb3\x93\xf0\x9c\xb5\xbd.\xe0\xa7\x8d\xe2\x80\x8d"); } // [V6]
2844test { try toAsciiFail("\xeb\x89\x93\xe6\xb3\x93\xf0\x9c\xb5\xbd.\xe0\xa7\x8d\xe2\x80\x8d", false); } // [V6]
2845test { try toAsciiFail("\xeb\x89\x93\xe6\xb3\x93\xf0\x9c\xb5\xbd.\xe0\xa7\x8d\xe2\x80\x8d", true); } // [V6]
14722846test { try toUnicodeFail("\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbe\xe6\xb3\x93\xf0\x9c\xb5\xbd.\xe0\xa7\x8d\xe2\x80\x8d"); } // [V6]
2847test { try toAsciiFail("\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbe\xe6\xb3\x93\xf0\x9c\xb5\xbd.\xe0\xa7\x8d\xe2\x80\x8d", false); } // [V6]
2848test { try toAsciiFail("\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbe\xe6\xb3\x93\xf0\x9c\xb5\xbd.\xe0\xa7\x8d\xe2\x80\x8d", true); } // [V6]
14732849test { try toUnicodeFail("xn--lwwp69lqs7m.xn--b7b"); } // [V6]
2850test { try toAsciiFail("xn--lwwp69lqs7m.xn--b7b", false); } // [V6]
2851test { try toAsciiFail("xn--lwwp69lqs7m.xn--b7b", true); } // [V6]
14742852test { try toUnicodeFail("xn--lwwp69lqs7m.xn--b7b605i"); } // [V6]
2853test { try toAsciiFail("xn--lwwp69lqs7m.xn--b7b605i", false); } // [V6]
2854test { try toAsciiFail("xn--lwwp69lqs7m.xn--b7b605i", true); } // [V6]
14752855test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb4\xc3\x9f\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c"); } // [B1, C2, V6, V7]
2856test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4\xc3\x9f\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", false); } // [B1, C2, V6, V7]
2857test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4\xc3\x9f\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", true); } // [B1, V6, V7]
14762858test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb4\xc3\x9f\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c"); } // [B1, C2, V6, V7]
2859test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4\xc3\x9f\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", false); } // [B1, C2, V6, V7]
2860test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4\xc3\x9f\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", true); } // [B1, V6, V7]
14772861test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb4SS\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c"); } // [B1, C2, V6, V7]
2862test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4SS\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", false); } // [B1, C2, V6, V7]
2863test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4SS\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", true); } // [B1, V6, V7]
14782864test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb4ss\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c"); } // [B1, C2, V6, V7]
2865test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4ss\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", false); } // [B1, C2, V6, V7]
2866test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4ss\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", true); } // [B1, V6, V7]
14792867test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb4Ss\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c"); } // [B1, C2, V6, V7]
2868test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4Ss\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", false); } // [B1, C2, V6, V7]
2869test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4Ss\xe3\x80\x82\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", true); } // [B1, V6, V7]
14802870test { try toUnicodeFail("xn--ss-ti3o.xn--57c638l8774i"); } // [B1, V6, V7]
2871test { try toAsciiFail("xn--ss-ti3o.xn--57c638l8774i", false); } // [B1, V6, V7]
2872test { try toAsciiFail("xn--ss-ti3o.xn--57c638l8774i", true); } // [B1, V6, V7]
14812873test { try toUnicodeFail("xn--ss-l1t5169j.xn--57c638l8774i"); } // [B1, C2, V6, V7]
2874test { try toAsciiFail("xn--ss-l1t5169j.xn--57c638l8774i", false); } // [B1, C2, V6, V7]
2875test { try toAsciiFail("xn--ss-l1t5169j.xn--57c638l8774i", true); } // [B1, C2, V6, V7]
14822876test { try toUnicodeFail("xn--zca770nip7n.xn--57c638l8774i"); } // [B1, C2, V6, V7]
2877test { try toAsciiFail("xn--zca770nip7n.xn--57c638l8774i", false); } // [B1, C2, V6, V7]
2878test { try toAsciiFail("xn--zca770nip7n.xn--57c638l8774i", true); } // [B1, C2, V6, V7]
14832879test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb4SS\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c"); } // [B1, C2, V6, V7]
2880test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4SS\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", false); } // [B1, C2, V6, V7]
2881test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4SS\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", true); } // [B1, V6, V7]
14842882test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb4ss\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c"); } // [B1, C2, V6, V7]
2883test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4ss\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", false); } // [B1, C2, V6, V7]
2884test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4ss\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", true); } // [B1, V6, V7]
14852885test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb4Ss\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c"); } // [B1, C2, V6, V7]
2886test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4Ss\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", false); } // [B1, C2, V6, V7]
2887test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb4Ss\xef\xbd\xa1\xe0\xba\xb4\xe2\xad\xb5\xf1\xaa\x85\x8c", true); } // [B1, V6, V7]
14862888test { try toUnicodeFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0"); } // [V6]
2889test { try toAsciiFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0", false); } // [V6]
2890test { try toAsciiFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0", true); } // [V6]
14872891test { try toUnicodeFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8"); } // [V6]
2892test { try toAsciiFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8", false); } // [V6]
2893test { try toAsciiFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8", true); } // [V6]
14882894test { try toUnicodeFail("\xe1\xad\x84.\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0"); } // [V6]
2895test { try toAsciiFail("\xe1\xad\x84.\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0", false); } // [V6]
2896test { try toAsciiFail("\xe1\xad\x84.\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0", true); } // [V6]
14892897test { try toUnicodeFail("\xe1\xad\x84.\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8"); } // [V6]
2898test { try toAsciiFail("\xe1\xad\x84.\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8", false); } // [V6]
2899test { try toAsciiFail("\xe1\xad\x84.\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8", true); } // [V6]
14902900test { try toUnicodeFail("xn--1uf.xn----nmlz65aub"); } // [V6]
2901test { try toAsciiFail("xn--1uf.xn----nmlz65aub", false); } // [V6]
2902test { try toAsciiFail("xn--1uf.xn----nmlz65aub", true); } // [V6]
14912903test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x84\xb2"); } // [V6]
2904test { try toAsciiFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x84\xb2", false); } // [V6]
2905test { try toAsciiFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x84\xb2", true); } // [V6]
14922906test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x84\xb2"); } // [V6]
2907test { try toAsciiFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x84\xb2", false); } // [V6]
2908test { try toAsciiFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x84\xb2", true); } // [V6]
14932909test { try toUnicodeFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6]
2910test { try toAsciiFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e", false); } // [V6]
2911test { try toAsciiFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e", true); } // [V6]
14942912test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6]
2913test { try toAsciiFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e", false); } // [V6]
2914test { try toAsciiFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e", true); } // [V6]
14952915test { try toUnicodeFail("xn--1zf224e.xn--73g3065g"); } // [V6]
2916test { try toAsciiFail("xn--1zf224e.xn--73g3065g", false); } // [V6]
2917test { try toAsciiFail("xn--1zf224e.xn--73g3065g", true); } // [V6]
14962918test { try toUnicodeFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6]
2919test { try toAsciiFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e", false); } // [V6]
2920test { try toAsciiFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e", true); } // [V6]
14972921test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6]
2922test { try toAsciiFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e", false); } // [V6]
2923test { try toAsciiFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e", true); } // [V6]
14982924test { try toUnicodeFail("xn--pnd26a55x.xn--73g3065g"); } // [V6, V7]
2925test { try toAsciiFail("xn--pnd26a55x.xn--73g3065g", false); } // [V6, V7]
2926test { try toAsciiFail("xn--pnd26a55x.xn--73g3065g", true); } // [V6, V7]
14992927test { try toUnicodeFail("xn--osd925cvyn.xn--73g3065g"); } // [V6, V7]
2928test { try toAsciiFail("xn--osd925cvyn.xn--73g3065g", false); } // [V6, V7]
2929test { try toAsciiFail("xn--osd925cvyn.xn--73g3065g", true); } // [V6, V7]
15002930test { try toUnicodeFail("xn--pnd26a55x.xn--f3g7465g"); } // [V6, V7]
2931test { try toAsciiFail("xn--pnd26a55x.xn--f3g7465g", false); } // [V6, V7]
2932test { try toAsciiFail("xn--pnd26a55x.xn--f3g7465g", true); } // [V6, V7]
15012933test { try toUnicodeFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe1\x82\xa3\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xeb\x98\xaf"); } // [B5, V7]
2934test { try toAsciiFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe1\x82\xa3\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xeb\x98\xaf", false); } // [B5, V7]
2935test { try toAsciiFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe1\x82\xa3\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xeb\x98\xaf", true); } // [B5, V7]
15022936test { try toUnicodeFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe1\x82\xa3\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xe1\x84\x84\xe1\x85\xaa\xe1\x86\xaa"); } // [B5, V7]
2937test { try toAsciiFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe1\x82\xa3\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xe1\x84\x84\xe1\x85\xaa\xe1\x86\xaa", false); } // [B5, V7]
2938test { try toAsciiFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe1\x82\xa3\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xe1\x84\x84\xe1\x85\xaa\xe1\x86\xaa", true); } // [B5, V7]
15032939test { try toUnicodeFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe2\xb4\x83\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xe1\x84\x84\xe1\x85\xaa\xe1\x86\xaa"); } // [B5, V7]
2940test { try toAsciiFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe2\xb4\x83\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xe1\x84\x84\xe1\x85\xaa\xe1\x86\xaa", false); } // [B5, V7]
2941test { try toAsciiFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe2\xb4\x83\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xe1\x84\x84\xe1\x85\xaa\xe1\x86\xaa", true); } // [B5, V7]
15042942test { try toUnicodeFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe2\xb4\x83\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xeb\x98\xaf"); } // [B5, V7]
2943test { try toAsciiFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe2\xb4\x83\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xeb\x98\xaf", false); } // [B5, V7]
2944test { try toAsciiFail("\xf0\x9c\x89\x86\xe3\x80\x82\xe2\xb4\x83\xf0\x90\xb4\xa3\xf0\x90\xb9\xb9\xeb\x98\xaf", true); } // [B5, V7]
15052945test { try toUnicodeFail("xn--187g.xn--ukjy205b8rscdeb"); } // [B5, V7]
2946test { try toAsciiFail("xn--187g.xn--ukjy205b8rscdeb", false); } // [B5, V7]
2947test { try toAsciiFail("xn--187g.xn--ukjy205b8rscdeb", true); } // [B5, V7]
15062948test { try toUnicodeFail("xn--187g.xn--bnd4785f8r8bdeb"); } // [B5, V7]
2949test { try toAsciiFail("xn--187g.xn--bnd4785f8r8bdeb", false); } // [B5, V7]
2950test { try toAsciiFail("xn--187g.xn--bnd4785f8r8bdeb", true); } // [B5, V7]
15072951test { try toUnicodeFail("\xf0\x90\xab\x80\xef\xbd\xa1\xe2\xb3\xbb\xf3\xa0\x99\xbe\xf3\xa0\x84\xb7\xe3\x85\xa4"); } // [B1, V7]
2952test { try toAsciiFail("\xf0\x90\xab\x80\xef\xbd\xa1\xe2\xb3\xbb\xf3\xa0\x99\xbe\xf3\xa0\x84\xb7\xe3\x85\xa4", false); } // [B1, V7]
2953test { try toAsciiFail("\xf0\x90\xab\x80\xef\xbd\xa1\xe2\xb3\xbb\xf3\xa0\x99\xbe\xf3\xa0\x84\xb7\xe3\x85\xa4", true); } // [B1, V7]
15082954test { try toUnicodeFail("\xf0\x90\xab\x80\xe3\x80\x82\xe2\xb3\xbb\xf3\xa0\x99\xbe\xf3\xa0\x84\xb7\xe1\x85\xa0"); } // [B1, V7]
2955test { try toAsciiFail("\xf0\x90\xab\x80\xe3\x80\x82\xe2\xb3\xbb\xf3\xa0\x99\xbe\xf3\xa0\x84\xb7\xe1\x85\xa0", false); } // [B1, V7]
2956test { try toAsciiFail("\xf0\x90\xab\x80\xe3\x80\x82\xe2\xb3\xbb\xf3\xa0\x99\xbe\xf3\xa0\x84\xb7\xe1\x85\xa0", true); } // [B1, V7]
15092957test { try toUnicodeFail("xn--pw9c.xn--mkjw9654i"); } // [B1, V7]
2958test { try toAsciiFail("xn--pw9c.xn--mkjw9654i", false); } // [B1, V7]
2959test { try toAsciiFail("xn--pw9c.xn--mkjw9654i", true); } // [B1, V7]
15102960test { try toUnicodeFail("xn--pw9c.xn--psd742lxt32w"); } // [B1, V7]
2961test { try toAsciiFail("xn--pw9c.xn--psd742lxt32w", false); } // [B1, V7]
2962test { try toAsciiFail("xn--pw9c.xn--psd742lxt32w", true); } // [B1, V7]
15112963test { try toUnicodeFail("xn--pw9c.xn--mkj83l4v899a"); } // [B1, V7]
2964test { try toAsciiFail("xn--pw9c.xn--mkj83l4v899a", false); } // [B1, V7]
2965test { try toAsciiFail("xn--pw9c.xn--mkj83l4v899a", true); } // [B1, V7]
15122966test { try toUnicodeFail("\xde\x9a\xe2\xbe\x87\xef\xbc\x8e\xdc\x9e-\xf0\x90\x8b\xb0"); } // [B2, B3]
2967test { try toAsciiFail("\xde\x9a\xe2\xbe\x87\xef\xbc\x8e\xdc\x9e-\xf0\x90\x8b\xb0", false); } // [B2, B3]
2968test { try toAsciiFail("\xde\x9a\xe2\xbe\x87\xef\xbc\x8e\xdc\x9e-\xf0\x90\x8b\xb0", true); } // [B2, B3]
15132969test { try toUnicodeFail("\xde\x9a\xe8\x88\x9b.\xdc\x9e-\xf0\x90\x8b\xb0"); } // [B2, B3]
2970test { try toAsciiFail("\xde\x9a\xe8\x88\x9b.\xdc\x9e-\xf0\x90\x8b\xb0", false); } // [B2, B3]
2971test { try toAsciiFail("\xde\x9a\xe8\x88\x9b.\xdc\x9e-\xf0\x90\x8b\xb0", true); } // [B2, B3]
15142972test { try toUnicodeFail("xn--7qb6383d.xn----20c3154q"); } // [B2, B3]
2973test { try toAsciiFail("xn--7qb6383d.xn----20c3154q", false); } // [B2, B3]
2974test { try toAsciiFail("xn--7qb6383d.xn----20c3154q", true); } // [B2, B3]
15152975test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92"); } // [V7]
2976test { try toAsciiFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92", false); } // [V7]
2977test { try toAsciiFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92", true); } // [V7]
15162978test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92"); } // [V7]
2979test { try toAsciiFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92", false); } // [V7]
2980test { try toAsciiFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92", true); } // [V7]
15172981test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82"); } // [V7, X4_2]
2982test { try toAsciiFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82", false); } // [V7, A4_2]
2983test { try toAsciiFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82", true); } // [V7, A4_2]
15182984test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82"); } // [V7, X4_2]
2985test { try toAsciiFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82", false); } // [V7, A4_2]
2986test { try toAsciiFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82", true); } // [V7, A4_2]
15192987test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82"); } // [V7, X4_2]
2988test { try toAsciiFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82", false); } // [V7, A4_2]
2989test { try toAsciiFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82", true); } // [V7, A4_2]
15202990test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82"); } // [V7, X4_2]
2991test { try toAsciiFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82", false); } // [V7, A4_2]
2992test { try toAsciiFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82", true); } // [V7, A4_2]
15212993test { try toUnicodeFail("xn--gdh892bbz0d5438s.."); } // [V7, X4_2]
2994test { try toAsciiFail("xn--gdh892bbz0d5438s..", false); } // [V7, A4_2]
2995test { try toAsciiFail("xn--gdh892bbz0d5438s..", true); } // [V7, A4_2]
15222996test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92"); } // [V7]
2997test { try toAsciiFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92", false); } // [V7]
2998test { try toAsciiFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92", true); } // [V7]
15232999test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92"); } // [V7]
3000test { try toAsciiFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92", false); } // [V7]
3001test { try toAsciiFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92", true); } // [V7]
15243002test { try toUnicodeFail("xn--gdh892bbz0d5438s.xn--y86c"); } // [V7]
3003test { try toAsciiFail("xn--gdh892bbz0d5438s.xn--y86c", false); } // [V7]
3004test { try toAsciiFail("xn--gdh892bbz0d5438s.xn--y86c", true); } // [V7]
15253005test { try toUnicodeFail("xn--hnd212gz32d54x5r.."); } // [V7, X4_2]
3006test { try toAsciiFail("xn--hnd212gz32d54x5r..", false); } // [V7, A4_2]
3007test { try toAsciiFail("xn--hnd212gz32d54x5r..", true); } // [V7, A4_2]
15263008test { try toUnicodeFail("xn--hnd212gz32d54x5r.xn--y86c"); } // [V7]
3009test { try toAsciiFail("xn--hnd212gz32d54x5r.xn--y86c", false); } // [V7]
3010test { try toAsciiFail("xn--hnd212gz32d54x5r.xn--y86c", true); } // [V7]
15273011test { try toUnicodeFail("\xf0\x9f\x8f\xae\xef\xbd\xa1\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89"); } // [B1, B2]
3012test { try toAsciiFail("\xf0\x9f\x8f\xae\xef\xbd\xa1\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89", false); } // [B1, B2]
3013test { try toAsciiFail("\xf0\x9f\x8f\xae\xef\xbd\xa1\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89", true); } // [B1, B2]
15283014test { try toUnicodeFail("\xf0\x9f\x8f\xae\xe3\x80\x82\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89"); } // [B1, B2]
3015test { try toAsciiFail("\xf0\x9f\x8f\xae\xe3\x80\x82\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89", false); } // [B1, B2]
3016test { try toAsciiFail("\xf0\x9f\x8f\xae\xe3\x80\x82\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89", true); } // [B1, B2]
15293017test { try toUnicodeFail("xn--8m8h.xn--qgb29f6z90a"); } // [B1, B2]
3018test { try toAsciiFail("xn--8m8h.xn--qgb29f6z90a", false); } // [B1, B2]
3019test { try toAsciiFail("xn--8m8h.xn--qgb29f6z90a", true); } // [B1, B2]
15303020test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82\xc3\x9f"); } // [B1, C2]
3021test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82\xc3\x9f", false); } // [B1, C2]
3022test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82\xc3\x9f", true); } // [B1]
15313023test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82SS"); } // [B1, C2]
3024test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82SS", false); } // [B1, C2]
3025test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82SS", true); } // [B1]
15323026test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82ss"); } // [B1, C2]
3027test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82ss", false); } // [B1, C2]
3028test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82ss", true); } // [B1]
15333029test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82Ss"); } // [B1, C2]
3030test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82Ss", false); } // [B1, C2]
3031test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82Ss", true); } // [B1]
15343032test { try toUnicodeFail("xn--uo0d.ss"); } // [B1]
3033test { try toAsciiFail("xn--uo0d.ss", false); } // [B1]
3034test { try toAsciiFail("xn--uo0d.ss", true); } // [B1]
15353035test { try toUnicodeFail("xn--1ug9105g.ss"); } // [B1, C2]
3036test { try toAsciiFail("xn--1ug9105g.ss", false); } // [B1, C2]
3037test { try toAsciiFail("xn--1ug9105g.ss", true); } // [B1, C2]
15363038test { try toUnicodeFail("xn--1ug9105g.xn--zca"); } // [B1, C2]
3039test { try toAsciiFail("xn--1ug9105g.xn--zca", false); } // [B1, C2]
3040test { try toAsciiFail("xn--1ug9105g.xn--zca", true); } // [B1, C2]
15373041test { try toUnicodeFail("\xc3\x85\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3]
3042test { try toAsciiFail("\xc3\x85\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c", false); } // [C1, V3]
3043test { try toAsciiFail("\xc3\x85\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c", true); } // [V3, A4_2]
15383044test { try toUnicodeFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3]
3045test { try toAsciiFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c", false); } // [C1, V3]
3046test { try toAsciiFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c", true); } // [V3, A4_2]
15393047test { try toUnicodeFail("\xc3\x85\xeb\x91\x84-.\xe2\x80\x8c"); } // [C1, V3]
3048test { try toAsciiFail("\xc3\x85\xeb\x91\x84-.\xe2\x80\x8c", false); } // [C1, V3]
3049test { try toAsciiFail("\xc3\x85\xeb\x91\x84-.\xe2\x80\x8c", true); } // [V3, A4_2]
15403050test { try toUnicodeFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c"); } // [C1, V3]
3051test { try toAsciiFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c", false); } // [C1, V3]
3052test { try toAsciiFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c", true); } // [V3, A4_2]
15413053test { try toUnicodeFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c"); } // [C1, V3]
3054test { try toAsciiFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c", false); } // [C1, V3]
3055test { try toAsciiFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c", true); } // [V3, A4_2]
15423056test { try toUnicodeFail("\xc3\xa5\xeb\x91\x84-.\xe2\x80\x8c"); } // [C1, V3]
3057test { try toAsciiFail("\xc3\xa5\xeb\x91\x84-.\xe2\x80\x8c", false); } // [C1, V3]
3058test { try toAsciiFail("\xc3\xa5\xeb\x91\x84-.\xe2\x80\x8c", true); } // [V3, A4_2]
15433059test { try toUnicodeFail("xn----1fa1788k."); } // [V3]
3060test { try toAsciiFail("xn----1fa1788k.", false); } // [V3, A4_2]
3061test { try toAsciiFail("xn----1fa1788k.", true); } // [V3, A4_2]
15443062test { try toUnicodeFail("xn----1fa1788k.xn--0ug"); } // [C1, V3]
3063test { try toAsciiFail("xn----1fa1788k.xn--0ug", false); } // [C1, V3]
3064test { try toAsciiFail("xn----1fa1788k.xn--0ug", true); } // [C1, V3]
15453065test { try toUnicodeFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3]
3066test { try toAsciiFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c", false); } // [C1, V3]
3067test { try toAsciiFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c", true); } // [V3, A4_2]
15463068test { try toUnicodeFail("\xc3\xa5\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3]
3069test { try toAsciiFail("\xc3\xa5\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c", false); } // [C1, V3]
3070test { try toAsciiFail("\xc3\xa5\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c", true); } // [V3, A4_2]
15473071test { try toUnicodeFail("\xe3\x82\x99\xf2\xac\x8e\x91\xe1\xb7\x97\xf0\x9e\xa4\x80.\xf2\xb1\xb2\xa2-\xe0\xa5\x93"); } // [B1, B6, V6, V7]
3072test { try toAsciiFail("\xe3\x82\x99\xf2\xac\x8e\x91\xe1\xb7\x97\xf0\x9e\xa4\x80.\xf2\xb1\xb2\xa2-\xe0\xa5\x93", false); } // [B1, B6, V6, V7]
3073test { try toAsciiFail("\xe3\x82\x99\xf2\xac\x8e\x91\xe1\xb7\x97\xf0\x9e\xa4\x80.\xf2\xb1\xb2\xa2-\xe0\xa5\x93", true); } // [B1, B6, V6, V7]
15483074test { try toUnicodeFail("\xe3\x82\x99\xf2\xac\x8e\x91\xe1\xb7\x97\xf0\x9e\xa4\xa2.\xf2\xb1\xb2\xa2-\xe0\xa5\x93"); } // [B1, B6, V6, V7]
3075test { try toAsciiFail("\xe3\x82\x99\xf2\xac\x8e\x91\xe1\xb7\x97\xf0\x9e\xa4\xa2.\xf2\xb1\xb2\xa2-\xe0\xa5\x93", false); } // [B1, B6, V6, V7]
3076test { try toAsciiFail("\xe3\x82\x99\xf2\xac\x8e\x91\xe1\xb7\x97\xf0\x9e\xa4\xa2.\xf2\xb1\xb2\xa2-\xe0\xa5\x93", true); } // [B1, B6, V6, V7]
15493077test { try toUnicodeFail("xn--veg121fwg63altj9d.xn----eyd92688s"); } // [B1, B6, V6, V7]
3078test { try toAsciiFail("xn--veg121fwg63altj9d.xn----eyd92688s", false); } // [B1, B6, V6, V7]
3079test { try toAsciiFail("xn--veg121fwg63altj9d.xn----eyd92688s", true); } // [B1, B6, V6, V7]
15503080test { try toUnicodeFail("\xcf\x82.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
3081test { try toAsciiFail("\xcf\x82.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", false); } // [B5, B6, V7]
3082test { try toAsciiFail("\xcf\x82.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", true); } // [B5, B6, V7]
15513083test { try toUnicodeFail("\xce\xa3.SS\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
3084test { try toAsciiFail("\xce\xa3.SS\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", false); } // [B5, B6, V7]
3085test { try toAsciiFail("\xce\xa3.SS\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", true); } // [B5, B6, V7]
15523086test { try toUnicodeFail("\xcf\x83.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
3087test { try toAsciiFail("\xcf\x83.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", false); } // [B5, B6, V7]
3088test { try toAsciiFail("\xcf\x83.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", true); } // [B5, B6, V7]
15533089test { try toUnicodeFail("\xce\xa3.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
3090test { try toAsciiFail("\xce\xa3.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", false); } // [B5, B6, V7]
3091test { try toAsciiFail("\xce\xa3.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", true); } // [B5, B6, V7]
15543092test { try toUnicodeFail("xn--4xa.xn--ss-y8d4760biv60n"); } // [B5, B6, V7]
3093test { try toAsciiFail("xn--4xa.xn--ss-y8d4760biv60n", false); } // [B5, B6, V7]
3094test { try toAsciiFail("xn--4xa.xn--ss-y8d4760biv60n", true); } // [B5, B6, V7]
15553095test { try toUnicodeFail("\xce\xa3.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
3096test { try toAsciiFail("\xce\xa3.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", false); } // [B5, B6, V7]
3097test { try toAsciiFail("\xce\xa3.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", true); } // [B5, B6, V7]
15563098test { try toUnicodeFail("\xcf\x83.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
3099test { try toAsciiFail("\xcf\x83.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", false); } // [B5, B6, V7]
3100test { try toAsciiFail("\xcf\x83.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf", true); } // [B5, B6, V7]
15573101test { try toUnicodeFail("xn--4xa.xn--zca281az71b8x73m"); } // [B5, B6, V7]
3102test { try toAsciiFail("xn--4xa.xn--zca281az71b8x73m", false); } // [B5, B6, V7]
3103test { try toAsciiFail("xn--4xa.xn--zca281az71b8x73m", true); } // [B5, B6, V7]
15583104test { try toUnicodeFail("xn--3xa.xn--zca281az71b8x73m"); } // [B5, B6, V7]
3105test { try toAsciiFail("xn--3xa.xn--zca281az71b8x73m", false); } // [B5, B6, V7]
3106test { try toAsciiFail("xn--3xa.xn--zca281az71b8x73m", true); } // [B5, B6, V7]
15593107test { try toUnicodeFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xef\xbd\xa1\xd9\xab\xd6\x99"); } // [B1]
3108test { try toAsciiFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xef\xbd\xa1\xd9\xab\xd6\x99", false); } // [B1]
3109test { try toAsciiFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xef\xbd\xa1\xd9\xab\xd6\x99", true); } // [B1]
15603110test { try toUnicodeFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xe3\x80\x82\xd9\xab\xd6\x99"); } // [B1]
3111test { try toAsciiFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xe3\x80\x82\xd9\xab\xd6\x99", false); } // [B1]
3112test { try toAsciiFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xe3\x80\x82\xd9\xab\xd6\x99", true); } // [B1]
15613113test { try toUnicodeFail("xn--8b9a1720d.xn--kcb33b"); } // [B1]
3114test { try toAsciiFail("xn--8b9a1720d.xn--kcb33b", false); } // [B1]
3115test { try toAsciiFail("xn--8b9a1720d.xn--kcb33b", true); } // [B1]
15623116test { try toUnicodeFail("\xf2\x88\x9b\x89\xe2\x80\x8c\xe0\xa2\xa9\xef\xbd\xa1\xe2\xa7\x85\xf1\x98\x98\xa1-\xf0\x90\xad\xa1"); } // [B1, B5, B6, C1, V7]
3117test { try toAsciiFail("\xf2\x88\x9b\x89\xe2\x80\x8c\xe0\xa2\xa9\xef\xbd\xa1\xe2\xa7\x85\xf1\x98\x98\xa1-\xf0\x90\xad\xa1", false); } // [B1, B5, B6, C1, V7]
3118test { try toAsciiFail("\xf2\x88\x9b\x89\xe2\x80\x8c\xe0\xa2\xa9\xef\xbd\xa1\xe2\xa7\x85\xf1\x98\x98\xa1-\xf0\x90\xad\xa1", true); } // [B1, B5, B6, V7]
15633119test { try toUnicodeFail("\xf2\x88\x9b\x89\xe2\x80\x8c\xe0\xa2\xa9\xe3\x80\x82\xe2\xa7\x85\xf1\x98\x98\xa1-\xf0\x90\xad\xa1"); } // [B1, B5, B6, C1, V7]
3120test { try toAsciiFail("\xf2\x88\x9b\x89\xe2\x80\x8c\xe0\xa2\xa9\xe3\x80\x82\xe2\xa7\x85\xf1\x98\x98\xa1-\xf0\x90\xad\xa1", false); } // [B1, B5, B6, C1, V7]
3121test { try toAsciiFail("\xf2\x88\x9b\x89\xe2\x80\x8c\xe0\xa2\xa9\xe3\x80\x82\xe2\xa7\x85\xf1\x98\x98\xa1-\xf0\x90\xad\xa1", true); } // [B1, B5, B6, V7]
15643122test { try toUnicodeFail("xn--yyb56242i.xn----zir1232guu71b"); } // [B1, B5, B6, V7]
3123test { try toAsciiFail("xn--yyb56242i.xn----zir1232guu71b", false); } // [B1, B5, B6, V7]
3124test { try toAsciiFail("xn--yyb56242i.xn----zir1232guu71b", true); } // [B1, B5, B6, V7]
15653125test { try toUnicodeFail("xn--yyb780jll63m.xn----zir1232guu71b"); } // [B1, B5, B6, C1, V7]
3126test { try toAsciiFail("xn--yyb780jll63m.xn----zir1232guu71b", false); } // [B1, B5, B6, C1, V7]
3127test { try toAsciiFail("xn--yyb780jll63m.xn----zir1232guu71b", true); } // [B1, B5, B6, C1, V7]
15663128test { try toUnicodeFail("\xeb\xa3\xb1\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xef\xb8\x92"); } // [C1, C2, V6, V7]
3129test { try toAsciiFail("\xeb\xa3\xb1\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xef\xb8\x92", false); } // [C1, C2, V6, V7]
3130test { try toAsciiFail("\xeb\xa3\xb1\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xef\xb8\x92", true); } // [V6, V7]
15673131test { try toUnicodeFail("\xe1\x84\x85\xe1\x85\xae\xe1\x86\xb0\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xef\xb8\x92"); } // [C1, C2, V6, V7]
3132test { try toAsciiFail("\xe1\x84\x85\xe1\x85\xae\xe1\x86\xb0\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xef\xb8\x92", false); } // [C1, C2, V6, V7]
3133test { try toAsciiFail("\xe1\x84\x85\xe1\x85\xae\xe1\x86\xb0\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xef\xb8\x92", true); } // [V6, V7]
15683134test { try toUnicodeFail("\xeb\xa3\xb1\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xe3\x80\x82"); } // [C1, C2, V6]
3135test { try toAsciiFail("\xeb\xa3\xb1\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xe3\x80\x82", false); } // [C1, C2, V6, A4_2]
3136test { try toAsciiFail("\xeb\xa3\xb1\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xe3\x80\x82", true); } // [V6, A4_2]
15693137test { try toUnicodeFail("\xe1\x84\x85\xe1\x85\xae\xe1\x86\xb0\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xe3\x80\x82"); } // [C1, C2, V6]
3138test { try toAsciiFail("\xe1\x84\x85\xe1\x85\xae\xe1\x86\xb0\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xe3\x80\x82", false); } // [C1, C2, V6, A4_2]
3139test { try toAsciiFail("\xe1\x84\x85\xe1\x85\xae\xe1\x86\xb0\xe2\x80\x8d\xf0\xb0\x8d\xa8\xe2\x80\x8c\xe3\x80\x82\xf0\x9d\xa8\x96\xe3\x80\x82", true); } // [V6, A4_2]
15703140test { try toUnicodeFail("xn--ct2b0738h.xn--772h."); } // [V6]
3141test { try toAsciiFail("xn--ct2b0738h.xn--772h.", false); } // [V6, A4_2]
3142test { try toAsciiFail("xn--ct2b0738h.xn--772h.", true); } // [V6, A4_2]
15713143test { try toUnicodeFail("xn--0ugb3358ili2v.xn--772h."); } // [C1, C2, V6]
3144test { try toAsciiFail("xn--0ugb3358ili2v.xn--772h.", false); } // [C1, C2, V6, A4_2]
3145test { try toAsciiFail("xn--0ugb3358ili2v.xn--772h.", true); } // [C1, C2, V6, A4_2]
15723146test { try toUnicodeFail("xn--ct2b0738h.xn--y86cl899a"); } // [V6, V7]
3147test { try toAsciiFail("xn--ct2b0738h.xn--y86cl899a", false); } // [V6, V7]
3148test { try toAsciiFail("xn--ct2b0738h.xn--y86cl899a", true); } // [V6, V7]
15733149test { try toUnicodeFail("xn--0ugb3358ili2v.xn--y86cl899a"); } // [C1, C2, V6, V7]
3150test { try toAsciiFail("xn--0ugb3358ili2v.xn--y86cl899a", false); } // [C1, C2, V6, V7]
3151test { try toAsciiFail("xn--0ugb3358ili2v.xn--y86cl899a", true); } // [C1, C2, V6, V7]
15743152test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88\xc3\x9f"); } // [V6, V7, U1]
3153test { try toAsciiFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88\xc3\x9f", false); } // [V6, V7, U1]
3154test { try toAsciiFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88\xc3\x9f", true); } // [V6, V7, U1]
15753155test { try toUnicodeFail("3,.\xe1\xb3\x9c1.\xc3\x9f"); } // [V6, U1]
3156test { try toAsciiFail("3,.\xe1\xb3\x9c1.\xc3\x9f", false); } // [V6, U1]
3157test { try toAsciiFail("3,.\xe1\xb3\x9c1.\xc3\x9f", true); } // [V6, U1]
15763158test { try toUnicodeFail("3,.\xe1\xb3\x9c1.SS"); } // [V6, U1]
3159test { try toAsciiFail("3,.\xe1\xb3\x9c1.SS", false); } // [V6, U1]
3160test { try toAsciiFail("3,.\xe1\xb3\x9c1.SS", true); } // [V6, U1]
15773161test { try toUnicodeFail("3,.\xe1\xb3\x9c1.ss"); } // [V6, U1]
3162test { try toAsciiFail("3,.\xe1\xb3\x9c1.ss", false); } // [V6, U1]
3163test { try toAsciiFail("3,.\xe1\xb3\x9c1.ss", true); } // [V6, U1]
15783164test { try toUnicodeFail("3,.\xe1\xb3\x9c1.Ss"); } // [V6, U1]
3165test { try toAsciiFail("3,.\xe1\xb3\x9c1.Ss", false); } // [V6, U1]
3166test { try toAsciiFail("3,.\xe1\xb3\x9c1.Ss", true); } // [V6, U1]
15793167test { try toUnicodeFail("3,.xn--1-43l.ss"); } // [V6, U1]
3168test { try toAsciiFail("3,.xn--1-43l.ss", false); } // [V6, U1]
3169test { try toAsciiFail("3,.xn--1-43l.ss", true); } // [V6, U1]
15803170test { try toUnicodeFail("3,.xn--1-43l.xn--zca"); } // [V6, U1]
3171test { try toAsciiFail("3,.xn--1-43l.xn--zca", false); } // [V6, U1]
3172test { try toAsciiFail("3,.xn--1-43l.xn--zca", true); } // [V6, U1]
15813173test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88SS"); } // [V6, V7, U1]
3174test { try toAsciiFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88SS", false); } // [V6, V7, U1]
3175test { try toAsciiFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88SS", true); } // [V6, V7, U1]
15823176test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88ss"); } // [V6, V7, U1]
3177test { try toAsciiFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88ss", false); } // [V6, V7, U1]
3178test { try toAsciiFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88ss", true); } // [V6, V7, U1]
15833179test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88Ss"); } // [V6, V7, U1]
3180test { try toAsciiFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88Ss", false); } // [V6, V7, U1]
3181test { try toAsciiFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88Ss", true); } // [V6, V7, U1]
15843182test { try toUnicodeFail("3,.xn--ss-k1r094b"); } // [V6, V7, U1]
3183test { try toAsciiFail("3,.xn--ss-k1r094b", false); } // [V6, V7, U1]
3184test { try toAsciiFail("3,.xn--ss-k1r094b", true); } // [V6, V7, U1]
15853185test { try toUnicodeFail("3,.xn--zca344lmif"); } // [V6, V7, U1]
3186test { try toAsciiFail("3,.xn--zca344lmif", false); } // [V6, V7, U1]
3187test { try toAsciiFail("3,.xn--zca344lmif", true); } // [V6, V7, U1]
15863188test { try toUnicodeFail("xn--x07h.xn--ss-k1r094b"); } // [V6, V7]
3189test { try toAsciiFail("xn--x07h.xn--ss-k1r094b", false); } // [V6, V7]
3190test { try toAsciiFail("xn--x07h.xn--ss-k1r094b", true); } // [V6, V7]
15873191test { try toUnicodeFail("xn--x07h.xn--zca344lmif"); } // [V6, V7]
3192test { try toAsciiFail("xn--x07h.xn--zca344lmif", false); } // [V6, V7]
3193test { try toAsciiFail("xn--x07h.xn--zca344lmif", true); } // [V6, V7]
15883194test { try toUnicodeFail("\xf1\x87\x8c\x8d\xe2\xb5\xbf\xef\xbd\xa1\xf0\x9e\xbc\x93\xf2\xa1\x84\xa8\xf0\x91\x90\xba"); } // [B2, B3, V7]
3195test { try toAsciiFail("\xf1\x87\x8c\x8d\xe2\xb5\xbf\xef\xbd\xa1\xf0\x9e\xbc\x93\xf2\xa1\x84\xa8\xf0\x91\x90\xba", false); } // [B2, B3, V7]
3196test { try toAsciiFail("\xf1\x87\x8c\x8d\xe2\xb5\xbf\xef\xbd\xa1\xf0\x9e\xbc\x93\xf2\xa1\x84\xa8\xf0\x91\x90\xba", true); } // [B2, B3, V7]
15893197test { try toUnicodeFail("\xf1\x87\x8c\x8d\xe2\xb5\xbf\xe3\x80\x82\xf0\x9e\xbc\x93\xf2\xa1\x84\xa8\xf0\x91\x90\xba"); } // [B2, B3, V7]
3198test { try toAsciiFail("\xf1\x87\x8c\x8d\xe2\xb5\xbf\xe3\x80\x82\xf0\x9e\xbc\x93\xf2\xa1\x84\xa8\xf0\x91\x90\xba", false); } // [B2, B3, V7]
3199test { try toAsciiFail("\xf1\x87\x8c\x8d\xe2\xb5\xbf\xe3\x80\x82\xf0\x9e\xbc\x93\xf2\xa1\x84\xa8\xf0\x91\x90\xba", true); } // [B2, B3, V7]
15903200test { try toUnicodeFail("xn--eoj16016a.xn--0v1d3848a3lr0d"); } // [B2, B3, V7]
3201test { try toAsciiFail("xn--eoj16016a.xn--0v1d3848a3lr0d", false); } // [B2, B3, V7]
3202test { try toAsciiFail("xn--eoj16016a.xn--0v1d3848a3lr0d", true); } // [B2, B3, V7]
15913203test { try toUnicodeFail("\xe1\xb7\xbd\xe1\x80\xba\xe0\xa5\x8d\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6]
3204test { try toAsciiFail("\xe1\xb7\xbd\xe1\x80\xba\xe0\xa5\x8d\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b", false); } // [C2, V6]
3205test { try toAsciiFail("\xe1\xb7\xbd\xe1\x80\xba\xe0\xa5\x8d\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b", true); } // [V6]
15923206test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6]
3207test { try toAsciiFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b", false); } // [C2, V6]
3208test { try toAsciiFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b", true); } // [V6]
15933209test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6]
3210test { try toAsciiFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b", false); } // [C2, V6]
3211test { try toAsciiFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b", true); } // [V6]
15943212test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6]
3213test { try toAsciiFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b", false); } // [C2, V6]
3214test { try toAsciiFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b", true); } // [V6]
15953215test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6]
3216test { try toAsciiFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b", false); } // [C2, V6]
3217test { try toAsciiFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b", true); } // [V6]
15963218test { try toUnicodeFail("xn--n3b956a9zm.xn--1ch912d"); } // [V6]
3219test { try toAsciiFail("xn--n3b956a9zm.xn--1ch912d", false); } // [V6]
3220test { try toAsciiFail("xn--n3b956a9zm.xn--1ch912d", true); } // [V6]
15973221test { try toUnicodeFail("xn--n3b956a9zm.xn--1ug63gz5w"); } // [C2, V6]
3222test { try toAsciiFail("xn--n3b956a9zm.xn--1ug63gz5w", false); } // [C2, V6]
3223test { try toAsciiFail("xn--n3b956a9zm.xn--1ug63gz5w", true); } // [C2, V6]
15983224test { try toUnicodeFail("\xe1\x82\xa1\xf0\x90\x8b\xa8\xe5\xa8\xa4.\xe2\x80\x8d\xcc\xbc\xd9\xa2\xf0\x91\x96\xbf"); } // [B1, C2]
3225test { try toAsciiFail("\xe1\x82\xa1\xf0\x90\x8b\xa8\xe5\xa8\xa4.\xe2\x80\x8d\xcc\xbc\xd9\xa2\xf0\x91\x96\xbf", false); } // [B1, C2]
3226test { try toAsciiFail("\xe1\x82\xa1\xf0\x90\x8b\xa8\xe5\xa8\xa4.\xe2\x80\x8d\xcc\xbc\xd9\xa2\xf0\x91\x96\xbf", true); } // [B1, V6]
15993227test { try toUnicodeFail("\xe2\xb4\x81\xf0\x90\x8b\xa8\xe5\xa8\xa4.\xe2\x80\x8d\xcc\xbc\xd9\xa2\xf0\x91\x96\xbf"); } // [B1, C2]
3228test { try toAsciiFail("\xe2\xb4\x81\xf0\x90\x8b\xa8\xe5\xa8\xa4.\xe2\x80\x8d\xcc\xbc\xd9\xa2\xf0\x91\x96\xbf", false); } // [B1, C2]
3229test { try toAsciiFail("\xe2\xb4\x81\xf0\x90\x8b\xa8\xe5\xa8\xa4.\xe2\x80\x8d\xcc\xbc\xd9\xa2\xf0\x91\x96\xbf", true); } // [B1, V6]
16003230test { try toUnicodeFail("xn--skjw75lg29h.xn--9ta62nrv36a"); } // [B1, V6]
3231test { try toAsciiFail("xn--skjw75lg29h.xn--9ta62nrv36a", false); } // [B1, V6]
3232test { try toAsciiFail("xn--skjw75lg29h.xn--9ta62nrv36a", true); } // [B1, V6]
16013233test { try toUnicodeFail("xn--skjw75lg29h.xn--9ta62ngt6aou8t"); } // [B1, C2]
3234test { try toAsciiFail("xn--skjw75lg29h.xn--9ta62ngt6aou8t", false); } // [B1, C2]
3235test { try toAsciiFail("xn--skjw75lg29h.xn--9ta62ngt6aou8t", true); } // [B1, C2]
16023236test { try toUnicodeFail("xn--8md2578ag21g.xn--9ta62nrv36a"); } // [B1, V6, V7]
3237test { try toAsciiFail("xn--8md2578ag21g.xn--9ta62nrv36a", false); } // [B1, V6, V7]
3238test { try toAsciiFail("xn--8md2578ag21g.xn--9ta62nrv36a", true); } // [B1, V6, V7]
16033239test { try toUnicodeFail("xn--8md2578ag21g.xn--9ta62ngt6aou8t"); } // [B1, C2, V7]
3240test { try toAsciiFail("xn--8md2578ag21g.xn--9ta62ngt6aou8t", false); } // [B1, C2, V7]
3241test { try toAsciiFail("xn--8md2578ag21g.xn--9ta62ngt6aou8t", true); } // [B1, C2, V7]
16043242test { try toUnicodeFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6\xc3\x9f"); } // [B1, V7]
3243test { try toAsciiFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6\xc3\x9f", false); } // [B1, V7]
3244test { try toAsciiFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6\xc3\x9f", true); } // [B1, V7]
16053245test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f"); } // [B1, B5, B6, V6]
3246test { try toAsciiFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f", false); } // [B1, B5, B6, V6]
3247test { try toAsciiFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f", true); } // [B1, B5, B6, V6]
16063248test { try toUnicodeFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f"); } // [B1, B5, B6, V6]
3249test { try toAsciiFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f", false); } // [B1, B5, B6, V6]
3250test { try toAsciiFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f", true); } // [B1, B5, B6, V6]
16073251test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6SS"); } // [B1, B5, B6, V6]
3252test { try toAsciiFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6SS", false); } // [B1, B5, B6, V6]
3253test { try toAsciiFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6SS", true); } // [B1, B5, B6, V6]
16083254test { try toUnicodeFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6ss"); } // [B1, B5, B6, V6]
3255test { try toAsciiFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6ss", false); } // [B1, B5, B6, V6]
3256test { try toAsciiFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6ss", true); } // [B1, B5, B6, V6]
16093257test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6Ss"); } // [B1, B5, B6, V6]
3258test { try toAsciiFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6Ss", false); } // [B1, B5, B6, V6]
3259test { try toAsciiFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6Ss", true); } // [B1, B5, B6, V6]
16103260test { try toUnicodeFail("0.xn--iib29fp25e.1.xn--ss-1sj"); } // [B1, B5, B6, V6]
3261test { try toAsciiFail("0.xn--iib29fp25e.1.xn--ss-1sj", false); } // [B1, B5, B6, V6]
3262test { try toAsciiFail("0.xn--iib29fp25e.1.xn--ss-1sj", true); } // [B1, B5, B6, V6]
16113263test { try toUnicodeFail("0.xn--iib29fp25e.1.xn--zca117e"); } // [B1, B5, B6, V6]
3264test { try toAsciiFail("0.xn--iib29fp25e.1.xn--zca117e", false); } // [B1, B5, B6, V6]
3265test { try toAsciiFail("0.xn--iib29fp25e.1.xn--zca117e", true); } // [B1, B5, B6, V6]
16123266test { try toUnicodeFail("\xf0\x9f\x84\x80\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6\xc3\x9f"); } // [B1, V7]
3267test { try toAsciiFail("\xf0\x9f\x84\x80\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6\xc3\x9f", false); } // [B1, V7]
3268test { try toAsciiFail("\xf0\x9f\x84\x80\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6\xc3\x9f", true); } // [B1, V7]
16133269test { try toUnicodeFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6SS"); } // [B1, V7]
3270test { try toAsciiFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6SS", false); } // [B1, V7]
3271test { try toAsciiFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6SS", true); } // [B1, V7]
16143272test { try toUnicodeFail("\xf0\x9f\x84\x80\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6ss"); } // [B1, V7]
3273test { try toAsciiFail("\xf0\x9f\x84\x80\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6ss", false); } // [B1, V7]
3274test { try toAsciiFail("\xf0\x9f\x84\x80\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6ss", true); } // [B1, V7]
16153275test { try toUnicodeFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6Ss"); } // [B1, V7]
3276test { try toAsciiFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6Ss", false); } // [B1, V7]
3277test { try toAsciiFail("\xf0\x9f\x84\x80\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x82\xe2\x92\x88\xe0\xbe\xb6Ss", true); } // [B1, V7]
16163278test { try toUnicodeFail("xn--iib29fp25e0219a.xn--ss-1sj588o"); } // [B1, V7]
3279test { try toAsciiFail("xn--iib29fp25e0219a.xn--ss-1sj588o", false); } // [B1, V7]
3280test { try toAsciiFail("xn--iib29fp25e0219a.xn--ss-1sj588o", true); } // [B1, V7]
16173281test { try toUnicodeFail("xn--iib29fp25e0219a.xn--zca117e3vp"); } // [B1, V7]
3282test { try toAsciiFail("xn--iib29fp25e0219a.xn--zca117e3vp", false); } // [B1, V7]
3283test { try toAsciiFail("xn--iib29fp25e0219a.xn--zca117e3vp", true); } // [B1, V7]
16183284test { try toUnicodeFail("0.xn--iib29f26o.1.xn--ss-1sj"); } // [B1, B5, B6, V6, V7]
3285test { try toAsciiFail("0.xn--iib29f26o.1.xn--ss-1sj", false); } // [B1, B5, B6, V6, V7]
3286test { try toAsciiFail("0.xn--iib29f26o.1.xn--ss-1sj", true); } // [B1, B5, B6, V6, V7]
16193287test { try toUnicodeFail("0.xn--iib29f26o.1.xn--zca117e"); } // [B1, B5, B6, V6, V7]
3288test { try toAsciiFail("0.xn--iib29f26o.1.xn--zca117e", false); } // [B1, B5, B6, V6, V7]
3289test { try toAsciiFail("0.xn--iib29f26o.1.xn--zca117e", true); } // [B1, B5, B6, V6, V7]
16203290test { try toUnicodeFail("xn--iib29f26o6n43c.xn--ss-1sj588o"); } // [B1, V7]
3291test { try toAsciiFail("xn--iib29f26o6n43c.xn--ss-1sj588o", false); } // [B1, V7]
3292test { try toAsciiFail("xn--iib29f26o6n43c.xn--ss-1sj588o", true); } // [B1, V7]
16213293test { try toUnicodeFail("xn--iib29f26o6n43c.xn--zca117e3vp"); } // [B1, V7]
3294test { try toAsciiFail("xn--iib29f26o6n43c.xn--zca117e3vp", false); } // [B1, V7]
3295test { try toAsciiFail("xn--iib29f26o6n43c.xn--zca117e3vp", true); } // [B1, V7]
16223296test { try toUnicodeFail("\xe2\x89\xa0.\xe2\x80\x8c-\xd9\xab"); } // [B1, C1]
3297test { try toAsciiFail("\xe2\x89\xa0.\xe2\x80\x8c-\xd9\xab", false); } // [B1, C1]
3298test { try toAsciiFail("\xe2\x89\xa0.\xe2\x80\x8c-\xd9\xab", true); } // [B1, V3]
16233299test { try toUnicodeFail("=\xcc\xb8.\xe2\x80\x8c-\xd9\xab"); } // [B1, C1]
3300test { try toAsciiFail("=\xcc\xb8.\xe2\x80\x8c-\xd9\xab", false); } // [B1, C1]
3301test { try toAsciiFail("=\xcc\xb8.\xe2\x80\x8c-\xd9\xab", true); } // [B1, V3]
16243302test { try toUnicodeFail("xn--1ch.xn----vqc"); } // [B1, V3]
3303test { try toAsciiFail("xn--1ch.xn----vqc", false); } // [B1, V3]
3304test { try toAsciiFail("xn--1ch.xn----vqc", true); } // [B1, V3]
16253305test { try toUnicodeFail("xn--1ch.xn----vqc597q"); } // [B1, C1]
3306test { try toAsciiFail("xn--1ch.xn----vqc597q", false); } // [B1, C1]
3307test { try toAsciiFail("xn--1ch.xn----vqc597q", true); } // [B1, C1]
16263308test { try toUnicodeFail("\xd9\xa0\xdb\xb1\xef\xbd\xa1\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5"); } // [B1, V7]
3309test { try toAsciiFail("\xd9\xa0\xdb\xb1\xef\xbd\xa1\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5", false); } // [B1, V7]
3310test { try toAsciiFail("\xd9\xa0\xdb\xb1\xef\xbd\xa1\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5", true); } // [B1, V7]
16273311test { try toUnicodeFail("\xd9\xa0\xdb\xb1\xe3\x80\x82\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5"); } // [B1, V7]
3312test { try toAsciiFail("\xd9\xa0\xdb\xb1\xe3\x80\x82\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5", false); } // [B1, V7]
3313test { try toAsciiFail("\xd9\xa0\xdb\xb1\xe3\x80\x82\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5", true); } // [B1, V7]
16283314test { try toUnicodeFail("xn--8hb40a.xn--eib7967vner3e"); } // [B1, V7]
3315test { try toAsciiFail("xn--8hb40a.xn--eib7967vner3e", false); } // [B1, V7]
3316test { try toAsciiFail("xn--8hb40a.xn--eib7967vner3e", true); } // [B1, V7]
16293317test { try toUnicodeFail("\xe2\x80\x8c\xd9\xa3\xe2\x92\x96\xe3\x80\x82\xf3\xb1\x85\x89\xf0\xbd\xb7\x9b\xe1\xaf\xb3"); } // [B1, C1, V7]
3318test { try toAsciiFail("\xe2\x80\x8c\xd9\xa3\xe2\x92\x96\xe3\x80\x82\xf3\xb1\x85\x89\xf0\xbd\xb7\x9b\xe1\xaf\xb3", false); } // [B1, C1, V7]
3319test { try toAsciiFail("\xe2\x80\x8c\xd9\xa3\xe2\x92\x96\xe3\x80\x82\xf3\xb1\x85\x89\xf0\xbd\xb7\x9b\xe1\xaf\xb3", true); } // [B1, V7]
16303320test { try toUnicodeFail("\xe2\x80\x8c\xd9\xa315.\xe3\x80\x82\xf3\xb1\x85\x89\xf0\xbd\xb7\x9b\xe1\xaf\xb3"); } // [B1, C1, V7, X4_2]
3321test { try toAsciiFail("\xe2\x80\x8c\xd9\xa315.\xe3\x80\x82\xf3\xb1\x85\x89\xf0\xbd\xb7\x9b\xe1\xaf\xb3", false); } // [B1, C1, V7, A4_2]
3322test { try toAsciiFail("\xe2\x80\x8c\xd9\xa315.\xe3\x80\x82\xf3\xb1\x85\x89\xf0\xbd\xb7\x9b\xe1\xaf\xb3", true); } // [B1, V7, A4_2]
16313323test { try toUnicodeFail("xn--15-gyd..xn--1zf13512buy41d"); } // [B1, V7, X4_2]
3324test { try toAsciiFail("xn--15-gyd..xn--1zf13512buy41d", false); } // [B1, V7, A4_2]
3325test { try toAsciiFail("xn--15-gyd..xn--1zf13512buy41d", true); } // [B1, V7, A4_2]
16323326test { try toUnicodeFail("xn--15-gyd983x..xn--1zf13512buy41d"); } // [B1, C1, V7, X4_2]
3327test { try toAsciiFail("xn--15-gyd983x..xn--1zf13512buy41d", false); } // [B1, C1, V7, A4_2]
3328test { try toAsciiFail("xn--15-gyd983x..xn--1zf13512buy41d", true); } // [B1, C1, V7, A4_2]
16333329test { try toUnicodeFail("xn--cib675m.xn--1zf13512buy41d"); } // [B1, V7]
3330test { try toAsciiFail("xn--cib675m.xn--1zf13512buy41d", false); } // [B1, V7]
3331test { try toAsciiFail("xn--cib675m.xn--1zf13512buy41d", true); } // [B1, V7]
16343332test { try toUnicodeFail("xn--cib152kwgd.xn--1zf13512buy41d"); } // [B1, C1, V7]
3333test { try toAsciiFail("xn--cib152kwgd.xn--1zf13512buy41d", false); } // [B1, C1, V7]
3334test { try toAsciiFail("xn--cib152kwgd.xn--1zf13512buy41d", true); } // [B1, C1, V7]
16353335test { try toUnicodeFail("\xe1\xaf\xb3.-\xe9\x80\x8b\xf1\xb3\xa6\xad\xf3\x99\x99\xae"); } // [V3, V6, V7]
3336test { try toAsciiFail("\xe1\xaf\xb3.-\xe9\x80\x8b\xf1\xb3\xa6\xad\xf3\x99\x99\xae", false); } // [V3, V6, V7]
3337test { try toAsciiFail("\xe1\xaf\xb3.-\xe9\x80\x8b\xf1\xb3\xa6\xad\xf3\x99\x99\xae", true); } // [V3, V6, V7]
16363338test { try toUnicodeFail("xn--1zf.xn----483d46987byr50b"); } // [V3, V6, V7]
3339test { try toAsciiFail("xn--1zf.xn----483d46987byr50b", false); } // [V3, V6, V7]
3340test { try toAsciiFail("xn--1zf.xn----483d46987byr50b", true); } // [V3, V6, V7]
16373341test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x82", "xn--9ob.xn--4xa", true); }
16383342test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x82"); } // [B1, C2]
3343test { try toAsciiFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x82", false); } // [B1, C2]
16393344test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x82", "xn--9ob.xn--4xa", true); }
16403345test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x82"); } // [B1, C2]
3346test { try toAsciiFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x82", false); } // [B1, C2]
16413347test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xce\xa3", "xn--9ob.xn--4xa", true); }
16423348test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xce\xa3"); } // [B1, C2]
3349test { try toAsciiFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xce\xa3", false); } // [B1, C2]
16433350test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x83", "xn--9ob.xn--4xa", true); }
16443351test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x83"); } // [B1, C2]
3352test { try toAsciiFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x83", false); } // [B1, C2]
16453353test { try toUnicodePass("xn--9ob.xn--4xa", "\xdd\x96.\xcf\x83"); }
16463354test { try toAsciiPass("xn--9ob.xn--4xa", "xn--9ob.xn--4xa", false); }
16473355test { try toAsciiPass("xn--9ob.xn--4xa", "xn--9ob.xn--4xa", true); }
......@@ -1652,102 +3360,290 @@ test { try toUnicodePass("\xdd\x96.\xce\xa3", "\xdd\x96.\xcf\x83"); }
16523360test { try toAsciiPass("\xdd\x96.\xce\xa3", "xn--9ob.xn--4xa", false); }
16533361test { try toAsciiPass("\xdd\x96.\xce\xa3", "xn--9ob.xn--4xa", true); }
16543362test { try toUnicodeFail("xn--9ob.xn--4xa795l"); } // [B1, C2]
3363test { try toAsciiFail("xn--9ob.xn--4xa795l", false); } // [B1, C2]
3364test { try toAsciiFail("xn--9ob.xn--4xa795l", true); } // [B1, C2]
16553365test { try toUnicodeFail("xn--9ob.xn--3xa995l"); } // [B1, C2]
3366test { try toAsciiFail("xn--9ob.xn--3xa995l", false); } // [B1, C2]
3367test { try toAsciiFail("xn--9ob.xn--3xa995l", true); } // [B1, C2]
16563368test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xce\xa3", "xn--9ob.xn--4xa", true); }
16573369test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xce\xa3"); } // [B1, C2]
3370test { try toAsciiFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xce\xa3", false); } // [B1, C2]
16583371test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x83", "xn--9ob.xn--4xa", true); }
16593372test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x83"); } // [B1, C2]
3373test { try toAsciiFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x83", false); } // [B1, C2]
16603374test { try toUnicodeFail("xn--9ob.xn--4xa380e"); } // [V7]
3375test { try toAsciiFail("xn--9ob.xn--4xa380e", false); } // [V7]
3376test { try toAsciiFail("xn--9ob.xn--4xa380e", true); } // [V7]
16613377test { try toUnicodeFail("xn--9ob.xn--4xa380ebol"); } // [C2, V7]
3378test { try toAsciiFail("xn--9ob.xn--4xa380ebol", false); } // [C2, V7]
3379test { try toAsciiFail("xn--9ob.xn--4xa380ebol", true); } // [C2, V7]
16623380test { try toUnicodeFail("xn--9ob.xn--3xa580ebol"); } // [C2, V7]
3381test { try toAsciiFail("xn--9ob.xn--3xa580ebol", false); } // [C2, V7]
3382test { try toAsciiFail("xn--9ob.xn--3xa580ebol", true); } // [C2, V7]
16633383test { try toUnicodeFail("xn--9ob.xn--4xa574u"); } // [V7]
3384test { try toAsciiFail("xn--9ob.xn--4xa574u", false); } // [V7]
3385test { try toAsciiFail("xn--9ob.xn--4xa574u", true); } // [V7]
16643386test { try toUnicodeFail("xn--9ob.xn--4xa795lq2l"); } // [C2, V7]
3387test { try toAsciiFail("xn--9ob.xn--4xa795lq2l", false); } // [C2, V7]
3388test { try toAsciiFail("xn--9ob.xn--4xa795lq2l", true); } // [C2, V7]
16653389test { try toUnicodeFail("xn--9ob.xn--3xa995lq2l"); } // [C2, V7]
3390test { try toAsciiFail("xn--9ob.xn--3xa995lq2l", false); } // [C2, V7]
3391test { try toAsciiFail("xn--9ob.xn--3xa995lq2l", true); } // [C2, V7]
16663392test { try toUnicodeFail("\xe1\xa1\x86\xe1\x82\xa3\xef\xbd\xa1\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d"); } // [C2, V7]
3393test { try toAsciiFail("\xe1\xa1\x86\xe1\x82\xa3\xef\xbd\xa1\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d", false); } // [C2, V7]
3394test { try toAsciiFail("\xe1\xa1\x86\xe1\x82\xa3\xef\xbd\xa1\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d", true); } // [V7]
16673395test { try toUnicodeFail("\xe1\xa1\x86\xe1\x82\xa3\xe3\x80\x82\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d"); } // [C2, V7]
3396test { try toAsciiFail("\xe1\xa1\x86\xe1\x82\xa3\xe3\x80\x82\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d", false); } // [C2, V7]
3397test { try toAsciiFail("\xe1\xa1\x86\xe1\x82\xa3\xe3\x80\x82\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d", true); } // [V7]
16683398test { try toUnicodeFail("\xe1\xa1\x86\xe2\xb4\x83\xe3\x80\x82\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d"); } // [C2, V7]
3399test { try toAsciiFail("\xe1\xa1\x86\xe2\xb4\x83\xe3\x80\x82\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d", false); } // [C2, V7]
3400test { try toAsciiFail("\xe1\xa1\x86\xe2\xb4\x83\xe3\x80\x82\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d", true); } // [V7]
16693401test { try toUnicodeFail("xn--57e237h.xn--5sa98523p"); } // [V7]
3402test { try toAsciiFail("xn--57e237h.xn--5sa98523p", false); } // [V7]
3403test { try toAsciiFail("xn--57e237h.xn--5sa98523p", true); } // [V7]
16703404test { try toUnicodeFail("xn--57e237h.xn--5sa649la993427a"); } // [C2, V7]
3405test { try toAsciiFail("xn--57e237h.xn--5sa649la993427a", false); } // [C2, V7]
3406test { try toAsciiFail("xn--57e237h.xn--5sa649la993427a", true); } // [C2, V7]
16713407test { try toUnicodeFail("\xe1\xa1\x86\xe2\xb4\x83\xef\xbd\xa1\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d"); } // [C2, V7]
3408test { try toAsciiFail("\xe1\xa1\x86\xe2\xb4\x83\xef\xbd\xa1\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d", false); } // [C2, V7]
3409test { try toAsciiFail("\xe1\xa1\x86\xe2\xb4\x83\xef\xbd\xa1\xf3\x9e\xa2\xa7\xcc\x95\xe2\x80\x8d\xe2\x80\x8d", true); } // [V7]
16723410test { try toUnicodeFail("xn--bnd320b.xn--5sa98523p"); } // [V7]
3411test { try toAsciiFail("xn--bnd320b.xn--5sa98523p", false); } // [V7]
3412test { try toAsciiFail("xn--bnd320b.xn--5sa98523p", true); } // [V7]
16733413test { try toUnicodeFail("xn--bnd320b.xn--5sa649la993427a"); } // [C2, V7]
3414test { try toAsciiFail("xn--bnd320b.xn--5sa649la993427a", false); } // [C2, V7]
3415test { try toAsciiFail("xn--bnd320b.xn--5sa649la993427a", true); } // [C2, V7]
16743416test { try toUnicodeFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xcf\x82\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d"); } // [B5, B6, C1, C2]
3417test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xcf\x82\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", false); } // [B5, B6, C1, C2]
3418test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xcf\x82\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", true); } // [B5, B6]
16753419test { try toUnicodeFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xcf\x82\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d"); } // [B5, B6, C1, C2]
3420test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xcf\x82\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", false); } // [B5, B6, C1, C2]
3421test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xcf\x82\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", true); } // [B5, B6]
16763422test { try toUnicodeFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xce\xa3\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d"); } // [B5, B6, C1, C2]
3423test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xce\xa3\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", false); } // [B5, B6, C1, C2]
3424test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xce\xa3\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", true); } // [B5, B6]
16773425test { try toUnicodeFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xcf\x83\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d"); } // [B5, B6, C1, C2]
3426test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xcf\x83\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", false); } // [B5, B6, C1, C2]
3427test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5.\xcf\x83\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", true); } // [B5, B6]
16783428test { try toUnicodeFail("xn--ewb302xhu1l.xn--4xa0426k"); } // [B5, B6]
3429test { try toAsciiFail("xn--ewb302xhu1l.xn--4xa0426k", false); } // [B5, B6]
3430test { try toAsciiFail("xn--ewb302xhu1l.xn--4xa0426k", true); } // [B5, B6]
16793431test { try toUnicodeFail("xn--ewb962jfitku4r.xn--4xa695lda6932v"); } // [B5, B6, C1, C2]
3432test { try toAsciiFail("xn--ewb962jfitku4r.xn--4xa695lda6932v", false); } // [B5, B6, C1, C2]
3433test { try toAsciiFail("xn--ewb962jfitku4r.xn--4xa695lda6932v", true); } // [B5, B6, C1, C2]
16803434test { try toUnicodeFail("xn--ewb962jfitku4r.xn--3xa895lda6932v"); } // [B5, B6, C1, C2]
3435test { try toAsciiFail("xn--ewb962jfitku4r.xn--3xa895lda6932v", false); } // [B5, B6, C1, C2]
3436test { try toAsciiFail("xn--ewb962jfitku4r.xn--3xa895lda6932v", true); } // [B5, B6, C1, C2]
16813437test { try toUnicodeFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xce\xa3\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d"); } // [B5, B6, C1, C2]
3438test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xce\xa3\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", false); } // [B5, B6, C1, C2]
3439test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xce\xa3\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", true); } // [B5, B6]
16823440test { try toUnicodeFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xcf\x83\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d"); } // [B5, B6, C1, C2]
3441test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xcf\x83\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", false); } // [B5, B6, C1, C2]
3442test { try toAsciiFail("\xe3\xad\x84\xe2\x80\x8d\xe0\xa1\x8f\xf0\x91\x9a\xb5\xef\xbc\x8e\xcf\x83\xf0\x90\xae\xae\xe2\x80\x8c\xe2\x80\x8d", true); } // [B5, B6]
16833443test { try toUnicodeFail("\xe1\x9e\xb5\xe3\x80\x82\xf0\x9e\xaf\xb8\xea\xa1\x80\xf0\x9f\x84\x8b"); } // [B2, B3, V7, X4_2]
3444test { try toAsciiFail("\xe1\x9e\xb5\xe3\x80\x82\xf0\x9e\xaf\xb8\xea\xa1\x80\xf0\x9f\x84\x8b", false); } // [B2, B3, V7, A4_2]
3445test { try toAsciiFail("\xe1\x9e\xb5\xe3\x80\x82\xf0\x9e\xaf\xb8\xea\xa1\x80\xf0\x9f\x84\x8b", true); } // [B2, B3, V7, A4_2]
16843446test { try toUnicodeFail(".xn--8b9ar252dngd"); } // [B2, B3, V7, X4_2]
3447test { try toAsciiFail(".xn--8b9ar252dngd", false); } // [B2, B3, V7, A4_2]
3448test { try toAsciiFail(".xn--8b9ar252dngd", true); } // [B2, B3, V7, A4_2]
16853449test { try toUnicodeFail("xn--03e.xn--8b9ar252dngd"); } // [B1, B2, B3, V6, V7]
3450test { try toAsciiFail("xn--03e.xn--8b9ar252dngd", false); } // [B1, B2, B3, V6, V7]
3451test { try toAsciiFail("xn--03e.xn--8b9ar252dngd", true); } // [B1, B2, B3, V6, V7]
16863452test { try toUnicodeFail("\xf3\x90\xaa\xba\xe6\x9a\x91\xef\xbc\x8e\xe2\xbe\x91\xd9\xa8"); } // [B5, B6, V7]
3453test { try toAsciiFail("\xf3\x90\xaa\xba\xe6\x9a\x91\xef\xbc\x8e\xe2\xbe\x91\xd9\xa8", false); } // [B5, B6, V7]
3454test { try toAsciiFail("\xf3\x90\xaa\xba\xe6\x9a\x91\xef\xbc\x8e\xe2\xbe\x91\xd9\xa8", true); } // [B5, B6, V7]
16873455test { try toUnicodeFail("\xf3\x90\xaa\xba\xe6\x9a\x91.\xe8\xa5\xbe\xd9\xa8"); } // [B5, B6, V7]
3456test { try toAsciiFail("\xf3\x90\xaa\xba\xe6\x9a\x91.\xe8\xa5\xbe\xd9\xa8", false); } // [B5, B6, V7]
3457test { try toAsciiFail("\xf3\x90\xaa\xba\xe6\x9a\x91.\xe8\xa5\xbe\xd9\xa8", true); } // [B5, B6, V7]
16883458test { try toUnicodeFail("xn--tlvq3513e.xn--hib9228d"); } // [B5, B6, V7]
3459test { try toAsciiFail("xn--tlvq3513e.xn--hib9228d", false); } // [B5, B6, V7]
3460test { try toAsciiFail("xn--tlvq3513e.xn--hib9228d", true); } // [B5, B6, V7]
16893461test { try toUnicodeFail("\xf3\xa0\x84\x9a\xe2\x89\xaf\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf"); } // [B1, V7]
3462test { try toAsciiFail("\xf3\xa0\x84\x9a\xe2\x89\xaf\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf", false); } // [B1, V7]
3463test { try toAsciiFail("\xf3\xa0\x84\x9a\xe2\x89\xaf\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf", true); } // [B1, V7]
16903464test { try toUnicodeFail("\xf3\xa0\x84\x9a>\xcc\xb8\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf"); } // [B1, V7]
3465test { try toAsciiFail("\xf3\xa0\x84\x9a>\xcc\xb8\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf", false); } // [B1, V7]
3466test { try toAsciiFail("\xf3\xa0\x84\x9a>\xcc\xb8\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf", true); } // [B1, V7]
16913467test { try toUnicodeFail("xn--hdh7783c.xn--9xb680i"); } // [B1, V7]
3468test { try toAsciiFail("xn--hdh7783c.xn--9xb680i", false); } // [B1, V7]
3469test { try toAsciiFail("xn--hdh7783c.xn--9xb680i", true); } // [B1, V7]
16923470test { try toUnicodeFail("\xef\xb7\x83\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe1\x82\xb7"); } // [B2, B3, V7]
3471test { try toAsciiFail("\xef\xb7\x83\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe1\x82\xb7", false); } // [B2, B3, V7]
3472test { try toAsciiFail("\xef\xb7\x83\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe1\x82\xb7", true); } // [B2, B3, V7]
16933473test { try toUnicodeFail("\xd9\x83\xd9\x85\xd9\x85\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe1\x82\xb7"); } // [B2, B3, V7]
3474test { try toAsciiFail("\xd9\x83\xd9\x85\xd9\x85\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe1\x82\xb7", false); } // [B2, B3, V7]
3475test { try toAsciiFail("\xd9\x83\xd9\x85\xd9\x85\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe1\x82\xb7", true); } // [B2, B3, V7]
16943476test { try toUnicodeFail("\xd9\x83\xd9\x85\xd9\x85\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe2\xb4\x97"); } // [B2, B3, V7]
3477test { try toAsciiFail("\xd9\x83\xd9\x85\xd9\x85\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe2\xb4\x97", false); } // [B2, B3, V7]
3478test { try toAsciiFail("\xd9\x83\xd9\x85\xd9\x85\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe2\xb4\x97", true); } // [B2, B3, V7]
16953479test { try toUnicodeFail("xn--fhbea662czx68a2tju.xn--fljz2846h"); } // [B2, B3, V7]
3480test { try toAsciiFail("xn--fhbea662czx68a2tju.xn--fljz2846h", false); } // [B2, B3, V7]
3481test { try toAsciiFail("xn--fhbea662czx68a2tju.xn--fljz2846h", true); } // [B2, B3, V7]
16963482test { try toUnicodeFail("\xef\xb7\x83\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe2\xb4\x97"); } // [B2, B3, V7]
3483test { try toAsciiFail("\xef\xb7\x83\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe2\xb4\x97", false); } // [B2, B3, V7]
3484test { try toAsciiFail("\xef\xb7\x83\xf0\xae\x81\xb1\xe0\xad\x8d\xf0\x90\xa8\xbf.\xf3\x90\xa7\xa4\xe2\xb4\x97", true); } // [B2, B3, V7]
16973485test { try toUnicodeFail("xn--fhbea662czx68a2tju.xn--vnd55511o"); } // [B2, B3, V7]
3486test { try toAsciiFail("xn--fhbea662czx68a2tju.xn--vnd55511o", false); } // [B2, B3, V7]
3487test { try toAsciiFail("xn--fhbea662czx68a2tju.xn--vnd55511o", true); } // [B2, B3, V7]
16983488test { try toUnicodeFail("\xf0\x9e\x80\xa8\xef\xbd\xa1\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87"); } // [V6, V7]
3489test { try toAsciiFail("\xf0\x9e\x80\xa8\xef\xbd\xa1\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87", false); } // [V6, V7]
3490test { try toAsciiFail("\xf0\x9e\x80\xa8\xef\xbd\xa1\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87", true); } // [V6, V7]
16993491test { try toUnicodeFail("\xf0\x9e\x80\xa8\xe3\x80\x82\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87"); } // [V6, V7]
3492test { try toAsciiFail("\xf0\x9e\x80\xa8\xe3\x80\x82\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87", false); } // [V6, V7]
3493test { try toAsciiFail("\xf0\x9e\x80\xa8\xe3\x80\x82\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87", true); } // [V6, V7]
17003494test { try toUnicodeFail("xn--mi4h.xn--1uf6843smg20c"); } // [V6, V7]
3495test { try toAsciiFail("xn--mi4h.xn--1uf6843smg20c", false); } // [V6, V7]
3496test { try toAsciiFail("xn--mi4h.xn--1uf6843smg20c", true); } // [V6, V7]
17013497test { try toUnicodeFail("\xf3\xa0\xa3\xbc\xe2\x80\x8c\xef\xbc\x8e\xf0\x90\xba\xb0\xe2\x80\x8c\xe1\xa1\x9f"); } // [B1, B2, B3, C1, V7]
3498test { try toAsciiFail("\xf3\xa0\xa3\xbc\xe2\x80\x8c\xef\xbc\x8e\xf0\x90\xba\xb0\xe2\x80\x8c\xe1\xa1\x9f", false); } // [B1, B2, B3, C1, V7]
3499test { try toAsciiFail("\xf3\xa0\xa3\xbc\xe2\x80\x8c\xef\xbc\x8e\xf0\x90\xba\xb0\xe2\x80\x8c\xe1\xa1\x9f", true); } // [B1, B2, B3, V7]
17023500test { try toUnicodeFail("\xf3\xa0\xa3\xbc\xe2\x80\x8c.\xf0\x90\xba\xb0\xe2\x80\x8c\xe1\xa1\x9f"); } // [B1, B2, B3, C1, V7]
3501test { try toAsciiFail("\xf3\xa0\xa3\xbc\xe2\x80\x8c.\xf0\x90\xba\xb0\xe2\x80\x8c\xe1\xa1\x9f", false); } // [B1, B2, B3, C1, V7]
3502test { try toAsciiFail("\xf3\xa0\xa3\xbc\xe2\x80\x8c.\xf0\x90\xba\xb0\xe2\x80\x8c\xe1\xa1\x9f", true); } // [B1, B2, B3, V7]
17033503test { try toUnicodeFail("xn--q046e.xn--v8e7227j"); } // [B1, B2, B3, V7]
3504test { try toAsciiFail("xn--q046e.xn--v8e7227j", false); } // [B1, B2, B3, V7]
3505test { try toAsciiFail("xn--q046e.xn--v8e7227j", true); } // [B1, B2, B3, V7]
17043506test { try toUnicodeFail("xn--0ug18531l.xn--v8e340bp21t"); } // [B1, B2, B3, C1, V7]
3507test { try toAsciiFail("xn--0ug18531l.xn--v8e340bp21t", false); } // [B1, B2, B3, C1, V7]
3508test { try toAsciiFail("xn--0ug18531l.xn--v8e340bp21t", true); } // [B1, B2, B3, C1, V7]
17053509test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9f\xc3\x9f.\xe1\x8c\xa7"); } // [V7]
3510test { try toAsciiFail("\xe1\xa2\x9b\xf3\xa8\x85\x9f\xc3\x9f.\xe1\x8c\xa7", false); } // [V7]
3511test { try toAsciiFail("\xe1\xa2\x9b\xf3\xa8\x85\x9f\xc3\x9f.\xe1\x8c\xa7", true); } // [V7]
17063512test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSS.\xe1\x8c\xa7"); } // [V7]
3513test { try toAsciiFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSS.\xe1\x8c\xa7", false); } // [V7]
3514test { try toAsciiFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSS.\xe1\x8c\xa7", true); } // [V7]
17073515test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fss.\xe1\x8c\xa7"); } // [V7]
3516test { try toAsciiFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fss.\xe1\x8c\xa7", false); } // [V7]
3517test { try toAsciiFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fss.\xe1\x8c\xa7", true); } // [V7]
17083518test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSs.\xe1\x8c\xa7"); } // [V7]
3519test { try toAsciiFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSs.\xe1\x8c\xa7", false); } // [V7]
3520test { try toAsciiFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSs.\xe1\x8c\xa7", true); } // [V7]
17093521test { try toUnicodeFail("xn--ss-7dp66033t.xn--p5d"); } // [V7]
3522test { try toAsciiFail("xn--ss-7dp66033t.xn--p5d", false); } // [V7]
3523test { try toAsciiFail("xn--ss-7dp66033t.xn--p5d", true); } // [V7]
17103524test { try toUnicodeFail("xn--zca562jc642x.xn--p5d"); } // [V7]
3525test { try toAsciiFail("xn--zca562jc642x.xn--p5d", false); } // [V7]
3526test { try toAsciiFail("xn--zca562jc642x.xn--p5d", true); } // [V7]
17113527test { try toUnicodeFail("\xe2\xae\x92\xe2\x80\x8c.\xf1\x92\x9a\x97\xe2\x80\x8c"); } // [C1, V7]
3528test { try toAsciiFail("\xe2\xae\x92\xe2\x80\x8c.\xf1\x92\x9a\x97\xe2\x80\x8c", false); } // [C1, V7]
3529test { try toAsciiFail("\xe2\xae\x92\xe2\x80\x8c.\xf1\x92\x9a\x97\xe2\x80\x8c", true); } // [V7]
17123530test { try toUnicodeFail("xn--b9i.xn--5p9y"); } // [V7]
3531test { try toAsciiFail("xn--b9i.xn--5p9y", false); } // [V7]
3532test { try toAsciiFail("xn--b9i.xn--5p9y", true); } // [V7]
17133533test { try toUnicodeFail("xn--0ugx66b.xn--0ugz2871c"); } // [C1, V7]
3534test { try toAsciiFail("xn--0ugx66b.xn--0ugz2871c", false); } // [C1, V7]
3535test { try toAsciiFail("xn--0ugx66b.xn--0ugz2871c", true); } // [C1, V7]
17143536test { try toUnicodeFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe1\x82\xbc"); } // [B2, V7]
3537test { try toAsciiFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe1\x82\xbc", false); } // [B2, V7]
3538test { try toAsciiFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe1\x82\xbc", true); } // [B2, V7]
17153539test { try toUnicodeFail("\xf0\x9e\xa4\xa4\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c"); } // [B2, V7]
3540test { try toAsciiFail("\xf0\x9e\xa4\xa4\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c", false); } // [B2, V7]
3541test { try toAsciiFail("\xf0\x9e\xa4\xa4\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c", true); } // [B2, V7]
17163542test { try toUnicodeFail("xn--no0dr648a51o3b.xn--klj"); } // [B2, V7]
3543test { try toAsciiFail("xn--no0dr648a51o3b.xn--klj", false); } // [B2, V7]
3544test { try toAsciiFail("xn--no0dr648a51o3b.xn--klj", true); } // [B2, V7]
17173545test { try toUnicodeFail("xn--no0dr648a51o3b.xn--0nd"); } // [B2, V7]
3546test { try toAsciiFail("xn--no0dr648a51o3b.xn--0nd", false); } // [B2, V7]
3547test { try toAsciiFail("xn--no0dr648a51o3b.xn--0nd", true); } // [B2, V7]
17183548test { try toUnicodeFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c"); } // [B2, V7]
3549test { try toAsciiFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c", false); } // [B2, V7]
3550test { try toAsciiFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c", true); } // [B2, V7]
17193551test { try toUnicodeFail("\xf0\x90\xb9\xb5\xe2\xae\xa3\xe2\x80\x8c\xf0\x91\x84\xb0\xef\xbd\xa1\xf1\xb7\xb4\xbf\xef\xb2\xb7"); } // [B1, B5, B6, C1, V7]
3552test { try toAsciiFail("\xf0\x90\xb9\xb5\xe2\xae\xa3\xe2\x80\x8c\xf0\x91\x84\xb0\xef\xbd\xa1\xf1\xb7\xb4\xbf\xef\xb2\xb7", false); } // [B1, B5, B6, C1, V7]
3553test { try toAsciiFail("\xf0\x90\xb9\xb5\xe2\xae\xa3\xe2\x80\x8c\xf0\x91\x84\xb0\xef\xbd\xa1\xf1\xb7\xb4\xbf\xef\xb2\xb7", true); } // [B1, B5, B6, V7]
17203554test { try toUnicodeFail("\xf0\x90\xb9\xb5\xe2\xae\xa3\xe2\x80\x8c\xf0\x91\x84\xb0\xe3\x80\x82\xf1\xb7\xb4\xbf\xd8\xb6\xd9\x85"); } // [B1, B5, B6, C1, V7]
3555test { try toAsciiFail("\xf0\x90\xb9\xb5\xe2\xae\xa3\xe2\x80\x8c\xf0\x91\x84\xb0\xe3\x80\x82\xf1\xb7\xb4\xbf\xd8\xb6\xd9\x85", false); } // [B1, B5, B6, C1, V7]
3556test { try toAsciiFail("\xf0\x90\xb9\xb5\xe2\xae\xa3\xe2\x80\x8c\xf0\x91\x84\xb0\xe3\x80\x82\xf1\xb7\xb4\xbf\xd8\xb6\xd9\x85", true); } // [B1, B5, B6, V7]
17213557test { try toUnicodeFail("xn--s9i5458e7yb.xn--1gb4a66004i"); } // [B1, B5, B6, V7]
3558test { try toAsciiFail("xn--s9i5458e7yb.xn--1gb4a66004i", false); } // [B1, B5, B6, V7]
3559test { try toAsciiFail("xn--s9i5458e7yb.xn--1gb4a66004i", true); } // [B1, B5, B6, V7]
17223560test { try toUnicodeFail("xn--0ug586bcj8p7jc.xn--1gb4a66004i"); } // [B1, B5, B6, C1, V7]
3561test { try toAsciiFail("xn--0ug586bcj8p7jc.xn--1gb4a66004i", false); } // [B1, B5, B6, C1, V7]
3562test { try toAsciiFail("xn--0ug586bcj8p7jc.xn--1gb4a66004i", true); } // [B1, B5, B6, C1, V7]
17233563test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3564test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3565test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17243566test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3567test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3568test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17253569test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3570test { try toAsciiFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3571test { try toAsciiFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17263572test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3573test { try toAsciiFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3574test { try toAsciiFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17273575test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\x93\xe0\xb1\x8d"); } // [B5, B6]
3576test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\x93\xe0\xb1\x8d", false); } // [B5, B6]
3577test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\x93\xe0\xb1\x8d", true); } // [B5, B6]
17283578test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\x93\xe0\xb1\x8d"); } // [B5, B6]
3579test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\x93\xe0\xb1\x8d", false); } // [B5, B6]
3580test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\x93\xe0\xb1\x8d", true); } // [B5, B6]
17293581test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3582test { try toAsciiFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3583test { try toAsciiFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17303584test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3585test { try toAsciiFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3586test { try toAsciiFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17313587test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3588test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3589test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17323590test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3591test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3592test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17333593test { try toUnicodeFail("xn--9kj.xn--ss-9nh3648ahh20b"); } // [B5, B6]
3594test { try toAsciiFail("xn--9kj.xn--ss-9nh3648ahh20b", false); } // [B5, B6]
3595test { try toAsciiFail("xn--9kj.xn--ss-9nh3648ahh20b", true); } // [B5, B6]
17343596test { try toUnicodeFail("xn--9kj.xn--zca669cmr3a0f28a"); } // [B5, B6]
3597test { try toAsciiFail("xn--9kj.xn--zca669cmr3a0f28a", false); } // [B5, B6]
3598test { try toAsciiFail("xn--9kj.xn--zca669cmr3a0f28a", true); } // [B5, B6]
17353599test { try toUnicodeFail("xn--qnd.xn--ss-9nh3648ahh20b"); } // [B5, B6, V7]
3600test { try toAsciiFail("xn--qnd.xn--ss-9nh3648ahh20b", false); } // [B5, B6, V7]
3601test { try toAsciiFail("xn--qnd.xn--ss-9nh3648ahh20b", true); } // [B5, B6, V7]
17363602test { try toUnicodeFail("xn--qnd.xn--zca669cmr3a0f28a"); } // [B5, B6, V7]
3603test { try toAsciiFail("xn--qnd.xn--zca669cmr3a0f28a", false); } // [B5, B6, V7]
3604test { try toAsciiFail("xn--qnd.xn--zca669cmr3a0f28a", true); } // [B5, B6, V7]
17373605test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3606test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3607test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17383608test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
3609test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d", false); } // [B5, B6]
3610test { try toAsciiFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d", true); } // [B5, B6]
17393611test { try toUnicodeFail("\xf0\x91\x81\xbf\xe0\xb5\x8d\xef\xbc\x8e\xef\xbc\x97-\xdf\x92"); } // [B1, V6]
3612test { try toAsciiFail("\xf0\x91\x81\xbf\xe0\xb5\x8d\xef\xbc\x8e\xef\xbc\x97-\xdf\x92", false); } // [B1, V6]
3613test { try toAsciiFail("\xf0\x91\x81\xbf\xe0\xb5\x8d\xef\xbc\x8e\xef\xbc\x97-\xdf\x92", true); } // [B1, V6]
17403614test { try toUnicodeFail("\xf0\x91\x81\xbf\xe0\xb5\x8d.7-\xdf\x92"); } // [B1, V6]
3615test { try toAsciiFail("\xf0\x91\x81\xbf\xe0\xb5\x8d.7-\xdf\x92", false); } // [B1, V6]
3616test { try toAsciiFail("\xf0\x91\x81\xbf\xe0\xb5\x8d.7-\xdf\x92", true); } // [B1, V6]
17413617test { try toUnicodeFail("xn--wxc1283k.xn--7--yue"); } // [B1, V6]
3618test { try toAsciiFail("xn--wxc1283k.xn--7--yue", false); } // [B1, V6]
3619test { try toAsciiFail("xn--wxc1283k.xn--7--yue", true); } // [B1, V6]
17423620test { try toUnicodeFail("\xe2\x89\xaf\xf0\x91\x9c\xab\xf3\xa0\xad\x87.\xe1\x9c\xb4\xf1\x92\x9e\xa4\xf0\x91\x8d\xac\xe1\xa2\xa7"); } // [V6, V7]
3621test { try toAsciiFail("\xe2\x89\xaf\xf0\x91\x9c\xab\xf3\xa0\xad\x87.\xe1\x9c\xb4\xf1\x92\x9e\xa4\xf0\x91\x8d\xac\xe1\xa2\xa7", false); } // [V6, V7]
3622test { try toAsciiFail("\xe2\x89\xaf\xf0\x91\x9c\xab\xf3\xa0\xad\x87.\xe1\x9c\xb4\xf1\x92\x9e\xa4\xf0\x91\x8d\xac\xe1\xa2\xa7", true); } // [V6, V7]
17433623test { try toUnicodeFail(">\xcc\xb8\xf0\x91\x9c\xab\xf3\xa0\xad\x87.\xe1\x9c\xb4\xf1\x92\x9e\xa4\xf0\x91\x8d\xac\xe1\xa2\xa7"); } // [V6, V7]
3624test { try toAsciiFail(">\xcc\xb8\xf0\x91\x9c\xab\xf3\xa0\xad\x87.\xe1\x9c\xb4\xf1\x92\x9e\xa4\xf0\x91\x8d\xac\xe1\xa2\xa7", false); } // [V6, V7]
3625test { try toAsciiFail(">\xcc\xb8\xf0\x91\x9c\xab\xf3\xa0\xad\x87.\xe1\x9c\xb4\xf1\x92\x9e\xa4\xf0\x91\x8d\xac\xe1\xa2\xa7", true); } // [V6, V7]
17443626test { try toUnicodeFail("xn--hdhx157g68o0g.xn--c0e65eu616c34o7a"); } // [V6, V7]
3627test { try toAsciiFail("xn--hdhx157g68o0g.xn--c0e65eu616c34o7a", false); } // [V6, V7]
3628test { try toAsciiFail("xn--hdhx157g68o0g.xn--c0e65eu616c34o7a", true); } // [V6, V7]
17453629test { try toUnicodeFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe1\x82\xb7\xec\x8f\x94\xe3\x80\x82\xde\x81"); } // [B1, V6, V7]
3630test { try toAsciiFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe1\x82\xb7\xec\x8f\x94\xe3\x80\x82\xde\x81", false); } // [B1, V6, V7]
3631test { try toAsciiFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe1\x82\xb7\xec\x8f\x94\xe3\x80\x82\xde\x81", true); } // [B1, V6, V7]
17463632test { try toUnicodeFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe1\x82\xb7\xe1\x84\x8a\xe1\x85\xa8\xe1\x86\xbf\xe3\x80\x82\xde\x81"); } // [B1, V6, V7]
3633test { try toAsciiFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe1\x82\xb7\xe1\x84\x8a\xe1\x85\xa8\xe1\x86\xbf\xe3\x80\x82\xde\x81", false); } // [B1, V6, V7]
3634test { try toAsciiFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe1\x82\xb7\xe1\x84\x8a\xe1\x85\xa8\xe1\x86\xbf\xe3\x80\x82\xde\x81", true); } // [B1, V6, V7]
17473635test { try toUnicodeFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe2\xb4\x97\xe1\x84\x8a\xe1\x85\xa8\xe1\x86\xbf\xe3\x80\x82\xde\x81"); } // [B1, V6, V7]
3636test { try toAsciiFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe2\xb4\x97\xe1\x84\x8a\xe1\x85\xa8\xe1\x86\xbf\xe3\x80\x82\xde\x81", false); } // [B1, V6, V7]
3637test { try toAsciiFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe2\xb4\x97\xe1\x84\x8a\xe1\x85\xa8\xe1\x86\xbf\xe3\x80\x82\xde\x81", true); } // [B1, V6, V7]
17483638test { try toUnicodeFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe2\xb4\x97\xec\x8f\x94\xe3\x80\x82\xde\x81"); } // [B1, V6, V7]
3639test { try toAsciiFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe2\xb4\x97\xec\x8f\x94\xe3\x80\x82\xde\x81", false); } // [B1, V6, V7]
3640test { try toAsciiFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe2\xb4\x97\xec\x8f\x94\xe3\x80\x82\xde\x81", true); } // [B1, V6, V7]
17493641test { try toUnicodeFail("xn--zegy26dw47iy6w2f.xn--iqb"); } // [B1, V6, V7]
3642test { try toAsciiFail("xn--zegy26dw47iy6w2f.xn--iqb", false); } // [B1, V6, V7]
3643test { try toAsciiFail("xn--zegy26dw47iy6w2f.xn--iqb", true); } // [B1, V6, V7]
17503644test { try toUnicodeFail("xn--vnd148d733ky6n9e.xn--iqb"); } // [B1, V6, V7]
3645test { try toAsciiFail("xn--vnd148d733ky6n9e.xn--iqb", false); } // [B1, V6, V7]
3646test { try toAsciiFail("xn--vnd148d733ky6n9e.xn--iqb", true); } // [B1, V6, V7]
17513647test { try toUnicodePass("\xc3\x9f\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "\xc3\x9f.\xf0\x90\x8b\xb3\xe2\xb4\x8c\xe0\xbe\xb8"); }
17523648test { try toAsciiPass("\xc3\x9f\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "xn--zca.xn--lgd921mvv0m", false); }
17533649test { try toAsciiPass("\xc3\x9f\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", true); }
......@@ -1797,244 +3693,722 @@ test { try toUnicodePass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8
17973693test { try toAsciiPass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", false); }
17983694test { try toAsciiPass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", true); }
17993695test { try toUnicodeFail("ss.xn--lgd10cu829c"); } // [V7]
3696test { try toAsciiFail("ss.xn--lgd10cu829c", false); } // [V7]
3697test { try toAsciiFail("ss.xn--lgd10cu829c", true); } // [V7]
18003698test { try toUnicodeFail("xn--zca.xn--lgd10cu829c"); } // [V7]
3699test { try toAsciiFail("xn--zca.xn--lgd10cu829c", false); } // [V7]
3700test { try toAsciiFail("xn--zca.xn--lgd10cu829c", true); } // [V7]
18013701test { try toUnicodeFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe2\xbe\x9d\xe0\xa7\x8d"); } // [B1, C1, V3, V7]
3702test { try toAsciiFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe2\xbe\x9d\xe0\xa7\x8d", false); } // [B1, C1, V3, V7]
3703test { try toAsciiFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe2\xbe\x9d\xe0\xa7\x8d", true); } // [B1, V3, V7]
18023704test { try toUnicodeFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe8\xba\xab\xe0\xa7\x8d"); } // [B1, C1, V3, V7]
3705test { try toAsciiFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe8\xba\xab\xe0\xa7\x8d", false); } // [B1, C1, V3, V7]
3706test { try toAsciiFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe8\xba\xab\xe0\xa7\x8d", true); } // [B1, V3, V7]
18033707test { try toUnicodeFail("xn----stc7013r.xn--b7b1419d"); } // [B1, V3, V7]
3708test { try toAsciiFail("xn----stc7013r.xn--b7b1419d", false); } // [B1, V3, V7]
3709test { try toAsciiFail("xn----stc7013r.xn--b7b1419d", true); } // [B1, V3, V7]
18043710test { try toUnicodeFail("xn----stc7013r.xn--b7b305imj2f"); } // [B1, C1, V3, V7]
3711test { try toAsciiFail("xn----stc7013r.xn--b7b305imj2f", false); } // [B1, C1, V3, V7]
3712test { try toAsciiFail("xn----stc7013r.xn--b7b305imj2f", true); } // [B1, C1, V3, V7]
18053713test { try toUnicodeFail("\xf0\x9f\x98\xae\xdd\xa4\xf0\x9e\x80\x96\xf0\x91\x88\xb5.\xf0\x9f\x92\x85\xe2\x80\x8d"); } // [B1, C2]
3714test { try toAsciiFail("\xf0\x9f\x98\xae\xdd\xa4\xf0\x9e\x80\x96\xf0\x91\x88\xb5.\xf0\x9f\x92\x85\xe2\x80\x8d", false); } // [B1, C2]
3715test { try toAsciiFail("\xf0\x9f\x98\xae\xdd\xa4\xf0\x9e\x80\x96\xf0\x91\x88\xb5.\xf0\x9f\x92\x85\xe2\x80\x8d", true); } // [B1]
18063716test { try toUnicodeFail("\xf0\x9f\x98\xae\xdd\xa4\xf0\x91\x88\xb5\xf0\x9e\x80\x96.\xf0\x9f\x92\x85\xe2\x80\x8d"); } // [B1, C2]
3717test { try toAsciiFail("\xf0\x9f\x98\xae\xdd\xa4\xf0\x91\x88\xb5\xf0\x9e\x80\x96.\xf0\x9f\x92\x85\xe2\x80\x8d", false); } // [B1, C2]
3718test { try toAsciiFail("\xf0\x9f\x98\xae\xdd\xa4\xf0\x91\x88\xb5\xf0\x9e\x80\x96.\xf0\x9f\x92\x85\xe2\x80\x8d", true); } // [B1]
18073719test { try toUnicodeFail("xn--opb4277kuc7elqsa.xn--kr8h"); } // [B1]
3720test { try toAsciiFail("xn--opb4277kuc7elqsa.xn--kr8h", false); } // [B1]
3721test { try toAsciiFail("xn--opb4277kuc7elqsa.xn--kr8h", true); } // [B1]
18083722test { try toUnicodeFail("xn--opb4277kuc7elqsa.xn--1ug5265p"); } // [B1, C2]
3723test { try toAsciiFail("xn--opb4277kuc7elqsa.xn--1ug5265p", false); } // [B1, C2]
3724test { try toAsciiFail("xn--opb4277kuc7elqsa.xn--1ug5265p", true); } // [B1, C2]
18093725test { try toUnicodeFail("\xe0\xa3\xb2\xe2\x80\x8d\xea\x99\xb3\xdc\x92.\xe1\xa2\x8f\xe2\x80\x8c\xf3\xa0\x8d\x84"); } // [B1, B6, C1, C2, V6, V7]
3726test { try toAsciiFail("\xe0\xa3\xb2\xe2\x80\x8d\xea\x99\xb3\xdc\x92.\xe1\xa2\x8f\xe2\x80\x8c\xf3\xa0\x8d\x84", false); } // [B1, B6, C1, C2, V6, V7]
3727test { try toAsciiFail("\xe0\xa3\xb2\xe2\x80\x8d\xea\x99\xb3\xdc\x92.\xe1\xa2\x8f\xe2\x80\x8c\xf3\xa0\x8d\x84", true); } // [B1, B6, V6, V7]
18103728test { try toUnicodeFail("xn--cnb37gdy00a.xn--89e02253p"); } // [B1, B6, V6, V7]
3729test { try toAsciiFail("xn--cnb37gdy00a.xn--89e02253p", false); } // [B1, B6, V6, V7]
3730test { try toAsciiFail("xn--cnb37gdy00a.xn--89e02253p", true); } // [B1, B6, V6, V7]
18113731test { try toUnicodeFail("xn--cnb37g904be26j.xn--89e849ax9363a"); } // [B1, B6, C1, C2, V6, V7]
3732test { try toAsciiFail("xn--cnb37g904be26j.xn--89e849ax9363a", false); } // [B1, B6, C1, C2, V6, V7]
3733test { try toAsciiFail("xn--cnb37g904be26j.xn--89e849ax9363a", true); } // [B1, B6, C1, C2, V6, V7]
18123734test { try toUnicodeFail("\xe1\x82\xb1\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7]
3735test { try toAsciiFail("\xe1\x82\xb1\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2", false); } // [B2, B3, V7]
3736test { try toAsciiFail("\xe1\x82\xb1\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2", true); } // [B2, B3, V7]
18133737test { try toUnicodeFail("\xe1\x82\xb1.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7]
3738test { try toAsciiFail("\xe1\x82\xb1.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2", false); } // [B2, B3, V7]
3739test { try toAsciiFail("\xe1\x82\xb1.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2", true); } // [B2, B3, V7]
18143740test { try toUnicodeFail("\xe2\xb4\x91.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7]
3741test { try toAsciiFail("\xe2\xb4\x91.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2", false); } // [B2, B3, V7]
3742test { try toAsciiFail("\xe2\xb4\x91.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2", true); } // [B2, B3, V7]
18153743test { try toUnicodeFail("xn--8kj.xn--ykb840gd555a"); } // [B2, B3, V7]
3744test { try toAsciiFail("xn--8kj.xn--ykb840gd555a", false); } // [B2, B3, V7]
3745test { try toAsciiFail("xn--8kj.xn--ykb840gd555a", true); } // [B2, B3, V7]
18163746test { try toUnicodeFail("\xe2\xb4\x91\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7]
3747test { try toAsciiFail("\xe2\xb4\x91\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2", false); } // [B2, B3, V7]
3748test { try toAsciiFail("\xe2\xb4\x91\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2", true); } // [B2, B3, V7]
18173749test { try toUnicodeFail("xn--pnd.xn--ykb840gd555a"); } // [B2, B3, V7]
3750test { try toAsciiFail("xn--pnd.xn--ykb840gd555a", false); } // [B2, B3, V7]
3751test { try toAsciiFail("xn--pnd.xn--ykb840gd555a", true); } // [B2, B3, V7]
18183752test { try toUnicodeFail("\xe1\xa9\x9a\xf0\x9b\xa6\x9d\xe0\xb1\x8d\xe3\x80\x82\xf0\x9a\x9d\xac\xf0\x9d\x9f\xb5"); } // [V6, V7]
3753test { try toAsciiFail("\xe1\xa9\x9a\xf0\x9b\xa6\x9d\xe0\xb1\x8d\xe3\x80\x82\xf0\x9a\x9d\xac\xf0\x9d\x9f\xb5", false); } // [V6, V7]
3754test { try toAsciiFail("\xe1\xa9\x9a\xf0\x9b\xa6\x9d\xe0\xb1\x8d\xe3\x80\x82\xf0\x9a\x9d\xac\xf0\x9d\x9f\xb5", true); } // [V6, V7]
18193755test { try toUnicodeFail("\xe1\xa9\x9a\xf0\x9b\xa6\x9d\xe0\xb1\x8d\xe3\x80\x82\xf0\x9a\x9d\xac9"); } // [V6, V7]
3756test { try toAsciiFail("\xe1\xa9\x9a\xf0\x9b\xa6\x9d\xe0\xb1\x8d\xe3\x80\x82\xf0\x9a\x9d\xac9", false); } // [V6, V7]
3757test { try toAsciiFail("\xe1\xa9\x9a\xf0\x9b\xa6\x9d\xe0\xb1\x8d\xe3\x80\x82\xf0\x9a\x9d\xac9", true); } // [V6, V7]
18203758test { try toUnicodeFail("xn--lqc703ebm93a.xn--9-000p"); } // [V6, V7]
3759test { try toAsciiFail("xn--lqc703ebm93a.xn--9-000p", false); } // [V6, V7]
3760test { try toAsciiFail("xn--lqc703ebm93a.xn--9-000p", true); } // [V6, V7]
18213761test { try toUnicodeFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x86\xf0\x9d\x9f\x97\xef\xbd\xa1\xe1\x83\x83\xea\x92\x98\xef\xb3\x90\xf1\x90\x98\x96"); } // [B1, B5, C1, V7]
3762test { try toAsciiFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x86\xf0\x9d\x9f\x97\xef\xbd\xa1\xe1\x83\x83\xea\x92\x98\xef\xb3\x90\xf1\x90\x98\x96", false); } // [B1, B5, C1, V7]
3763test { try toAsciiFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x86\xf0\x9d\x9f\x97\xef\xbd\xa1\xe1\x83\x83\xea\x92\x98\xef\xb3\x90\xf1\x90\x98\x96", true); } // [B2, B5, V7]
18223764test { try toUnicodeFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x869\xe3\x80\x82\xe1\x83\x83\xea\x92\x98\xd9\x85\xd8\xae\xf1\x90\x98\x96"); } // [B1, B5, C1, V7]
3765test { try toAsciiFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x869\xe3\x80\x82\xe1\x83\x83\xea\x92\x98\xd9\x85\xd8\xae\xf1\x90\x98\x96", false); } // [B1, B5, C1, V7]
3766test { try toAsciiFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x869\xe3\x80\x82\xe1\x83\x83\xea\x92\x98\xd9\x85\xd8\xae\xf1\x90\x98\x96", true); } // [B2, B5, V7]
18233767test { try toUnicodeFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x869\xe3\x80\x82\xe2\xb4\xa3\xea\x92\x98\xd9\x85\xd8\xae\xf1\x90\x98\x96"); } // [B1, B5, C1, V7]
3768test { try toAsciiFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x869\xe3\x80\x82\xe2\xb4\xa3\xea\x92\x98\xd9\x85\xd8\xae\xf1\x90\x98\x96", false); } // [B1, B5, C1, V7]
3769test { try toAsciiFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x869\xe3\x80\x82\xe2\xb4\xa3\xea\x92\x98\xd9\x85\xd8\xae\xf1\x90\x98\x96", true); } // [B2, B5, V7]
18243770test { try toUnicodeFail("xn--9-vtc42319e.xn--tgb9bz87p833hw316c"); } // [B2, B5, V7]
3771test { try toAsciiFail("xn--9-vtc42319e.xn--tgb9bz87p833hw316c", false); } // [B2, B5, V7]
3772test { try toAsciiFail("xn--9-vtc42319e.xn--tgb9bz87p833hw316c", true); } // [B2, B5, V7]
18253773test { try toUnicodeFail("xn--9-vtc736qts91g.xn--tgb9bz87p833hw316c"); } // [B1, B5, C1, V7]
3774test { try toAsciiFail("xn--9-vtc736qts91g.xn--tgb9bz87p833hw316c", false); } // [B1, B5, C1, V7]
3775test { try toAsciiFail("xn--9-vtc736qts91g.xn--tgb9bz87p833hw316c", true); } // [B1, B5, C1, V7]
18263776test { try toUnicodeFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x86\xf0\x9d\x9f\x97\xef\xbd\xa1\xe2\xb4\xa3\xea\x92\x98\xef\xb3\x90\xf1\x90\x98\x96"); } // [B1, B5, C1, V7]
3777test { try toAsciiFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x86\xf0\x9d\x9f\x97\xef\xbd\xa1\xe2\xb4\xa3\xea\x92\x98\xef\xb3\x90\xf1\x90\x98\x96", false); } // [B1, B5, C1, V7]
3778test { try toAsciiFail("\xe2\x80\x8c\xda\xa0\xf0\xbf\xba\x86\xf0\x9d\x9f\x97\xef\xbd\xa1\xe2\xb4\xa3\xea\x92\x98\xef\xb3\x90\xf1\x90\x98\x96", true); } // [B2, B5, V7]
18273779test { try toUnicodeFail("xn--9-vtc42319e.xn--tgb9bz61cfn8mw3t2c"); } // [B2, B5, V7]
3780test { try toAsciiFail("xn--9-vtc42319e.xn--tgb9bz61cfn8mw3t2c", false); } // [B2, B5, V7]
3781test { try toAsciiFail("xn--9-vtc42319e.xn--tgb9bz61cfn8mw3t2c", true); } // [B2, B5, V7]
18283782test { try toUnicodeFail("xn--9-vtc736qts91g.xn--tgb9bz61cfn8mw3t2c"); } // [B1, B5, C1, V7]
3783test { try toAsciiFail("xn--9-vtc736qts91g.xn--tgb9bz61cfn8mw3t2c", false); } // [B1, B5, C1, V7]
3784test { try toAsciiFail("xn--9-vtc736qts91g.xn--tgb9bz61cfn8mw3t2c", true); } // [B1, B5, C1, V7]
18293785test { try toUnicodeFail("\xe1\xa1\x96\xef\xbd\xa1\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-"); } // [V3, V6, V7]
3786test { try toAsciiFail("\xe1\xa1\x96\xef\xbd\xa1\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-", false); } // [V3, V6, V7]
3787test { try toAsciiFail("\xe1\xa1\x96\xef\xbd\xa1\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-", true); } // [V3, V6, V7]
18303788test { try toUnicodeFail("\xe1\xa1\x96\xe3\x80\x82\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-"); } // [V3, V6, V7]
3789test { try toAsciiFail("\xe1\xa1\x96\xe3\x80\x82\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-", false); } // [V3, V6, V7]
3790test { try toAsciiFail("\xe1\xa1\x96\xe3\x80\x82\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-", true); } // [V3, V6, V7]
18313791test { try toUnicodeFail("xn--m8e.xn----mdb555dkk71m"); } // [V3, V6, V7]
3792test { try toAsciiFail("xn--m8e.xn----mdb555dkk71m", false); } // [V3, V6, V7]
3793test { try toAsciiFail("xn--m8e.xn----mdb555dkk71m", true); } // [V3, V6, V7]
18323794test { try toUnicodeFail("\xf0\x9e\xa0\xa0\xe6\xb5\x98\xe3\x80\x82\xe7\xb5\xa7\xf0\x9e\x80\x80"); } // [B2, B3]
3795test { try toAsciiFail("\xf0\x9e\xa0\xa0\xe6\xb5\x98\xe3\x80\x82\xe7\xb5\xa7\xf0\x9e\x80\x80", false); } // [B2, B3]
3796test { try toAsciiFail("\xf0\x9e\xa0\xa0\xe6\xb5\x98\xe3\x80\x82\xe7\xb5\xa7\xf0\x9e\x80\x80", true); } // [B2, B3]
18333797test { try toUnicodeFail("xn--e0wp491f.xn--ud0a3573e"); } // [B2, B3]
3798test { try toAsciiFail("xn--e0wp491f.xn--ud0a3573e", false); } // [B2, B3]
3799test { try toAsciiFail("xn--e0wp491f.xn--ud0a3573e", true); } // [B2, B3]
18343800test { try toUnicodeFail("\xd6\x96\xe1\x82\xab\xef\xbc\x8e\xf0\x9d\x9f\xb3\xe2\x89\xaf\xef\xb8\x92\xef\xb8\x8a"); } // [V6, V7]
3801test { try toAsciiFail("\xd6\x96\xe1\x82\xab\xef\xbc\x8e\xf0\x9d\x9f\xb3\xe2\x89\xaf\xef\xb8\x92\xef\xb8\x8a", false); } // [V6, V7]
3802test { try toAsciiFail("\xd6\x96\xe1\x82\xab\xef\xbc\x8e\xf0\x9d\x9f\xb3\xe2\x89\xaf\xef\xb8\x92\xef\xb8\x8a", true); } // [V6, V7]
18353803test { try toUnicodeFail("\xd6\x96\xe1\x82\xab\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a"); } // [V6, V7]
3804test { try toAsciiFail("\xd6\x96\xe1\x82\xab\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a", false); } // [V6, V7]
3805test { try toAsciiFail("\xd6\x96\xe1\x82\xab\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a", true); } // [V6, V7]
18363806test { try toUnicodeFail("\xd6\x96\xe1\x82\xab.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a"); } // [V6]
3807test { try toAsciiFail("\xd6\x96\xe1\x82\xab.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a", false); } // [V6, A4_2]
3808test { try toAsciiFail("\xd6\x96\xe1\x82\xab.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a", true); } // [V6, A4_2]
18373809test { try toUnicodeFail("\xd6\x96\xe1\x82\xab.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a"); } // [V6]
3810test { try toAsciiFail("\xd6\x96\xe1\x82\xab.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a", false); } // [V6, A4_2]
3811test { try toAsciiFail("\xd6\x96\xe1\x82\xab.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a", true); } // [V6, A4_2]
18383812test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a"); } // [V6]
3813test { try toAsciiFail("\xd6\x96\xe2\xb4\x8b.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a", false); } // [V6, A4_2]
3814test { try toAsciiFail("\xd6\x96\xe2\xb4\x8b.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a", true); } // [V6, A4_2]
18393815test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a"); } // [V6]
3816test { try toAsciiFail("\xd6\x96\xe2\xb4\x8b.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a", false); } // [V6, A4_2]
3817test { try toAsciiFail("\xd6\x96\xe2\xb4\x8b.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a", true); } // [V6, A4_2]
18403818test { try toUnicodeFail("xn--hcb613r.xn--7-pgo."); } // [V6]
3819test { try toAsciiFail("xn--hcb613r.xn--7-pgo.", false); } // [V6, A4_2]
3820test { try toAsciiFail("xn--hcb613r.xn--7-pgo.", true); } // [V6, A4_2]
18413821test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a"); } // [V6, V7]
3822test { try toAsciiFail("\xd6\x96\xe2\xb4\x8b\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a", false); } // [V6, V7]
3823test { try toAsciiFail("\xd6\x96\xe2\xb4\x8b\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a", true); } // [V6, V7]
18423824test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b\xef\xbc\x8e\xf0\x9d\x9f\xb3\xe2\x89\xaf\xef\xb8\x92\xef\xb8\x8a"); } // [V6, V7]
3825test { try toAsciiFail("\xd6\x96\xe2\xb4\x8b\xef\xbc\x8e\xf0\x9d\x9f\xb3\xe2\x89\xaf\xef\xb8\x92\xef\xb8\x8a", false); } // [V6, V7]
3826test { try toAsciiFail("\xd6\x96\xe2\xb4\x8b\xef\xbc\x8e\xf0\x9d\x9f\xb3\xe2\x89\xaf\xef\xb8\x92\xef\xb8\x8a", true); } // [V6, V7]
18433827test { try toUnicodeFail("xn--hcb613r.xn--7-pgoy530h"); } // [V6, V7]
3828test { try toAsciiFail("xn--hcb613r.xn--7-pgoy530h", false); } // [V6, V7]
3829test { try toAsciiFail("xn--hcb613r.xn--7-pgoy530h", true); } // [V6, V7]
18443830test { try toUnicodeFail("xn--hcb887c.xn--7-pgo."); } // [V6, V7]
3831test { try toAsciiFail("xn--hcb887c.xn--7-pgo.", false); } // [V6, V7, A4_2]
3832test { try toAsciiFail("xn--hcb887c.xn--7-pgo.", true); } // [V6, V7, A4_2]
18453833test { try toUnicodeFail("xn--hcb887c.xn--7-pgoy530h"); } // [V6, V7]
3834test { try toAsciiFail("xn--hcb887c.xn--7-pgoy530h", false); } // [V6, V7]
3835test { try toAsciiFail("xn--hcb887c.xn--7-pgoy530h", true); } // [V6, V7]
18463836test { try toUnicodeFail("\xe2\x80\x8dF\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xef\xb8\x92\xdd\xbe\xf0\x90\xb9\xa2"); } // [B1, C2, V7]
3837test { try toAsciiFail("\xe2\x80\x8dF\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xef\xb8\x92\xdd\xbe\xf0\x90\xb9\xa2", false); } // [B1, C2, V7]
3838test { try toAsciiFail("\xe2\x80\x8dF\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xef\xb8\x92\xdd\xbe\xf0\x90\xb9\xa2", true); } // [B1, V7]
18473839test { try toUnicodeFail("\xe2\x80\x8dF\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xe3\x80\x82\xdd\xbe\xf0\x90\xb9\xa2"); } // [B1, C2, V7]
3840test { try toAsciiFail("\xe2\x80\x8dF\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xe3\x80\x82\xdd\xbe\xf0\x90\xb9\xa2", false); } // [B1, C2, V7]
3841test { try toAsciiFail("\xe2\x80\x8dF\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xe3\x80\x82\xdd\xbe\xf0\x90\xb9\xa2", true); } // [B1, V7]
18483842test { try toUnicodeFail("\xe2\x80\x8df\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xe3\x80\x82\xdd\xbe\xf0\x90\xb9\xa2"); } // [B1, C2, V7]
3843test { try toAsciiFail("\xe2\x80\x8df\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xe3\x80\x82\xdd\xbe\xf0\x90\xb9\xa2", false); } // [B1, C2, V7]
3844test { try toAsciiFail("\xe2\x80\x8df\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xe3\x80\x82\xdd\xbe\xf0\x90\xb9\xa2", true); } // [B1, V7]
18493845test { try toUnicodeFail("xn--f-kq9i.xn--7656e.xn--fqb4175k"); } // [B1, V7]
3846test { try toAsciiFail("xn--f-kq9i.xn--7656e.xn--fqb4175k", false); } // [B1, V7]
3847test { try toAsciiFail("xn--f-kq9i.xn--7656e.xn--fqb4175k", true); } // [B1, V7]
18503848test { try toUnicodeFail("xn--f-tgn9761i.xn--7656e.xn--fqb4175k"); } // [B1, C2, V7]
3849test { try toAsciiFail("xn--f-tgn9761i.xn--7656e.xn--fqb4175k", false); } // [B1, C2, V7]
3850test { try toAsciiFail("xn--f-tgn9761i.xn--7656e.xn--fqb4175k", true); } // [B1, C2, V7]
18513851test { try toUnicodeFail("\xe2\x80\x8df\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xef\xb8\x92\xdd\xbe\xf0\x90\xb9\xa2"); } // [B1, C2, V7]
3852test { try toAsciiFail("\xe2\x80\x8df\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xef\xb8\x92\xdd\xbe\xf0\x90\xb9\xa2", false); } // [B1, C2, V7]
3853test { try toAsciiFail("\xe2\x80\x8df\xf0\x91\x93\x82\xe3\x80\x82\xf3\xa0\xba\xa8\xef\xb8\x92\xdd\xbe\xf0\x90\xb9\xa2", true); } // [B1, V7]
18523854test { try toUnicodeFail("xn--f-kq9i.xn--fqb1637j8hky9452a"); } // [B1, V7]
3855test { try toAsciiFail("xn--f-kq9i.xn--fqb1637j8hky9452a", false); } // [B1, V7]
3856test { try toAsciiFail("xn--f-kq9i.xn--fqb1637j8hky9452a", true); } // [B1, V7]
18533857test { try toUnicodeFail("xn--f-tgn9761i.xn--fqb1637j8hky9452a"); } // [B1, C2, V7]
3858test { try toAsciiFail("xn--f-tgn9761i.xn--fqb1637j8hky9452a", false); } // [B1, C2, V7]
3859test { try toAsciiFail("xn--f-tgn9761i.xn--fqb1637j8hky9452a", true); } // [B1, C2, V7]
18543860test { try toUnicodeFail("\xe0\xa1\x85\xf0\x9f\x84\x87\xf0\x90\xbc\x97\xef\xb8\x92\xef\xbd\xa1\xf0\x90\xb9\xbb\xf0\x91\x9c\xab"); } // [B1, B3, V7, U1]
3861test { try toAsciiFail("\xe0\xa1\x85\xf0\x9f\x84\x87\xf0\x90\xbc\x97\xef\xb8\x92\xef\xbd\xa1\xf0\x90\xb9\xbb\xf0\x91\x9c\xab", false); } // [B1, B3, V7, U1]
3862test { try toAsciiFail("\xe0\xa1\x85\xf0\x9f\x84\x87\xf0\x90\xbc\x97\xef\xb8\x92\xef\xbd\xa1\xf0\x90\xb9\xbb\xf0\x91\x9c\xab", true); } // [B1, B3, V7, U1]
18553863test { try toUnicodeFail("\xe0\xa1\x856,\xf0\x90\xbc\x97\xe3\x80\x82\xe3\x80\x82\xf0\x90\xb9\xbb\xf0\x91\x9c\xab"); } // [B1, U1, X4_2]
3864test { try toAsciiFail("\xe0\xa1\x856,\xf0\x90\xbc\x97\xe3\x80\x82\xe3\x80\x82\xf0\x90\xb9\xbb\xf0\x91\x9c\xab", false); } // [B1, U1, A4_2]
3865test { try toAsciiFail("\xe0\xa1\x856,\xf0\x90\xbc\x97\xe3\x80\x82\xe3\x80\x82\xf0\x90\xb9\xbb\xf0\x91\x9c\xab", true); } // [B1, U1, A4_2]
18563866test { try toUnicodeFail("xn--6,-r4e4420y..xn--zo0di2m"); } // [B1, U1, X4_2]
3867test { try toAsciiFail("xn--6,-r4e4420y..xn--zo0di2m", false); } // [B1, U1, A4_2]
3868test { try toAsciiFail("xn--6,-r4e4420y..xn--zo0di2m", true); } // [B1, U1, A4_2]
18573869test { try toUnicodeFail("xn--6,-r4e6182wo1ra.xn--zo0di2m"); } // [B1, B3, V7, U1]
3870test { try toAsciiFail("xn--6,-r4e6182wo1ra.xn--zo0di2m", false); } // [B1, B3, V7, U1]
3871test { try toAsciiFail("xn--6,-r4e6182wo1ra.xn--zo0di2m", true); } // [B1, B3, V7, U1]
18583872test { try toUnicodeFail("xn--3vb4696jpxkjh7s.xn--zo0di2m"); } // [B1, B3, V7]
3873test { try toAsciiFail("xn--3vb4696jpxkjh7s.xn--zo0di2m", false); } // [B1, B3, V7]
3874test { try toAsciiFail("xn--3vb4696jpxkjh7s.xn--zo0di2m", true); } // [B1, B3, V7]
18593875test { try toUnicodeFail("\xf0\x90\xb9\x88.\xe1\xb7\x80\xf0\x91\x88\xb1\xf0\x90\xa6\xad"); } // [B1, V6, V7]
3876test { try toAsciiFail("\xf0\x90\xb9\x88.\xe1\xb7\x80\xf0\x91\x88\xb1\xf0\x90\xa6\xad", false); } // [B1, V6, V7]
3877test { try toAsciiFail("\xf0\x90\xb9\x88.\xe1\xb7\x80\xf0\x91\x88\xb1\xf0\x90\xa6\xad", true); } // [B1, V6, V7]
18603878test { try toUnicodeFail("xn--jn0d.xn--7dg0871h3lf"); } // [B1, V6, V7]
3879test { try toAsciiFail("xn--jn0d.xn--7dg0871h3lf", false); } // [B1, V6, V7]
3880test { try toAsciiFail("xn--jn0d.xn--7dg0871h3lf", true); } // [B1, V6, V7]
18613881test { try toUnicodeFail("\xe1\x82\xa2\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\x83\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93"); } // [B2, V7]
3882test { try toAsciiFail("\xe1\x82\xa2\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\x83\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93", false); } // [B2, V7]
3883test { try toAsciiFail("\xe1\x82\xa2\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\x83\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93", true); } // [B2, V7]
18623884test { try toUnicodeFail("\xe2\xb4\x82\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\xa5\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93"); } // [B2, V7]
3885test { try toAsciiFail("\xe2\xb4\x82\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\xa5\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93", false); } // [B2, V7]
3886test { try toAsciiFail("\xe2\xb4\x82\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\xa5\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93", true); } // [B2, V7]
18633887test { try toUnicodeFail("xn--tkj638f.xn--pjb9818vg4xno967d"); } // [B2, V7]
3888test { try toAsciiFail("xn--tkj638f.xn--pjb9818vg4xno967d", false); } // [B2, V7]
3889test { try toAsciiFail("xn--tkj638f.xn--pjb9818vg4xno967d", true); } // [B2, V7]
18643890test { try toUnicodeFail("xn--9md875z.xn--pjb9818vg4xno967d"); } // [B2, V7]
3891test { try toAsciiFail("xn--9md875z.xn--pjb9818vg4xno967d", false); } // [B2, V7]
3892test { try toAsciiFail("xn--9md875z.xn--pjb9818vg4xno967d", true); } // [B2, V7]
18653893test { try toUnicodeFail("\xe2\xb4\x82\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\x83\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93"); } // [B2, V7]
3894test { try toAsciiFail("\xe2\xb4\x82\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\x83\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93", false); } // [B2, V7]
3895test { try toAsciiFail("\xe2\xb4\x82\xe4\xa0\xba\xe3\x80\x82\xf0\x9e\xa4\x83\xf1\x85\x8f\x8e\xf3\x99\xae\xa6\xda\x93", true); } // [B2, V7]
18663896test { try toUnicodeFail("\xf0\x9f\x84\x87\xe4\xbc\x90\xef\xb8\x92.\xf0\x9c\x99\x9a\xea\xa3\x84"); } // [V7, U1]
3897test { try toAsciiFail("\xf0\x9f\x84\x87\xe4\xbc\x90\xef\xb8\x92.\xf0\x9c\x99\x9a\xea\xa3\x84", false); } // [V7, U1]
3898test { try toAsciiFail("\xf0\x9f\x84\x87\xe4\xbc\x90\xef\xb8\x92.\xf0\x9c\x99\x9a\xea\xa3\x84", true); } // [V7, U1]
18673899test { try toUnicodeFail("6,\xe4\xbc\x90\xe3\x80\x82.\xf0\x9c\x99\x9a\xea\xa3\x84"); } // [V7, U1, X4_2]
3900test { try toAsciiFail("6,\xe4\xbc\x90\xe3\x80\x82.\xf0\x9c\x99\x9a\xea\xa3\x84", false); } // [V7, U1, A4_2]
3901test { try toAsciiFail("6,\xe4\xbc\x90\xe3\x80\x82.\xf0\x9c\x99\x9a\xea\xa3\x84", true); } // [V7, U1, A4_2]
18683902test { try toUnicodeFail("xn--6,-7i3c..xn--0f9ao925c"); } // [V7, U1, X4_2]
3903test { try toAsciiFail("xn--6,-7i3c..xn--0f9ao925c", false); } // [V7, U1, A4_2]
3904test { try toAsciiFail("xn--6,-7i3c..xn--0f9ao925c", true); } // [V7, U1, A4_2]
18693905test { try toUnicodeFail("xn--6,-7i3cj157d.xn--0f9ao925c"); } // [V7, U1]
3906test { try toAsciiFail("xn--6,-7i3cj157d.xn--0f9ao925c", false); } // [V7, U1]
3907test { try toAsciiFail("xn--6,-7i3cj157d.xn--0f9ao925c", true); } // [V7, U1]
18703908test { try toUnicodeFail("xn--woqs083bel0g.xn--0f9ao925c"); } // [V7]
3909test { try toAsciiFail("xn--woqs083bel0g.xn--0f9ao925c", false); } // [V7]
3910test { try toAsciiFail("xn--woqs083bel0g.xn--0f9ao925c", true); } // [V7]
18713911test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xa0\xea\xaf\xad\xef\xbf\xbb\xe3\x80\x82\xe2\x80\x8d\xf0\x90\xab\x93\xe1\x82\xba\xf0\x91\x82\xb9"); } // [B1, C2, V7]
3912test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xa0\xea\xaf\xad\xef\xbf\xbb\xe3\x80\x82\xe2\x80\x8d\xf0\x90\xab\x93\xe1\x82\xba\xf0\x91\x82\xb9", false); } // [B1, C2, V7]
3913test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xa0\xea\xaf\xad\xef\xbf\xbb\xe3\x80\x82\xe2\x80\x8d\xf0\x90\xab\x93\xe1\x82\xba\xf0\x91\x82\xb9", true); } // [B1, B2, B3, V7]
18723914test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xa0\xea\xaf\xad\xef\xbf\xbb\xe3\x80\x82\xe2\x80\x8d\xf0\x90\xab\x93\xe2\xb4\x9a\xf0\x91\x82\xb9"); } // [B1, C2, V7]
3915test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xa0\xea\xaf\xad\xef\xbf\xbb\xe3\x80\x82\xe2\x80\x8d\xf0\x90\xab\x93\xe2\xb4\x9a\xf0\x91\x82\xb9", false); } // [B1, C2, V7]
3916test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xb9\xa0\xea\xaf\xad\xef\xbf\xbb\xe3\x80\x82\xe2\x80\x8d\xf0\x90\xab\x93\xe2\xb4\x9a\xf0\x91\x82\xb9", true); } // [B1, B2, B3, V7]
18733917test { try toUnicodeFail("xn--429az70n29i.xn--ilj7702eqyd"); } // [B1, B2, B3, V7]
3918test { try toAsciiFail("xn--429az70n29i.xn--ilj7702eqyd", false); } // [B1, B2, B3, V7]
3919test { try toAsciiFail("xn--429az70n29i.xn--ilj7702eqyd", true); } // [B1, B2, B3, V7]
18743920test { try toUnicodeFail("xn--1ugz126coy7bdbm.xn--1ug062chv7ov6e"); } // [B1, C2, V7]
3921test { try toAsciiFail("xn--1ugz126coy7bdbm.xn--1ug062chv7ov6e", false); } // [B1, C2, V7]
3922test { try toAsciiFail("xn--1ugz126coy7bdbm.xn--1ug062chv7ov6e", true); } // [B1, C2, V7]
18753923test { try toUnicodeFail("xn--429az70n29i.xn--ynd3619jqyd"); } // [B1, B2, B3, V7]
3924test { try toAsciiFail("xn--429az70n29i.xn--ynd3619jqyd", false); } // [B1, B2, B3, V7]
3925test { try toAsciiFail("xn--429az70n29i.xn--ynd3619jqyd", true); } // [B1, B2, B3, V7]
18763926test { try toUnicodeFail("xn--1ugz126coy7bdbm.xn--ynd959evs1pv6e"); } // [B1, C2, V7]
3927test { try toAsciiFail("xn--1ugz126coy7bdbm.xn--ynd959evs1pv6e", false); } // [B1, C2, V7]
3928test { try toAsciiFail("xn--1ugz126coy7bdbm.xn--ynd959evs1pv6e", true); } // [B1, C2, V7]
18773929test { try toUnicodeFail("\xf3\xa0\x86\xa0\xef\xbc\x8e\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88"); } // [V7, X4_2]
3930test { try toAsciiFail("\xf3\xa0\x86\xa0\xef\xbc\x8e\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88", false); } // [V7, A4_2]
3931test { try toAsciiFail("\xf3\xa0\x86\xa0\xef\xbc\x8e\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88", true); } // [V7, A4_2]
18783932test { try toUnicodeFail("\xf3\xa0\x86\xa0.\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88"); } // [V7, X4_2]
3933test { try toAsciiFail("\xf3\xa0\x86\xa0.\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88", false); } // [V7, A4_2]
3934test { try toAsciiFail("\xf3\xa0\x86\xa0.\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88", true); } // [V7, A4_2]
18793935test { try toUnicodeFail(".xn--rx21bhv12i"); } // [V7, X4_2]
3936test { try toAsciiFail(".xn--rx21bhv12i", false); } // [V7, A4_2]
3937test { try toAsciiFail(".xn--rx21bhv12i", true); } // [V7, A4_2]
18803938test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.\xe2\x89\xa0\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7]
3939test { try toAsciiFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.\xe2\x89\xa0\xf0\x9e\xb7\x99", false); } // [B1, B2, B3, C1, V7]
3940test { try toAsciiFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.\xe2\x89\xa0\xf0\x9e\xb7\x99", true); } // [B1, B2, B3, V7]
18813941test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.=\xcc\xb8\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7]
3942test { try toAsciiFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.=\xcc\xb8\xf0\x9e\xb7\x99", false); } // [B1, B2, B3, C1, V7]
3943test { try toAsciiFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.=\xcc\xb8\xf0\x9e\xb7\x99", true); } // [B1, B2, B3, V7]
18823944test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.=\xcc\xb8\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7]
3945test { try toAsciiFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.=\xcc\xb8\xf0\x9e\xb7\x99", false); } // [B1, B2, B3, C1, V7]
3946test { try toAsciiFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.=\xcc\xb8\xf0\x9e\xb7\x99", true); } // [B1, B2, B3, V7]
18833947test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.\xe2\x89\xa0\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7]
3948test { try toAsciiFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.\xe2\x89\xa0\xf0\x9e\xb7\x99", false); } // [B1, B2, B3, C1, V7]
3949test { try toAsciiFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.\xe2\x89\xa0\xf0\x9e\xb7\x99", true); } // [B1, B2, B3, V7]
18843950test { try toUnicodeFail("xn--xkjz802e.xn--1ch2802p"); } // [B1, B2, B3, V7]
3951test { try toAsciiFail("xn--xkjz802e.xn--1ch2802p", false); } // [B1, B2, B3, V7]
3952test { try toAsciiFail("xn--xkjz802e.xn--1ch2802p", true); } // [B1, B2, B3, V7]
18853953test { try toUnicodeFail("xn--0ug132csv7o.xn--1ch2802p"); } // [B1, B2, B3, C1, V7]
3954test { try toAsciiFail("xn--0ug132csv7o.xn--1ch2802p", false); } // [B1, B2, B3, C1, V7]
3955test { try toAsciiFail("xn--0ug132csv7o.xn--1ch2802p", true); } // [B1, B2, B3, C1, V7]
18863956test { try toUnicodeFail("xn--end1719j.xn--1ch2802p"); } // [B1, B2, B3, V7]
3957test { try toAsciiFail("xn--end1719j.xn--1ch2802p", false); } // [B1, B2, B3, V7]
3958test { try toAsciiFail("xn--end1719j.xn--1ch2802p", true); } // [B1, B2, B3, V7]
18873959test { try toUnicodeFail("xn--end799ekr1p.xn--1ch2802p"); } // [B1, B2, B3, C1, V7]
3960test { try toAsciiFail("xn--end799ekr1p.xn--1ch2802p", false); } // [B1, B2, B3, C1, V7]
3961test { try toAsciiFail("xn--end799ekr1p.xn--1ch2802p", true); } // [B1, B2, B3, C1, V7]
18883962test { try toUnicodeFail("\xf3\xa0\x81\xb2\xf0\x99\xa9\xa2\xf0\x9d\x9f\xa5\xea\x98\x8c\xef\xbc\x8e\xe0\xa1\x81"); } // [B1, V7]
3963test { try toAsciiFail("\xf3\xa0\x81\xb2\xf0\x99\xa9\xa2\xf0\x9d\x9f\xa5\xea\x98\x8c\xef\xbc\x8e\xe0\xa1\x81", false); } // [B1, V7]
3964test { try toAsciiFail("\xf3\xa0\x81\xb2\xf0\x99\xa9\xa2\xf0\x9d\x9f\xa5\xea\x98\x8c\xef\xbc\x8e\xe0\xa1\x81", true); } // [B1, V7]
18893965test { try toUnicodeFail("\xf3\xa0\x81\xb2\xf0\x99\xa9\xa23\xea\x98\x8c.\xe0\xa1\x81"); } // [B1, V7]
3966test { try toAsciiFail("\xf3\xa0\x81\xb2\xf0\x99\xa9\xa23\xea\x98\x8c.\xe0\xa1\x81", false); } // [B1, V7]
3967test { try toAsciiFail("\xf3\xa0\x81\xb2\xf0\x99\xa9\xa23\xea\x98\x8c.\xe0\xa1\x81", true); } // [B1, V7]
18903968test { try toUnicodeFail("xn--3-0g3es485d8i15h.xn--zvb"); } // [B1, V7]
3969test { try toAsciiFail("xn--3-0g3es485d8i15h.xn--zvb", false); } // [B1, V7]
3970test { try toAsciiFail("xn--3-0g3es485d8i15h.xn--zvb", true); } // [B1, V7]
18913971test { try toUnicodeFail("-.\xe1\xa2\x86\xf3\xa1\xb2\xa3-"); } // [V3, V6, V7]
3972test { try toAsciiFail("-.\xe1\xa2\x86\xf3\xa1\xb2\xa3-", false); } // [V3, V6, V7]
3973test { try toAsciiFail("-.\xe1\xa2\x86\xf3\xa1\xb2\xa3-", true); } // [V3, V6, V7]
18923974test { try toUnicodeFail("-.xn----pbkx6497q"); } // [V3, V6, V7]
3975test { try toAsciiFail("-.xn----pbkx6497q", false); } // [V3, V6, V7]
3976test { try toAsciiFail("-.xn----pbkx6497q", true); } // [V3, V6, V7]
18933977test { try toUnicodeFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x82"); } // [B1, B6, C1, V7]
3978test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x82", false); } // [B1, B6, C1, V7]
3979test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x82", true); } // [B2, B3, V7]
18943980test { try toUnicodeFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x82"); } // [B1, B6, C1, V7]
3981test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x82", false); } // [B1, B6, C1, V7]
3982test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x82", true); } // [B2, B3, V7]
18953983test { try toUnicodeFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xce\xa3"); } // [B1, B6, C1, V7]
3984test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xce\xa3", false); } // [B1, B6, C1, V7]
3985test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xce\xa3", true); } // [B2, B3, V7]
18963986test { try toUnicodeFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x83"); } // [B1, B6, C1, V7]
3987test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x83", false); } // [B1, B6, C1, V7]
3988test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x83", true); } // [B2, B3, V7]
18973989test { try toUnicodeFail("xn--qp42f.xn--4xa3011w"); } // [B2, B3, V7]
3990test { try toAsciiFail("xn--qp42f.xn--4xa3011w", false); } // [B2, B3, V7]
3991test { try toAsciiFail("xn--qp42f.xn--4xa3011w", true); } // [B2, B3, V7]
18983992test { try toUnicodeFail("xn--0ug76062m.xn--4xa595lhn92a"); } // [B1, B6, C1, V7]
3993test { try toAsciiFail("xn--0ug76062m.xn--4xa595lhn92a", false); } // [B1, B6, C1, V7]
3994test { try toAsciiFail("xn--0ug76062m.xn--4xa595lhn92a", true); } // [B1, B6, C1, V7]
18993995test { try toUnicodeFail("xn--0ug76062m.xn--3xa795lhn92a"); } // [B1, B6, C1, V7]
3996test { try toAsciiFail("xn--0ug76062m.xn--3xa795lhn92a", false); } // [B1, B6, C1, V7]
3997test { try toAsciiFail("xn--0ug76062m.xn--3xa795lhn92a", true); } // [B1, B6, C1, V7]
19003998test { try toUnicodeFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xce\xa3"); } // [B1, B6, C1, V7]
3999test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xce\xa3", false); } // [B1, B6, C1, V7]
4000test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xce\xa3", true); } // [B2, B3, V7]
19014001test { try toUnicodeFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x83"); } // [B1, B6, C1, V7]
4002test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x83", false); } // [B1, B6, C1, V7]
4003test { try toAsciiFail("\xf3\xb2\x9a\x97\xe2\x80\x8c\xef\xbd\xa1\xe2\x80\x8c\xf0\x9e\xb0\x86\xcf\x83", true); } // [B2, B3, V7]
19024004test { try toUnicodeFail("\xe5\xa0\x95\xf0\x91\x93\x82\xe1\xac\x82\xe3\x80\x82\xf0\x90\xae\x87\xf0\x9e\xa4\xbd\xe2\x80\x8c-"); } // [B3, C1, V3]
4005test { try toAsciiFail("\xe5\xa0\x95\xf0\x91\x93\x82\xe1\xac\x82\xe3\x80\x82\xf0\x90\xae\x87\xf0\x9e\xa4\xbd\xe2\x80\x8c-", false); } // [B3, C1, V3]
4006test { try toAsciiFail("\xe5\xa0\x95\xf0\x91\x93\x82\xe1\xac\x82\xe3\x80\x82\xf0\x90\xae\x87\xf0\x9e\xa4\xbd\xe2\x80\x8c-", true); } // [B3, V3]
19034007test { try toUnicodeFail("\xe5\xa0\x95\xf0\x91\x93\x82\xe1\xac\x82\xe3\x80\x82\xf0\x90\xae\x87\xf0\x9e\xa4\x9b\xe2\x80\x8c-"); } // [B3, C1, V3]
4008test { try toAsciiFail("\xe5\xa0\x95\xf0\x91\x93\x82\xe1\xac\x82\xe3\x80\x82\xf0\x90\xae\x87\xf0\x9e\xa4\x9b\xe2\x80\x8c-", false); } // [B3, C1, V3]
4009test { try toAsciiFail("\xe5\xa0\x95\xf0\x91\x93\x82\xe1\xac\x82\xe3\x80\x82\xf0\x90\xae\x87\xf0\x9e\xa4\x9b\xe2\x80\x8c-", true); } // [B3, V3]
19044010test { try toUnicodeFail("xn--5sf345zdk8h.xn----iv5iw606c"); } // [B3, V3]
4011test { try toAsciiFail("xn--5sf345zdk8h.xn----iv5iw606c", false); } // [B3, V3]
4012test { try toAsciiFail("xn--5sf345zdk8h.xn----iv5iw606c", true); } // [B3, V3]
19054013test { try toUnicodeFail("xn--5sf345zdk8h.xn----rgnt157hwl9g"); } // [B3, C1, V3]
4014test { try toAsciiFail("xn--5sf345zdk8h.xn----rgnt157hwl9g", false); } // [B3, C1, V3]
4015test { try toAsciiFail("xn--5sf345zdk8h.xn----rgnt157hwl9g", true); } // [B3, C1, V3]
19064016test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x82\xd8\xaa\xcf\x82"); } // [B1, B5]
4017test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x82\xd8\xaa\xcf\x82", false); } // [B1, B5]
4018test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x82\xd8\xaa\xcf\x82", true); } // [B1, B5]
19074019test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x82\xd8\xaa\xcf\x82"); } // [B1, B5]
4020test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x82\xd8\xaa\xcf\x82", false); } // [B1, B5]
4021test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x82\xd8\xaa\xcf\x82", true); } // [B1, B5]
19084022test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\x80\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3"); } // [B1, B5]
4023test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\x80\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3", false); } // [B1, B5]
4024test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\x80\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3", true); } // [B1, B5]
19094025test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x83"); } // [B1, B5]
4026test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x83", false); } // [B1, B5]
4027test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x83", true); } // [B1, B5]
19104028test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--4xaa85plx4a"); } // [B1, B5]
4029test { try toAsciiFail("xn--l8e1317j1ebz456b.xn--4xaa85plx4a", false); } // [B1, B5]
4030test { try toAsciiFail("xn--l8e1317j1ebz456b.xn--4xaa85plx4a", true); } // [B1, B5]
19114031test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--3xaa16plx4a"); } // [B1, B5]
4032test { try toAsciiFail("xn--l8e1317j1ebz456b.xn--3xaa16plx4a", false); } // [B1, B5]
4033test { try toAsciiFail("xn--l8e1317j1ebz456b.xn--3xaa16plx4a", true); } // [B1, B5]
19124034test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\x80\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3"); } // [B1, B5]
4035test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\x80\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3", false); } // [B1, B5]
4036test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\x80\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3", true); } // [B1, B5]
19134037test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x83"); } // [B1, B5]
4038test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x83", false); } // [B1, B5]
4039test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x83", true); } // [B1, B5]
19144040test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3"); } // [B1, B5]
4041test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3", false); } // [B1, B5]
4042test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3", true); } // [B1, B5]
19154043test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x83"); } // [B1, B5]
4044test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x83", false); } // [B1, B5]
4045test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x83", true); } // [B1, B5]
19164046test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x82"); } // [B1, B5]
4047test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x82", false); } // [B1, B5]
4048test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x82", true); } // [B1, B5]
19174049test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x82"); } // [B1, B5]
4050test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x82", false); } // [B1, B5]
4051test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xe3\x80\x82\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x82", true); } // [B1, B5]
19184052test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--3xab95plx4a"); } // [B1, B5]
4053test { try toAsciiFail("xn--l8e1317j1ebz456b.xn--3xab95plx4a", false); } // [B1, B5]
4054test { try toAsciiFail("xn--l8e1317j1ebz456b.xn--3xab95plx4a", true); } // [B1, B5]
19194055test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3"); } // [B1, B5]
4056test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3", false); } // [B1, B5]
4057test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xce\xa3", true); } // [B1, B5]
19204058test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x83"); } // [B1, B5]
4059test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x83", false); } // [B1, B5]
4060test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x83", true); } // [B1, B5]
19214061test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x82"); } // [B1, B5]
4062test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x82", false); } // [B1, B5]
4063test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xce\xa3\xd8\xaa\xcf\x82", true); } // [B1, B5]
19224064test { try toUnicodeFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x82"); } // [B1, B5]
4065test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x82", false); } // [B1, B5]
4066test { try toAsciiFail("\xf0\x90\xb9\xb6\xf0\x91\x81\x86\xe1\xa1\x95\xf0\x9e\xa4\xa2\xef\xbd\xa1\xe1\xa1\xa5\xcf\x83\xd8\xaa\xcf\x82", true); } // [B1, B5]
19234067test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbb\xc3\x9f"); } // [V3, V7]
4068test { try toAsciiFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbb\xc3\x9f", false); } // [V3, V7]
4069test { try toAsciiFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbb\xc3\x9f", true); } // [V3, V7]
19244070test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5\xc3\x9f"); } // [V3, V7]
4071test { try toAsciiFail("\xf3\x8f\x92\xb0.-5\xc3\x9f", false); } // [V3, V7]
4072test { try toAsciiFail("\xf3\x8f\x92\xb0.-5\xc3\x9f", true); } // [V3, V7]
19254073test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5SS"); } // [V3, V7]
4074test { try toAsciiFail("\xf3\x8f\x92\xb0.-5SS", false); } // [V3, V7]
4075test { try toAsciiFail("\xf3\x8f\x92\xb0.-5SS", true); } // [V3, V7]
19264076test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5ss"); } // [V3, V7]
4077test { try toAsciiFail("\xf3\x8f\x92\xb0.-5ss", false); } // [V3, V7]
4078test { try toAsciiFail("\xf3\x8f\x92\xb0.-5ss", true); } // [V3, V7]
19274079test { try toUnicodeFail("xn--t960e.-5ss"); } // [V3, V7]
4080test { try toAsciiFail("xn--t960e.-5ss", false); } // [V3, V7]
4081test { try toAsciiFail("xn--t960e.-5ss", true); } // [V3, V7]
19284082test { try toUnicodeFail("xn--t960e.xn---5-hia"); } // [V3, V7]
4083test { try toAsciiFail("xn--t960e.xn---5-hia", false); } // [V3, V7]
4084test { try toAsciiFail("xn--t960e.xn---5-hia", true); } // [V3, V7]
19294085test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSS"); } // [V3, V7]
4086test { try toAsciiFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSS", false); } // [V3, V7]
4087test { try toAsciiFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSS", true); } // [V3, V7]
19304088test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbss"); } // [V3, V7]
4089test { try toAsciiFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbss", false); } // [V3, V7]
4090test { try toAsciiFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbss", true); } // [V3, V7]
19314091test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSs"); } // [V3, V7]
4092test { try toAsciiFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSs", false); } // [V3, V7]
4093test { try toAsciiFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSs", true); } // [V3, V7]
19324094test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5Ss"); } // [V3, V7]
4095test { try toAsciiFail("\xf3\x8f\x92\xb0.-5Ss", false); } // [V3, V7]
4096test { try toAsciiFail("\xf3\x8f\x92\xb0.-5Ss", true); } // [V3, V7]
19334097test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe1\x83\x85\xf2\x91\xae\xb6"); } // [C2, V7]
4098test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe1\x83\x85\xf2\x91\xae\xb6", false); } // [C2, V7]
4099test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe1\x83\x85\xf2\x91\xae\xb6", true); } // [V6, V7]
19344100test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe2\xb4\xa5\xf2\x91\xae\xb6"); } // [C2, V7]
4101test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe2\xb4\xa5\xf2\x91\xae\xb6", false); } // [C2, V7]
4102test { try toAsciiFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe2\xb4\xa5\xf2\x91\xae\xb6", true); } // [V6, V7]
19354103test { try toUnicodeFail("xn--0s9c.xn--tljz038l0gz4b"); } // [V6, V7]
4104test { try toAsciiFail("xn--0s9c.xn--tljz038l0gz4b", false); } // [V6, V7]
4105test { try toAsciiFail("xn--0s9c.xn--tljz038l0gz4b", true); } // [V6, V7]
19364106test { try toUnicodeFail("xn--1ug9533g.xn--tljz038l0gz4b"); } // [C2, V7]
4107test { try toAsciiFail("xn--1ug9533g.xn--tljz038l0gz4b", false); } // [C2, V7]
4108test { try toAsciiFail("xn--1ug9533g.xn--tljz038l0gz4b", true); } // [C2, V7]
19374109test { try toUnicodeFail("xn--0s9c.xn--9nd3211w0gz4b"); } // [V6, V7]
4110test { try toAsciiFail("xn--0s9c.xn--9nd3211w0gz4b", false); } // [V6, V7]
4111test { try toAsciiFail("xn--0s9c.xn--9nd3211w0gz4b", true); } // [V6, V7]
19384112test { try toUnicodeFail("xn--1ug9533g.xn--9nd3211w0gz4b"); } // [C2, V7]
4113test { try toAsciiFail("xn--1ug9533g.xn--9nd3211w0gz4b", false); } // [C2, V7]
4114test { try toAsciiFail("xn--1ug9533g.xn--9nd3211w0gz4b", true); } // [C2, V7]
19394115test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82\xc3\x9f\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7]
4116test { try toAsciiFail("\xf0\xb5\x8b\x85\xe3\x80\x82\xc3\x9f\xf0\xac\xb5\xa9\xe2\x80\x8d", false); } // [C2, V7]
4117test { try toAsciiFail("\xf0\xb5\x8b\x85\xe3\x80\x82\xc3\x9f\xf0\xac\xb5\xa9\xe2\x80\x8d", true); } // [V7]
19404118test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82SS\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7]
4119test { try toAsciiFail("\xf0\xb5\x8b\x85\xe3\x80\x82SS\xf0\xac\xb5\xa9\xe2\x80\x8d", false); } // [C2, V7]
4120test { try toAsciiFail("\xf0\xb5\x8b\x85\xe3\x80\x82SS\xf0\xac\xb5\xa9\xe2\x80\x8d", true); } // [V7]
19414121test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82ss\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7]
4122test { try toAsciiFail("\xf0\xb5\x8b\x85\xe3\x80\x82ss\xf0\xac\xb5\xa9\xe2\x80\x8d", false); } // [C2, V7]
4123test { try toAsciiFail("\xf0\xb5\x8b\x85\xe3\x80\x82ss\xf0\xac\xb5\xa9\xe2\x80\x8d", true); } // [V7]
19424124test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82Ss\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7]
4125test { try toAsciiFail("\xf0\xb5\x8b\x85\xe3\x80\x82Ss\xf0\xac\xb5\xa9\xe2\x80\x8d", false); } // [C2, V7]
4126test { try toAsciiFail("\xf0\xb5\x8b\x85\xe3\x80\x82Ss\xf0\xac\xb5\xa9\xe2\x80\x8d", true); } // [V7]
19434127test { try toUnicodeFail("xn--ey1p.xn--ss-eq36b"); } // [V7]
4128test { try toAsciiFail("xn--ey1p.xn--ss-eq36b", false); } // [V7]
4129test { try toAsciiFail("xn--ey1p.xn--ss-eq36b", true); } // [V7]
19444130test { try toUnicodeFail("xn--ey1p.xn--ss-n1tx0508a"); } // [C2, V7]
4131test { try toAsciiFail("xn--ey1p.xn--ss-n1tx0508a", false); } // [C2, V7]
4132test { try toAsciiFail("xn--ey1p.xn--ss-n1tx0508a", true); } // [C2, V7]
19454133test { try toUnicodeFail("xn--ey1p.xn--zca870nz438b"); } // [C2, V7]
4134test { try toAsciiFail("xn--ey1p.xn--zca870nz438b", false); } // [C2, V7]
4135test { try toAsciiFail("xn--ey1p.xn--zca870nz438b", true); } // [C2, V7]
19464136test { try toUnicodeFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xf0\x9e\xb9\xbb"); } // [B1, C1, V6]
4137test { try toAsciiFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xf0\x9e\xb9\xbb", false); } // [B1, C1, V6]
4138test { try toAsciiFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xf0\x9e\xb9\xbb", true); } // [B1, V6]
19474139test { try toUnicodeFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xd8\xba"); } // [B1, C1, V6]
4140test { try toAsciiFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xd8\xba", false); } // [B1, C1, V6]
4141test { try toAsciiFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xd8\xba", true); } // [B1, V6]
19484142test { try toUnicodeFail("xn--634m.xn--lsa46nuub"); } // [B1, V6]
4143test { try toAsciiFail("xn--634m.xn--lsa46nuub", false); } // [B1, V6]
4144test { try toAsciiFail("xn--634m.xn--lsa46nuub", true); } // [B1, V6]
19494145test { try toUnicodeFail("xn--0ugy003y.xn--lsa46nuub"); } // [B1, C1, V6]
4146test { try toAsciiFail("xn--0ugy003y.xn--lsa46nuub", false); } // [B1, C1, V6]
4147test { try toAsciiFail("xn--0ugy003y.xn--lsa46nuub", true); } // [B1, C1, V6]
19504148test { try toUnicodeFail("\xf0\x9e\xbc\x8c\xe2\x80\x8c\xf0\x91\x88\xb6\xe3\x80\x82\xf0\x90\xb9\xa1"); } // [B1, B3, C1, V7]
4149test { try toAsciiFail("\xf0\x9e\xbc\x8c\xe2\x80\x8c\xf0\x91\x88\xb6\xe3\x80\x82\xf0\x90\xb9\xa1", false); } // [B1, B3, C1, V7]
4150test { try toAsciiFail("\xf0\x9e\xbc\x8c\xe2\x80\x8c\xf0\x91\x88\xb6\xe3\x80\x82\xf0\x90\xb9\xa1", true); } // [B1, V7]
19514151test { try toUnicodeFail("xn--9g1d1288a.xn--8n0d"); } // [B1, V7]
4152test { try toAsciiFail("xn--9g1d1288a.xn--8n0d", false); } // [B1, V7]
4153test { try toAsciiFail("xn--9g1d1288a.xn--8n0d", true); } // [B1, V7]
19524154test { try toUnicodeFail("xn--0ug7946gzpxf.xn--8n0d"); } // [B1, B3, C1, V7]
4155test { try toAsciiFail("xn--0ug7946gzpxf.xn--8n0d", false); } // [B1, B3, C1, V7]
4156test { try toAsciiFail("xn--0ug7946gzpxf.xn--8n0d", true); } // [B1, B3, C1, V7]
19534157test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82\xe2\x89\xa0"); } // [C1, V6, V7]
4158test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82\xe2\x89\xa0", false); } // [C1, V6, V7]
4159test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82\xe2\x89\xa0", true); } // [V6, V7]
19544160test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82=\xcc\xb8"); } // [C1, V6, V7]
4161test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82=\xcc\xb8", false); } // [C1, V6, V7]
4162test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82=\xcc\xb8", true); } // [V6, V7]
19554163test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82\xe2\x89\xa0"); } // [C1, V6, V7]
4164test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82\xe2\x89\xa0", false); } // [C1, V6, V7]
4165test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82\xe2\x89\xa0", true); } // [V6, V7]
19564166test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82=\xcc\xb8"); } // [C1, V6, V7]
4167test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82=\xcc\xb8", false); } // [C1, V6, V7]
4168test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x82=\xcc\xb8", true); } // [V6, V7]
19574169test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3=\xcc\xb8"); } // [C1, V6, V7]
4170test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3=\xcc\xb8", false); } // [C1, V6, V7]
4171test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3=\xcc\xb8", true); } // [V6, V7]
19584172test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3\xe2\x89\xa0"); } // [C1, V6, V7]
4173test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3\xe2\x89\xa0", false); } // [C1, V6, V7]
4174test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3\xe2\x89\xa0", true); } // [V6, V7]
19594175test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83\xe2\x89\xa0"); } // [C1, V6, V7]
4176test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83\xe2\x89\xa0", false); } // [C1, V6, V7]
4177test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83\xe2\x89\xa0", true); } // [V6, V7]
19604178test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83=\xcc\xb8"); } // [C1, V6, V7]
4179test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83=\xcc\xb8", false); } // [C1, V6, V7]
4180test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xe3\x80\x82\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83=\xcc\xb8", true); } // [V6, V7]
19614181test { try toUnicodeFail("xn--zb9h5968x.xn--4xa378i1mfjw7y"); } // [V6, V7]
4182test { try toAsciiFail("xn--zb9h5968x.xn--4xa378i1mfjw7y", false); } // [V6, V7]
4183test { try toAsciiFail("xn--zb9h5968x.xn--4xa378i1mfjw7y", true); } // [V6, V7]
19624184test { try toUnicodeFail("xn--0ug3766p5nm1b.xn--4xa378i1mfjw7y"); } // [C1, V6, V7]
4185test { try toAsciiFail("xn--0ug3766p5nm1b.xn--4xa378i1mfjw7y", false); } // [C1, V6, V7]
4186test { try toAsciiFail("xn--0ug3766p5nm1b.xn--4xa378i1mfjw7y", true); } // [C1, V6, V7]
19634187test { try toUnicodeFail("xn--0ug3766p5nm1b.xn--3xa578i1mfjw7y"); } // [C1, V6, V7]
4188test { try toAsciiFail("xn--0ug3766p5nm1b.xn--3xa578i1mfjw7y", false); } // [C1, V6, V7]
4189test { try toAsciiFail("xn--0ug3766p5nm1b.xn--3xa578i1mfjw7y", true); } // [C1, V6, V7]
19644190test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3=\xcc\xb8"); } // [C1, V6, V7]
4191test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3=\xcc\xb8", false); } // [C1, V6, V7]
4192test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3=\xcc\xb8", true); } // [V6, V7]
19654193test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3\xe2\x89\xa0"); } // [C1, V6, V7]
4194test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3\xe2\x89\xa0", false); } // [C1, V6, V7]
4195test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xce\xa3\xe2\x89\xa0", true); } // [V6, V7]
19664196test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83\xe2\x89\xa0"); } // [C1, V6, V7]
4197test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83\xe2\x89\xa0", false); } // [C1, V6, V7]
4198test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83\xe2\x89\xa0", true); } // [V6, V7]
19674199test { try toUnicodeFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83=\xcc\xb8"); } // [C1, V6, V7]
4200test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83=\xcc\xb8", false); } // [C1, V6, V7]
4201test { try toAsciiFail("\xf3\xa0\x85\xaf\xf2\x87\xbd\xad\xe2\x80\x8c\xf0\x9f\x9c\xad\xef\xbd\xa1\xf0\x91\x96\xbf\xe1\xaa\xbb\xcf\x83=\xcc\xb8", true); } // [V6, V7]
19684202test { try toUnicodeFail("\xe2\x92\x8b\xef\xbd\xa1\xe2\x92\x88\xe2\x80\x8d\xf2\xb3\xb4\xa2"); } // [C2, V7]
4203test { try toAsciiFail("\xe2\x92\x8b\xef\xbd\xa1\xe2\x92\x88\xe2\x80\x8d\xf2\xb3\xb4\xa2", false); } // [C2, V7]
4204test { try toAsciiFail("\xe2\x92\x8b\xef\xbd\xa1\xe2\x92\x88\xe2\x80\x8d\xf2\xb3\xb4\xa2", true); } // [V7]
19694205test { try toUnicodeFail("4.\xe3\x80\x821.\xe2\x80\x8d\xf2\xb3\xb4\xa2"); } // [C2, V7, X4_2]
4206test { try toAsciiFail("4.\xe3\x80\x821.\xe2\x80\x8d\xf2\xb3\xb4\xa2", false); } // [C2, V7, A4_2]
4207test { try toAsciiFail("4.\xe3\x80\x821.\xe2\x80\x8d\xf2\xb3\xb4\xa2", true); } // [V7, A4_2]
19704208test { try toUnicodeFail("4..1.xn--sf51d"); } // [V7, X4_2]
4209test { try toAsciiFail("4..1.xn--sf51d", false); } // [V7, A4_2]
4210test { try toAsciiFail("4..1.xn--sf51d", true); } // [V7, A4_2]
19714211test { try toUnicodeFail("4..1.xn--1ug64613i"); } // [C2, V7, X4_2]
4212test { try toAsciiFail("4..1.xn--1ug64613i", false); } // [C2, V7, A4_2]
4213test { try toAsciiFail("4..1.xn--1ug64613i", true); } // [C2, V7, A4_2]
19724214test { try toUnicodeFail("xn--wsh.xn--tsh07994h"); } // [V7]
4215test { try toAsciiFail("xn--wsh.xn--tsh07994h", false); } // [V7]
4216test { try toAsciiFail("xn--wsh.xn--tsh07994h", true); } // [V7]
19734217test { try toUnicodeFail("xn--wsh.xn--1ug58o74922a"); } // [C2, V7]
4218test { try toAsciiFail("xn--wsh.xn--1ug58o74922a", false); } // [C2, V7]
4219test { try toAsciiFail("xn--wsh.xn--1ug58o74922a", true); } // [C2, V7]
19744220test { try toUnicodeFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4221test { try toAsciiFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4222test { try toAsciiFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19754223test { try toUnicodeFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4224test { try toAsciiFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4225test { try toAsciiFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19764226test { try toUnicodeFail("\xd9\x84\xc3\x9f\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4227test { try toAsciiFail("\xd9\x84\xc3\x9f\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4228test { try toAsciiFail("\xd9\x84\xc3\x9f\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19774229test { try toUnicodeFail("\xd9\x84SS\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4230test { try toAsciiFail("\xd9\x84SS\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4231test { try toAsciiFail("\xd9\x84SS\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19784232test { try toUnicodeFail("\xd9\x84ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4233test { try toAsciiFail("\xd9\x84ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4234test { try toAsciiFail("\xd9\x84ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19794235test { try toUnicodeFail("\xd9\x84ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4236test { try toAsciiFail("\xd9\x84ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4237test { try toAsciiFail("\xd9\x84ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19804238test { try toUnicodeFail("xn--ss-svd.xn--jof2298hn83fln78f"); } // [B1, B2, B3, V6, V7]
4239test { try toAsciiFail("xn--ss-svd.xn--jof2298hn83fln78f", false); } // [B1, B2, B3, V6, V7]
4240test { try toAsciiFail("xn--ss-svd.xn--jof2298hn83fln78f", true); } // [B1, B2, B3, V6, V7]
19814241test { try toUnicodeFail("\xd9\x84\xc3\x9f\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4242test { try toAsciiFail("\xd9\x84\xc3\x9f\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4243test { try toAsciiFail("\xd9\x84\xc3\x9f\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19824244test { try toUnicodeFail("xn--zca57y.xn--jof2298hn83fln78f"); } // [B1, B2, B3, V6, V7]
4245test { try toAsciiFail("xn--zca57y.xn--jof2298hn83fln78f", false); } // [B1, B2, B3, V6, V7]
4246test { try toAsciiFail("xn--zca57y.xn--jof2298hn83fln78f", true); } // [B1, B2, B3, V6, V7]
19834247test { try toUnicodeFail("\xd9\x84SS\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4248test { try toAsciiFail("\xd9\x84SS\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4249test { try toAsciiFail("\xd9\x84SS\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19844250test { try toUnicodeFail("\xd9\x84ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4251test { try toAsciiFail("\xd9\x84ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4252test { try toAsciiFail("\xd9\x84ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19854253test { try toUnicodeFail("\xd9\x84ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4254test { try toAsciiFail("\xd9\x84ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4255test { try toAsciiFail("\xd9\x84ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19864256test { try toUnicodeFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4257test { try toAsciiFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4258test { try toAsciiFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19874259test { try toUnicodeFail("\xd9\x84SS\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4260test { try toAsciiFail("\xd9\x84SS\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4261test { try toAsciiFail("\xd9\x84SS\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19884262test { try toUnicodeFail("\xd9\x84ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4263test { try toAsciiFail("\xd9\x84ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4264test { try toAsciiFail("\xd9\x84ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19894265test { try toUnicodeFail("\xd9\x84ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4266test { try toAsciiFail("\xd9\x84ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4267test { try toAsciiFail("\xd9\x84ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19904268test { try toUnicodeFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c"); } // [B1, B2, B3, V6, V7]
4269test { try toAsciiFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", false); } // [B1, B2, B3, V6, V7]
4270test { try toAsciiFail("\xd9\x84\xc3\x9f\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\x9c", true); } // [B1, B2, B3, V6, V7]
19914271test { try toUnicodeFail("\xd9\x84SS\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4272test { try toAsciiFail("\xd9\x84SS\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4273test { try toAsciiFail("\xd9\x84SS\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19924274test { try toUnicodeFail("\xd9\x84Ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4275test { try toAsciiFail("\xd9\x84Ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4276test { try toAsciiFail("\xd9\x84Ss\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19934277test { try toUnicodeFail("\xd9\x84SS\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4278test { try toAsciiFail("\xd9\x84SS\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4279test { try toAsciiFail("\xd9\x84SS\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19944280test { try toUnicodeFail("\xd9\x84Ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4281test { try toAsciiFail("\xd9\x84Ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4282test { try toAsciiFail("\xd9\x84Ss\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\x87\xbd\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19954283test { try toUnicodeFail("\xd9\x84SS\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4284test { try toAsciiFail("\xd9\x84SS\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4285test { try toAsciiFail("\xd9\x84SS\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19964286test { try toUnicodeFail("\xd9\x84Ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe"); } // [B1, B2, B3, V6, V7]
4287test { try toAsciiFail("\xd9\x84Ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", false); } // [B1, B2, B3, V6, V7]
4288test { try toAsciiFail("\xd9\x84Ss\xef\xbd\xa1\xf0\x90\x87\xbd\xe1\xa9\xa0\xf2\xbe\x85\xa2\xf0\x9e\xa4\xbe", true); } // [B1, B2, B3, V6, V7]
19974289test { try toUnicodeFail("\xf0\x90\xb9\xbd\xf0\x91\x84\xb3\xf1\xbc\x9c\xb2.\xe1\xb7\x9f\xe1\x9e\xb8\xea\xa0\x86\xf0\x91\x9c\xab"); } // [B1, V6, V7]
4290test { try toAsciiFail("\xf0\x90\xb9\xbd\xf0\x91\x84\xb3\xf1\xbc\x9c\xb2.\xe1\xb7\x9f\xe1\x9e\xb8\xea\xa0\x86\xf0\x91\x9c\xab", false); } // [B1, V6, V7]
4291test { try toAsciiFail("\xf0\x90\xb9\xbd\xf0\x91\x84\xb3\xf1\xbc\x9c\xb2.\xe1\xb7\x9f\xe1\x9e\xb8\xea\xa0\x86\xf0\x91\x9c\xab", true); } // [B1, V6, V7]
19984292test { try toUnicodeFail("xn--1o0di0c0652w.xn--33e362arr1l153d"); } // [B1, V6, V7]
4293test { try toAsciiFail("xn--1o0di0c0652w.xn--33e362arr1l153d", false); } // [B1, V6, V7]
4294test { try toAsciiFail("xn--1o0di0c0652w.xn--33e362arr1l153d", true); } // [B1, V6, V7]
19994295test { try toUnicodeFail("\xe1\x82\xb3\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93\xef\xbc\x8e\xda\xa7\xf0\x91\xb0\xb6"); } // [V7]
4296test { try toAsciiFail("\xe1\x82\xb3\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93\xef\xbc\x8e\xda\xa7\xf0\x91\xb0\xb6", false); } // [V7]
4297test { try toAsciiFail("\xe1\x82\xb3\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93\xef\xbc\x8e\xda\xa7\xf0\x91\xb0\xb6", true); } // [V7]
20004298test { try toUnicodeFail("\xe1\x82\xb3\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6"); } // [V7]
4299test { try toAsciiFail("\xe1\x82\xb3\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6", false); } // [V7]
4300test { try toAsciiFail("\xe1\x82\xb3\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6", true); } // [V7]
20014301test { try toUnicodeFail("\xe2\xb4\x93\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6"); } // [V7]
4302test { try toAsciiFail("\xe2\xb4\x93\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6", false); } // [V7]
4303test { try toAsciiFail("\xe2\xb4\x93\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6", true); } // [V7]
20024304test { try toUnicodeFail("xn--blj6306ey091d.xn--9jb4223l"); } // [V7]
4305test { try toAsciiFail("xn--blj6306ey091d.xn--9jb4223l", false); } // [V7]
4306test { try toAsciiFail("xn--blj6306ey091d.xn--9jb4223l", true); } // [V7]
20034307test { try toUnicodeFail("xn--1ugy52cym7p7xu5e.xn--9jb4223l"); } // [V7]
4308test { try toAsciiFail("xn--1ugy52cym7p7xu5e.xn--9jb4223l", false); } // [V7]
4309test { try toAsciiFail("xn--1ugy52cym7p7xu5e.xn--9jb4223l", true); } // [V7]
20044310test { try toUnicodeFail("\xe2\xb4\x93\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93\xef\xbc\x8e\xda\xa7\xf0\x91\xb0\xb6"); } // [V7]
4311test { try toAsciiFail("\xe2\xb4\x93\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93\xef\xbc\x8e\xda\xa7\xf0\x91\xb0\xb6", false); } // [V7]
4312test { try toAsciiFail("\xe2\xb4\x93\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93\xef\xbc\x8e\xda\xa7\xf0\x91\xb0\xb6", true); } // [V7]
20054313test { try toUnicodeFail("xn--rnd8945ky009c.xn--9jb4223l"); } // [V7]
4314test { try toAsciiFail("xn--rnd8945ky009c.xn--9jb4223l", false); } // [V7]
4315test { try toAsciiFail("xn--rnd8945ky009c.xn--9jb4223l", true); } // [V7]
20064316test { try toUnicodeFail("xn--rnd479ep20q7x12e.xn--9jb4223l"); } // [V7]
4317test { try toAsciiFail("xn--rnd479ep20q7x12e.xn--9jb4223l", false); } // [V7]
4318test { try toAsciiFail("xn--rnd479ep20q7x12e.xn--9jb4223l", true); } // [V7]
20074319test { try toUnicodeFail("\xf0\x90\xa8\xbf.\xf0\x9f\x84\x86\xe2\x80\x94"); } // [V6, U1]
4320test { try toAsciiFail("\xf0\x90\xa8\xbf.\xf0\x9f\x84\x86\xe2\x80\x94", false); } // [V6, U1]
4321test { try toAsciiFail("\xf0\x90\xa8\xbf.\xf0\x9f\x84\x86\xe2\x80\x94", true); } // [V6, U1]
20084322test { try toUnicodeFail("\xf0\x90\xa8\xbf.5,\xe2\x80\x94"); } // [V6, U1]
4323test { try toAsciiFail("\xf0\x90\xa8\xbf.5,\xe2\x80\x94", false); } // [V6, U1]
4324test { try toAsciiFail("\xf0\x90\xa8\xbf.5,\xe2\x80\x94", true); } // [V6, U1]
20094325test { try toUnicodeFail("xn--0s9c.xn--5,-81t"); } // [V6, U1]
4326test { try toAsciiFail("xn--0s9c.xn--5,-81t", false); } // [V6, U1]
4327test { try toAsciiFail("xn--0s9c.xn--5,-81t", true); } // [V6, U1]
20104328test { try toUnicodeFail("xn--0s9c.xn--8ug8324p"); } // [V6, V7]
4329test { try toAsciiFail("xn--0s9c.xn--8ug8324p", false); } // [V6, V7]
4330test { try toAsciiFail("xn--0s9c.xn--8ug8324p", true); } // [V6, V7]
20114331test { try toUnicodeFail("\xf2\x94\x8a\xb1\xf1\x81\xa6\xae\xdb\xb8\xe3\x80\x82\xf3\xa0\xbe\xad-"); } // [V3, V7]
4332test { try toAsciiFail("\xf2\x94\x8a\xb1\xf1\x81\xa6\xae\xdb\xb8\xe3\x80\x82\xf3\xa0\xbe\xad-", false); } // [V3, V7]
4333test { try toAsciiFail("\xf2\x94\x8a\xb1\xf1\x81\xa6\xae\xdb\xb8\xe3\x80\x82\xf3\xa0\xbe\xad-", true); } // [V3, V7]
20124334test { try toUnicodeFail("xn--lmb18944c0g2z.xn----2k81m"); } // [V3, V7]
4335test { try toAsciiFail("xn--lmb18944c0g2z.xn----2k81m", false); } // [V3, V7]
4336test { try toAsciiFail("xn--lmb18944c0g2z.xn----2k81m", true); } // [V3, V7]
20134337test { try toUnicodeFail("\xf0\xbc\x97\xb8\xdf\x8d\xf0\x90\xb9\xae\xe3\x80\x82\xdb\x9d\xe1\xa1\x8e\xe1\xa0\xb4"); } // [B1, B5, B6, V7]
4338test { try toAsciiFail("\xf0\xbc\x97\xb8\xdf\x8d\xf0\x90\xb9\xae\xe3\x80\x82\xdb\x9d\xe1\xa1\x8e\xe1\xa0\xb4", false); } // [B1, B5, B6, V7]
4339test { try toAsciiFail("\xf0\xbc\x97\xb8\xdf\x8d\xf0\x90\xb9\xae\xe3\x80\x82\xdb\x9d\xe1\xa1\x8e\xe1\xa0\xb4", true); } // [B1, B5, B6, V7]
20144340test { try toUnicodeFail("xn--osb0855kcc2r.xn--tlb299fhc"); } // [B1, B5, B6, V7]
4341test { try toAsciiFail("xn--osb0855kcc2r.xn--tlb299fhc", false); } // [B1, B5, B6, V7]
4342test { try toAsciiFail("xn--osb0855kcc2r.xn--tlb299fhc", true); } // [B1, B5, B6, V7]
20154343test { try toUnicodeFail("\xe2\x80\x8d\xe1\xa0\xae\xe1\x82\xbe\xf0\x9f\x84\x82.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c"); } // [B1, C1, C2, U1]
4344test { try toAsciiFail("\xe2\x80\x8d\xe1\xa0\xae\xe1\x82\xbe\xf0\x9f\x84\x82.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c", false); } // [B1, C1, C2, U1]
4345test { try toAsciiFail("\xe2\x80\x8d\xe1\xa0\xae\xe1\x82\xbe\xf0\x9f\x84\x82.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c", true); } // [B1, B6, U1]
20164346test { try toUnicodeFail("\xe2\x80\x8d\xe1\xa0\xae\xe1\x82\xbe1,.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c"); } // [B1, C1, C2, U1]
4347test { try toAsciiFail("\xe2\x80\x8d\xe1\xa0\xae\xe1\x82\xbe1,.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c", false); } // [B1, C1, C2, U1]
4348test { try toAsciiFail("\xe2\x80\x8d\xe1\xa0\xae\xe1\x82\xbe1,.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c", true); } // [B1, B6, U1]
20174349test { try toUnicodeFail("\xe2\x80\x8d\xe1\xa0\xae\xe2\xb4\x9e1,.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c"); } // [B1, C1, C2, U1]
4350test { try toAsciiFail("\xe2\x80\x8d\xe1\xa0\xae\xe2\xb4\x9e1,.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c", false); } // [B1, C1, C2, U1]
4351test { try toAsciiFail("\xe2\x80\x8d\xe1\xa0\xae\xe2\xb4\x9e1,.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c", true); } // [B1, B6, U1]
20184352test { try toUnicodeFail("xn--1,-v3o625k.xn--zvb3124wpkpf"); } // [B1, B6, U1]
4353test { try toAsciiFail("xn--1,-v3o625k.xn--zvb3124wpkpf", false); } // [B1, B6, U1]
4354test { try toAsciiFail("xn--1,-v3o625k.xn--zvb3124wpkpf", true); } // [B1, B6, U1]
20194355test { try toUnicodeFail("xn--1,-v3o161c53q.xn--zvb692j9664aic1g"); } // [B1, C1, C2, U1]
4356test { try toAsciiFail("xn--1,-v3o161c53q.xn--zvb692j9664aic1g", false); } // [B1, C1, C2, U1]
4357test { try toAsciiFail("xn--1,-v3o161c53q.xn--zvb692j9664aic1g", true); } // [B1, C1, C2, U1]
20204358test { try toUnicodeFail("\xe2\x80\x8d\xe1\xa0\xae\xe2\xb4\x9e\xf0\x9f\x84\x82.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c"); } // [B1, C1, C2, U1]
4359test { try toAsciiFail("\xe2\x80\x8d\xe1\xa0\xae\xe2\xb4\x9e\xf0\x9f\x84\x82.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c", false); } // [B1, C1, C2, U1]
4360test { try toAsciiFail("\xe2\x80\x8d\xe1\xa0\xae\xe2\xb4\x9e\xf0\x9f\x84\x82.\xf0\x9f\x9a\x97\xe0\xa1\x81\xf0\xae\xb9\x8c\xe2\x80\x8c", true); } // [B1, B6, U1]
20214361test { try toUnicodeFail("xn--1,-ogkx89c.xn--zvb3124wpkpf"); } // [B1, B6, V7, U1]
4362test { try toAsciiFail("xn--1,-ogkx89c.xn--zvb3124wpkpf", false); } // [B1, B6, V7, U1]
4363test { try toAsciiFail("xn--1,-ogkx89c.xn--zvb3124wpkpf", true); } // [B1, B6, V7, U1]
20224364test { try toUnicodeFail("xn--1,-ogkx89c39j.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7, U1]
4365test { try toAsciiFail("xn--1,-ogkx89c39j.xn--zvb692j9664aic1g", false); } // [B1, C1, C2, V7, U1]
4366test { try toAsciiFail("xn--1,-ogkx89c39j.xn--zvb692j9664aic1g", true); } // [B1, C1, C2, V7, U1]
20234367test { try toUnicodeFail("xn--h7e438h1p44a.xn--zvb3124wpkpf"); } // [B1, V7]
4368test { try toAsciiFail("xn--h7e438h1p44a.xn--zvb3124wpkpf", false); } // [B1, V7]
4369test { try toAsciiFail("xn--h7e438h1p44a.xn--zvb3124wpkpf", true); } // [B1, V7]
20244370test { try toUnicodeFail("xn--h7e341b0wlbv45b.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7]
4371test { try toAsciiFail("xn--h7e341b0wlbv45b.xn--zvb692j9664aic1g", false); } // [B1, C1, C2, V7]
4372test { try toAsciiFail("xn--h7e341b0wlbv45b.xn--zvb692j9664aic1g", true); } // [B1, C1, C2, V7]
20254373test { try toUnicodeFail("xn--2nd129ai554b.xn--zvb3124wpkpf"); } // [B1, V7]
4374test { try toAsciiFail("xn--2nd129ai554b.xn--zvb3124wpkpf", false); } // [B1, V7]
4375test { try toAsciiFail("xn--2nd129ai554b.xn--zvb3124wpkpf", true); } // [B1, V7]
20264376test { try toUnicodeFail("xn--2nd129ay2gnw71c.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7]
4377test { try toAsciiFail("xn--2nd129ay2gnw71c.xn--zvb692j9664aic1g", false); } // [B1, C1, C2, V7]
4378test { try toAsciiFail("xn--2nd129ay2gnw71c.xn--zvb692j9664aic1g", true); } // [B1, C1, C2, V7]
20274379test { try toUnicodeFail("\xd8\x81\xda\x97\xef\xbc\x8e\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe2\xbe\x86"); } // [B1, V6, V7]
4380test { try toAsciiFail("\xd8\x81\xda\x97\xef\xbc\x8e\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe2\xbe\x86", false); } // [B1, V6, V7]
4381test { try toAsciiFail("\xd8\x81\xda\x97\xef\xbc\x8e\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe2\xbe\x86", true); } // [B1, V6, V7]
20284382test { try toUnicodeFail("\xd8\x81\xda\x97.\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe8\x88\x8c"); } // [B1, V6, V7]
4383test { try toAsciiFail("\xd8\x81\xda\x97.\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe8\x88\x8c", false); } // [B1, V6, V7]
4384test { try toAsciiFail("\xd8\x81\xda\x97.\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe8\x88\x8c", true); } // [B1, V6, V7]
20294385test { try toUnicodeFail("xn--jfb41a.xn--tc1ap851axo39c"); } // [B1, V6, V7]
4386test { try toAsciiFail("xn--jfb41a.xn--tc1ap851axo39c", false); } // [B1, V6, V7]
4387test { try toAsciiFail("xn--jfb41a.xn--tc1ap851axo39c", true); } // [B1, V6, V7]
20304388test { try toUnicodeFail("\xf0\x9f\x9e\x85\xf3\xa0\xb3\xa1\xf3\x9c\x8d\x99.\xf1\xb2\x96\xb7"); } // [V7]
4389test { try toAsciiFail("\xf0\x9f\x9e\x85\xf3\xa0\xb3\xa1\xf3\x9c\x8d\x99.\xf1\xb2\x96\xb7", false); } // [V7]
4390test { try toAsciiFail("\xf0\x9f\x9e\x85\xf3\xa0\xb3\xa1\xf3\x9c\x8d\x99.\xf1\xb2\x96\xb7", true); } // [V7]
20314391test { try toUnicodeFail("xn--ie9hi1349bqdlb.xn--oj69a"); } // [V7]
4392test { try toAsciiFail("xn--ie9hi1349bqdlb.xn--oj69a", false); } // [V7]
4393test { try toAsciiFail("xn--ie9hi1349bqdlb.xn--oj69a", true); } // [V7]
20324394test { try toUnicodeFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe1\x82\xa4\xe2\x80\x8c"); } // [C1, V6, V7]
4395test { try toAsciiFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe1\x82\xa4\xe2\x80\x8c", false); } // [C1, V6, V7]
4396test { try toAsciiFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe1\x82\xa4\xe2\x80\x8c", true); } // [V6, V7]
20334397test { try toUnicodeFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe2\xb4\x84\xe2\x80\x8c"); } // [C1, V6, V7]
4398test { try toAsciiFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe2\xb4\x84\xe2\x80\x8c", false); } // [C1, V6, V7]
4399test { try toAsciiFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe2\xb4\x84\xe2\x80\x8c", true); } // [V6, V7]
20344400test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-ivs"); } // [V6, V7]
4401test { try toAsciiFail("xn----9snu5320fi76w.xn--4-ivs", false); } // [V6, V7]
4402test { try toAsciiFail("xn----9snu5320fi76w.xn--4-ivs", true); } // [V6, V7]
20354403test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-sgn589c"); } // [C1, V6, V7]
4404test { try toAsciiFail("xn----9snu5320fi76w.xn--4-sgn589c", false); } // [C1, V6, V7]
4405test { try toAsciiFail("xn----9snu5320fi76w.xn--4-sgn589c", true); } // [C1, V6, V7]
20364406test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-f0g"); } // [V6, V7]
4407test { try toAsciiFail("xn----9snu5320fi76w.xn--4-f0g", false); } // [V6, V7]
4408test { try toAsciiFail("xn----9snu5320fi76w.xn--4-f0g", true); } // [V6, V7]
20374409test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-f0g649i"); } // [C1, V6, V7]
4410test { try toAsciiFail("xn----9snu5320fi76w.xn--4-f0g649i", false); } // [C1, V6, V7]
4411test { try toAsciiFail("xn----9snu5320fi76w.xn--4-f0g649i", true); } // [C1, V6, V7]
20384412test { try toUnicodePass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1", "\xe1\x9a\xad.\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1"); }
20394413test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1", "xn--hwe.xn--zca4946pblnc", false); }
20404414test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", true); }
......@@ -2078,398 +4452,1184 @@ test { try toUnicodePass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab
20784452test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", false); }
20794453test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", true); }
20804454test { try toUnicodeFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\xab\xea\xa1\xaa"); } // [B1, B2, B3]
4455test { try toAsciiFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\xab\xea\xa1\xaa", false); } // [B1, B2, B3]
4456test { try toAsciiFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\xab\xea\xa1\xaa", true); } // [B1, B2, B3]
20814457test { try toUnicodeFail("1\xe3\x80\x82\xf0\x9e\xa4\xab\xea\xa1\xaa"); } // [B1, B2, B3]
4458test { try toAsciiFail("1\xe3\x80\x82\xf0\x9e\xa4\xab\xea\xa1\xaa", false); } // [B1, B2, B3]
4459test { try toAsciiFail("1\xe3\x80\x82\xf0\x9e\xa4\xab\xea\xa1\xaa", true); } // [B1, B2, B3]
20824460test { try toUnicodeFail("1\xe3\x80\x82\xf0\x9e\xa4\x89\xea\xa1\xaa"); } // [B1, B2, B3]
4461test { try toAsciiFail("1\xe3\x80\x82\xf0\x9e\xa4\x89\xea\xa1\xaa", false); } // [B1, B2, B3]
4462test { try toAsciiFail("1\xe3\x80\x82\xf0\x9e\xa4\x89\xea\xa1\xaa", true); } // [B1, B2, B3]
20834463test { try toUnicodeFail("1.xn--gd9al691d"); } // [B1, B2, B3]
4464test { try toAsciiFail("1.xn--gd9al691d", false); } // [B1, B2, B3]
4465test { try toAsciiFail("1.xn--gd9al691d", true); } // [B1, B2, B3]
20844466test { try toUnicodeFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\x89\xea\xa1\xaa"); } // [B1, B2, B3]
4467test { try toAsciiFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\x89\xea\xa1\xaa", false); } // [B1, B2, B3]
4468test { try toAsciiFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\x89\xea\xa1\xaa", true); } // [B1, B2, B3]
20854469test { try toUnicodeFail("\xf0\xaf\xbb\xbc\xe2\x80\x8c.\xf0\x9e\xb6\x9e\xf2\xbb\x99\xa4\xf1\xa5\x98\x87"); } // [B2, B3, B6, C1, V7]
4470test { try toAsciiFail("\xf0\xaf\xbb\xbc\xe2\x80\x8c.\xf0\x9e\xb6\x9e\xf2\xbb\x99\xa4\xf1\xa5\x98\x87", false); } // [B2, B3, B6, C1, V7]
4471test { try toAsciiFail("\xf0\xaf\xbb\xbc\xe2\x80\x8c.\xf0\x9e\xb6\x9e\xf2\xbb\x99\xa4\xf1\xa5\x98\x87", true); } // [B2, B3, V7]
20864472test { try toUnicodeFail("xn--kg4n.xn--2b7hs861pl540a"); } // [B2, B3, V7]
4473test { try toAsciiFail("xn--kg4n.xn--2b7hs861pl540a", false); } // [B2, B3, V7]
4474test { try toAsciiFail("xn--kg4n.xn--2b7hs861pl540a", true); } // [B2, B3, V7]
20874475test { try toUnicodeFail("xn--0ug27500a.xn--2b7hs861pl540a"); } // [B2, B3, B6, C1, V7]
4476test { try toAsciiFail("xn--0ug27500a.xn--2b7hs861pl540a", false); } // [B2, B3, B6, C1, V7]
4477test { try toAsciiFail("xn--0ug27500a.xn--2b7hs861pl540a", true); } // [B2, B3, B6, C1, V7]
20884478test { try toUnicodeFail("\xf0\x91\x91\x84\xe2\x89\xaf\xef\xbd\xa1\xf0\x91\x9c\xa4"); } // [V6]
4479test { try toAsciiFail("\xf0\x91\x91\x84\xe2\x89\xaf\xef\xbd\xa1\xf0\x91\x9c\xa4", false); } // [V6]
4480test { try toAsciiFail("\xf0\x91\x91\x84\xe2\x89\xaf\xef\xbd\xa1\xf0\x91\x9c\xa4", true); } // [V6]
20894481test { try toUnicodeFail("\xf0\x91\x91\x84>\xcc\xb8\xef\xbd\xa1\xf0\x91\x9c\xa4"); } // [V6]
4482test { try toAsciiFail("\xf0\x91\x91\x84>\xcc\xb8\xef\xbd\xa1\xf0\x91\x9c\xa4", false); } // [V6]
4483test { try toAsciiFail("\xf0\x91\x91\x84>\xcc\xb8\xef\xbd\xa1\xf0\x91\x9c\xa4", true); } // [V6]
20904484test { try toUnicodeFail("\xf0\x91\x91\x84\xe2\x89\xaf\xe3\x80\x82\xf0\x91\x9c\xa4"); } // [V6]
4485test { try toAsciiFail("\xf0\x91\x91\x84\xe2\x89\xaf\xe3\x80\x82\xf0\x91\x9c\xa4", false); } // [V6]
4486test { try toAsciiFail("\xf0\x91\x91\x84\xe2\x89\xaf\xe3\x80\x82\xf0\x91\x9c\xa4", true); } // [V6]
20914487test { try toUnicodeFail("\xf0\x91\x91\x84>\xcc\xb8\xe3\x80\x82\xf0\x91\x9c\xa4"); } // [V6]
4488test { try toAsciiFail("\xf0\x91\x91\x84>\xcc\xb8\xe3\x80\x82\xf0\x91\x9c\xa4", false); } // [V6]
4489test { try toAsciiFail("\xf0\x91\x91\x84>\xcc\xb8\xe3\x80\x82\xf0\x91\x9c\xa4", true); } // [V6]
20924490test { try toUnicodeFail("xn--hdh5636g.xn--ci2d"); } // [V6]
4491test { try toAsciiFail("xn--hdh5636g.xn--ci2d", false); } // [V6]
4492test { try toAsciiFail("xn--hdh5636g.xn--ci2d", true); } // [V6]
20934493test { try toUnicodeFail("\xe1\x82\xab\xe2\x89\xae\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3"); } // [C2]
4494test { try toAsciiFail("\xe1\x82\xab\xe2\x89\xae\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3", false); } // [C2]
4495test { try toAsciiFail("\xe1\x82\xab\xe2\x89\xae\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3", true); } // [V6]
20944496test { try toUnicodeFail("\xe1\x82\xab<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3"); } // [C2]
4497test { try toAsciiFail("\xe1\x82\xab<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3", false); } // [C2]
4498test { try toAsciiFail("\xe1\x82\xab<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3", true); } // [V6]
20954499test { try toUnicodeFail("\xe2\xb4\x8b<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3"); } // [C2]
4500test { try toAsciiFail("\xe2\xb4\x8b<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3", false); } // [C2]
4501test { try toAsciiFail("\xe2\xb4\x8b<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3", true); } // [V6]
20964502test { try toUnicodeFail("\xe2\xb4\x8b\xe2\x89\xae\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3"); } // [C2]
4503test { try toAsciiFail("\xe2\xb4\x8b\xe2\x89\xae\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3", false); } // [C2]
4504test { try toAsciiFail("\xe2\xb4\x8b\xe2\x89\xae\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3", true); } // [V6]
20974505test { try toUnicodeFail("xn--gdhz03bxt42d.xn--lrb6479j"); } // [V6]
4506test { try toAsciiFail("xn--gdhz03bxt42d.xn--lrb6479j", false); } // [V6]
4507test { try toAsciiFail("xn--gdhz03bxt42d.xn--lrb6479j", true); } // [V6]
20984508test { try toUnicodeFail("xn--gdhz03bxt42d.xn--lrb506jqr4n"); } // [C2]
4509test { try toAsciiFail("xn--gdhz03bxt42d.xn--lrb506jqr4n", false); } // [C2]
4510test { try toAsciiFail("xn--gdhz03bxt42d.xn--lrb506jqr4n", true); } // [C2]
20994511test { try toUnicodeFail("xn--jnd802gsm17c.xn--lrb6479j"); } // [V6, V7]
4512test { try toAsciiFail("xn--jnd802gsm17c.xn--lrb6479j", false); } // [V6, V7]
4513test { try toAsciiFail("xn--jnd802gsm17c.xn--lrb6479j", true); } // [V6, V7]
21004514test { try toUnicodeFail("xn--jnd802gsm17c.xn--lrb506jqr4n"); } // [C2, V7]
4515test { try toAsciiFail("xn--jnd802gsm17c.xn--lrb506jqr4n", false); } // [C2, V7]
4516test { try toAsciiFail("xn--jnd802gsm17c.xn--lrb506jqr4n", true); } // [C2, V7]
21014517test { try toUnicodeFail("\xe1\x9f\x92.\xf2\x86\xbd\x92\xe2\x89\xaf"); } // [V6, V7]
4518test { try toAsciiFail("\xe1\x9f\x92.\xf2\x86\xbd\x92\xe2\x89\xaf", false); } // [V6, V7]
4519test { try toAsciiFail("\xe1\x9f\x92.\xf2\x86\xbd\x92\xe2\x89\xaf", true); } // [V6, V7]
21024520test { try toUnicodeFail("\xe1\x9f\x92.\xf2\x86\xbd\x92>\xcc\xb8"); } // [V6, V7]
4521test { try toAsciiFail("\xe1\x9f\x92.\xf2\x86\xbd\x92>\xcc\xb8", false); } // [V6, V7]
4522test { try toAsciiFail("\xe1\x9f\x92.\xf2\x86\xbd\x92>\xcc\xb8", true); } // [V6, V7]
21034523test { try toUnicodeFail("xn--u4e.xn--hdhx0084f"); } // [V6, V7]
4524test { try toAsciiFail("xn--u4e.xn--hdhx0084f", false); } // [V6, V7]
4525test { try toAsciiFail("xn--u4e.xn--hdhx0084f", true); } // [V6, V7]
21044526test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xba\xc3\x89\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
4527test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xba\xc3\x89\xe2\xac\x93\xf0\x91\x84\xb4", false); } // [V6, V7]
4528test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xba\xc3\x89\xe2\xac\x93\xf0\x91\x84\xb4", true); } // [V6, V7]
21054529test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xbaE\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
4530test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xbaE\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4", false); } // [V6, V7]
4531test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xbaE\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4", true); } // [V6, V7]
21064532test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\x89\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
4533test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\x89\xe2\xac\x93\xf0\x91\x84\xb4", false); } // [V6, V7]
4534test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\x89\xe2\xac\x93\xf0\x91\x84\xb4", true); } // [V6, V7]
21074535test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbaE\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
4536test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbaE\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4", false); } // [V6, V7]
4537test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbaE\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4", true); } // [V6, V7]
21084538test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbae\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
4539test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbae\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4", false); } // [V6, V7]
4540test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbae\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4", true); } // [V6, V7]
21094541test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\xa9\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
4542test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\xa9\xe2\xac\x93\xf0\x91\x84\xb4", false); } // [V6, V7]
4543test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\xa9\xe2\xac\x93\xf0\x91\x84\xb4", true); } // [V6, V7]
21104544test { try toUnicodeFail("xn--c0e34564d.xn--9ca207st53lg3f"); } // [V6, V7]
4545test { try toAsciiFail("xn--c0e34564d.xn--9ca207st53lg3f", false); } // [V6, V7]
4546test { try toAsciiFail("xn--c0e34564d.xn--9ca207st53lg3f", true); } // [V6, V7]
21114547test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xbae\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
4548test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xbae\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4", false); } // [V6, V7]
4549test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xbae\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4", true); } // [V6, V7]
21124550test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xba\xc3\xa9\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
4551test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xba\xc3\xa9\xe2\xac\x93\xf0\x91\x84\xb4", false); } // [V6, V7]
4552test { try toAsciiFail("\xf1\x8f\x81\x87\xe1\x9c\xb4\xef\xbc\x8e\xf0\x90\xa8\xba\xc3\xa9\xe2\xac\x93\xf0\x91\x84\xb4", true); } // [V6, V7]
21134553test { try toUnicodeFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xef\xbd\xa1\xef\xb8\x92\xf0\x9e\xa4\xba"); } // [B1, B6, C2, V7]
4554test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xef\xbd\xa1\xef\xb8\x92\xf0\x9e\xa4\xba", false); } // [B1, B6, C2, V7]
4555test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xef\xbd\xa1\xef\xb8\x92\xf0\x9e\xa4\xba", true); } // [B1, V7]
21144556test { try toUnicodeFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\xba"); } // [B6, C2, X4_2]
4557test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\xba", false); } // [B6, C2, A4_2]
4558test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xe3\x80\x82\xe3\x80\x82\xf0\x9e\xa4\xba", true); } // [A4_2]
21154559test { 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]
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]
21164562test { try toUnicodeFail("xn--09e4694e..xn--ye6h"); } // [X4_2]
4563test { try toAsciiFail("xn--09e4694e..xn--ye6h", false); } // [A4_2]
4564test { try toAsciiFail("xn--09e4694e..xn--ye6h", true); } // [A4_2]
21174565test { try toUnicodeFail("xn--09e669a6x8j..xn--ye6h"); } // [B6, C2, X4_2]
4566test { try toAsciiFail("xn--09e669a6x8j..xn--ye6h", false); } // [B6, C2, A4_2]
4567test { try toAsciiFail("xn--09e669a6x8j..xn--ye6h", true); } // [B6, C2, A4_2]
21184568test { try toUnicodeFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xef\xbd\xa1\xef\xb8\x92\xf0\x9e\xa4\x98"); } // [B1, B6, C2, V7]
4569test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xef\xbd\xa1\xef\xb8\x92\xf0\x9e\xa4\x98", false); } // [B1, B6, C2, V7]
4570test { try toAsciiFail("\xe1\xa2\x87\xe2\x80\x8d\xea\xa3\x84\xef\xbd\xa1\xef\xb8\x92\xf0\x9e\xa4\x98", true); } // [B1, V7]
21194571test { try toUnicodeFail("xn--09e4694e.xn--y86cv562b"); } // [B1, V7]
4572test { try toAsciiFail("xn--09e4694e.xn--y86cv562b", false); } // [B1, V7]
4573test { try toAsciiFail("xn--09e4694e.xn--y86cv562b", true); } // [B1, V7]
21204574test { try toUnicodeFail("xn--09e669a6x8j.xn--y86cv562b"); } // [B1, B6, C2, V7]
4575test { try toAsciiFail("xn--09e669a6x8j.xn--y86cv562b", false); } // [B1, B6, C2, V7]
4576test { try toAsciiFail("xn--09e669a6x8j.xn--y86cv562b", true); } // [B1, B6, C2, V7]
21214577test { try toUnicodeFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xef\xbd\xa1\xd8\xb1\xde\xaa\xe2\x89\xae"); } // [B2, B3, V7]
4578test { try toAsciiFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xef\xbd\xa1\xd8\xb1\xde\xaa\xe2\x89\xae", false); } // [B2, B3, V7]
4579test { try toAsciiFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xef\xbd\xa1\xd8\xb1\xde\xaa\xe2\x89\xae", true); } // [B2, B3, V7]
21224580test { try toUnicodeFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xef\xbd\xa1\xd8\xb1\xde\xaa<\xcc\xb8"); } // [B2, B3, V7]
4581test { try toAsciiFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xef\xbd\xa1\xd8\xb1\xde\xaa<\xcc\xb8", false); } // [B2, B3, V7]
4582test { try toAsciiFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xef\xbd\xa1\xd8\xb1\xde\xaa<\xcc\xb8", true); } // [B2, B3, V7]
21234583test { try toUnicodeFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xe3\x80\x82\xd8\xb1\xde\xaa\xe2\x89\xae"); } // [B2, B3, V7]
4584test { try toAsciiFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xe3\x80\x82\xd8\xb1\xde\xaa\xe2\x89\xae", false); } // [B2, B3, V7]
4585test { try toAsciiFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xe3\x80\x82\xd8\xb1\xde\xaa\xe2\x89\xae", true); } // [B2, B3, V7]
21244586test { try toUnicodeFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xe3\x80\x82\xd8\xb1\xde\xaa<\xcc\xb8"); } // [B2, B3, V7]
4587test { try toAsciiFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xe3\x80\x82\xd8\xb1\xde\xaa<\xcc\xb8", false); } // [B2, B3, V7]
4588test { try toAsciiFail("\xf0\x9e\xa9\xac\xf2\x96\x99\xb1\xe1\x9c\x94\xe2\x80\x8c\xe3\x80\x82\xd8\xb1\xde\xaa<\xcc\xb8", true); } // [B2, B3, V7]
21254589test { try toUnicodeFail("xn--fze3930v7hz6b.xn--wgb86el10d"); } // [B2, B3, V7]
4590test { try toAsciiFail("xn--fze3930v7hz6b.xn--wgb86el10d", false); } // [B2, B3, V7]
4591test { try toAsciiFail("xn--fze3930v7hz6b.xn--wgb86el10d", true); } // [B2, B3, V7]
21264592test { try toUnicodeFail("xn--fze607b9651bjwl7c.xn--wgb86el10d"); } // [B2, B3, V7]
4593test { try toAsciiFail("xn--fze607b9651bjwl7c.xn--wgb86el10d", false); } // [B2, B3, V7]
4594test { try toAsciiFail("xn--fze607b9651bjwl7c.xn--wgb86el10d", true); } // [B2, B3, V7]
21274595test { try toUnicodeFail("\xe1\x83\x83\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4"); } // [V6]
4596test { try toAsciiFail("\xe1\x83\x83\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4", false); } // [V6]
4597test { try toAsciiFail("\xe1\x83\x83\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4", true); } // [V6]
21284598test { try toUnicodeFail("\xe1\x83\x83.\xd9\x93\xe1\xa2\xa4"); } // [V6]
4599test { try toAsciiFail("\xe1\x83\x83.\xd9\x93\xe1\xa2\xa4", false); } // [V6]
4600test { try toAsciiFail("\xe1\x83\x83.\xd9\x93\xe1\xa2\xa4", true); } // [V6]
21294601test { try toUnicodeFail("\xe2\xb4\xa3.\xd9\x93\xe1\xa2\xa4"); } // [V6]
4602test { try toAsciiFail("\xe2\xb4\xa3.\xd9\x93\xe1\xa2\xa4", false); } // [V6]
4603test { try toAsciiFail("\xe2\xb4\xa3.\xd9\x93\xe1\xa2\xa4", true); } // [V6]
21304604test { try toUnicodeFail("xn--rlj.xn--vhb294g"); } // [V6]
4605test { try toAsciiFail("xn--rlj.xn--vhb294g", false); } // [V6]
4606test { try toAsciiFail("xn--rlj.xn--vhb294g", true); } // [V6]
21314607test { try toUnicodeFail("\xe2\xb4\xa3\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4"); } // [V6]
4608test { try toAsciiFail("\xe2\xb4\xa3\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4", false); } // [V6]
4609test { try toAsciiFail("\xe2\xb4\xa3\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4", true); } // [V6]
21324610test { try toUnicodeFail("xn--7nd.xn--vhb294g"); } // [V6, V7]
4611test { try toAsciiFail("xn--7nd.xn--vhb294g", false); } // [V6, V7]
4612test { try toAsciiFail("xn--7nd.xn--vhb294g", true); } // [V6, V7]
21334613test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xec\x8b\x89\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90"); } // [V7]
4614test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xec\x8b\x89\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90", false); } // [V7]
4615test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xec\x8b\x89\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90", true); } // [V7]
21344616test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90"); } // [V7]
4617test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90", false); } // [V7]
4618test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90", true); } // [V7]
21354619test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90"); } // [V7]
4620test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90", false); } // [V7]
4621test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90", true); } // [V7]
21364622test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90"); } // [V7]
4623test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90", false); } // [V7]
4624test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90", true); } // [V7]
21374625test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90"); } // [V7]
4626test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90", false); } // [V7]
4627test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90", true); } // [V7]
21384628test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90"); } // [V7]
4629test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90", false); } // [V7]
4630test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90", true); } // [V7]
21394631test { try toUnicodeFail("xn--oub.xn--sljz109bpe25dviva"); } // [V7]
4632test { try toAsciiFail("xn--oub.xn--sljz109bpe25dviva", false); } // [V7]
4633test { try toAsciiFail("xn--oub.xn--sljz109bpe25dviva", true); } // [V7]
21404634test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90"); } // [V7]
4635test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90", false); } // [V7]
4636test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xb0\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90", true); } // [V7]
21414637test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xec\x8b\x89\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90"); } // [V7]
4638test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xec\x8b\x89\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90", false); } // [V7]
4639test { try toAsciiFail("\xf3\xa0\x84\x88\xe0\xa0\x93\xef\xbc\x8e\xec\x8b\x89\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90", true); } // [V7]
21424640test { try toUnicodeFail("xn--oub.xn--8nd9522gpe69cviva"); } // [V7]
4641test { try toAsciiFail("xn--oub.xn--8nd9522gpe69cviva", false); } // [V7]
4642test { try toAsciiFail("xn--oub.xn--8nd9522gpe69cviva", true); } // [V7]
21434643test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae\xef\xbc\x8e\xe2\xa4\x82"); } // [V6]
4644test { try toAsciiFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae\xef\xbc\x8e\xe2\xa4\x82", false); } // [V6]
4645test { try toAsciiFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae\xef\xbc\x8e\xe2\xa4\x82", true); } // [V6]
21444646test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8\xef\xbc\x8e\xe2\xa4\x82"); } // [V6]
4647test { try toAsciiFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8\xef\xbc\x8e\xe2\xa4\x82", false); } // [V6]
4648test { try toAsciiFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8\xef\xbc\x8e\xe2\xa4\x82", true); } // [V6]
21454649test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae.\xe2\xa4\x82"); } // [V6]
4650test { try toAsciiFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae.\xe2\xa4\x82", false); } // [V6]
4651test { try toAsciiFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae.\xe2\xa4\x82", true); } // [V6]
21464652test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8.\xe2\xa4\x82"); } // [V6]
4653test { try toAsciiFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8.\xe2\xa4\x82", false); } // [V6]
4654test { try toAsciiFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8.\xe2\xa4\x82", true); } // [V6]
21474655test { try toUnicodeFail("xn--gdh1854cn19c.xn--kqi"); } // [V6]
4656test { try toAsciiFail("xn--gdh1854cn19c.xn--kqi", false); } // [V6]
4657test { try toAsciiFail("xn--gdh1854cn19c.xn--kqi", true); } // [V6]
21484658test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3"); } // [B1, V7]
4659test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3", false); } // [B1, V7]
4660test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3", true); } // [B1, V7]
21494661test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3"); } // [B1, V7]
4662test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3", false); } // [B1, V7]
4663test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3", true); } // [B1, V7]
21504664test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe1\x82\xa3"); } // [B1, V7]
4665test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe1\x82\xa3", false); } // [B1, V7]
4666test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe1\x82\xa3", true); } // [B1, V7]
21514667test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe1\x82\xa3"); } // [B1, V7]
4668test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe1\x82\xa3", false); } // [B1, V7]
4669test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe1\x82\xa3", true); } // [B1, V7]
21524670test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2.\xe2\xb4\x83"); } // [B1, V7]
4671test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2.\xe2\xb4\x83", false); } // [B1, V7]
4672test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2.\xe2\xb4\x83", true); } // [B1, V7]
21534673test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2.\xe2\xb4\x83"); } // [B1, V7]
4674test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2.\xe2\xb4\x83", false); } // [B1, V7]
4675test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2.\xe2\xb4\x83", true); } // [B1, V7]
21544676test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe2\xb4\x83"); } // [B1, V7]
4677test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe2\xb4\x83", false); } // [B1, V7]
4678test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe2\xb4\x83", true); } // [B1, V7]
21554679test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe2\xb4\x83"); } // [B1, V7]
4680test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe2\xb4\x83", false); } // [B1, V7]
4681test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe2\xb4\x83", true); } // [B1, V7]
21564682test { try toUnicodeFail("xn--mfb266l4khr54u.xn--ukj"); } // [B1, V7]
4683test { try toAsciiFail("xn--mfb266l4khr54u.xn--ukj", false); } // [B1, V7]
4684test { try toAsciiFail("xn--mfb266l4khr54u.xn--ukj", true); } // [B1, V7]
21574685test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7]
4686test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83", false); } // [B1, V7]
4687test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83", true); } // [B1, V7]
21584688test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7]
4689test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83", false); } // [B1, V7]
4690test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83", true); } // [B1, V7]
21594691test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7]
4692test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83", false); } // [B1, V7]
4693test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83", true); } // [B1, V7]
21604694test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7]
4695test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83", false); } // [B1, V7]
4696test { try toAsciiFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83", true); } // [B1, V7]
21614697test { try toUnicodeFail("xn--mfb416c0jox02t.xn--ukj"); } // [B1, V7]
4698test { try toAsciiFail("xn--mfb416c0jox02t.xn--ukj", false); } // [B1, V7]
4699test { try toAsciiFail("xn--mfb416c0jox02t.xn--ukj", true); } // [B1, V7]
21624700test { try toUnicodeFail("xn--mfb416c0jox02t.xn--bnd"); } // [B1, V7]
4701test { try toAsciiFail("xn--mfb416c0jox02t.xn--bnd", false); } // [B1, V7]
4702test { try toAsciiFail("xn--mfb416c0jox02t.xn--bnd", true); } // [B1, V7]
21634703test { try toUnicodeFail("\xf0\x91\x81\x85\xe3\x80\x82-"); } // [V3, V6]
4704test { try toAsciiFail("\xf0\x91\x81\x85\xe3\x80\x82-", false); } // [V3, V6]
4705test { try toAsciiFail("\xf0\x91\x81\x85\xe3\x80\x82-", true); } // [V3, V6]
21644706test { try toUnicodeFail("xn--210d.-"); } // [V3, V6]
4707test { try toAsciiFail("xn--210d.-", false); } // [V3, V6]
4708test { try toAsciiFail("xn--210d.-", true); } // [V3, V6]
21654709test { try toUnicodeFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xef\xbd\xa1\xe9\xa5\x88\xe2\x89\xa0\xd9\xa4"); } // [B1, B5, B6, V6, V7]
4710test { try toAsciiFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xef\xbd\xa1\xe9\xa5\x88\xe2\x89\xa0\xd9\xa4", false); } // [B1, B5, B6, V6, V7]
4711test { try toAsciiFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xef\xbd\xa1\xe9\xa5\x88\xe2\x89\xa0\xd9\xa4", true); } // [B1, B5, B6, V6, V7]
21664712test { try toUnicodeFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xef\xbd\xa1\xe9\xa5\x88=\xcc\xb8\xd9\xa4"); } // [B1, B5, B6, V6, V7]
4713test { try toAsciiFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xef\xbd\xa1\xe9\xa5\x88=\xcc\xb8\xd9\xa4", false); } // [B1, B5, B6, V6, V7]
4714test { try toAsciiFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xef\xbd\xa1\xe9\xa5\x88=\xcc\xb8\xd9\xa4", true); } // [B1, B5, B6, V6, V7]
21674715test { try toUnicodeFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xe3\x80\x82\xe9\xa5\x88\xe2\x89\xa0\xd9\xa4"); } // [B1, B5, B6, V6, V7]
4716test { try toAsciiFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xe3\x80\x82\xe9\xa5\x88\xe2\x89\xa0\xd9\xa4", false); } // [B1, B5, B6, V6, V7]
4717test { try toAsciiFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xe3\x80\x82\xe9\xa5\x88\xe2\x89\xa0\xd9\xa4", true); } // [B1, B5, B6, V6, V7]
21684718test { try toUnicodeFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xe3\x80\x82\xe9\xa5\x88=\xcc\xb8\xd9\xa4"); } // [B1, B5, B6, V6, V7]
4719test { try toAsciiFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xe3\x80\x82\xe9\xa5\x88=\xcc\xb8\xd9\xa4", false); } // [B1, B5, B6, V6, V7]
4720test { try toAsciiFail("\xe0\xb7\x8a\xf2\x95\xb8\xbd\xf3\xa0\xa7\xb1\xe3\x80\x82\xe9\xa5\x88=\xcc\xb8\xd9\xa4", true); } // [B1, B5, B6, V6, V7]
21694721test { try toUnicodeFail("xn--h1c25913jfwov.xn--dib144ler5f"); } // [B1, B5, B6, V6, V7]
4722test { try toAsciiFail("xn--h1c25913jfwov.xn--dib144ler5f", false); } // [B1, B5, B6, V6, V7]
4723test { try toAsciiFail("xn--h1c25913jfwov.xn--dib144ler5f", true); } // [B1, B5, B6, V6, V7]
21704724test { try toUnicodeFail("\xf0\x9e\xa5\x83\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
4725test { try toAsciiFail("\xf0\x9e\xa5\x83\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4", false); } // [B1, B2]
4726test { try toAsciiFail("\xf0\x9e\xa5\x83\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4", true); } // [B1, B2]
21714727test { try toUnicodeFail("\xf0\x9e\xa5\x83\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
4728test { try toAsciiFail("\xf0\x9e\xa5\x83\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4", false); } // [B1, B2]
4729test { try toAsciiFail("\xf0\x9e\xa5\x83\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4", true); } // [B1, B2]
21724730test { try toUnicodeFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
4731test { try toAsciiFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4", false); } // [B1, B2]
4732test { try toAsciiFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4", true); } // [B1, B2]
21734733test { try toUnicodeFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
4734test { try toAsciiFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4", false); } // [B1, B2]
4735test { try toAsciiFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4", true); } // [B1, B2]
21744736test { try toUnicodeFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
4737test { try toAsciiFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4", false); } // [B1, B2]
4738test { try toAsciiFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4", true); } // [B1, B2]
21754739test { try toUnicodeFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
4740test { try toAsciiFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4", false); } // [B1, B2]
4741test { try toAsciiFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4", true); } // [B1, B2]
21764742test { try toUnicodeFail("xn--7-v4j2826w.xn--4-ogoy01bou3i"); } // [B1, B2]
4743test { try toAsciiFail("xn--7-v4j2826w.xn--4-ogoy01bou3i", false); } // [B1, B2]
4744test { try toAsciiFail("xn--7-v4j2826w.xn--4-ogoy01bou3i", true); } // [B1, B2]
21774745test { try toUnicodeFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
4746test { try toAsciiFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4", false); } // [B1, B2]
4747test { try toAsciiFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4", true); } // [B1, B2]
21784748test { try toUnicodeFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
4749test { try toAsciiFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4", false); } // [B1, B2]
4750test { try toAsciiFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa0\xe2\x81\xb7\xef\xbd\xa1\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4", true); } // [B1, B2]
21794751test { try toUnicodeFail("\xf2\xa0\xbf\xaf\xe1\xa1\xb3-\xf0\x91\x90\xbb.\xf0\x90\xb9\xb4\xf0\x90\x8b\xab\xd8\x85\xf3\x91\x8e\xb3"); } // [B1, B6, V7]
4752test { try toAsciiFail("\xf2\xa0\xbf\xaf\xe1\xa1\xb3-\xf0\x91\x90\xbb.\xf0\x90\xb9\xb4\xf0\x90\x8b\xab\xd8\x85\xf3\x91\x8e\xb3", false); } // [B1, B6, V7]
4753test { try toAsciiFail("\xf2\xa0\xbf\xaf\xe1\xa1\xb3-\xf0\x91\x90\xbb.\xf0\x90\xb9\xb4\xf0\x90\x8b\xab\xd8\x85\xf3\x91\x8e\xb3", true); } // [B1, B6, V7]
21804754test { try toUnicodeFail("xn----m9j3429kxmy7e.xn--nfb7950kdihrp812a"); } // [B1, B6, V7]
4755test { try toAsciiFail("xn----m9j3429kxmy7e.xn--nfb7950kdihrp812a", false); } // [B1, B6, V7]
4756test { try toAsciiFail("xn----m9j3429kxmy7e.xn--nfb7950kdihrp812a", true); } // [B1, B6, V7]
21814757test { try toUnicodeFail("\xf2\xa0\xb6\x86\xe0\xa1\x85\xe0\xa9\x91.\xeb\x84\xa8-\xf3\xb6\xa7\x88"); } // [B5, B6, V7]
4758test { try toAsciiFail("\xf2\xa0\xb6\x86\xe0\xa1\x85\xe0\xa9\x91.\xeb\x84\xa8-\xf3\xb6\xa7\x88", false); } // [B5, B6, V7]
4759test { try toAsciiFail("\xf2\xa0\xb6\x86\xe0\xa1\x85\xe0\xa9\x91.\xeb\x84\xa8-\xf3\xb6\xa7\x88", true); } // [B5, B6, V7]
21824760test { try toUnicodeFail("\xf2\xa0\xb6\x86\xe0\xa1\x85\xe0\xa9\x91.\xe1\x84\x82\xe1\x85\xa6\xe1\x86\xab-\xf3\xb6\xa7\x88"); } // [B5, B6, V7]
4761test { try toAsciiFail("\xf2\xa0\xb6\x86\xe0\xa1\x85\xe0\xa9\x91.\xe1\x84\x82\xe1\x85\xa6\xe1\x86\xab-\xf3\xb6\xa7\x88", false); } // [B5, B6, V7]
4762test { try toAsciiFail("\xf2\xa0\xb6\x86\xe0\xa1\x85\xe0\xa9\x91.\xe1\x84\x82\xe1\x85\xa6\xe1\x86\xab-\xf3\xb6\xa7\x88", true); } // [B5, B6, V7]
21834763test { try toUnicodeFail("xn--3vb26hb6834b.xn----i37ez0957g"); } // [B5, B6, V7]
4764test { try toAsciiFail("xn--3vb26hb6834b.xn----i37ez0957g", false); } // [B5, B6, V7]
4765test { try toAsciiFail("xn--3vb26hb6834b.xn----i37ez0957g", true); } // [B5, B6, V7]
21844766test { try toUnicodeFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d\xe2\x92\x88\xe3\x80\x82\xf0\x90\x8b\xa3-"); } // [C2, V3, V7]
4767test { try toAsciiFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d\xe2\x92\x88\xe3\x80\x82\xf0\x90\x8b\xa3-", false); } // [C2, V3, V7]
4768test { try toAsciiFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d\xe2\x92\x88\xe3\x80\x82\xf0\x90\x8b\xa3-", true); } // [V3, V7]
21854769test { try toUnicodeFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d1.\xe3\x80\x82\xf0\x90\x8b\xa3-"); } // [C2, V3, X4_2]
4770test { try toAsciiFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d1.\xe3\x80\x82\xf0\x90\x8b\xa3-", false); } // [C2, V3, A4_2]
4771test { try toAsciiFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d1.\xe3\x80\x82\xf0\x90\x8b\xa3-", true); } // [V3, A4_2]
21864772test { try toUnicodeFail("xn--1-o7j0610f..xn----381i"); } // [V3, X4_2]
4773test { try toAsciiFail("xn--1-o7j0610f..xn----381i", false); } // [V3, A4_2]
4774test { try toAsciiFail("xn--1-o7j0610f..xn----381i", true); } // [V3, A4_2]
21874775test { try toUnicodeFail("xn--1-o7j663bdl7m..xn----381i"); } // [C2, V3, X4_2]
4776test { try toAsciiFail("xn--1-o7j663bdl7m..xn----381i", false); } // [C2, V3, A4_2]
4777test { try toAsciiFail("xn--1-o7j663bdl7m..xn----381i", true); } // [C2, V3, A4_2]
21884778test { try toUnicodeFail("xn--h8e863drj7h.xn----381i"); } // [V3, V7]
4779test { try toAsciiFail("xn--h8e863drj7h.xn----381i", false); } // [V3, V7]
4780test { try toAsciiFail("xn--h8e863drj7h.xn----381i", true); } // [V3, V7]
21894781test { try toUnicodeFail("xn--h8e470bl0d838o.xn----381i"); } // [C2, V3, V7]
4782test { try toAsciiFail("xn--h8e470bl0d838o.xn----381i", false); } // [C2, V3, V7]
4783test { try toAsciiFail("xn--h8e470bl0d838o.xn----381i", true); } // [C2, V3, V7]
21904784test { try toUnicodeFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9"); } // [B5, B6, V7]
4785test { try toAsciiFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9", false); } // [B5, B6, V7]
4786test { try toAsciiFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9", true); } // [B5, B6, V7]
21914787test { try toUnicodeFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9"); } // [B5, B6, V7]
4788test { try toAsciiFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9", false); } // [B5, B6, V7]
4789test { try toAsciiFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9", true); } // [B5, B6, V7]
21924790test { try toUnicodeFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9"); } // [B5, B6, V7]
4791test { try toAsciiFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9", false); } // [B5, B6, V7]
4792test { try toAsciiFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9", true); } // [B5, B6, V7]
21934793test { try toUnicodeFail("xn--3kj.xn--yib19191t"); } // [B5, B6, V7]
4794test { try toAsciiFail("xn--3kj.xn--yib19191t", false); } // [B5, B6, V7]
4795test { try toAsciiFail("xn--3kj.xn--yib19191t", true); } // [B5, B6, V7]
21944796test { try toUnicodeFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9"); } // [B5, B6, V7]
4797test { try toAsciiFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9", false); } // [B5, B6, V7]
4798test { try toAsciiFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9", true); } // [B5, B6, V7]
21954799test { try toUnicodeFail("xn--knd.xn--yib19191t"); } // [B5, B6, V7]
4800test { try toAsciiFail("xn--knd.xn--yib19191t", false); } // [B5, B6, V7]
4801test { try toAsciiFail("xn--knd.xn--yib19191t", true); } // [B5, B6, V7]
21964802test { try toUnicodeFail("\xf0\x90\xae\x81\xf0\x90\xad\xb1.\xe0\xbe\x84\xe1\x8d\x9e-\xe1\xb3\xba"); } // [B1, V6]
4803test { try toAsciiFail("\xf0\x90\xae\x81\xf0\x90\xad\xb1.\xe0\xbe\x84\xe1\x8d\x9e-\xe1\xb3\xba", false); } // [B1, V6]
4804test { try toAsciiFail("\xf0\x90\xae\x81\xf0\x90\xad\xb1.\xe0\xbe\x84\xe1\x8d\x9e-\xe1\xb3\xba", true); } // [B1, V6]
21974805test { try toUnicodeFail("xn--r19c5a.xn----xjg270ag3m"); } // [B1, V6]
4806test { try toAsciiFail("xn--r19c5a.xn----xjg270ag3m", false); } // [B1, V6]
4807test { try toAsciiFail("xn--r19c5a.xn----xjg270ag3m", true); } // [B1, V6]
21984808test { try toUnicodeFail("\xe2\x92\x88\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88"); } // [C2, V3, V7]
4809test { try toAsciiFail("\xe2\x92\x88\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88", false); } // [C2, V3, V7]
4810test { try toAsciiFail("\xe2\x92\x88\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88", true); } // [V3, V7]
21994811test { try toUnicodeFail("\xe2\x92\x88\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xe1\x84\x8b\xe1\x85\xae\xe1\x86\xbf"); } // [C2, V3, V7]
4812test { try toAsciiFail("\xe2\x92\x88\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xe1\x84\x8b\xe1\x85\xae\xe1\x86\xbf", false); } // [C2, V3, V7]
4813test { try toAsciiFail("\xe2\x92\x88\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xe1\x84\x8b\xe1\x85\xae\xe1\x86\xbf", true); } // [V3, V7]
22004814test { try toUnicodeFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88"); } // [C2, V3]
4815test { try toAsciiFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88", false); } // [C2, V3]
4816test { try toAsciiFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88", true); } // [V3]
22014817test { try toUnicodeFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xe1\x84\x8b\xe1\x85\xae\xe1\x86\xbf"); } // [C2, V3]
4818test { try toAsciiFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xe1\x84\x8b\xe1\x85\xae\xe1\x86\xbf", false); } // [C2, V3]
4819test { try toAsciiFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xe1\x84\x8b\xe1\x85\xae\xe1\x86\xbf", true); } // [V3]
22024820test { try toUnicodeFail("1.xn----zw5a.xn--kp5b"); } // [V3]
4821test { try toAsciiFail("1.xn----zw5a.xn--kp5b", false); } // [V3]
4822test { try toAsciiFail("1.xn----zw5a.xn--kp5b", true); } // [V3]
22034823test { try toUnicodeFail("1.xn----tgnz80r.xn--kp5b"); } // [C2, V3]
4824test { try toAsciiFail("1.xn----tgnz80r.xn--kp5b", false); } // [C2, V3]
4825test { try toAsciiFail("1.xn----tgnz80r.xn--kp5b", true); } // [C2, V3]
22044826test { try toUnicodeFail("xn----dcp160o.xn--kp5b"); } // [V3, V7]
4827test { try toAsciiFail("xn----dcp160o.xn--kp5b", false); } // [V3, V7]
4828test { try toAsciiFail("xn----dcp160o.xn--kp5b", true); } // [V3, V7]
22054829test { try toUnicodeFail("xn----tgnx5rjr6c.xn--kp5b"); } // [C2, V3, V7]
4830test { try toAsciiFail("xn----tgnx5rjr6c.xn--kp5b", false); } // [C2, V3, V7]
4831test { try toAsciiFail("xn----tgnx5rjr6c.xn--kp5b", true); } // [C2, V3, V7]
22064832test { try toUnicodeFail("\xe3\x81\xa6\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\xb3\xbd\xdf\xb3"); } // [C1, V7]
4833test { try toAsciiFail("\xe3\x81\xa6\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\xb3\xbd\xdf\xb3", false); } // [C1, V7]
4834test { try toAsciiFail("\xe3\x81\xa6\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\xb3\xbd\xdf\xb3", true); } // [V7]
22074835test { try toUnicodeFail("xn--m9j.xn--rtb10784p"); } // [V7]
4836test { try toAsciiFail("xn--m9j.xn--rtb10784p", false); } // [V7]
4837test { try toAsciiFail("xn--m9j.xn--rtb10784p", true); } // [V7]
22084838test { try toUnicodeFail("xn--m9j.xn--rtb154j9l73w"); } // [C1, V7]
4839test { try toAsciiFail("xn--m9j.xn--rtb154j9l73w", false); } // [C1, V7]
4840test { try toAsciiFail("xn--m9j.xn--rtb154j9l73w", true); } // [C1, V7]
22094841test { try toUnicodeFail("\xcf\x82\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6]
4842test { try toAsciiFail("\xcf\x82\xef\xbd\xa1\xea\xa7\x80\xdb\xa7", false); } // [V6]
4843test { try toAsciiFail("\xcf\x82\xef\xbd\xa1\xea\xa7\x80\xdb\xa7", true); } // [V6]
22104844test { try toUnicodeFail("\xcf\x82\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6]
4845test { try toAsciiFail("\xcf\x82\xe3\x80\x82\xea\xa7\x80\xdb\xa7", false); } // [V6]
4846test { try toAsciiFail("\xcf\x82\xe3\x80\x82\xea\xa7\x80\xdb\xa7", true); } // [V6]
22114847test { try toUnicodeFail("\xce\xa3\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6]
4848test { try toAsciiFail("\xce\xa3\xe3\x80\x82\xea\xa7\x80\xdb\xa7", false); } // [V6]
4849test { try toAsciiFail("\xce\xa3\xe3\x80\x82\xea\xa7\x80\xdb\xa7", true); } // [V6]
22124850test { try toUnicodeFail("\xcf\x83\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6]
4851test { try toAsciiFail("\xcf\x83\xe3\x80\x82\xea\xa7\x80\xdb\xa7", false); } // [V6]
4852test { try toAsciiFail("\xcf\x83\xe3\x80\x82\xea\xa7\x80\xdb\xa7", true); } // [V6]
22134853test { try toUnicodeFail("xn--4xa.xn--3lb1944f"); } // [V6]
4854test { try toAsciiFail("xn--4xa.xn--3lb1944f", false); } // [V6]
4855test { try toAsciiFail("xn--4xa.xn--3lb1944f", true); } // [V6]
22144856test { try toUnicodeFail("xn--3xa.xn--3lb1944f"); } // [V6]
4857test { try toAsciiFail("xn--3xa.xn--3lb1944f", false); } // [V6]
4858test { try toAsciiFail("xn--3xa.xn--3lb1944f", true); } // [V6]
22154859test { try toUnicodeFail("\xce\xa3\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6]
4860test { try toAsciiFail("\xce\xa3\xef\xbd\xa1\xea\xa7\x80\xdb\xa7", false); } // [V6]
4861test { try toAsciiFail("\xce\xa3\xef\xbd\xa1\xea\xa7\x80\xdb\xa7", true); } // [V6]
22164862test { try toUnicodeFail("\xcf\x83\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6]
4863test { try toAsciiFail("\xcf\x83\xef\xbd\xa1\xea\xa7\x80\xdb\xa7", false); } // [V6]
4864test { try toAsciiFail("\xcf\x83\xef\xbd\xa1\xea\xa7\x80\xdb\xa7", true); } // [V6]
22174865test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe1\x82\xb5"); } // [V6, V7]
4866test { try toAsciiFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe1\x82\xb5", false); } // [V6, V7]
4867test { try toAsciiFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe1\x82\xb5", true); } // [V6, V7]
22184868test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe2\xb4\x82\xe2\xb4\x95"); } // [V6, V7]
4869test { try toAsciiFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe2\xb4\x82\xe2\xb4\x95", false); } // [V6, V7]
4870test { try toAsciiFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe2\xb4\x82\xe2\xb4\x95", true); } // [V6, V7]
22194871test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe2\xb4\x95"); } // [V6, V7]
4872test { try toAsciiFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe2\xb4\x95", false); } // [V6, V7]
4873test { try toAsciiFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe2\xb4\x95", true); } // [V6, V7]
22204874test { try toUnicodeFail("xn--xmc83135idcxza.xn--tkjwb"); } // [V6, V7]
4875test { try toAsciiFail("xn--xmc83135idcxza.xn--tkjwb", false); } // [V6, V7]
4876test { try toAsciiFail("xn--xmc83135idcxza.xn--tkjwb", true); } // [V6, V7]
22214877test { try toUnicodeFail("xn--xmc83135idcxza.xn--9md086l"); } // [V6, V7]
4878test { try toAsciiFail("xn--xmc83135idcxza.xn--9md086l", false); } // [V6, V7]
4879test { try toAsciiFail("xn--xmc83135idcxza.xn--9md086l", true); } // [V6, V7]
22224880test { try toUnicodeFail("xn--xmc83135idcxza.xn--9md2b"); } // [V6, V7]
4881test { try toAsciiFail("xn--xmc83135idcxza.xn--9md2b", false); } // [V6, V7]
4882test { try toAsciiFail("xn--xmc83135idcxza.xn--9md2b", true); } // [V6, V7]
22234883test { try toUnicodeFail("\xe1\xb0\xb2\xf0\x9f\x84\x88\xe2\xbe\x9b\xd6\xa6\xef\xbc\x8e\xe2\x80\x8d\xf2\xaf\xa5\xa4\xdf\xbd"); } // [C2, V6, V7, U1]
4884test { try toAsciiFail("\xe1\xb0\xb2\xf0\x9f\x84\x88\xe2\xbe\x9b\xd6\xa6\xef\xbc\x8e\xe2\x80\x8d\xf2\xaf\xa5\xa4\xdf\xbd", false); } // [C2, V6, V7, U1]
4885test { try toAsciiFail("\xe1\xb0\xb2\xf0\x9f\x84\x88\xe2\xbe\x9b\xd6\xa6\xef\xbc\x8e\xe2\x80\x8d\xf2\xaf\xa5\xa4\xdf\xbd", true); } // [V6, V7, U1]
22244886test { try toUnicodeFail("\xe1\xb0\xb27,\xe8\xb5\xb0\xd6\xa6.\xe2\x80\x8d\xf2\xaf\xa5\xa4\xdf\xbd"); } // [C2, V6, V7, U1]
4887test { try toAsciiFail("\xe1\xb0\xb27,\xe8\xb5\xb0\xd6\xa6.\xe2\x80\x8d\xf2\xaf\xa5\xa4\xdf\xbd", false); } // [C2, V6, V7, U1]
4888test { try toAsciiFail("\xe1\xb0\xb27,\xe8\xb5\xb0\xd6\xa6.\xe2\x80\x8d\xf2\xaf\xa5\xa4\xdf\xbd", true); } // [V6, V7, U1]
22254889test { try toUnicodeFail("xn--7,-bid991urn3k.xn--1tb13454l"); } // [V6, V7, U1]
4890test { try toAsciiFail("xn--7,-bid991urn3k.xn--1tb13454l", false); } // [V6, V7, U1]
4891test { try toAsciiFail("xn--7,-bid991urn3k.xn--1tb13454l", true); } // [V6, V7, U1]
22264892test { try toUnicodeFail("xn--7,-bid991urn3k.xn--1tb334j1197q"); } // [C2, V6, V7, U1]
4893test { try toAsciiFail("xn--7,-bid991urn3k.xn--1tb334j1197q", false); } // [C2, V6, V7, U1]
4894test { try toAsciiFail("xn--7,-bid991urn3k.xn--1tb334j1197q", true); } // [C2, V6, V7, U1]
22274895test { try toUnicodeFail("xn--xcb756i493fwi5o.xn--1tb13454l"); } // [V6, V7]
4896test { try toAsciiFail("xn--xcb756i493fwi5o.xn--1tb13454l", false); } // [V6, V7]
4897test { try toAsciiFail("xn--xcb756i493fwi5o.xn--1tb13454l", true); } // [V6, V7]
22284898test { try toUnicodeFail("xn--xcb756i493fwi5o.xn--1tb334j1197q"); } // [C2, V6, V7]
4899test { try toAsciiFail("xn--xcb756i493fwi5o.xn--1tb334j1197q", false); } // [C2, V6, V7]
4900test { try toAsciiFail("xn--xcb756i493fwi5o.xn--1tb334j1197q", true); } // [C2, V6, V7]
22294901test { try toUnicodeFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x80\xf1\x9d\x84\xbb"); } // [V7]
4902test { try toAsciiFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x80\xf1\x9d\x84\xbb", false); } // [V7]
4903test { try toAsciiFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x80\xf1\x9d\x84\xbb", true); } // [V7]
22304904test { try toUnicodeFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x80\xf1\x9d\x84\xbb"); } // [V7]
4905test { try toAsciiFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x80\xf1\x9d\x84\xbb", false); } // [V7]
4906test { try toAsciiFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x80\xf1\x9d\x84\xbb", true); } // [V7]
22314907test { try toUnicodeFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x8f\xf1\x9d\x84\xbb"); } // [V7]
4908test { try toAsciiFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x8f\xf1\x9d\x84\xbb", false); } // [V7]
4909test { try toAsciiFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x8f\xf1\x9d\x84\xbb", true); } // [V7]
22324910test { try toUnicodeFail("xn--hbf.xn--s5a83117e"); } // [V7]
4911test { try toAsciiFail("xn--hbf.xn--s5a83117e", false); } // [V7]
4912test { try toAsciiFail("xn--hbf.xn--s5a83117e", true); } // [V7]
22334913test { try toUnicodeFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x8f\xf1\x9d\x84\xbb"); } // [V7]
4914test { try toAsciiFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x8f\xf1\x9d\x84\xbb", false); } // [V7]
4915test { try toAsciiFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x8f\xf1\x9d\x84\xbb", true); } // [V7]
22344916test { try toUnicodeFail("xn--hbf.xn--d5a86117e"); } // [V7]
4917test { try toAsciiFail("xn--hbf.xn--d5a86117e", false); } // [V7]
4918test { try toAsciiFail("xn--hbf.xn--d5a86117e", true); } // [V7]
22354919test { try toUnicodeFail("\xd9\xa8-\xe3\x80\x82\xf1\xa0\x8f\x87\xf0\x9f\x9d\x86\xe1\x84\xbe"); } // [B1, V3, V7]
4920test { try toAsciiFail("\xd9\xa8-\xe3\x80\x82\xf1\xa0\x8f\x87\xf0\x9f\x9d\x86\xe1\x84\xbe", false); } // [B1, V3, V7]
4921test { try toAsciiFail("\xd9\xa8-\xe3\x80\x82\xf1\xa0\x8f\x87\xf0\x9f\x9d\x86\xe1\x84\xbe", true); } // [B1, V3, V7]
22364922test { try toUnicodeFail("xn----oqc.xn--qrd1699v327w"); } // [B1, V3, V7]
4923test { try toAsciiFail("xn----oqc.xn--qrd1699v327w", false); } // [B1, V3, V7]
4924test { try toAsciiFail("xn----oqc.xn--qrd1699v327w", true); } // [B1, V3, V7]
22374925test { try toUnicodeFail("-\xf0\x90\x8b\xb7\xf0\x96\xbe\x91\xe3\x80\x82\xf3\xa0\x86\xac"); } // [V3]
4926test { try toAsciiFail("-\xf0\x90\x8b\xb7\xf0\x96\xbe\x91\xe3\x80\x82\xf3\xa0\x86\xac", false); } // [V3, A4_2]
4927test { try toAsciiFail("-\xf0\x90\x8b\xb7\xf0\x96\xbe\x91\xe3\x80\x82\xf3\xa0\x86\xac", true); } // [V3, A4_2]
22384928test { try toUnicodeFail("xn----991iq40y."); } // [V3]
4929test { try toAsciiFail("xn----991iq40y.", false); } // [V3, A4_2]
4930test { try toAsciiFail("xn----991iq40y.", true); } // [V3, A4_2]
22394931test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xb3\xf0\x9f\x90\xb4\xeb\xa9\x88.\xea\xaf\xad\xf1\x90\xa1\xbc"); } // [B1, C1, V6, V7]
4932test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xb3\xf0\x9f\x90\xb4\xeb\xa9\x88.\xea\xaf\xad\xf1\x90\xa1\xbc", false); } // [B1, C1, V6, V7]
4933test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xb3\xf0\x9f\x90\xb4\xeb\xa9\x88.\xea\xaf\xad\xf1\x90\xa1\xbc", true); } // [B1, V6, V7]
22404934test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xb3\xf0\x9f\x90\xb4\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xb7.\xea\xaf\xad\xf1\x90\xa1\xbc"); } // [B1, C1, V6, V7]
4935test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xb3\xf0\x9f\x90\xb4\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xb7.\xea\xaf\xad\xf1\x90\xa1\xbc", false); } // [B1, C1, V6, V7]
4936test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xb3\xf0\x9f\x90\xb4\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xb7.\xea\xaf\xad\xf1\x90\xa1\xbc", true); } // [B1, V6, V7]
22414937test { try toUnicodeFail("xn--422b325mqb6i.xn--429a8682s"); } // [B1, V6, V7]
4938test { try toAsciiFail("xn--422b325mqb6i.xn--429a8682s", false); } // [B1, V6, V7]
4939test { try toAsciiFail("xn--422b325mqb6i.xn--429a8682s", true); } // [B1, V6, V7]
22424940test { try toUnicodeFail("xn--0ug6681d406b7bwk.xn--429a8682s"); } // [B1, C1, V6, V7]
4941test { try toAsciiFail("xn--0ug6681d406b7bwk.xn--429a8682s", false); } // [B1, C1, V6, V7]
4942test { try toAsciiFail("xn--0ug6681d406b7bwk.xn--429a8682s", true); } // [B1, C1, V6, V7]
22434943test { try toUnicodeFail("\xe2\x89\xae.\xdd\xa9\xd8\x83"); } // [B1, V7]
4944test { try toAsciiFail("\xe2\x89\xae.\xdd\xa9\xd8\x83", false); } // [B1, V7]
4945test { try toAsciiFail("\xe2\x89\xae.\xdd\xa9\xd8\x83", true); } // [B1, V7]
22444946test { try toUnicodeFail("<\xcc\xb8.\xdd\xa9\xd8\x83"); } // [B1, V7]
4947test { try toAsciiFail("<\xcc\xb8.\xdd\xa9\xd8\x83", false); } // [B1, V7]
4948test { try toAsciiFail("<\xcc\xb8.\xdd\xa9\xd8\x83", true); } // [B1, V7]
22454949test { try toUnicodeFail("xn--gdh.xn--lfb92e"); } // [B1, V7]
4950test { try toAsciiFail("xn--gdh.xn--lfb92e", false); } // [B1, V7]
4951test { try toAsciiFail("xn--gdh.xn--lfb92e", true); } // [B1, V7]
22464952test { try toUnicodeFail("\xf0\x90\xb6\xad\xe2\xbe\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x9a\xb6\xf2\x9f\xb1\x83\xf0\x9e\xb0\x98"); } // [B1, B2, B3, C1, V7]
4953test { try toAsciiFail("\xf0\x90\xb6\xad\xe2\xbe\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x9a\xb6\xf2\x9f\xb1\x83\xf0\x9e\xb0\x98", false); } // [B1, B2, B3, C1, V7]
4954test { try toAsciiFail("\xf0\x90\xb6\xad\xe2\xbe\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x9a\xb6\xf2\x9f\xb1\x83\xf0\x9e\xb0\x98", true); } // [B2, B3, B5, B6, V6, V7]
22474955test { try toUnicodeFail("\xf0\x90\xb6\xad\xe8\x88\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x91\x9a\xb6\xf2\x9f\xb1\x83\xf0\x9e\xb0\x98"); } // [B1, B2, B3, C1, V7]
4956test { try toAsciiFail("\xf0\x90\xb6\xad\xe8\x88\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x91\x9a\xb6\xf2\x9f\xb1\x83\xf0\x9e\xb0\x98", false); } // [B1, B2, B3, C1, V7]
4957test { try toAsciiFail("\xf0\x90\xb6\xad\xe8\x88\x8c\xe3\x80\x82\xe2\x80\x8c\xf0\x91\x9a\xb6\xf2\x9f\xb1\x83\xf0\x9e\xb0\x98", true); } // [B2, B3, B5, B6, V6, V7]
22484958test { try toUnicodeFail("xn--tc1ao37z.xn--6e2dw557azds2d"); } // [B2, B3, B5, B6, V6, V7]
4959test { try toAsciiFail("xn--tc1ao37z.xn--6e2dw557azds2d", false); } // [B2, B3, B5, B6, V6, V7]
4960test { try toAsciiFail("xn--tc1ao37z.xn--6e2dw557azds2d", true); } // [B2, B3, B5, B6, V6, V7]
22494961test { try toUnicodeFail("xn--tc1ao37z.xn--0ugx728gi1nfwqz2e"); } // [B1, B2, B3, C1, V7]
4962test { try toAsciiFail("xn--tc1ao37z.xn--0ugx728gi1nfwqz2e", false); } // [B1, B2, B3, C1, V7]
4963test { try toAsciiFail("xn--tc1ao37z.xn--0ugx728gi1nfwqz2e", true); } // [B1, B2, B3, C1, V7]
22504964test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3]
4965test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82", false); } // [B1, C1, V3]
4966test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82", true); } // [B1, B6, V3]
22514967test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3]
4968test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82", false); } // [B1, C1, V3]
4969test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82", true); } // [B1, B6, V3]
22524970test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3]
4971test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82", false); } // [B1, C1, V3]
4972test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82", true); } // [B1, B6, V3]
22534973test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xce\xa3\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
4974test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.1\xce\xa3\xf0\x9e\xb4\xba\xce\xa3", false); } // [B1, C1, V3]
4975test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.1\xce\xa3\xf0\x9e\xb4\xba\xce\xa3", true); } // [B1, B6, V3]
22544976test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x83\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3]
4977test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x83\xf0\x9e\xb4\xba\xcf\x83", false); } // [B1, C1, V3]
4978test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x83\xf0\x9e\xb4\xba\xcf\x83", true); } // [B1, B6, V3]
22554979test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x83\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
4980test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x83\xf0\x9e\xb4\xba\xce\xa3", false); } // [B1, C1, V3]
4981test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x83\xf0\x9e\xb4\xba\xce\xa3", true); } // [B1, B6, V3]
22564982test { try toUnicodeFail("xn----2ws.xn--1-0mba52321c"); } // [B1, B6, V3]
4983test { try toAsciiFail("xn----2ws.xn--1-0mba52321c", false); } // [B1, B6, V3]
4984test { try toAsciiFail("xn----2ws.xn--1-0mba52321c", true); } // [B1, B6, V3]
22574985test { try toUnicodeFail("xn----rgn530d.xn--1-0mba52321c"); } // [B1, C1, V3]
4986test { try toAsciiFail("xn----rgn530d.xn--1-0mba52321c", false); } // [B1, C1, V3]
4987test { try toAsciiFail("xn----rgn530d.xn--1-0mba52321c", true); } // [B1, C1, V3]
22584988test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
4989test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xce\xa3", false); } // [B1, C1, V3]
4990test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xce\xa3", true); } // [B1, B6, V3]
22594991test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3]
4992test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x83", false); } // [B1, C1, V3]
4993test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x83", true); } // [B1, B6, V3]
22604994test { try toUnicodeFail("xn----rgn530d.xn--1-ymbd52321c"); } // [B1, C1, V3]
4995test { try toAsciiFail("xn----rgn530d.xn--1-ymbd52321c", false); } // [B1, C1, V3]
4996test { try toAsciiFail("xn----rgn530d.xn--1-ymbd52321c", true); } // [B1, C1, V3]
22614997test { try toUnicodeFail("xn----rgn530d.xn--1-ymba92321c"); } // [B1, C1, V3]
4998test { try toAsciiFail("xn----rgn530d.xn--1-ymba92321c", false); } // [B1, C1, V3]
4999test { try toAsciiFail("xn----rgn530d.xn--1-ymba92321c", true); } // [B1, C1, V3]
22625000test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3]
5001test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82", false); } // [B1, C1, V3]
5002test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82", true); } // [B1, B6, V3]
22635003test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xce\xa3\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
5004test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xce\xa3\xf0\x9e\xb4\xba\xce\xa3", false); } // [B1, C1, V3]
5005test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xce\xa3\xf0\x9e\xb4\xba\xce\xa3", true); } // [B1, B6, V3]
22645006test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3]
5007test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xcf\x83", false); } // [B1, C1, V3]
5008test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xcf\x83", true); } // [B1, B6, V3]
22655009test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
5010test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xce\xa3", false); } // [B1, C1, V3]
5011test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xce\xa3", true); } // [B1, B6, V3]
22665012test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
5013test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xce\xa3", false); } // [B1, C1, V3]
5014test { try toAsciiFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xce\xa3", true); } // [B1, B6, V3]
22675015test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3]
5016test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x83", false); } // [B1, C1, V3]
5017test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x83", true); } // [B1, B6, V3]
22685018test { try toUnicodeFail("xn----z1g.xn--1-0mba52321c"); } // [B1, B6, V3, V7]
5019test { try toAsciiFail("xn----z1g.xn--1-0mba52321c", false); } // [B1, B6, V3, V7]
5020test { try toAsciiFail("xn----z1g.xn--1-0mba52321c", true); } // [B1, B6, V3, V7]
22695021test { try toUnicodeFail("xn----z1g168i.xn--1-0mba52321c"); } // [B1, C1, V3, V7]
5022test { try toAsciiFail("xn----z1g168i.xn--1-0mba52321c", false); } // [B1, C1, V3, V7]
5023test { try toAsciiFail("xn----z1g168i.xn--1-0mba52321c", true); } // [B1, C1, V3, V7]
22705024test { try toUnicodeFail("xn----z1g168i.xn--1-ymbd52321c"); } // [B1, C1, V3, V7]
5025test { try toAsciiFail("xn----z1g168i.xn--1-ymbd52321c", false); } // [B1, C1, V3, V7]
5026test { try toAsciiFail("xn----z1g168i.xn--1-ymbd52321c", true); } // [B1, C1, V3, V7]
22715027test { try toUnicodeFail("xn----z1g168i.xn--1-ymba92321c"); } // [B1, C1, V3, V7]
5028test { try toAsciiFail("xn----z1g168i.xn--1-ymba92321c", false); } // [B1, C1, V3, V7]
5029test { try toAsciiFail("xn----z1g168i.xn--1-ymba92321c", true); } // [B1, C1, V3, V7]
22725030test { try toUnicodeFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xef\xbd\xa1\xf0\x9d\x9f\xaa\xe1\x82\xbc"); } // [V6]
5031test { try toAsciiFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xef\xbd\xa1\xf0\x9d\x9f\xaa\xe1\x82\xbc", false); } // [V6]
5032test { try toAsciiFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xef\xbd\xa1\xf0\x9d\x9f\xaa\xe1\x82\xbc", true); } // [V6]
22735033test { try toUnicodeFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe1\x82\xbc"); } // [V6]
5034test { try toAsciiFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe1\x82\xbc", false); } // [V6]
5035test { try toAsciiFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe1\x82\xbc", true); } // [V6]
22745036test { try toUnicodeFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe2\xb4\x9c"); } // [V6]
5037test { try toAsciiFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe2\xb4\x9c", false); } // [V6]
5038test { try toAsciiFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe2\xb4\x9c", true); } // [V6]
22755039test { try toUnicodeFail("xn--7m3d291b.xn--8-vws"); } // [V6]
5040test { try toAsciiFail("xn--7m3d291b.xn--8-vws", false); } // [V6]
5041test { try toAsciiFail("xn--7m3d291b.xn--8-vws", true); } // [V6]
22765042test { try toUnicodeFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xef\xbd\xa1\xf0\x9d\x9f\xaa\xe2\xb4\x9c"); } // [V6]
5043test { try toAsciiFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xef\xbd\xa1\xf0\x9d\x9f\xaa\xe2\xb4\x9c", false); } // [V6]
5044test { try toAsciiFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xef\xbd\xa1\xf0\x9d\x9f\xaa\xe2\xb4\x9c", true); } // [V6]
22775045test { try toUnicodeFail("xn--7m3d291b.xn--8-s1g"); } // [V6, V7]
5046test { try toAsciiFail("xn--7m3d291b.xn--8-s1g", false); } // [V6, V7]
5047test { try toAsciiFail("xn--7m3d291b.xn--8-s1g", true); } // [V6, V7]
22785048test { try toUnicodeFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xef\xbd\xa1\xeb\xad\x95\xe1\xa2\x9d\xe1\x9e\xb9"); } // [B5, B6]
5049test { try toAsciiFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xef\xbd\xa1\xeb\xad\x95\xe1\xa2\x9d\xe1\x9e\xb9", false); } // [B5, B6]
5050test { try toAsciiFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xef\xbd\xa1\xeb\xad\x95\xe1\xa2\x9d\xe1\x9e\xb9", true); } // [B5, B6]
22795051test { try toUnicodeFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xef\xbd\xa1\xe1\x84\x86\xe1\x85\xaf\xe1\x86\xac\xe1\xa2\x9d\xe1\x9e\xb9"); } // [B5, B6]
5052test { try toAsciiFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xef\xbd\xa1\xe1\x84\x86\xe1\x85\xaf\xe1\x86\xac\xe1\xa2\x9d\xe1\x9e\xb9", false); } // [B5, B6]
5053test { try toAsciiFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xef\xbd\xa1\xe1\x84\x86\xe1\x85\xaf\xe1\x86\xac\xe1\xa2\x9d\xe1\x9e\xb9", true); } // [B5, B6]
22805054test { try toUnicodeFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xe3\x80\x82\xeb\xad\x95\xe1\xa2\x9d\xe1\x9e\xb9"); } // [B5, B6]
5055test { try toAsciiFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xe3\x80\x82\xeb\xad\x95\xe1\xa2\x9d\xe1\x9e\xb9", false); } // [B5, B6]
5056test { try toAsciiFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xe3\x80\x82\xeb\xad\x95\xe1\xa2\x9d\xe1\x9e\xb9", true); } // [B5, B6]
22815057test { try toUnicodeFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xe3\x80\x82\xe1\x84\x86\xe1\x85\xaf\xe1\x86\xac\xe1\xa2\x9d\xe1\x9e\xb9"); } // [B5, B6]
5058test { try toAsciiFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xe3\x80\x82\xe1\x84\x86\xe1\x85\xaf\xe1\x86\xac\xe1\xa2\x9d\xe1\x9e\xb9", false); } // [B5, B6]
5059test { try toAsciiFail("\xe4\xaa\x8f\xda\xab\xdf\xa0\xe0\xa5\x81\xe3\x80\x82\xe1\x84\x86\xe1\x85\xaf\xe1\x86\xac\xe1\xa2\x9d\xe1\x9e\xb9", true); } // [B5, B6]
22825060test { try toUnicodeFail("xn--ekb23dj4at01n.xn--43e96bh910b"); } // [B5, B6]
5061test { try toAsciiFail("xn--ekb23dj4at01n.xn--43e96bh910b", false); } // [B5, B6]
5062test { try toAsciiFail("xn--ekb23dj4at01n.xn--43e96bh910b", true); } // [B5, B6]
22835063test { try toUnicodeFail("\xe1\xae\xab\xef\xbd\xa1\xf0\x9f\x82\x89\xf3\xa0\x81\xb0"); } // [V6, V7]
5064test { try toAsciiFail("\xe1\xae\xab\xef\xbd\xa1\xf0\x9f\x82\x89\xf3\xa0\x81\xb0", false); } // [V6, V7]
5065test { try toAsciiFail("\xe1\xae\xab\xef\xbd\xa1\xf0\x9f\x82\x89\xf3\xa0\x81\xb0", true); } // [V6, V7]
22845066test { try toUnicodeFail("\xe1\xae\xab\xe3\x80\x82\xf0\x9f\x82\x89\xf3\xa0\x81\xb0"); } // [V6, V7]
5067test { try toAsciiFail("\xe1\xae\xab\xe3\x80\x82\xf0\x9f\x82\x89\xf3\xa0\x81\xb0", false); } // [V6, V7]
5068test { try toAsciiFail("\xe1\xae\xab\xe3\x80\x82\xf0\x9f\x82\x89\xf3\xa0\x81\xb0", true); } // [V6, V7]
22855069test { try toUnicodeFail("xn--zxf.xn--fx7ho0250c"); } // [V6, V7]
5070test { try toAsciiFail("xn--zxf.xn--fx7ho0250c", false); } // [V6, V7]
5071test { try toAsciiFail("xn--zxf.xn--fx7ho0250c", true); } // [V6, V7]
22865072test { try toUnicodeFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5"); } // [B5, C2, V7]
5073test { try toAsciiFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5", false); } // [B5, C2, V7]
5074test { try toAsciiFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5", true); } // [B5, V7]
22875075test { try toUnicodeFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5"); } // [B5, C2, V7]
5076test { try toAsciiFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5", false); } // [B5, C2, V7]
5077test { try toAsciiFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5", true); } // [B5, V7]
22885078test { try toUnicodeFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5"); } // [B5, C2, V7]
5079test { try toAsciiFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5", false); } // [B5, C2, V7]
5080test { try toAsciiFail("\xf3\xa9\x8e\x83\xe0\xab\x84\xe3\x80\x82\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xae\xf0\x91\x88\xb5", true); } // [B5, V7]
22895081test { try toUnicodeFail("xn--dfc53161q.xn--4xa8467k5mc"); } // [B5, V7]
5082test { try toAsciiFail("xn--dfc53161q.xn--4xa8467k5mc", false); } // [B5, V7]
5083test { try toAsciiFail("xn--dfc53161q.xn--4xa8467k5mc", true); } // [B5, V7]
22905084test { try toUnicodeFail("xn--dfc53161q.xn--4xa895lzo7nsfd"); } // [B5, C2, V7]
5085test { try toAsciiFail("xn--dfc53161q.xn--4xa895lzo7nsfd", false); } // [B5, C2, V7]
5086test { try toAsciiFail("xn--dfc53161q.xn--4xa895lzo7nsfd", true); } // [B5, C2, V7]
22915087test { try toUnicodeFail("xn--dfc53161q.xn--3xa006lzo7nsfd"); } // [B5, C2, V7]
5088test { try toAsciiFail("xn--dfc53161q.xn--3xa006lzo7nsfd", false); } // [B5, C2, V7]
5089test { try toAsciiFail("xn--dfc53161q.xn--3xa006lzo7nsfd", true); } // [B5, C2, V7]
22925090test { try toUnicodeFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab\xef\xbc\x8e\xf0\x91\x98\xbf"); } // [B1, B2, B3, V6]
5091test { try toAsciiFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab\xef\xbc\x8e\xf0\x91\x98\xbf", false); } // [B1, B2, B3, V6]
5092test { try toAsciiFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab\xef\xbc\x8e\xf0\x91\x98\xbf", true); } // [B1, B2, B3, V6]
22935093test { try toUnicodeFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab.\xf0\x91\x98\xbf"); } // [B1, B2, B3, V6]
5094test { try toAsciiFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab.\xf0\x91\x98\xbf", false); } // [B1, B2, B3, V6]
5095test { try toAsciiFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab.\xf0\x91\x98\xbf", true); } // [B1, B2, B3, V6]
22945096test { try toUnicodeFail("xn--17e9625js1h.xn--sb2d"); } // [B1, B2, B3, V6]
5097test { try toAsciiFail("xn--17e9625js1h.xn--sb2d", false); } // [B1, B2, B3, V6]
5098test { try toAsciiFail("xn--17e9625js1h.xn--sb2d", true); } // [B1, B2, B3, V6]
22955099test { try toUnicodeFail("\xf3\xac\x9a\xb6\xf3\xb8\x8b\x96\xf2\x96\xa9\xb0-\xe3\x80\x82\xe2\x80\x8c"); } // [C1, V3, V7]
5100test { try toAsciiFail("\xf3\xac\x9a\xb6\xf3\xb8\x8b\x96\xf2\x96\xa9\xb0-\xe3\x80\x82\xe2\x80\x8c", false); } // [C1, V3, V7]
5101test { try toAsciiFail("\xf3\xac\x9a\xb6\xf3\xb8\x8b\x96\xf2\x96\xa9\xb0-\xe3\x80\x82\xe2\x80\x8c", true); } // [V3, V7, A4_2]
22965102test { try toUnicodeFail("xn----7i12hu122k9ire."); } // [V3, V7]
5103test { try toAsciiFail("xn----7i12hu122k9ire.", false); } // [V3, V7, A4_2]
5104test { try toAsciiFail("xn----7i12hu122k9ire.", true); } // [V3, V7, A4_2]
22975105test { try toUnicodeFail("xn----7i12hu122k9ire.xn--0ug"); } // [C1, V3, V7]
5106test { try toAsciiFail("xn----7i12hu122k9ire.xn--0ug", false); } // [C1, V3, V7]
5107test { try toAsciiFail("xn----7i12hu122k9ire.xn--0ug", true); } // [C1, V3, V7]
22985108test { try toUnicodeFail("\xf0\x90\xb9\xa3\xef\xbc\x8e\xdf\x82"); } // [B1]
5109test { try toAsciiFail("\xf0\x90\xb9\xa3\xef\xbc\x8e\xdf\x82", false); } // [B1]
5110test { try toAsciiFail("\xf0\x90\xb9\xa3\xef\xbc\x8e\xdf\x82", true); } // [B1]
22995111test { try toUnicodeFail("\xf0\x90\xb9\xa3.\xdf\x82"); } // [B1]
5112test { try toAsciiFail("\xf0\x90\xb9\xa3.\xdf\x82", false); } // [B1]
5113test { try toAsciiFail("\xf0\x90\xb9\xa3.\xdf\x82", true); } // [B1]
23005114test { try toUnicodeFail("xn--bo0d.xn--dsb"); } // [B1]
5115test { try toAsciiFail("xn--bo0d.xn--dsb", false); } // [B1]
5116test { try toAsciiFail("xn--bo0d.xn--dsb", true); } // [B1]
23015117test { try toUnicodeFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x83"); } // [B1, V3]
5118test { try toAsciiFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x83", false); } // [B1, V3]
5119test { try toAsciiFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x83", true); } // [B1, V3]
23025120test { try toUnicodeFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x83"); } // [B1, V3]
5121test { try toAsciiFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x83", false); } // [B1, V3]
5122test { try toAsciiFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x83", true); } // [B1, V3]
23035123test { try toUnicodeFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x84"); } // [B1, V3]
5124test { try toAsciiFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x84", false); } // [B1, V3]
5125test { try toAsciiFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x84", true); } // [B1, V3]
23045126test { try toUnicodeFail("xn----8cd.xn--r5g"); } // [B1, V3]
5127test { try toAsciiFail("xn----8cd.xn--r5g", false); } // [B1, V3]
5128test { try toAsciiFail("xn----8cd.xn--r5g", true); } // [B1, V3]
23055129test { try toUnicodeFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x84"); } // [B1, V3]
5130test { try toAsciiFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x84", false); } // [B1, V3]
5131test { try toAsciiFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x84", true); } // [B1, V3]
23065132test { try toUnicodeFail("xn----8cd.xn--q5g"); } // [B1, V3, V7]
5133test { try toAsciiFail("xn----8cd.xn--q5g", false); } // [B1, V3, V7]
5134test { try toAsciiFail("xn----8cd.xn--q5g", true); } // [B1, V3, V7]
23075135test { try toUnicodeFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82\xc3\x9f\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf"); } // [B1, B5, B6, C1, C2, V7]
5136test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82\xc3\x9f\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", false); } // [B1, B5, B6, C1, C2, V7]
5137test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82\xc3\x9f\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", true); } // [B1, B5, B6, V3, V7]
23085138test { try toUnicodeFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82\xc3\x9f\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf"); } // [B1, B5, B6, C1, C2, V3, X4_2]
5139test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82\xc3\x9f\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", false); } // [B1, B5, B6, C1, C2, V3, A4_2]
5140test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82\xc3\x9f\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", true); } // [B1, B5, B6, V3, A4_2]
23095141test { try toUnicodeFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f"); } // [B1, B5, B6, C1, C2, V3, X4_2]
5142test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f", false); } // [B1, B5, B6, C1, C2, V3, A4_2]
5143test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f", true); } // [B1, B5, B6, V3, A4_2]
23105144test { try toUnicodeFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf"); } // [B1, B5, B6, C1, C2, V3, X4_2]
5145test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", false); } // [B1, B5, B6, C1, C2, V3, A4_2]
5146test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", true); } // [B1, B5, B6, V3, A4_2]
23115147test { try toUnicodeFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f"); } // [B1, B5, B6, C1, C2, V3, X4_2]
5148test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f", false); } // [B1, B5, B6, C1, C2, V3, A4_2]
5149test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f", true); } // [B1, B5, B6, V3, A4_2]
23125150test { try toUnicodeFail("-..xn--ss-h46c5711e"); } // [B1, B5, B6, V3, X4_2]
5151test { try toAsciiFail("-..xn--ss-h46c5711e", false); } // [B1, B5, B6, V3, A4_2]
5152test { try toAsciiFail("-..xn--ss-h46c5711e", true); } // [B1, B5, B6, V3, A4_2]
23135153test { try toUnicodeFail("xn----tgn..xn--ss-k1ts75zb8ym"); } // [B1, B5, B6, C1, C2, V3, X4_2]
5154test { try toAsciiFail("xn----tgn..xn--ss-k1ts75zb8ym", false); } // [B1, B5, B6, C1, C2, V3, A4_2]
5155test { try toAsciiFail("xn----tgn..xn--ss-k1ts75zb8ym", true); } // [B1, B5, B6, C1, C2, V3, A4_2]
23145156test { try toUnicodeFail("xn----tgn..xn--zca670n5f0binyk"); } // [B1, B5, B6, C1, C2, V3, X4_2]
5157test { try toAsciiFail("xn----tgn..xn--zca670n5f0binyk", false); } // [B1, B5, B6, C1, C2, V3, A4_2]
5158test { try toAsciiFail("xn----tgn..xn--zca670n5f0binyk", true); } // [B1, B5, B6, C1, C2, V3, A4_2]
23155159test { try toUnicodeFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f"); } // [B1, B5, B6, C1, C2, V7]
5160test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f", false); } // [B1, B5, B6, C1, C2, V7]
5161test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f", true); } // [B1, B5, B6, V3, V7]
23165162test { try toUnicodeFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf"); } // [B1, B5, B6, C1, C2, V7]
5163test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", false); } // [B1, B5, B6, C1, C2, V7]
5164test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", true); } // [B1, B5, B6, V3, V7]
23175165test { try toUnicodeFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f"); } // [B1, B5, B6, C1, C2, V7]
5166test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f", false); } // [B1, B5, B6, C1, C2, V7]
5167test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\x9f", true); } // [B1, B5, B6, V3, V7]
23185168test { try toUnicodeFail("xn----o89h.xn--ss-h46c5711e"); } // [B1, B5, B6, V3, V7]
5169test { try toAsciiFail("xn----o89h.xn--ss-h46c5711e", false); } // [B1, B5, B6, V3, V7]
5170test { try toAsciiFail("xn----o89h.xn--ss-h46c5711e", true); } // [B1, B5, B6, V3, V7]
23195171test { try toUnicodeFail("xn----tgnt341h.xn--ss-k1ts75zb8ym"); } // [B1, B5, B6, C1, C2, V7]
5172test { try toAsciiFail("xn----tgnt341h.xn--ss-k1ts75zb8ym", false); } // [B1, B5, B6, C1, C2, V7]
5173test { try toAsciiFail("xn----tgnt341h.xn--ss-k1ts75zb8ym", true); } // [B1, B5, B6, C1, C2, V7]
23205174test { try toUnicodeFail("xn----tgnt341h.xn--zca670n5f0binyk"); } // [B1, B5, B6, C1, C2, V7]
5175test { try toAsciiFail("xn----tgnt341h.xn--zca670n5f0binyk", false); } // [B1, B5, B6, C1, C2, V7]
5176test { try toAsciiFail("xn----tgnt341h.xn--zca670n5f0binyk", true); } // [B1, B5, B6, C1, C2, V7]
23215177test { try toUnicodeFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf"); } // [B1, B5, B6, C1, C2, V3, X4_2]
5178test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", false); } // [B1, B5, B6, C1, C2, V3, A4_2]
5179test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", true); } // [B1, B5, B6, V3, A4_2]
23225180test { try toUnicodeFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf"); } // [B1, B5, B6, C1, C2, V3, X4_2]
5181test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", false); } // [B1, B5, B6, C1, C2, V3, A4_2]
5182test { try toAsciiFail("\xe2\x80\x8d-\xe3\x80\x82\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", true); } // [B1, B5, B6, V3, A4_2]
23235183test { try toUnicodeFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf"); } // [B1, B5, B6, C1, C2, V7]
5184test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", false); } // [B1, B5, B6, C1, C2, V7]
5185test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82SS\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", true); } // [B1, B5, B6, V3, V7]
23245186test { try toUnicodeFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf"); } // [B1, B5, B6, C1, C2, V7]
5187test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", false); } // [B1, B5, B6, C1, C2, V7]
5188test { try toAsciiFail("\xe2\x80\x8d-\xef\xb8\x92\xf3\xa0\x84\x84\xe3\x80\x82Ss\xe5\x93\x91\xe2\x80\x8c\xf0\x90\xb5\xbf", true); } // [B1, B5, B6, V3, V7]
23255189test { try toUnicodeFail("\xef\xb8\x92\xef\xbc\x8e\xef\xb8\xaf\xf0\x91\x91\x82"); } // [V6, V7]
5190test { try toAsciiFail("\xef\xb8\x92\xef\xbc\x8e\xef\xb8\xaf\xf0\x91\x91\x82", false); } // [V6, V7]
5191test { try toAsciiFail("\xef\xb8\x92\xef\xbc\x8e\xef\xb8\xaf\xf0\x91\x91\x82", true); } // [V6, V7]
23265192test { try toUnicodeFail("\xef\xb8\x92\xef\xbc\x8e\xf0\x91\x91\x82\xef\xb8\xaf"); } // [V6, V7]
5193test { try toAsciiFail("\xef\xb8\x92\xef\xbc\x8e\xf0\x91\x91\x82\xef\xb8\xaf", false); } // [V6, V7]
5194test { try toAsciiFail("\xef\xb8\x92\xef\xbc\x8e\xf0\x91\x91\x82\xef\xb8\xaf", true); } // [V6, V7]
23275195test { try toUnicodeFail("\xe3\x80\x82.\xf0\x91\x91\x82\xef\xb8\xaf"); } // [V6, X4_2]
5196test { try toAsciiFail("\xe3\x80\x82.\xf0\x91\x91\x82\xef\xb8\xaf", false); } // [V6, A4_2]
5197test { try toAsciiFail("\xe3\x80\x82.\xf0\x91\x91\x82\xef\xb8\xaf", true); } // [V6, A4_2]
23285198test { try toUnicodeFail("..xn--s96cu30b"); } // [V6, X4_2]
5199test { try toAsciiFail("..xn--s96cu30b", false); } // [V6, A4_2]
5200test { try toAsciiFail("..xn--s96cu30b", true); } // [V6, A4_2]
23295201test { try toUnicodeFail("xn--y86c.xn--s96cu30b"); } // [V6, V7]
5202test { try toAsciiFail("xn--y86c.xn--s96cu30b", false); } // [V6, V7]
5203test { try toAsciiFail("xn--y86c.xn--s96cu30b", true); } // [V6, V7]
23305204test { try toUnicodeFail("\xea\xa4\xac\xe3\x80\x82\xe2\x80\x8d"); } // [C2, V6]
5205test { try toAsciiFail("\xea\xa4\xac\xe3\x80\x82\xe2\x80\x8d", false); } // [C2, V6]
5206test { try toAsciiFail("\xea\xa4\xac\xe3\x80\x82\xe2\x80\x8d", true); } // [V6, A4_2]
23315207test { try toUnicodeFail("xn--zi9a."); } // [V6]
5208test { try toAsciiFail("xn--zi9a.", false); } // [V6, A4_2]
5209test { try toAsciiFail("xn--zi9a.", true); } // [V6, A4_2]
23325210test { try toUnicodeFail("xn--zi9a.xn--1ug"); } // [C2, V6]
5211test { try toAsciiFail("xn--zi9a.xn--1ug", false); } // [C2, V6]
5212test { try toAsciiFail("xn--zi9a.xn--1ug", true); } // [C2, V6]
23335213test { try toUnicodeFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xef\xbd\xa1\xef\xb3\x97"); } // [B1, C2, V7]
5214test { try toAsciiFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xef\xbd\xa1\xef\xb3\x97", false); } // [B1, C2, V7]
5215test { try toAsciiFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xef\xbd\xa1\xef\xb3\x97", true); } // [B1, V7]
23345216test { try toUnicodeFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xe3\x80\x82\xd9\x87\xd8\xac"); } // [B1, C2, V7]
5217test { try toAsciiFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xe3\x80\x82\xd9\x87\xd8\xac", false); } // [B1, C2, V7]
5218test { try toAsciiFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xe3\x80\x82\xd9\x87\xd8\xac", true); } // [B1, V7]
23355219test { try toUnicodeFail("xn--d356e.xn--rgb7c"); } // [B1, V7]
5220test { try toAsciiFail("xn--d356e.xn--rgb7c", false); } // [B1, V7]
5221test { try toAsciiFail("xn--d356e.xn--rgb7c", true); } // [B1, V7]
23365222test { try toUnicodeFail("xn--1ug80651l.xn--rgb7c"); } // [B1, C2, V7]
5223test { try toAsciiFail("xn--1ug80651l.xn--rgb7c", false); } // [B1, C2, V7]
5224test { try toAsciiFail("xn--1ug80651l.xn--rgb7c", true); } // [B1, C2, V7]
23375225test { try toUnicodeFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6]
5226test { try toAsciiFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82", false); } // [B1, V3, V6]
5227test { try toAsciiFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82", true); } // [B1, V3, V6]
23385228test { try toUnicodeFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6]
5229test { try toAsciiFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82", false); } // [B1, V3, V6]
5230test { try toAsciiFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82", true); } // [B1, V3, V6]
23395231test { try toUnicodeFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6]
5232test { try toAsciiFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82", false); } // [B1, V3, V6]
5233test { try toAsciiFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82", true); } // [B1, V3, V6]
23405234test { try toUnicodeFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xce\xa3"); } // [B1, V3, V6]
5235test { try toAsciiFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xce\xa3", false); } // [B1, V3, V6]
5236test { try toAsciiFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xce\xa3", true); } // [B1, V3, V6]
23415237test { try toUnicodeFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x83"); } // [B1, V3, V6]
5238test { try toAsciiFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x83", false); } // [B1, V3, V6]
5239test { try toAsciiFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x83", true); } // [B1, V3, V6]
23425240test { try toUnicodeFail("xn---0-iyd8660b.xn--4xa9120l"); } // [B1, V3, V6]
5241test { try toAsciiFail("xn---0-iyd8660b.xn--4xa9120l", false); } // [B1, V3, V6]
5242test { try toAsciiFail("xn---0-iyd8660b.xn--4xa9120l", true); } // [B1, V3, V6]
23435243test { try toUnicodeFail("xn---0-iyd8660b.xn--3xa1220l"); } // [B1, V3, V6]
5244test { try toAsciiFail("xn---0-iyd8660b.xn--3xa1220l", false); } // [B1, V3, V6]
5245test { try toAsciiFail("xn---0-iyd8660b.xn--3xa1220l", true); } // [B1, V3, V6]
23445246test { try toUnicodeFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6]
5247test { try toAsciiFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82", false); } // [B1, V3, V6]
5248test { try toAsciiFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82", true); } // [B1, V3, V6]
23455249test { try toUnicodeFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xce\xa3"); } // [B1, V3, V6]
5250test { try toAsciiFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xce\xa3", false); } // [B1, V3, V6]
5251test { try toAsciiFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xce\xa3", true); } // [B1, V3, V6]
23465252test { try toUnicodeFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x83"); } // [B1, V3, V6]
5253test { try toAsciiFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x83", false); } // [B1, V3, V6]
5254test { try toAsciiFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x83", true); } // [B1, V3, V6]
23475255test { try toUnicodeFail("xn---0-iyd216h.xn--4xa9120l"); } // [B1, V3, V6, V7]
5256test { try toAsciiFail("xn---0-iyd216h.xn--4xa9120l", false); } // [B1, V3, V6, V7]
5257test { try toAsciiFail("xn---0-iyd216h.xn--4xa9120l", true); } // [B1, V3, V6, V7]
23485258test { try toUnicodeFail("xn---0-iyd216h.xn--3xa1220l"); } // [B1, V3, V6, V7]
5259test { try toAsciiFail("xn---0-iyd216h.xn--3xa1220l", false); } // [B1, V3, V6, V7]
5260test { try toAsciiFail("xn---0-iyd216h.xn--3xa1220l", true); } // [B1, V3, V6, V7]
23495261test { try toUnicodeFail("\xf3\xa6\x88\x84\xe3\x80\x82-"); } // [V3, V7]
5262test { try toAsciiFail("\xf3\xa6\x88\x84\xe3\x80\x82-", false); } // [V3, V7]
5263test { try toAsciiFail("\xf3\xa6\x88\x84\xe3\x80\x82-", true); } // [V3, V7]
23505264test { try toUnicodeFail("xn--xm38e.-"); } // [V3, V7]
5265test { try toAsciiFail("xn--xm38e.-", false); } // [V3, V7]
5266test { try toAsciiFail("xn--xm38e.-", true); } // [V3, V7]
23515267test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f\xe2\x89\xaf"); } // [V7]
5268test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f\xe2\x89\xaf", false); } // [V7]
5269test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f\xe2\x89\xaf", true); } // [V7]
23525270test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f>\xcc\xb8"); } // [V7]
5271test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f>\xcc\xb8", false); } // [V7]
5272test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f>\xcc\xb8", true); } // [V7]
23535273test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f\xe2\x89\xaf"); } // [V7]
5274test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f\xe2\x89\xaf", false); } // [V7]
5275test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f\xe2\x89\xaf", true); } // [V7]
23545276test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f>\xcc\xb8"); } // [V7]
5277test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f>\xcc\xb8", false); } // [V7]
5278test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f>\xcc\xb8", true); } // [V7]
23555279test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8"); } // [V7]
5280test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8", false); } // [V7]
5281test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8", true); } // [V7]
23565282test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf"); } // [V7]
5283test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf", false); } // [V7]
5284test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf", true); } // [V7]
23575285test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf"); } // [V7]
5286test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf", false); } // [V7]
5287test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf", true); } // [V7]
23585288test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8"); } // [V7]
5289test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8", false); } // [V7]
5290test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8", true); } // [V7]
23595291test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8"); } // [V7]
5292test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8", false); } // [V7]
5293test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8", true); } // [V7]
23605294test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf"); } // [V7]
5295test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf", false); } // [V7]
5296test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf", true); } // [V7]
23615297test { try toUnicodeFail("xn--pgh4639f.xn--ss-ifj426nle504a"); } // [V7]
5298test { try toAsciiFail("xn--pgh4639f.xn--ss-ifj426nle504a", false); } // [V7]
5299test { try toAsciiFail("xn--pgh4639f.xn--ss-ifj426nle504a", true); } // [V7]
23625300test { try toUnicodeFail("xn--pgh4639f.xn--zca593eo6oc013y"); } // [V7]
5301test { try toAsciiFail("xn--pgh4639f.xn--zca593eo6oc013y", false); } // [V7]
5302test { try toAsciiFail("xn--pgh4639f.xn--zca593eo6oc013y", true); } // [V7]
23635303test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8"); } // [V7]
5304test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8", false); } // [V7]
5305test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8", true); } // [V7]
23645306test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf"); } // [V7]
5307test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf", false); } // [V7]
5308test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf", true); } // [V7]
23655309test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf"); } // [V7]
5310test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf", false); } // [V7]
5311test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf", true); } // [V7]
23665312test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8"); } // [V7]
5313test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8", false); } // [V7]
5314test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8", true); } // [V7]
23675315test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8"); } // [V7]
5316test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8", false); } // [V7]
5317test { try toAsciiFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8", true); } // [V7]
23685318test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf"); } // [V7]
5319test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf", false); } // [V7]
5320test { try toAsciiFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf", true); } // [V7]
23695321test { try toUnicodeFail("1\xf0\x90\x8b\xb8\xd9\xa4\xef\xbd\xa1\xf3\xa0\xa2\xae\xef\xae\xa4\xf1\xb7\x9d\x8a"); } // [B1, V7]
5322test { try toAsciiFail("1\xf0\x90\x8b\xb8\xd9\xa4\xef\xbd\xa1\xf3\xa0\xa2\xae\xef\xae\xa4\xf1\xb7\x9d\x8a", false); } // [B1, V7]
5323test { try toAsciiFail("1\xf0\x90\x8b\xb8\xd9\xa4\xef\xbd\xa1\xf3\xa0\xa2\xae\xef\xae\xa4\xf1\xb7\x9d\x8a", true); } // [B1, V7]
23705324test { try toUnicodeFail("1\xf0\x90\x8b\xb8\xd9\xa4\xe3\x80\x82\xf3\xa0\xa2\xae\xdb\x80\xf1\xb7\x9d\x8a"); } // [B1, V7]
5325test { try toAsciiFail("1\xf0\x90\x8b\xb8\xd9\xa4\xe3\x80\x82\xf3\xa0\xa2\xae\xdb\x80\xf1\xb7\x9d\x8a", false); } // [B1, V7]
5326test { try toAsciiFail("1\xf0\x90\x8b\xb8\xd9\xa4\xe3\x80\x82\xf3\xa0\xa2\xae\xdb\x80\xf1\xb7\x9d\x8a", true); } // [B1, V7]
23715327test { try toUnicodeFail("1\xf0\x90\x8b\xb8\xd9\xa4\xe3\x80\x82\xf3\xa0\xa2\xae\xdb\x95\xd9\x94\xf1\xb7\x9d\x8a"); } // [B1, V7]
5328test { try toAsciiFail("1\xf0\x90\x8b\xb8\xd9\xa4\xe3\x80\x82\xf3\xa0\xa2\xae\xdb\x95\xd9\x94\xf1\xb7\x9d\x8a", false); } // [B1, V7]
5329test { try toAsciiFail("1\xf0\x90\x8b\xb8\xd9\xa4\xe3\x80\x82\xf3\xa0\xa2\xae\xdb\x95\xd9\x94\xf1\xb7\x9d\x8a", true); } // [B1, V7]
23725330test { try toUnicodeFail("xn--1-hqc3905q.xn--zkb83268gqee4a"); } // [B1, V7]
5331test { try toAsciiFail("xn--1-hqc3905q.xn--zkb83268gqee4a", false); } // [B1, V7]
5332test { try toAsciiFail("xn--1-hqc3905q.xn--zkb83268gqee4a", true); } // [B1, V7]
23735333test { try toUnicodeFail("\xe5\x84\xad-\xef\xbd\xa1\xf0\x90\xb9\xb4\xe1\x83\x82\xf1\xa5\xb3\xa0\xe2\x80\x8c"); } // [B1, B6, C1, V3, V7]
5334test { try toAsciiFail("\xe5\x84\xad-\xef\xbd\xa1\xf0\x90\xb9\xb4\xe1\x83\x82\xf1\xa5\xb3\xa0\xe2\x80\x8c", false); } // [B1, B6, C1, V3, V7]
5335test { try toAsciiFail("\xe5\x84\xad-\xef\xbd\xa1\xf0\x90\xb9\xb4\xe1\x83\x82\xf1\xa5\xb3\xa0\xe2\x80\x8c", true); } // [B1, B6, V3, V7]
23745336test { try toUnicodeFail("\xe5\x84\xad-\xe3\x80\x82\xf0\x90\xb9\xb4\xe1\x83\x82\xf1\xa5\xb3\xa0\xe2\x80\x8c"); } // [B1, B6, C1, V3, V7]
5337test { try toAsciiFail("\xe5\x84\xad-\xe3\x80\x82\xf0\x90\xb9\xb4\xe1\x83\x82\xf1\xa5\xb3\xa0\xe2\x80\x8c", false); } // [B1, B6, C1, V3, V7]
5338test { try toAsciiFail("\xe5\x84\xad-\xe3\x80\x82\xf0\x90\xb9\xb4\xe1\x83\x82\xf1\xa5\xb3\xa0\xe2\x80\x8c", true); } // [B1, B6, V3, V7]
23755339test { try toUnicodeFail("\xe5\x84\xad-\xe3\x80\x82\xf0\x90\xb9\xb4\xe2\xb4\xa2\xf1\xa5\xb3\xa0\xe2\x80\x8c"); } // [B1, B6, C1, V3, V7]
5340test { try toAsciiFail("\xe5\x84\xad-\xe3\x80\x82\xf0\x90\xb9\xb4\xe2\xb4\xa2\xf1\xa5\xb3\xa0\xe2\x80\x8c", false); } // [B1, B6, C1, V3, V7]
5341test { try toAsciiFail("\xe5\x84\xad-\xe3\x80\x82\xf0\x90\xb9\xb4\xe2\xb4\xa2\xf1\xa5\xb3\xa0\xe2\x80\x8c", true); } // [B1, B6, V3, V7]
23765342test { try toUnicodeFail("xn----gz7a.xn--qlj9223eywx0b"); } // [B1, B6, V3, V7]
5343test { try toAsciiFail("xn----gz7a.xn--qlj9223eywx0b", false); } // [B1, B6, V3, V7]
5344test { try toAsciiFail("xn----gz7a.xn--qlj9223eywx0b", true); } // [B1, B6, V3, V7]
23775345test { try toUnicodeFail("xn----gz7a.xn--0ug472cfq0pus98b"); } // [B1, B6, C1, V3, V7]
5346test { try toAsciiFail("xn----gz7a.xn--0ug472cfq0pus98b", false); } // [B1, B6, C1, V3, V7]
5347test { try toAsciiFail("xn----gz7a.xn--0ug472cfq0pus98b", true); } // [B1, B6, C1, V3, V7]
23785348test { try toUnicodeFail("\xe5\x84\xad-\xef\xbd\xa1\xf0\x90\xb9\xb4\xe2\xb4\xa2\xf1\xa5\xb3\xa0\xe2\x80\x8c"); } // [B1, B6, C1, V3, V7]
5349test { try toAsciiFail("\xe5\x84\xad-\xef\xbd\xa1\xf0\x90\xb9\xb4\xe2\xb4\xa2\xf1\xa5\xb3\xa0\xe2\x80\x8c", false); } // [B1, B6, C1, V3, V7]
5350test { try toAsciiFail("\xe5\x84\xad-\xef\xbd\xa1\xf0\x90\xb9\xb4\xe2\xb4\xa2\xf1\xa5\xb3\xa0\xe2\x80\x8c", true); } // [B1, B6, V3, V7]
23795351test { try toUnicodeFail("xn----gz7a.xn--6nd5001kyw98a"); } // [B1, B6, V3, V7]
5352test { try toAsciiFail("xn----gz7a.xn--6nd5001kyw98a", false); } // [B1, B6, V3, V7]
5353test { try toAsciiFail("xn----gz7a.xn--6nd5001kyw98a", true); } // [B1, B6, V3, V7]
23805354test { try toUnicodeFail("xn----gz7a.xn--6nd249ejl4pusr7b"); } // [B1, B6, C1, V3, V7]
5355test { try toAsciiFail("xn----gz7a.xn--6nd249ejl4pusr7b", false); } // [B1, B6, C1, V3, V7]
5356test { try toAsciiFail("xn----gz7a.xn--6nd249ejl4pusr7b", true); } // [B1, B6, C1, V3, V7]
23815357test { try toUnicodeFail("\xf0\x9d\x9f\xba\xf0\x90\x8b\xb7\xda\xb9\xef\xbc\x8e\xf0\x9e\xa4\xad\xf2\xbf\x8d\xa1"); } // [B1, B2, B3, V7]
5358test { try toAsciiFail("\xf0\x9d\x9f\xba\xf0\x90\x8b\xb7\xda\xb9\xef\xbc\x8e\xf0\x9e\xa4\xad\xf2\xbf\x8d\xa1", false); } // [B1, B2, B3, V7]
5359test { try toAsciiFail("\xf0\x9d\x9f\xba\xf0\x90\x8b\xb7\xda\xb9\xef\xbc\x8e\xf0\x9e\xa4\xad\xf2\xbf\x8d\xa1", true); } // [B1, B2, B3, V7]
23825360test { try toUnicodeFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\xad\xf2\xbf\x8d\xa1"); } // [B1, B2, B3, V7]
5361test { try toAsciiFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\xad\xf2\xbf\x8d\xa1", false); } // [B1, B2, B3, V7]
5362test { try toAsciiFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\xad\xf2\xbf\x8d\xa1", true); } // [B1, B2, B3, V7]
23835363test { try toUnicodeFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\x8b\xf2\xbf\x8d\xa1"); } // [B1, B2, B3, V7]
5364test { try toAsciiFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\x8b\xf2\xbf\x8d\xa1", false); } // [B1, B2, B3, V7]
5365test { try toAsciiFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\x8b\xf2\xbf\x8d\xa1", true); } // [B1, B2, B3, V7]
23845366test { try toUnicodeFail("xn--4-cvc5384q.xn--le6hi7322b"); } // [B1, B2, B3, V7]
5367test { try toAsciiFail("xn--4-cvc5384q.xn--le6hi7322b", false); } // [B1, B2, B3, V7]
5368test { try toAsciiFail("xn--4-cvc5384q.xn--le6hi7322b", true); } // [B1, B2, B3, V7]
23855369test { try toUnicodeFail("\xf0\x9d\x9f\xba\xf0\x90\x8b\xb7\xda\xb9\xef\xbc\x8e\xf0\x9e\xa4\x8b\xf2\xbf\x8d\xa1"); } // [B1, B2, B3, V7]
5370test { try toAsciiFail("\xf0\x9d\x9f\xba\xf0\x90\x8b\xb7\xda\xb9\xef\xbc\x8e\xf0\x9e\xa4\x8b\xf2\xbf\x8d\xa1", false); } // [B1, B2, B3, V7]
5371test { try toAsciiFail("\xf0\x9d\x9f\xba\xf0\x90\x8b\xb7\xda\xb9\xef\xbc\x8e\xf0\x9e\xa4\x8b\xf2\xbf\x8d\xa1", true); } // [B1, B2, B3, V7]
23865372test { try toUnicodeFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad"); } // [B1, V7]
5373test { try toAsciiFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad", false); } // [B1, V7]
5374test { try toAsciiFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad", true); } // [B1, V7]
23875375test { try toUnicodeFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad"); } // [B1, V7]
5376test { try toAsciiFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad", false); } // [B1, V7]
5377test { try toAsciiFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad", true); } // [B1, V7]
23885378test { try toUnicodeFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad"); } // [B1]
5379test { try toAsciiFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad", false); } // [B1]
5380test { try toAsciiFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad", true); } // [B1]
23895381test { try toUnicodeFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad"); } // [B1]
5382test { try toAsciiFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad", false); } // [B1]
5383test { try toAsciiFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad", true); } // [B1]
23905384test { try toUnicodeFail("xn----ogox061d5i8d.1.xn--lo0d"); } // [B1]
5385test { try toAsciiFail("xn----ogox061d5i8d.1.xn--lo0d", false); } // [B1]
5386test { try toAsciiFail("xn----ogox061d5i8d.1.xn--lo0d", true); } // [B1]
23915387test { try toUnicodeFail("xn----ogox061d5i8d.xn--tsh0666f"); } // [B1, V7]
5388test { try toAsciiFail("xn----ogox061d5i8d.xn--tsh0666f", false); } // [B1, V7]
5389test { try toAsciiFail("xn----ogox061d5i8d.xn--tsh0666f", true); } // [B1, V7]
23925390test { try toUnicodeFail("\xcc\xb0\xef\xbc\x8e\xf3\xb0\x9c\xb1\xe8\x9a\x80"); } // [V6, V7]
5391test { try toAsciiFail("\xcc\xb0\xef\xbc\x8e\xf3\xb0\x9c\xb1\xe8\x9a\x80", false); } // [V6, V7]
5392test { try toAsciiFail("\xcc\xb0\xef\xbc\x8e\xf3\xb0\x9c\xb1\xe8\x9a\x80", true); } // [V6, V7]
23935393test { try toUnicodeFail("\xcc\xb0.\xf3\xb0\x9c\xb1\xe8\x9a\x80"); } // [V6, V7]
5394test { try toAsciiFail("\xcc\xb0.\xf3\xb0\x9c\xb1\xe8\x9a\x80", false); } // [V6, V7]
5395test { try toAsciiFail("\xcc\xb0.\xf3\xb0\x9c\xb1\xe8\x9a\x80", true); } // [V6, V7]
23945396test { try toUnicodeFail("xn--xta.xn--e91aw9417e"); } // [V6, V7]
5397test { try toAsciiFail("xn--xta.xn--e91aw9417e", false); } // [V6, V7]
5398test { try toAsciiFail("xn--xta.xn--e91aw9417e", true); } // [V6, V7]
23955399test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3]
5400test { try toAsciiFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97", false); } // [B2, B3]
5401test { try toAsciiFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97", true); } // [B2, B3]
23965402test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3]
5403test { try toAsciiFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97", false); } // [B2, B3]
5404test { try toAsciiFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97", true); } // [B2, B3]
23975405test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3]
5406test { try toAsciiFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97", false); } // [B2, B3]
5407test { try toAsciiFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97", true); } // [B2, B3]
23985408test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97"); } // [B2, B3]
5409test { try toAsciiFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97", false); } // [B2, B3]
5410test { try toAsciiFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97", true); } // [B2, B3]
23995411test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3]
5412test { try toAsciiFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97", false); } // [B2, B3]
5413test { try toAsciiFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97", true); } // [B2, B3]
24005414test { try toUnicodeFail("xn--kdb1d278n.xn--ss-yju5690ken9h"); } // [B2, B3]
5415test { try toAsciiFail("xn--kdb1d278n.xn--ss-yju5690ken9h", false); } // [B2, B3]
5416test { try toAsciiFail("xn--kdb1d278n.xn--ss-yju5690ken9h", true); } // [B2, B3]
24015417test { try toUnicodeFail("xn--kdb1d278n.xn--zca284nhg9nrrxg"); } // [B2, B3]
5418test { try toAsciiFail("xn--kdb1d278n.xn--zca284nhg9nrrxg", false); } // [B2, B3]
5419test { try toAsciiFail("xn--kdb1d278n.xn--zca284nhg9nrrxg", true); } // [B2, B3]
24025420test { try toUnicodeFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3]
5421test { try toAsciiFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97", false); } // [B2, B3]
5422test { try toAsciiFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97", true); } // [B2, B3]
24035423test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97"); } // [B2, B3]
5424test { try toAsciiFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97", false); } // [B2, B3]
5425test { try toAsciiFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97", true); } // [B2, B3]
24045426test { try toUnicodeFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3]
5427test { try toAsciiFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97", false); } // [B2, B3]
5428test { try toAsciiFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97", true); } // [B2, B3]
24055429test { try toUnicodeFail("xn--kdb1d867b.xn--ss-yju5690ken9h"); } // [B2, B3, V7]
5430test { try toAsciiFail("xn--kdb1d867b.xn--ss-yju5690ken9h", false); } // [B2, B3, V7]
5431test { try toAsciiFail("xn--kdb1d867b.xn--ss-yju5690ken9h", true); } // [B2, B3, V7]
24065432test { try toUnicodeFail("xn--kdb1d867b.xn--zca284nhg9nrrxg"); } // [B2, B3, V7]
5433test { try toAsciiFail("xn--kdb1d867b.xn--zca284nhg9nrrxg", false); } // [B2, B3, V7]
5434test { try toAsciiFail("xn--kdb1d867b.xn--zca284nhg9nrrxg", true); } // [B2, B3, V7]
24075435test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3]
5436test { try toAsciiFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97", false); } // [B2, B3]
5437test { try toAsciiFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97", true); } // [B2, B3]
24085438test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3]
5439test { try toAsciiFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97", false); } // [B2, B3]
5440test { try toAsciiFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97", true); } // [B2, B3]
24095441test { try toUnicodeFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xef\xbd\xa1\xe5\x87\xac"); } // [B1, V6, V7]
5442test { try toAsciiFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xef\xbd\xa1\xe5\x87\xac", false); } // [B1, V6, V7]
5443test { try toAsciiFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xef\xbd\xa1\xe5\x87\xac", true); } // [B1, V6, V7]
24105444test { try toUnicodeFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xe3\x80\x82\xe5\x87\xac"); } // [B1, V6, V7]
5445test { try toAsciiFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xe3\x80\x82\xe5\x87\xac", false); } // [B1, V6, V7]
5446test { try toAsciiFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xe3\x80\x82\xe5\x87\xac", true); } // [B1, V6, V7]
24115447test { try toUnicodeFail("xn--rxfz314ilg20c.xn--t9q"); } // [B1, V6, V7]
5448test { try toAsciiFail("xn--rxfz314ilg20c.xn--t9q", false); } // [B1, V6, V7]
5449test { try toAsciiFail("xn--rxfz314ilg20c.xn--t9q", true); } // [B1, V6, V7]
24125450test { try toUnicodeFail("\xf0\x9f\xa2\x9f\xf0\x9f\x84\x88\xe2\x80\x8d\xea\xa1\x8e\xef\xbd\xa1\xe0\xbe\x84"); } // [C2, V6, U1]
5451test { try toAsciiFail("\xf0\x9f\xa2\x9f\xf0\x9f\x84\x88\xe2\x80\x8d\xea\xa1\x8e\xef\xbd\xa1\xe0\xbe\x84", false); } // [C2, V6, U1]
5452test { try toAsciiFail("\xf0\x9f\xa2\x9f\xf0\x9f\x84\x88\xe2\x80\x8d\xea\xa1\x8e\xef\xbd\xa1\xe0\xbe\x84", true); } // [V6, U1]
24135453test { try toUnicodeFail("\xf0\x9f\xa2\x9f7,\xe2\x80\x8d\xea\xa1\x8e\xe3\x80\x82\xe0\xbe\x84"); } // [C2, V6, U1]
5454test { try toAsciiFail("\xf0\x9f\xa2\x9f7,\xe2\x80\x8d\xea\xa1\x8e\xe3\x80\x82\xe0\xbe\x84", false); } // [C2, V6, U1]
5455test { try toAsciiFail("\xf0\x9f\xa2\x9f7,\xe2\x80\x8d\xea\xa1\x8e\xe3\x80\x82\xe0\xbe\x84", true); } // [V6, U1]
24145456test { try toUnicodeFail("xn--7,-gh9hg322i.xn--3ed"); } // [V6, U1]
5457test { try toAsciiFail("xn--7,-gh9hg322i.xn--3ed", false); } // [V6, U1]
5458test { try toAsciiFail("xn--7,-gh9hg322i.xn--3ed", true); } // [V6, U1]
24155459test { try toUnicodeFail("xn--7,-n1t0654eqo3o.xn--3ed"); } // [C2, V6, U1]
5460test { try toAsciiFail("xn--7,-n1t0654eqo3o.xn--3ed", false); } // [C2, V6, U1]
5461test { try toAsciiFail("xn--7,-n1t0654eqo3o.xn--3ed", true); } // [C2, V6, U1]
24165462test { try toUnicodeFail("xn--nc9aq743ds0e.xn--3ed"); } // [V6, V7]
5463test { try toAsciiFail("xn--nc9aq743ds0e.xn--3ed", false); } // [V6, V7]
5464test { try toAsciiFail("xn--nc9aq743ds0e.xn--3ed", true); } // [V6, V7]
24175465test { try toUnicodeFail("xn--1ug4874cfd0kbmg.xn--3ed"); } // [C2, V6, V7]
5466test { try toAsciiFail("xn--1ug4874cfd0kbmg.xn--3ed", false); } // [C2, V6, V7]
5467test { try toAsciiFail("xn--1ug4874cfd0kbmg.xn--3ed", true); } // [C2, V6, V7]
24185468test { try toUnicodeFail("\xea\xa1\x94\xe3\x80\x82\xe1\x80\xb9\xe1\xa2\x87"); } // [V6]
5469test { try toAsciiFail("\xea\xa1\x94\xe3\x80\x82\xe1\x80\xb9\xe1\xa2\x87", false); } // [V6]
5470test { try toAsciiFail("\xea\xa1\x94\xe3\x80\x82\xe1\x80\xb9\xe1\xa2\x87", true); } // [V6]
24195471test { try toUnicodeFail("xn--tc9a.xn--9jd663b"); } // [V6]
5472test { try toAsciiFail("xn--tc9a.xn--9jd663b", false); } // [V6]
5473test { try toAsciiFail("xn--tc9a.xn--9jd663b", true); } // [V6]
24205474test { try toUnicodeFail("\xe2\x83\xab\xe2\x89\xae.\xf0\x9d\xa8\x96"); } // [V6]
5475test { try toAsciiFail("\xe2\x83\xab\xe2\x89\xae.\xf0\x9d\xa8\x96", false); } // [V6]
5476test { try toAsciiFail("\xe2\x83\xab\xe2\x89\xae.\xf0\x9d\xa8\x96", true); } // [V6]
24215477test { try toUnicodeFail("\xe2\x83\xab<\xcc\xb8.\xf0\x9d\xa8\x96"); } // [V6]
5478test { try toAsciiFail("\xe2\x83\xab<\xcc\xb8.\xf0\x9d\xa8\x96", false); } // [V6]
5479test { try toAsciiFail("\xe2\x83\xab<\xcc\xb8.\xf0\x9d\xa8\x96", true); } // [V6]
24225480test { try toUnicodeFail("xn--e1g71d.xn--772h"); } // [V6]
5481test { try toAsciiFail("xn--e1g71d.xn--772h", false); } // [V6]
5482test { try toAsciiFail("xn--e1g71d.xn--772h", true); } // [V6]
24235483test { try toUnicodeFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7"); } // [B5, B6]
5484test { try toAsciiFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7", false); } // [B5, B6]
5485test { try toAsciiFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7", true); } // [B5, B6]
24245486test { try toUnicodeFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7"); } // [B5, B6]
5487test { try toAsciiFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7", false); } // [B5, B6]
5488test { try toAsciiFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7", true); } // [B5, B6]
24255489test { try toUnicodeFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7"); } // [B5, B6]
5490test { try toAsciiFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7", false); } // [B5, B6]
5491test { try toAsciiFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7", true); } // [B5, B6]
24265492test { try toUnicodeFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7"); } // [B5, B6]
5493test { try toAsciiFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7", false); } // [B5, B6]
5494test { try toAsciiFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7", true); } // [B5, B6]
24275495test { try toUnicodeFail("\xe2\xb4\xa2>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
5496test { try toAsciiFail("\xe2\xb4\xa2>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", false); } // [B5, B6]
5497test { try toAsciiFail("\xe2\xb4\xa2>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", true); } // [B5, B6]
24285498test { try toUnicodeFail("\xe2\xb4\xa2\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
5499test { try toAsciiFail("\xe2\xb4\xa2\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", false); } // [B5, B6]
5500test { try toAsciiFail("\xe2\xb4\xa2\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", true); } // [B5, B6]
24295501test { try toUnicodeFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
5502test { try toAsciiFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", false); } // [B5, B6]
5503test { try toAsciiFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", true); } // [B5, B6]
24305504test { try toUnicodeFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
5505test { try toAsciiFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", false); } // [B5, B6]
5506test { try toAsciiFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", true); } // [B5, B6]
24315507test { try toUnicodeFail("xn--hdh433bev8e.xn--rpb5x392bcyt"); } // [B5, B6]
5508test { try toAsciiFail("xn--hdh433bev8e.xn--rpb5x392bcyt", false); } // [B5, B6]
5509test { try toAsciiFail("xn--hdh433bev8e.xn--rpb5x392bcyt", true); } // [B5, B6]
24325510test { try toUnicodeFail("\xe2\xb4\xa2>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
5511test { try toAsciiFail("\xe2\xb4\xa2>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", false); } // [B5, B6]
5512test { try toAsciiFail("\xe2\xb4\xa2>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", true); } // [B5, B6]
24335513test { try toUnicodeFail("\xe2\xb4\xa2\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
5514test { try toAsciiFail("\xe2\xb4\xa2\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", false); } // [B5, B6]
5515test { try toAsciiFail("\xe2\xb4\xa2\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", true); } // [B5, B6]
24345516test { try toUnicodeFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
5517test { try toAsciiFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", false); } // [B5, B6]
5518test { try toAsciiFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", true); } // [B5, B6]
24355519test { try toUnicodeFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
5520test { try toAsciiFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", false); } // [B5, B6]
5521test { try toAsciiFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6\xef\xbc\x8e\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7", true); } // [B5, B6]
24365522test { try toUnicodeFail("xn--6nd461g478e.xn--rpb5x392bcyt"); } // [B5, B6, V7]
5523test { try toAsciiFail("xn--6nd461g478e.xn--rpb5x392bcyt", false); } // [B5, B6, V7]
5524test { try toAsciiFail("xn--6nd461g478e.xn--rpb5x392bcyt", true); } // [B5, B6, V7]
24375525test { try toUnicodeFail("xn--6nd461g478e.xn--rpb5x49td2h"); } // [B5, B6, V7]
5526test { try toAsciiFail("xn--6nd461g478e.xn--rpb5x49td2h", false); } // [B5, B6, V7]
5527test { try toAsciiFail("xn--6nd461g478e.xn--rpb5x49td2h", true); } // [B5, B6, V7]
24385528test { try toUnicodeFail("\xf2\x8a\x89\x86\xf3\xa0\x86\x92\xe2\x80\x8c\xea\xa5\x93\xe3\x80\x82\xf0\x9e\xa4\x99\xd9\xbb\xea\xa1\x98"); } // [B2, B3, C1, V7]
5529test { try toAsciiFail("\xf2\x8a\x89\x86\xf3\xa0\x86\x92\xe2\x80\x8c\xea\xa5\x93\xe3\x80\x82\xf0\x9e\xa4\x99\xd9\xbb\xea\xa1\x98", false); } // [B2, B3, C1, V7]
5530test { try toAsciiFail("\xf2\x8a\x89\x86\xf3\xa0\x86\x92\xe2\x80\x8c\xea\xa5\x93\xe3\x80\x82\xf0\x9e\xa4\x99\xd9\xbb\xea\xa1\x98", true); } // [B2, B3, V7]
24395531test { try toUnicodeFail("\xf2\x8a\x89\x86\xf3\xa0\x86\x92\xe2\x80\x8c\xea\xa5\x93\xe3\x80\x82\xf0\x9e\xa4\xbb\xd9\xbb\xea\xa1\x98"); } // [B2, B3, C1, V7]
5532test { try toAsciiFail("\xf2\x8a\x89\x86\xf3\xa0\x86\x92\xe2\x80\x8c\xea\xa5\x93\xe3\x80\x82\xf0\x9e\xa4\xbb\xd9\xbb\xea\xa1\x98", false); } // [B2, B3, C1, V7]
5533test { try toAsciiFail("\xf2\x8a\x89\x86\xf3\xa0\x86\x92\xe2\x80\x8c\xea\xa5\x93\xe3\x80\x82\xf0\x9e\xa4\xbb\xd9\xbb\xea\xa1\x98", true); } // [B2, B3, V7]
24405534test { try toUnicodeFail("xn--3j9al6189a.xn--0ib8893fegvj"); } // [B2, B3, V7]
5535test { try toAsciiFail("xn--3j9al6189a.xn--0ib8893fegvj", false); } // [B2, B3, V7]
5536test { try toAsciiFail("xn--3j9al6189a.xn--0ib8893fegvj", true); } // [B2, B3, V7]
24415537test { try toUnicodeFail("xn--0ug8815chtz0e.xn--0ib8893fegvj"); } // [B2, B3, C1, V7]
5538test { try toAsciiFail("xn--0ug8815chtz0e.xn--0ib8893fegvj", false); } // [B2, B3, C1, V7]
5539test { try toAsciiFail("xn--0ug8815chtz0e.xn--0ib8893fegvj", true); } // [B2, B3, C1, V7]
24425540test { try toUnicodeFail("\xe2\x80\x8c.\xe2\x89\xaf"); } // [C1]
5541test { try toAsciiFail("\xe2\x80\x8c.\xe2\x89\xaf", false); } // [C1]
5542test { try toAsciiFail("\xe2\x80\x8c.\xe2\x89\xaf", true); } // [A4_2]
24435543test { try toUnicodeFail("\xe2\x80\x8c.>\xcc\xb8"); } // [C1]
5544test { try toAsciiFail("\xe2\x80\x8c.>\xcc\xb8", false); } // [C1]
5545test { try toAsciiFail("\xe2\x80\x8c.>\xcc\xb8", true); } // [A4_2]
24445546test { try toUnicodeFail(".xn--hdh"); } // [X4_2]
5547test { try toAsciiFail(".xn--hdh", false); } // [A4_2]
5548test { try toAsciiFail(".xn--hdh", true); } // [A4_2]
24455549test { try toUnicodeFail("xn--0ug.xn--hdh"); } // [C1]
5550test { try toAsciiFail("xn--0ug.xn--hdh", false); } // [C1]
5551test { try toAsciiFail("xn--0ug.xn--hdh", true); } // [C1]
24465552test { try toUnicodeFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-\xef\xbc\x8e\xea\xaf\xad-\xe6\x82\x9c"); } // [V3, V6, V7]
5553test { try toAsciiFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-\xef\xbc\x8e\xea\xaf\xad-\xe6\x82\x9c", false); } // [V3, V6, V7]
5554test { try toAsciiFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-\xef\xbc\x8e\xea\xaf\xad-\xe6\x82\x9c", true); } // [V3, V6, V7]
24475555test { try toUnicodeFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-.\xea\xaf\xad-\xe6\x82\x9c"); } // [V3, V6, V7]
5556test { try toAsciiFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-.\xea\xaf\xad-\xe6\x82\x9c", false); } // [V3, V6, V7]
5557test { try toAsciiFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-.\xea\xaf\xad-\xe6\x82\x9c", true); } // [V3, V6, V7]
24485558test { try toUnicodeFail("xn----7m53aj640l.xn----8f4br83t"); } // [V3, V6, V7]
5559test { try toAsciiFail("xn----7m53aj640l.xn----8f4br83t", false); } // [V3, V6, V7]
5560test { try toAsciiFail("xn----7m53aj640l.xn----8f4br83t", true); } // [V3, V6, V7]
24495561test { try toUnicodeFail("\xe1\xa1\x89\xf0\xb6\x93\xa7\xe2\xac\x9e\xe1\xa2\x9c.-\xe2\x80\x8d\xf0\x9e\xa3\x91\xe2\x80\xae"); } // [C2, V3, V7]
5562test { try toAsciiFail("\xe1\xa1\x89\xf0\xb6\x93\xa7\xe2\xac\x9e\xe1\xa2\x9c.-\xe2\x80\x8d\xf0\x9e\xa3\x91\xe2\x80\xae", false); } // [C2, V3, V7]
5563test { try toAsciiFail("\xe1\xa1\x89\xf0\xb6\x93\xa7\xe2\xac\x9e\xe1\xa2\x9c.-\xe2\x80\x8d\xf0\x9e\xa3\x91\xe2\x80\xae", true); } // [V3, V7]
24505564test { try toUnicodeFail("xn--87e0ol04cdl39e.xn----qinu247r"); } // [V3, V7]
5565test { try toAsciiFail("xn--87e0ol04cdl39e.xn----qinu247r", false); } // [V3, V7]
5566test { try toAsciiFail("xn--87e0ol04cdl39e.xn----qinu247r", true); } // [V3, V7]
24515567test { try toUnicodeFail("xn--87e0ol04cdl39e.xn----ugn5e3763s"); } // [C2, V3, V7]
5568test { try toAsciiFail("xn--87e0ol04cdl39e.xn----ugn5e3763s", false); } // [C2, V3, V7]
5569test { try toAsciiFail("xn--87e0ol04cdl39e.xn----ugn5e3763s", true); } // [C2, V3, V7]
24525570test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4"); } // [B1, B2, B3, C1, V7]
5571test { try toAsciiFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4", false); } // [B1, B2, B3, C1, V7]
5572test { try toAsciiFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4", true); } // [B1, B2, B3, V7]
24535573test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4"); } // [B1, B2, B3, C1]
5574test { try toAsciiFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4", false); } // [B1, B2, B3, C1]
5575test { try toAsciiFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4", true); } // [B1, B2, B3]
24545576test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1]
5577test { try toAsciiFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94", false); } // [B1, B2, B3, C1]
5578test { try toAsciiFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94", true); } // [B1, B2, B3]
24555579test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1]
5580test { try toAsciiFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94", false); } // [B1, B2, B3, C1]
5581test { try toAsciiFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94", true); } // [B1, B2, B3]
24565582test { try toUnicodeFail("9.xn--llj1920a.xn--7ib268q"); } // [B1, B2, B3]
5583test { try toAsciiFail("9.xn--llj1920a.xn--7ib268q", false); } // [B1, B2, B3]
5584test { try toAsciiFail("9.xn--llj1920a.xn--7ib268q", true); } // [B1, B2, B3]
24575585test { try toUnicodeFail("9.xn--0ug862cbm5e.xn--7ib268q"); } // [B1, B2, B3, C1]
5586test { try toAsciiFail("9.xn--0ug862cbm5e.xn--7ib268q", false); } // [B1, B2, B3, C1]
5587test { try toAsciiFail("9.xn--0ug862cbm5e.xn--7ib268q", true); } // [B1, B2, B3, C1]
24585588test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1, V7]
5589test { try toAsciiFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94", false); } // [B1, B2, B3, C1, V7]
5590test { try toAsciiFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94", true); } // [B1, B2, B3, V7]
24595591test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1, V7]
5592test { try toAsciiFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94", false); } // [B1, B2, B3, C1, V7]
5593test { try toAsciiFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94", true); } // [B1, B2, B3, V7]
24605594test { try toUnicodeFail("xn--1shy52abz3f.xn--7ib268q"); } // [B1, B2, B3, V7]
5595test { try toAsciiFail("xn--1shy52abz3f.xn--7ib268q", false); } // [B1, B2, B3, V7]
5596test { try toAsciiFail("xn--1shy52abz3f.xn--7ib268q", true); } // [B1, B2, B3, V7]
24615597test { try toUnicodeFail("xn--0ugx0px1izu2h.xn--7ib268q"); } // [B1, B2, B3, C1, V7]
5598test { try toAsciiFail("xn--0ugx0px1izu2h.xn--7ib268q", false); } // [B1, B2, B3, C1, V7]
5599test { try toAsciiFail("xn--0ugx0px1izu2h.xn--7ib268q", true); } // [B1, B2, B3, C1, V7]
24625600test { try toUnicodeFail("9.xn--1nd9032d.xn--7ib268q"); } // [B1, B2, B3, V7]
5601test { try toAsciiFail("9.xn--1nd9032d.xn--7ib268q", false); } // [B1, B2, B3, V7]
5602test { try toAsciiFail("9.xn--1nd9032d.xn--7ib268q", true); } // [B1, B2, B3, V7]
24635603test { try toUnicodeFail("9.xn--1nd159e1y2f.xn--7ib268q"); } // [B1, B2, B3, C1, V7]
5604test { try toAsciiFail("9.xn--1nd159e1y2f.xn--7ib268q", false); } // [B1, B2, B3, C1, V7]
5605test { try toAsciiFail("9.xn--1nd159e1y2f.xn--7ib268q", true); } // [B1, B2, B3, C1, V7]
24645606test { try toUnicodeFail("9.xn--1nd9032d.xn--7ib433c"); } // [B1, B2, B3, V7]
5607test { try toAsciiFail("9.xn--1nd9032d.xn--7ib433c", false); } // [B1, B2, B3, V7]
5608test { try toAsciiFail("9.xn--1nd9032d.xn--7ib433c", true); } // [B1, B2, B3, V7]
24655609test { try toUnicodeFail("9.xn--1nd159e1y2f.xn--7ib433c"); } // [B1, B2, B3, C1, V7]
5610test { try toAsciiFail("9.xn--1nd159e1y2f.xn--7ib433c", false); } // [B1, B2, B3, C1, V7]
5611test { try toAsciiFail("9.xn--1nd159e1y2f.xn--7ib433c", true); } // [B1, B2, B3, C1, V7]
24665612test { try toUnicodeFail("xn--1nd362hy16e.xn--7ib268q"); } // [B1, B2, B3, V7]
5613test { try toAsciiFail("xn--1nd362hy16e.xn--7ib268q", false); } // [B1, B2, B3, V7]
5614test { try toAsciiFail("xn--1nd362hy16e.xn--7ib268q", true); } // [B1, B2, B3, V7]
24675615test { try toUnicodeFail("xn--1nd159ecmd785k.xn--7ib268q"); } // [B1, B2, B3, C1, V7]
5616test { try toAsciiFail("xn--1nd159ecmd785k.xn--7ib268q", false); } // [B1, B2, B3, C1, V7]
5617test { try toAsciiFail("xn--1nd159ecmd785k.xn--7ib268q", true); } // [B1, B2, B3, C1, V7]
24685618test { try toUnicodeFail("xn--1nd362hy16e.xn--7ib433c"); } // [B1, B2, B3, V7]
5619test { try toAsciiFail("xn--1nd362hy16e.xn--7ib433c", false); } // [B1, B2, B3, V7]
5620test { try toAsciiFail("xn--1nd362hy16e.xn--7ib433c", true); } // [B1, B2, B3, V7]
24695621test { try toUnicodeFail("xn--1nd159ecmd785k.xn--7ib433c"); } // [B1, B2, B3, C1, V7]
5622test { try toAsciiFail("xn--1nd159ecmd785k.xn--7ib433c", false); } // [B1, B2, B3, C1, V7]
5623test { try toAsciiFail("xn--1nd159ecmd785k.xn--7ib433c", true); } // [B1, B2, B3, C1, V7]
24705624test { try toUnicodeFail("\xdf\xa1\xe2\x80\x8c\xe3\x80\x82--\xe2\xb8\xac"); } // [B1, B3, C1, V3]
5625test { try toAsciiFail("\xdf\xa1\xe2\x80\x8c\xe3\x80\x82--\xe2\xb8\xac", false); } // [B1, B3, C1, V3]
5626test { try toAsciiFail("\xdf\xa1\xe2\x80\x8c\xe3\x80\x82--\xe2\xb8\xac", true); } // [B1, V3]
24715627test { try toUnicodeFail("xn--8sb.xn-----iw2a"); } // [B1, V3]
5628test { try toAsciiFail("xn--8sb.xn-----iw2a", false); } // [B1, V3]
5629test { try toAsciiFail("xn--8sb.xn-----iw2a", true); } // [B1, V3]
24725630test { try toUnicodeFail("xn--8sb884j.xn-----iw2a"); } // [B1, B3, C1, V3]
5631test { try toAsciiFail("xn--8sb884j.xn-----iw2a", false); } // [B1, B3, C1, V3]
5632test { try toAsciiFail("xn--8sb884j.xn-----iw2a", true); } // [B1, B3, C1, V3]
24735633test { try toUnicodePass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "\xf0\x9e\xa5\x93.\xdc\x98"); }
24745634test { try toAsciiPass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "xn--of6h.xn--inb", false); }
24755635test { try toAsciiPass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "xn--of6h.xn--inb", true); }
......@@ -2480,20 +5640,50 @@ test { try toUnicodePass("xn--of6h.xn--inb", "\xf0\x9e\xa5\x93.\xdc\x98"); }
24805640test { try toAsciiPass("xn--of6h.xn--inb", "xn--of6h.xn--inb", false); }
24815641test { try toAsciiPass("xn--of6h.xn--inb", "xn--of6h.xn--inb", true); }
24825642test { try toUnicodeFail("\xf3\xa0\x84\xbd-\xef\xbc\x8e-\xe0\xb7\x8a"); } // [V3]
5643test { try toAsciiFail("\xf3\xa0\x84\xbd-\xef\xbc\x8e-\xe0\xb7\x8a", false); } // [V3]
5644test { try toAsciiFail("\xf3\xa0\x84\xbd-\xef\xbc\x8e-\xe0\xb7\x8a", true); } // [V3]
24835645test { try toUnicodeFail("\xf3\xa0\x84\xbd-.-\xe0\xb7\x8a"); } // [V3]
5646test { try toAsciiFail("\xf3\xa0\x84\xbd-.-\xe0\xb7\x8a", false); } // [V3]
5647test { try toAsciiFail("\xf3\xa0\x84\xbd-.-\xe0\xb7\x8a", true); } // [V3]
24845648test { try toUnicodeFail("-.xn----ptf"); } // [V3]
5649test { try toAsciiFail("-.xn----ptf", false); } // [V3]
5650test { try toAsciiFail("-.xn----ptf", true); } // [V3]
24855651test { try toUnicodeFail("\xf3\xa0\x87\x9d\xdd\x9b-.\xe1\xa4\xa7"); } // [B1, B3, V3, V6]
5652test { try toAsciiFail("\xf3\xa0\x87\x9d\xdd\x9b-.\xe1\xa4\xa7", false); } // [B1, B3, V3, V6]
5653test { try toAsciiFail("\xf3\xa0\x87\x9d\xdd\x9b-.\xe1\xa4\xa7", true); } // [B1, B3, V3, V6]
24865654test { try toUnicodeFail("xn----k4c.xn--lff"); } // [B1, B3, V3, V6]
5655test { try toAsciiFail("xn----k4c.xn--lff", false); } // [B1, B3, V3, V6]
5656test { try toAsciiFail("xn----k4c.xn--lff", true); } // [B1, B3, V3, V6]
24875657test { try toUnicodeFail("\xf0\x9e\xa4\xb4\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x86\xe2\x92\x8c\xf3\x98\xa4\xb8"); } // [B1, V6, V7]
5658test { try toAsciiFail("\xf0\x9e\xa4\xb4\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x86\xe2\x92\x8c\xf3\x98\xa4\xb8", false); } // [B1, V6, V7]
5659test { try toAsciiFail("\xf0\x9e\xa4\xb4\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x86\xe2\x92\x8c\xf3\x98\xa4\xb8", true); } // [B1, V6, V7]
24885660test { try toUnicodeFail("\xf0\x9e\xa4\xb4\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x865.\xf3\x98\xa4\xb8"); } // [B1, V6, V7]
5661test { try toAsciiFail("\xf0\x9e\xa4\xb4\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x865.\xf3\x98\xa4\xb8", false); } // [B1, V6, V7]
5662test { try toAsciiFail("\xf0\x9e\xa4\xb4\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x865.\xf3\x98\xa4\xb8", true); } // [B1, V6, V7]
24895663test { try toUnicodeFail("\xf0\x9e\xa4\x92\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x865.\xf3\x98\xa4\xb8"); } // [B1, V6, V7]
5664test { try toAsciiFail("\xf0\x9e\xa4\x92\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x865.\xf3\x98\xa4\xb8", false); } // [B1, V6, V7]
5665test { try toAsciiFail("\xf0\x9e\xa4\x92\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x865.\xf3\x98\xa4\xb8", true); } // [B1, V6, V7]
24905666test { try toUnicodeFail("xn--fuix729epewf.xn--5-w93e.xn--7b83e"); } // [B1, V6, V7]
5667test { try toAsciiFail("xn--fuix729epewf.xn--5-w93e.xn--7b83e", false); } // [B1, V6, V7]
5668test { try toAsciiFail("xn--fuix729epewf.xn--5-w93e.xn--7b83e", true); } // [B1, V6, V7]
24915669test { try toUnicodeFail("\xf0\x9e\xa4\x92\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x86\xe2\x92\x8c\xf3\x98\xa4\xb8"); } // [B1, V6, V7]
5670test { try toAsciiFail("\xf0\x9e\xa4\x92\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x86\xe2\x92\x8c\xf3\x98\xa4\xb8", false); } // [B1, V6, V7]
5671test { try toAsciiFail("\xf0\x9e\xa4\x92\xf3\xa0\x86\xb9\xe2\xa6\x89\xf0\x90\xb9\xba.\xea\xa0\x86\xe2\x92\x8c\xf3\x98\xa4\xb8", true); } // [B1, V6, V7]
24925672test { try toUnicodeFail("xn--fuix729epewf.xn--xsh5029b6e77i"); } // [B1, V6, V7]
5673test { try toAsciiFail("xn--fuix729epewf.xn--xsh5029b6e77i", false); } // [B1, V6, V7]
5674test { try toAsciiFail("xn--fuix729epewf.xn--xsh5029b6e77i", true); } // [B1, V6, V7]
24935675test { try toUnicodeFail("\xf3\xa0\x84\xb8\xe2\x82\x80\xe3\x80\x82\xf0\x91\x96\xbf\xe2\x80\x8c\xf0\x90\xa6\x82\xe2\x80\x8d"); } // [B1, C2, V6]
5676test { try toAsciiFail("\xf3\xa0\x84\xb8\xe2\x82\x80\xe3\x80\x82\xf0\x91\x96\xbf\xe2\x80\x8c\xf0\x90\xa6\x82\xe2\x80\x8d", false); } // [B1, C2, V6]
5677test { try toAsciiFail("\xf3\xa0\x84\xb8\xe2\x82\x80\xe3\x80\x82\xf0\x91\x96\xbf\xe2\x80\x8c\xf0\x90\xa6\x82\xe2\x80\x8d", true); } // [B1, V6]
24945678test { try toUnicodeFail("\xf3\xa0\x84\xb80\xe3\x80\x82\xf0\x91\x96\xbf\xe2\x80\x8c\xf0\x90\xa6\x82\xe2\x80\x8d"); } // [B1, C2, V6]
5679test { try toAsciiFail("\xf3\xa0\x84\xb80\xe3\x80\x82\xf0\x91\x96\xbf\xe2\x80\x8c\xf0\x90\xa6\x82\xe2\x80\x8d", false); } // [B1, C2, V6]
5680test { try toAsciiFail("\xf3\xa0\x84\xb80\xe3\x80\x82\xf0\x91\x96\xbf\xe2\x80\x8c\xf0\x90\xa6\x82\xe2\x80\x8d", true); } // [B1, V6]
24955681test { try toUnicodeFail("0.xn--mn9cz2s"); } // [B1, V6]
5682test { try toAsciiFail("0.xn--mn9cz2s", false); } // [B1, V6]
5683test { try toAsciiFail("0.xn--mn9cz2s", true); } // [B1, V6]
24965684test { try toUnicodeFail("0.xn--0ugc8040p9hk"); } // [B1, C2, V6]
5685test { try toAsciiFail("0.xn--0ugc8040p9hk", false); } // [B1, C2, V6]
5686test { try toAsciiFail("0.xn--0ugc8040p9hk", true); } // [B1, C2, V6]
24975687test { try toUnicodePass("\xe1\x82\xba\xf0\x90\x8b\xb8\xf3\xa0\x84\x84\xe3\x80\x82\xf0\x9d\x9f\x9d\xed\x9f\xb6\xe1\x80\xba", "\xe2\xb4\x9a\xf0\x90\x8b\xb8.5\xed\x9f\xb6\xe1\x80\xba"); }
24985688test { try toAsciiPass("\xe1\x82\xba\xf0\x90\x8b\xb8\xf3\xa0\x84\x84\xe3\x80\x82\xf0\x9d\x9f\x9d\xed\x9f\xb6\xe1\x80\xba", "xn--ilj2659d.xn--5-dug9054m", false); }
24995689test { try toAsciiPass("\xe1\x82\xba\xf0\x90\x8b\xb8\xf3\xa0\x84\x84\xe3\x80\x82\xf0\x9d\x9f\x9d\xed\x9f\xb6\xe1\x80\xba", "xn--ilj2659d.xn--5-dug9054m", true); }
......@@ -2516,12 +5706,26 @@ test { try toUnicodePass("\xe2\xb4\x9a\xf0\x90\x8b\xb8\xf3\xa0\x84\x84\xe3\x80\x
25165706test { try toAsciiPass("\xe2\xb4\x9a\xf0\x90\x8b\xb8\xf3\xa0\x84\x84\xe3\x80\x82\xf0\x9d\x9f\x9d\xed\x9f\xb6\xe1\x80\xba", "xn--ilj2659d.xn--5-dug9054m", false); }
25175707test { try toAsciiPass("\xe2\xb4\x9a\xf0\x90\x8b\xb8\xf3\xa0\x84\x84\xe3\x80\x82\xf0\x9d\x9f\x9d\xed\x9f\xb6\xe1\x80\xba", "xn--ilj2659d.xn--5-dug9054m", true); }
25185708test { try toUnicodeFail("xn--ynd2415j.xn--5-dug9054m"); } // [V7]
5709test { try toAsciiFail("xn--ynd2415j.xn--5-dug9054m", false); } // [V7]
5710test { try toAsciiFail("xn--ynd2415j.xn--5-dug9054m", true); } // [V7]
25195711test { try toUnicodeFail("\xe2\x80\x8d-\xe1\xa0\xb9\xef\xb9\xaa.\xe1\xb7\xa1\xe1\xa4\xa2"); } // [C2, V6, U1]
5712test { try toAsciiFail("\xe2\x80\x8d-\xe1\xa0\xb9\xef\xb9\xaa.\xe1\xb7\xa1\xe1\xa4\xa2", false); } // [C2, V6, U1]
5713test { try toAsciiFail("\xe2\x80\x8d-\xe1\xa0\xb9\xef\xb9\xaa.\xe1\xb7\xa1\xe1\xa4\xa2", true); } // [V3, V6, U1]
25205714test { try toUnicodeFail("\xe2\x80\x8d-\xe1\xa0\xb9%.\xe1\xb7\xa1\xe1\xa4\xa2"); } // [C2, V6, U1]
5715test { try toAsciiFail("\xe2\x80\x8d-\xe1\xa0\xb9%.\xe1\xb7\xa1\xe1\xa4\xa2", false); } // [C2, V6, U1]
5716test { try toAsciiFail("\xe2\x80\x8d-\xe1\xa0\xb9%.\xe1\xb7\xa1\xe1\xa4\xa2", true); } // [V3, V6, U1]
25215717test { try toUnicodeFail("xn---%-u4o.xn--gff52t"); } // [V3, V6, U1]
5718test { try toAsciiFail("xn---%-u4o.xn--gff52t", false); } // [V3, V6, U1]
5719test { try toAsciiFail("xn---%-u4o.xn--gff52t", true); } // [V3, V6, U1]
25225720test { try toUnicodeFail("xn---%-u4oy48b.xn--gff52t"); } // [C2, V6, U1]
5721test { try toAsciiFail("xn---%-u4oy48b.xn--gff52t", false); } // [C2, V6, U1]
5722test { try toAsciiFail("xn---%-u4oy48b.xn--gff52t", true); } // [C2, V6, U1]
25235723test { try toUnicodeFail("xn----c6jx047j.xn--gff52t"); } // [V3, V6, V7]
5724test { try toAsciiFail("xn----c6jx047j.xn--gff52t", false); } // [V3, V6, V7]
5725test { try toAsciiFail("xn----c6jx047j.xn--gff52t", true); } // [V3, V6, V7]
25245726test { try toUnicodeFail("xn----c6j614b1z4v.xn--gff52t"); } // [C2, V6, V7]
5727test { try toAsciiFail("xn----c6j614b1z4v.xn--gff52t", false); } // [C2, V6, V7]
5728test { try toAsciiFail("xn----c6j614b1z4v.xn--gff52t", true); } // [C2, V6, V7]
25255729test { try toUnicodePass("\xe2\x89\xa0.\xe1\xa0\xbf", "\xe2\x89\xa0.\xe1\xa0\xbf"); }
25265730test { try toAsciiPass("\xe2\x89\xa0.\xe1\xa0\xbf", "xn--1ch.xn--y7e", false); }
25275731test { try toAsciiPass("\xe2\x89\xa0.\xe1\xa0\xbf", "xn--1ch.xn--y7e", true); }
......@@ -2544,19 +5748,47 @@ test { try toUnicodePass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84"
25445748test { try toAsciiPass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "xn--ucb18e.xn--eck4c5a", false); }
25455749test { try toAsciiPass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "xn--ucb18e.xn--eck4c5a", true); }
25465750test { try toUnicodeFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80\xe2\x89\xae.\xe2\xb5\xbf-"); } // [B1, B3, V3, V6, V7]
5751test { try toAsciiFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80\xe2\x89\xae.\xe2\xb5\xbf-", false); } // [B1, B3, V3, V6, V7]
5752test { try toAsciiFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80\xe2\x89\xae.\xe2\xb5\xbf-", true); } // [B1, B3, V3, V6, V7]
25475753test { try toUnicodeFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80<\xcc\xb8.\xe2\xb5\xbf-"); } // [B1, B3, V3, V6, V7]
5754test { try toAsciiFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80<\xcc\xb8.\xe2\xb5\xbf-", false); } // [B1, B3, V3, V6, V7]
5755test { try toAsciiFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80<\xcc\xb8.\xe2\xb5\xbf-", true); } // [B1, B3, V3, V6, V7]
25485756test { try toUnicodeFail("xn--gdhx802p.xn----i2s"); } // [B1, B3, V3, V6, V7]
5757test { try toAsciiFail("xn--gdhx802p.xn----i2s", false); } // [B1, B3, V3, V6, V7]
5758test { try toAsciiFail("xn--gdhx802p.xn----i2s", true); } // [B1, B3, V3, V6, V7]
25495759test { try toUnicodeFail("\xe2\x82\x86\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xef\xbd\xa1\xf0\x9e\xa4\x85\xdb\xad\xef\xb1\x9a\xf3\xa0\xae\xa8"); } // [B1, B3, V7]
5760test { try toAsciiFail("\xe2\x82\x86\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xef\xbd\xa1\xf0\x9e\xa4\x85\xdb\xad\xef\xb1\x9a\xf3\xa0\xae\xa8", false); } // [B1, B3, V7]
5761test { try toAsciiFail("\xe2\x82\x86\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xef\xbd\xa1\xf0\x9e\xa4\x85\xdb\xad\xef\xb1\x9a\xf3\xa0\xae\xa8", true); } // [B1, B3, V7]
25505762test { try toUnicodeFail("6\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xe3\x80\x82\xf0\x9e\xa4\x85\xdb\xad\xd9\x8a\xd9\x8a\xf3\xa0\xae\xa8"); } // [B1, B3, V7]
5763test { try toAsciiFail("6\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xe3\x80\x82\xf0\x9e\xa4\x85\xdb\xad\xd9\x8a\xd9\x8a\xf3\xa0\xae\xa8", false); } // [B1, B3, V7]
5764test { try toAsciiFail("6\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xe3\x80\x82\xf0\x9e\xa4\x85\xdb\xad\xd9\x8a\xd9\x8a\xf3\xa0\xae\xa8", true); } // [B1, B3, V7]
25515765test { try toUnicodeFail("6\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xe3\x80\x82\xf0\x9e\xa4\xa7\xdb\xad\xd9\x8a\xd9\x8a\xf3\xa0\xae\xa8"); } // [B1, B3, V7]
5766test { try toAsciiFail("6\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xe3\x80\x82\xf0\x9e\xa4\xa7\xdb\xad\xd9\x8a\xd9\x8a\xf3\xa0\xae\xa8", false); } // [B1, B3, V7]
5767test { try toAsciiFail("6\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xe3\x80\x82\xf0\x9e\xa4\xa7\xdb\xad\xd9\x8a\xd9\x8a\xf3\xa0\xae\xa8", true); } // [B1, B3, V7]
25525768test { try toUnicodeFail("xn--6-kmf4691ejv41j.xn--mhba10ch545mn8v8h"); } // [B1, B3, V7]
5769test { try toAsciiFail("xn--6-kmf4691ejv41j.xn--mhba10ch545mn8v8h", false); } // [B1, B3, V7]
5770test { try toAsciiFail("xn--6-kmf4691ejv41j.xn--mhba10ch545mn8v8h", true); } // [B1, B3, V7]
25535771test { try toUnicodeFail("\xe2\x82\x86\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xef\xbd\xa1\xf0\x9e\xa4\xa7\xdb\xad\xef\xb1\x9a\xf3\xa0\xae\xa8"); } // [B1, B3, V7]
5772test { try toAsciiFail("\xe2\x82\x86\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xef\xbd\xa1\xf0\x9e\xa4\xa7\xdb\xad\xef\xb1\x9a\xf3\xa0\xae\xa8", false); } // [B1, B3, V7]
5773test { try toAsciiFail("\xe2\x82\x86\xe6\xa6\x8e\xf2\xa6\x96\x8e\xe0\xb5\x8d\xef\xbd\xa1\xf0\x9e\xa4\xa7\xdb\xad\xef\xb1\x9a\xf3\xa0\xae\xa8", true); } // [B1, B3, V7]
25545774test { try toUnicodeFail("\xf0\xa3\xa9\xab\xef\xbc\x8e\xf2\x8c\x91\xb2"); } // [V7]
5775test { try toAsciiFail("\xf0\xa3\xa9\xab\xef\xbc\x8e\xf2\x8c\x91\xb2", false); } // [V7]
5776test { try toAsciiFail("\xf0\xa3\xa9\xab\xef\xbc\x8e\xf2\x8c\x91\xb2", true); } // [V7]
25555777test { try toUnicodeFail("\xf0\xa3\xa9\xab.\xf2\x8c\x91\xb2"); } // [V7]
5778test { try toAsciiFail("\xf0\xa3\xa9\xab.\xf2\x8c\x91\xb2", false); } // [V7]
5779test { try toAsciiFail("\xf0\xa3\xa9\xab.\xf2\x8c\x91\xb2", true); } // [V7]
25565780test { try toUnicodeFail("xn--td3j.xn--4628b"); } // [V7]
5781test { try toAsciiFail("xn--td3j.xn--4628b", false); } // [V7]
5782test { try toAsciiFail("xn--td3j.xn--4628b", true); } // [V7]
25575783test { try toUnicodeFail("\xe2\x80\x8d\xef\xb8\x92\xef\xbd\xa1\xda\xb9\xe2\x80\x8c"); } // [B1, B3, C1, C2, V7]
5784test { try toAsciiFail("\xe2\x80\x8d\xef\xb8\x92\xef\xbd\xa1\xda\xb9\xe2\x80\x8c", false); } // [B1, B3, C1, C2, V7]
5785test { try toAsciiFail("\xe2\x80\x8d\xef\xb8\x92\xef\xbd\xa1\xda\xb9\xe2\x80\x8c", true); } // [B1, V7]
25585786test { try toUnicodeFail("xn--y86c.xn--skb"); } // [B1, V7]
5787test { try toAsciiFail("xn--y86c.xn--skb", false); } // [B1, V7]
5788test { try toAsciiFail("xn--y86c.xn--skb", true); } // [B1, V7]
25595789test { try toUnicodeFail("xn--1ug2658f.xn--skb080k"); } // [B1, B3, C1, C2, V7]
5790test { try toAsciiFail("xn--1ug2658f.xn--skb080k", false); } // [B1, B3, C1, C2, V7]
5791test { try toAsciiFail("xn--1ug2658f.xn--skb080k", true); } // [B1, B3, C1, C2, V7]
25605792test { try toUnicodePass("xn--skb", "\xda\xb9"); }
25615793test { try toAsciiPass("xn--skb", "xn--skb", false); }
25625794test { try toAsciiPass("xn--skb", "xn--skb", true); }
......@@ -2564,299 +5796,887 @@ test { try toUnicodePass("\xda\xb9", "\xda\xb9"); }
25645796test { try toAsciiPass("\xda\xb9", "xn--skb", false); }
25655797test { try toAsciiPass("\xda\xb9", "xn--skb", true); }
25665798test { try toUnicodeFail("\xf0\x90\xb9\xa6\xe2\x80\x8c\xf0\x90\xb9\xb6\xe3\x80\x82\xe2\x81\xad"); } // [B1, C1]
5799test { try toAsciiFail("\xf0\x90\xb9\xa6\xe2\x80\x8c\xf0\x90\xb9\xb6\xe3\x80\x82\xe2\x81\xad", false); } // [B1, C1, A4_2]
5800test { try toAsciiFail("\xf0\x90\xb9\xa6\xe2\x80\x8c\xf0\x90\xb9\xb6\xe3\x80\x82\xe2\x81\xad", true); } // [B1, A4_2]
25675801test { try toUnicodeFail("xn--eo0d6a."); } // [B1]
5802test { try toAsciiFail("xn--eo0d6a.", false); } // [B1, A4_2]
5803test { try toAsciiFail("xn--eo0d6a.", true); } // [B1, A4_2]
25685804test { try toUnicodeFail("xn--0ug4994goba."); } // [B1, C1]
5805test { try toAsciiFail("xn--0ug4994goba.", false); } // [B1, C1, A4_2]
5806test { try toAsciiFail("xn--0ug4994goba.", true); } // [B1, C1, A4_2]
25695807test { try toUnicodeFail("xn--eo0d6a.xn--sxg"); } // [B1, V7]
5808test { try toAsciiFail("xn--eo0d6a.xn--sxg", false); } // [B1, V7]
5809test { try toAsciiFail("xn--eo0d6a.xn--sxg", true); } // [B1, V7]
25705810test { try toUnicodeFail("xn--0ug4994goba.xn--sxg"); } // [B1, C1, V7]
5811test { try toAsciiFail("xn--0ug4994goba.xn--sxg", false); } // [B1, C1, V7]
5812test { try toAsciiFail("xn--0ug4994goba.xn--sxg", true); } // [B1, C1, V7]
25715813test { try toUnicodeFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa9\xf0\x9d\x9f\xad\xe3\x80\x82-\xf0\x91\x9c\xa8"); } // [V3, V6]
5814test { try toAsciiFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa9\xf0\x9d\x9f\xad\xe3\x80\x82-\xf0\x91\x9c\xa8", false); } // [V3, V6]
5815test { try toAsciiFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa9\xf0\x9d\x9f\xad\xe3\x80\x82-\xf0\x91\x9c\xa8", true); } // [V3, V6]
25725816test { try toUnicodeFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa91\xe3\x80\x82-\xf0\x91\x9c\xa8"); } // [V3, V6]
5817test { try toAsciiFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa91\xe3\x80\x82-\xf0\x91\x9c\xa8", false); } // [V3, V6]
5818test { try toAsciiFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa91\xe3\x80\x82-\xf0\x91\x9c\xa8", true); } // [V3, V6]
25735819test { try toUnicodeFail("xn--1-rfc312cdp45c.xn----nq0j"); } // [V3, V6]
5820test { try toAsciiFail("xn--1-rfc312cdp45c.xn----nq0j", false); } // [V3, V6]
5821test { try toAsciiFail("xn--1-rfc312cdp45c.xn----nq0j", true); } // [V3, V6]
25745822test { try toUnicodeFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xeb\x99\x8f"); } // [V7]
5823test { try toAsciiFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xeb\x99\x8f", false); } // [V7]
5824test { try toAsciiFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xeb\x99\x8f", true); } // [V7]
25755825test { try toUnicodeFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xe1\x84\x84\xe1\x85\xab\xe1\x86\xae"); } // [V7]
5826test { try toAsciiFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xe1\x84\x84\xe1\x85\xab\xe1\x86\xae", false); } // [V7]
5827test { try toAsciiFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xe1\x84\x84\xe1\x85\xab\xe1\x86\xae", true); } // [V7]
25765828test { try toUnicodeFail("xn--ph26c.xn--281b"); } // [V7]
5829test { try toAsciiFail("xn--ph26c.xn--281b", false); } // [V7]
5830test { try toAsciiFail("xn--ph26c.xn--281b", true); } // [V7]
25775831test { try toUnicodeFail("\xf1\x95\xa8\x9a\xf3\xa0\x84\x8c\xf3\x91\xbd\x80\xe1\xa1\x80.\xe0\xa2\xb6"); } // [V7]
5832test { try toAsciiFail("\xf1\x95\xa8\x9a\xf3\xa0\x84\x8c\xf3\x91\xbd\x80\xe1\xa1\x80.\xe0\xa2\xb6", false); } // [V7]
5833test { try toAsciiFail("\xf1\x95\xa8\x9a\xf3\xa0\x84\x8c\xf3\x91\xbd\x80\xe1\xa1\x80.\xe0\xa2\xb6", true); } // [V7]
25785834test { try toUnicodeFail("xn--z7e98100evc01b.xn--czb"); } // [V7]
5835test { try toAsciiFail("xn--z7e98100evc01b.xn--czb", false); } // [V7]
5836test { try toAsciiFail("xn--z7e98100evc01b.xn--czb", true); } // [V7]
25795837test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf1\x85\x81\x9b"); } // [C2, V7]
5838test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf1\x85\x81\x9b", false); } // [C2, V7]
5839test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf1\x85\x81\x9b", true); } // [V7, A4_2]
25805840test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf1\x85\x81\x9b"); } // [C2, V7]
5841test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf1\x85\x81\x9b", false); } // [C2, V7]
5842test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf1\x85\x81\x9b", true); } // [V7, A4_2]
25815843test { try toUnicodeFail(".xn--6x4u"); } // [V7, X4_2]
5844test { try toAsciiFail(".xn--6x4u", false); } // [V7, A4_2]
5845test { try toAsciiFail(".xn--6x4u", true); } // [V7, A4_2]
25825846test { try toUnicodeFail("xn--1ug.xn--6x4u"); } // [C2, V7]
5847test { try toAsciiFail("xn--1ug.xn--6x4u", false); } // [C2, V7]
5848test { try toAsciiFail("xn--1ug.xn--6x4u", true); } // [C2, V7]
25835849test { try toUnicodeFail("\xe0\xa1\x8b\xe7\x9a\xa5\xef\xbc\x8e-"); } // [B1, B2, B3, V3]
5850test { try toAsciiFail("\xe0\xa1\x8b\xe7\x9a\xa5\xef\xbc\x8e-", false); } // [B1, B2, B3, V3]
5851test { try toAsciiFail("\xe0\xa1\x8b\xe7\x9a\xa5\xef\xbc\x8e-", true); } // [B1, B2, B3, V3]
25845852test { try toUnicodeFail("\xe0\xa1\x8b\xe7\x9a\xa5.-"); } // [B1, B2, B3, V3]
5853test { try toAsciiFail("\xe0\xa1\x8b\xe7\x9a\xa5.-", false); } // [B1, B2, B3, V3]
5854test { try toAsciiFail("\xe0\xa1\x8b\xe7\x9a\xa5.-", true); } // [B1, B2, B3, V3]
25855855test { try toUnicodeFail("xn--9vb4167c.-"); } // [B1, B2, B3, V3]
5856test { try toAsciiFail("xn--9vb4167c.-", false); } // [B1, B2, B3, V3]
5857test { try toAsciiFail("xn--9vb4167c.-", true); } // [B1, B2, B3, V3]
25865858test { try toUnicodeFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87\xef\xbc\x8e\xe2\x92\x88\xea\xa1\xa6"); } // [B1, V7]
5859test { try toAsciiFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87\xef\xbc\x8e\xe2\x92\x88\xea\xa1\xa6", false); } // [B1, V7]
5860test { try toAsciiFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87\xef\xbc\x8e\xe2\x92\x88\xea\xa1\xa6", true); } // [B1, V7]
25875861test { try toUnicodeFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87.1.\xea\xa1\xa6"); } // [B1, V7]
5862test { try toAsciiFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87.1.\xea\xa1\xa6", false); } // [B1, V7]
5863test { try toAsciiFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87.1.\xea\xa1\xa6", true); } // [B1, V7]
25885864test { try toUnicodeFail("xn--5sa9915kgvb.1.xn--cd9a"); } // [B1, V7]
5865test { try toAsciiFail("xn--5sa9915kgvb.1.xn--cd9a", false); } // [B1, V7]
5866test { try toAsciiFail("xn--5sa9915kgvb.1.xn--cd9a", true); } // [B1, V7]
25895867test { try toUnicodeFail("xn--5sa9915kgvb.xn--tshw539b"); } // [B1, V7]
5868test { try toAsciiFail("xn--5sa9915kgvb.xn--tshw539b", false); } // [B1, V7]
5869test { try toAsciiFail("xn--5sa9915kgvb.xn--tshw539b", true); } // [B1, V7]
25905870test { try toUnicodeFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x81\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5871test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x81\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5872test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x81\xf0\x90\xb9\xa6", true); } // [B5, B6]
25915873test { try toUnicodeFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0a\xcc\x84\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5874test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0a\xcc\x84\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5875test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0a\xcc\x84\xf0\x90\xb9\xa6", true); } // [B5, B6]
25925876test { try toUnicodeFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x81\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5877test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x81\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5878test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x81\xf0\x90\xb9\xa6", true); } // [B5, B6]
25935879test { try toUnicodeFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0a\xcc\x84\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5880test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0a\xcc\x84\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5881test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0a\xcc\x84\xf0\x90\xb9\xa6", true); } // [B5, B6]
25945882test { try toUnicodeFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0a\xcc\x84\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5883test { try toAsciiFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0a\xcc\x84\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5884test { try toAsciiFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0a\xcc\x84\xf0\x90\xb9\xa6", true); } // [B5, B6]
25955885test { try toUnicodeFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x81\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5886test { try toAsciiFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x81\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5887test { try toAsciiFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x81\xf0\x90\xb9\xa6", true); } // [B5, B6]
25965888test { try toUnicodeFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x80\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5889test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x80\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5890test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0\xc4\x80\xf0\x90\xb9\xa6", true); } // [B5, B6]
25975891test { try toUnicodeFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0A\xcc\x84\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5892test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0A\xcc\x84\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5893test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xe1\x85\xa0A\xcc\x84\xf0\x90\xb9\xa6", true); } // [B5, B6]
25985894test { try toUnicodeFail("xn--tcb323r.xn--yda4409k"); } // [B5, B6]
5895test { try toAsciiFail("xn--tcb323r.xn--yda4409k", false); } // [B5, B6]
5896test { try toAsciiFail("xn--tcb323r.xn--yda4409k", true); } // [B5, B6]
25995897test { try toUnicodeFail("xn--tcb736kea974k.xn--yda4409k"); } // [B5, B6, C1, C2]
5898test { try toAsciiFail("xn--tcb736kea974k.xn--yda4409k", false); } // [B5, B6, C1, C2]
5899test { try toAsciiFail("xn--tcb736kea974k.xn--yda4409k", true); } // [B5, B6, C1, C2]
26005900test { try toUnicodeFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0a\xcc\x84\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5901test { try toAsciiFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0a\xcc\x84\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5902test { try toAsciiFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0a\xcc\x84\xf0\x90\xb9\xa6", true); } // [B5, B6]
26015903test { try toUnicodeFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x81\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5904test { try toAsciiFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x81\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5905test { try toAsciiFail("\xe2\xb4\x9b\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x81\xf0\x90\xb9\xa6", true); } // [B5, B6]
26025906test { try toUnicodeFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x80\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5907test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x80\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5908test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0\xc4\x80\xf0\x90\xb9\xa6", true); } // [B5, B6]
26035909test { try toUnicodeFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0A\xcc\x84\xf0\x90\xb9\xa6"); } // [B5, B6, C1, C2]
5910test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0A\xcc\x84\xf0\x90\xb9\xa6", false); } // [B5, B6, C1, C2]
5911test { try toAsciiFail("\xe1\x82\xbb\xe2\x80\x8c\xd6\xa2\xe2\x80\x8d\xe3\x80\x82\xef\xbe\xa0A\xcc\x84\xf0\x90\xb9\xa6", true); } // [B5, B6]
26045912test { try toUnicodeFail("xn--tcb597c.xn--yda594fdn5q"); } // [B5, B6, V7]
5913test { try toAsciiFail("xn--tcb597c.xn--yda594fdn5q", false); } // [B5, B6, V7]
5914test { try toAsciiFail("xn--tcb597c.xn--yda594fdn5q", true); } // [B5, B6, V7]
26055915test { try toUnicodeFail("xn--tcb597cdmmfa.xn--yda594fdn5q"); } // [B5, B6, C1, C2, V7]
5916test { try toAsciiFail("xn--tcb597cdmmfa.xn--yda594fdn5q", false); } // [B5, B6, C1, C2, V7]
5917test { try toAsciiFail("xn--tcb597cdmmfa.xn--yda594fdn5q", true); } // [B5, B6, C1, C2, V7]
26065918test { try toUnicodeFail("xn--tcb323r.xn--yda594fdn5q"); } // [B5, B6, V7]
5919test { try toAsciiFail("xn--tcb323r.xn--yda594fdn5q", false); } // [B5, B6, V7]
5920test { try toAsciiFail("xn--tcb323r.xn--yda594fdn5q", true); } // [B5, B6, V7]
26075921test { try toUnicodeFail("xn--tcb736kea974k.xn--yda594fdn5q"); } // [B5, B6, C1, C2, V7]
5922test { try toAsciiFail("xn--tcb736kea974k.xn--yda594fdn5q", false); } // [B5, B6, C1, C2, V7]
5923test { try toAsciiFail("xn--tcb736kea974k.xn--yda594fdn5q", true); } // [B5, B6, C1, C2, V7]
26085924test { try toUnicodeFail("xn--tcb597c.xn--yda9741khjj"); } // [B5, B6, V7]
5925test { try toAsciiFail("xn--tcb597c.xn--yda9741khjj", false); } // [B5, B6, V7]
5926test { try toAsciiFail("xn--tcb597c.xn--yda9741khjj", true); } // [B5, B6, V7]
26095927test { try toUnicodeFail("xn--tcb597cdmmfa.xn--yda9741khjj"); } // [B5, B6, C1, C2, V7]
5928test { try toAsciiFail("xn--tcb597cdmmfa.xn--yda9741khjj", false); } // [B5, B6, C1, C2, V7]
5929test { try toAsciiFail("xn--tcb597cdmmfa.xn--yda9741khjj", true); } // [B5, B6, C1, C2, V7]
26105930test { try toUnicodeFail("xn--tcb323r.xn--yda9741khjj"); } // [B5, B6, V7]
5931test { try toAsciiFail("xn--tcb323r.xn--yda9741khjj", false); } // [B5, B6, V7]
5932test { try toAsciiFail("xn--tcb323r.xn--yda9741khjj", true); } // [B5, B6, V7]
26115933test { try toUnicodeFail("xn--tcb736kea974k.xn--yda9741khjj"); } // [B5, B6, C1, C2, V7]
5934test { try toAsciiFail("xn--tcb736kea974k.xn--yda9741khjj", false); } // [B5, B6, C1, C2, V7]
5935test { try toAsciiFail("xn--tcb736kea974k.xn--yda9741khjj", true); } // [B5, B6, C1, C2, V7]
26125936test { try toUnicodeFail("\xef\xbf\xb9\xe2\x80\x8c\xef\xbd\xa1\xe6\x9b\xb3\xe2\xbe\x91\xf0\x90\x8b\xb0\xe2\x89\xaf"); } // [C1, V7]
5937test { try toAsciiFail("\xef\xbf\xb9\xe2\x80\x8c\xef\xbd\xa1\xe6\x9b\xb3\xe2\xbe\x91\xf0\x90\x8b\xb0\xe2\x89\xaf", false); } // [C1, V7]
5938test { try toAsciiFail("\xef\xbf\xb9\xe2\x80\x8c\xef\xbd\xa1\xe6\x9b\xb3\xe2\xbe\x91\xf0\x90\x8b\xb0\xe2\x89\xaf", true); } // [V7]
26135939test { try toUnicodeFail("\xef\xbf\xb9\xe2\x80\x8c\xef\xbd\xa1\xe6\x9b\xb3\xe2\xbe\x91\xf0\x90\x8b\xb0>\xcc\xb8"); } // [C1, V7]
5940test { try toAsciiFail("\xef\xbf\xb9\xe2\x80\x8c\xef\xbd\xa1\xe6\x9b\xb3\xe2\xbe\x91\xf0\x90\x8b\xb0>\xcc\xb8", false); } // [C1, V7]
5941test { try toAsciiFail("\xef\xbf\xb9\xe2\x80\x8c\xef\xbd\xa1\xe6\x9b\xb3\xe2\xbe\x91\xf0\x90\x8b\xb0>\xcc\xb8", true); } // [V7]
26145942test { try toUnicodeFail("\xef\xbf\xb9\xe2\x80\x8c\xe3\x80\x82\xe6\x9b\xb3\xe8\xa5\xbe\xf0\x90\x8b\xb0\xe2\x89\xaf"); } // [C1, V7]
5943test { try toAsciiFail("\xef\xbf\xb9\xe2\x80\x8c\xe3\x80\x82\xe6\x9b\xb3\xe8\xa5\xbe\xf0\x90\x8b\xb0\xe2\x89\xaf", false); } // [C1, V7]
5944test { try toAsciiFail("\xef\xbf\xb9\xe2\x80\x8c\xe3\x80\x82\xe6\x9b\xb3\xe8\xa5\xbe\xf0\x90\x8b\xb0\xe2\x89\xaf", true); } // [V7]
26155945test { try toUnicodeFail("\xef\xbf\xb9\xe2\x80\x8c\xe3\x80\x82\xe6\x9b\xb3\xe8\xa5\xbe\xf0\x90\x8b\xb0>\xcc\xb8"); } // [C1, V7]
5946test { try toAsciiFail("\xef\xbf\xb9\xe2\x80\x8c\xe3\x80\x82\xe6\x9b\xb3\xe8\xa5\xbe\xf0\x90\x8b\xb0>\xcc\xb8", false); } // [C1, V7]
5947test { try toAsciiFail("\xef\xbf\xb9\xe2\x80\x8c\xe3\x80\x82\xe6\x9b\xb3\xe8\xa5\xbe\xf0\x90\x8b\xb0>\xcc\xb8", true); } // [V7]
26165948test { try toUnicodeFail("xn--vn7c.xn--hdh501y8wvfs5h"); } // [V7]
5949test { try toAsciiFail("xn--vn7c.xn--hdh501y8wvfs5h", false); } // [V7]
5950test { try toAsciiFail("xn--vn7c.xn--hdh501y8wvfs5h", true); } // [V7]
26175951test { try toUnicodeFail("xn--0ug2139f.xn--hdh501y8wvfs5h"); } // [C1, V7]
5952test { try toAsciiFail("xn--0ug2139f.xn--hdh501y8wvfs5h", false); } // [C1, V7]
5953test { try toAsciiFail("xn--0ug2139f.xn--hdh501y8wvfs5h", true); } // [C1, V7]
26185954test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82\xc3\x9f"); } // [V7]
5955test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82\xc3\x9f", false); } // [V7]
5956test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82\xc3\x9f", true); } // [V7]
26195957test { 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]
5959test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f", true); } // [V7]
26205960test { 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]
5962test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82\xc3\x9f", true); } // [A4_2]
26215963test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82\xc3\x9f"); } // [X4_2]
5964test { 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]
26225966test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82SS"); } // [X4_2]
5967test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82SS", false); } // [A4_2]
5968test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82SS", true); } // [A4_2]
26235969test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82SS"); } // [X4_2]
5970test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82SS", false); } // [A4_2]
5971test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82SS", true); } // [A4_2]
26245972test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82ss"); } // [X4_2]
5973test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82ss", false); } // [A4_2]
5974test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82ss", true); } // [A4_2]
26255975test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82ss"); } // [X4_2]
5976test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82ss", false); } // [A4_2]
5977test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82ss", true); } // [A4_2]
26265978test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82Ss"); } // [X4_2]
5979test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82Ss", false); } // [A4_2]
5980test { try toAsciiFail(">\xcc\xb81.\xe3\x80\x82Ss", true); } // [A4_2]
26275981test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82Ss"); } // [X4_2]
5982test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82Ss", false); } // [A4_2]
5983test { try toAsciiFail("\xe2\x89\xaf1.\xe3\x80\x82Ss", true); } // [A4_2]
26285984test { try toUnicodeFail("xn--1-ogo..ss"); } // [X4_2]
5985test { try toAsciiFail("xn--1-ogo..ss", false); } // [A4_2]
5986test { try toAsciiFail("xn--1-ogo..ss", true); } // [A4_2]
26295987test { try toUnicodeFail("xn--1-ogo..xn--zca"); } // [X4_2]
5988test { try toAsciiFail("xn--1-ogo..xn--zca", false); } // [A4_2]
5989test { try toAsciiFail("xn--1-ogo..xn--zca", true); } // [A4_2]
26305990test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82SS"); } // [V7]
5991test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82SS", false); } // [V7]
5992test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82SS", true); } // [V7]
26315993test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82SS"); } // [V7]
5994test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82SS", false); } // [V7]
5995test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82SS", true); } // [V7]
26325996test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82ss"); } // [V7]
5997test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82ss", false); } // [V7]
5998test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82ss", true); } // [V7]
26335999test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82ss"); } // [V7]
6000test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82ss", false); } // [V7]
6001test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82ss", true); } // [V7]
26346002test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82Ss"); } // [V7]
6003test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82Ss", false); } // [V7]
6004test { try toAsciiFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82Ss", true); } // [V7]
26356005test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82Ss"); } // [V7]
6006test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82Ss", false); } // [V7]
6007test { try toAsciiFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82Ss", true); } // [V7]
26366008test { try toUnicodeFail("xn--hdh84f.ss"); } // [V7]
6009test { try toAsciiFail("xn--hdh84f.ss", false); } // [V7]
6010test { try toAsciiFail("xn--hdh84f.ss", true); } // [V7]
26376011test { try toUnicodeFail("xn--hdh84f.xn--zca"); } // [V7]
6012test { try toAsciiFail("xn--hdh84f.xn--zca", false); } // [V7]
6013test { try toAsciiFail("xn--hdh84f.xn--zca", true); } // [V7]
26386014test { try toUnicodeFail("\xd9\xa7\xe2\x80\x8d\xef\xae\x96\xef\xbd\xa1\xdf\x9a-\xe2\x82\x86\xe1\x82\xb9"); } // [B1, B2, B3, C2]
6015test { try toAsciiFail("\xd9\xa7\xe2\x80\x8d\xef\xae\x96\xef\xbd\xa1\xdf\x9a-\xe2\x82\x86\xe1\x82\xb9", false); } // [B1, B2, B3, C2]
6016test { try toAsciiFail("\xd9\xa7\xe2\x80\x8d\xef\xae\x96\xef\xbd\xa1\xdf\x9a-\xe2\x82\x86\xe1\x82\xb9", true); } // [B1, B2, B3]
26396017test { try toUnicodeFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe1\x82\xb9"); } // [B1, B2, B3, C2]
6018test { try toAsciiFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe1\x82\xb9", false); } // [B1, B2, B3, C2]
6019test { try toAsciiFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe1\x82\xb9", true); } // [B1, B2, B3]
26406020test { try toUnicodeFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe2\xb4\x99"); } // [B1, B2, B3, C2]
6021test { try toAsciiFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe2\xb4\x99", false); } // [B1, B2, B3, C2]
6022test { try toAsciiFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe2\xb4\x99", true); } // [B1, B2, B3]
26416023test { try toUnicodeFail("xn--gib6m.xn---6-lve6529a"); } // [B1, B2, B3]
6024test { try toAsciiFail("xn--gib6m.xn---6-lve6529a", false); } // [B1, B2, B3]
6025test { try toAsciiFail("xn--gib6m.xn---6-lve6529a", true); } // [B1, B2, B3]
26426026test { try toUnicodeFail("xn--gib6m343e.xn---6-lve6529a"); } // [B1, B2, B3, C2]
6027test { try toAsciiFail("xn--gib6m343e.xn---6-lve6529a", false); } // [B1, B2, B3, C2]
6028test { try toAsciiFail("xn--gib6m343e.xn---6-lve6529a", true); } // [B1, B2, B3, C2]
26436029test { try toUnicodeFail("\xd9\xa7\xe2\x80\x8d\xef\xae\x96\xef\xbd\xa1\xdf\x9a-\xe2\x82\x86\xe2\xb4\x99"); } // [B1, B2, B3, C2]
6030test { try toAsciiFail("\xd9\xa7\xe2\x80\x8d\xef\xae\x96\xef\xbd\xa1\xdf\x9a-\xe2\x82\x86\xe2\xb4\x99", false); } // [B1, B2, B3, C2]
6031test { try toAsciiFail("\xd9\xa7\xe2\x80\x8d\xef\xae\x96\xef\xbd\xa1\xdf\x9a-\xe2\x82\x86\xe2\xb4\x99", true); } // [B1, B2, B3]
26446032test { try toUnicodeFail("xn--gib6m.xn---6-lve002g"); } // [B1, B2, B3, V7]
6033test { try toAsciiFail("xn--gib6m.xn---6-lve002g", false); } // [B1, B2, B3, V7]
6034test { try toAsciiFail("xn--gib6m.xn---6-lve002g", true); } // [B1, B2, B3, V7]
26456035test { try toUnicodeFail("xn--gib6m343e.xn---6-lve002g"); } // [B1, B2, B3, C2, V7]
6036test { try toAsciiFail("xn--gib6m343e.xn---6-lve002g", false); } // [B1, B2, B3, C2, V7]
6037test { try toAsciiFail("xn--gib6m343e.xn---6-lve002g", true); } // [B1, B2, B3, C2, V7]
26466038test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xa0"); } // [C1]
6039test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xa0", false); } // [C1]
6040test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xa0", true); } // [A4_2]
26476041test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1=\xcc\xb8"); } // [C1]
6042test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1=\xcc\xb8", false); } // [C1]
6043test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1=\xcc\xb8", true); } // [A4_2]
26486044test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xa0"); } // [C1]
6045test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xa0", false); } // [C1]
6046test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xa0", true); } // [A4_2]
26496047test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8"); } // [C1]
6048test { 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]
26506050test { try toUnicodeFail(".xn--1ch"); } // [X4_2]
6051test { try toAsciiFail(".xn--1ch", false); } // [A4_2]
6052test { try toAsciiFail(".xn--1ch", true); } // [A4_2]
26516053test { try toUnicodeFail("xn--0ug.xn--1ch"); } // [C1]
6054test { try toAsciiFail("xn--0ug.xn--1ch", false); } // [C1]
6055test { try toAsciiFail("xn--0ug.xn--1ch", true); } // [C1]
26526056test { try toUnicodeFail("\xf0\x91\x96\xbf\xf0\x9d\xa8\x94.\xe1\xa1\x9f\xf0\x91\x96\xbf\xe1\xad\x82\xe2\x80\x8c"); } // [C1, V6]
6057test { try toAsciiFail("\xf0\x91\x96\xbf\xf0\x9d\xa8\x94.\xe1\xa1\x9f\xf0\x91\x96\xbf\xe1\xad\x82\xe2\x80\x8c", false); } // [C1, V6]
6058test { try toAsciiFail("\xf0\x91\x96\xbf\xf0\x9d\xa8\x94.\xe1\xa1\x9f\xf0\x91\x96\xbf\xe1\xad\x82\xe2\x80\x8c", true); } // [V6]
26536059test { try toUnicodeFail("xn--461dw464a.xn--v8e29loy65a"); } // [V6]
6060test { try toAsciiFail("xn--461dw464a.xn--v8e29loy65a", false); } // [V6]
6061test { try toAsciiFail("xn--461dw464a.xn--v8e29loy65a", true); } // [V6]
26546062test { try toUnicodeFail("xn--461dw464a.xn--v8e29ldzfo952a"); } // [C1, V6]
6063test { try toAsciiFail("xn--461dw464a.xn--v8e29ldzfo952a", false); } // [C1, V6]
6064test { try toAsciiFail("xn--461dw464a.xn--v8e29ldzfo952a", true); } // [C1, V6]
26556065test { try toUnicodeFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x83\xe2\x89\xa0-"); } // [C2, V3, V6, V7]
6066test { try toAsciiFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x83\xe2\x89\xa0-", false); } // [C2, V3, V6, V7]
6067test { try toAsciiFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x83\xe2\x89\xa0-", true); } // [V3, V6, V7]
26566068test { try toUnicodeFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x83=\xcc\xb8-"); } // [C2, V3, V6, V7]
6069test { try toAsciiFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x83=\xcc\xb8-", false); } // [C2, V3, V6, V7]
6070test { try toAsciiFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x83=\xcc\xb8-", true); } // [V3, V6, V7]
26576071test { try toUnicodeFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x84=\xcc\xb8-"); } // [C2, V3, V6, V7]
6072test { try toAsciiFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x84=\xcc\xb8-", false); } // [C2, V3, V6, V7]
6073test { try toAsciiFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x84=\xcc\xb8-", true); } // [V3, V6, V7]
26586074test { try toUnicodeFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x84\xe2\x89\xa0-"); } // [C2, V3, V6, V7]
6075test { try toAsciiFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x84\xe2\x89\xa0-", false); } // [C2, V3, V6, V7]
6076test { try toAsciiFail("\xf2\x94\xa3\xb3\xe2\x80\x8d\xf2\x91\x9d\xb1.\xf0\x96\xac\xb4\xe2\x86\x84\xe2\x89\xa0-", true); } // [V3, V6, V7]
26596077test { try toUnicodeFail("xn--6j00chy9a.xn----81n51bt713h"); } // [V3, V6, V7]
6078test { try toAsciiFail("xn--6j00chy9a.xn----81n51bt713h", false); } // [V3, V6, V7]
6079test { try toAsciiFail("xn--6j00chy9a.xn----81n51bt713h", true); } // [V3, V6, V7]
26606080test { try toUnicodeFail("xn--1ug15151gkb5a.xn----81n51bt713h"); } // [C2, V3, V6, V7]
6081test { try toAsciiFail("xn--1ug15151gkb5a.xn----81n51bt713h", false); } // [C2, V3, V6, V7]
6082test { try toAsciiFail("xn--1ug15151gkb5a.xn----81n51bt713h", true); } // [C2, V3, V6, V7]
26616083test { try toUnicodeFail("xn--6j00chy9a.xn----61n81bt713h"); } // [V3, V6, V7]
6084test { try toAsciiFail("xn--6j00chy9a.xn----61n81bt713h", false); } // [V3, V6, V7]
6085test { try toAsciiFail("xn--6j00chy9a.xn----61n81bt713h", true); } // [V3, V6, V7]
26626086test { try toUnicodeFail("xn--1ug15151gkb5a.xn----61n81bt713h"); } // [C2, V3, V6, V7]
6087test { try toAsciiFail("xn--1ug15151gkb5a.xn----61n81bt713h", false); } // [C2, V3, V6, V7]
6088test { try toAsciiFail("xn--1ug15151gkb5a.xn----61n81bt713h", true); } // [C2, V3, V6, V7]
26636089test { try toUnicodeFail("\xdf\xa2\xcf\x82\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
6090test { try toAsciiFail("\xdf\xa2\xcf\x82\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", false); } // [B2, C2, V7]
6091test { try toAsciiFail("\xdf\xa2\xcf\x82\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", true); } // [B2, V7]
26646092test { try toUnicodeFail("\xdf\xa2\xcf\x82\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
6093test { try toAsciiFail("\xdf\xa2\xcf\x82\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", false); } // [B2, C2, V7]
6094test { try toAsciiFail("\xdf\xa2\xcf\x82\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", true); } // [B2, V7]
26656095test { try toUnicodeFail("\xdf\xa2\xce\xa3\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
6096test { try toAsciiFail("\xdf\xa2\xce\xa3\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", false); } // [B2, C2, V7]
6097test { try toAsciiFail("\xdf\xa2\xce\xa3\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", true); } // [B2, V7]
26666098test { try toUnicodeFail("\xdf\xa2\xcf\x83\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
6099test { try toAsciiFail("\xdf\xa2\xcf\x83\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", false); } // [B2, C2, V7]
6100test { try toAsciiFail("\xdf\xa2\xcf\x83\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", true); } // [B2, V7]
26676101test { try toUnicodeFail("xn--7-zmb872a.xn--wy1ao4929b"); } // [B2, V7]
6102test { try toAsciiFail("xn--7-zmb872a.xn--wy1ao4929b", false); } // [B2, V7]
6103test { try toAsciiFail("xn--7-zmb872a.xn--wy1ao4929b", true); } // [B2, V7]
26686104test { try toUnicodeFail("xn--7-zmb872aez5a.xn--wy1ao4929b"); } // [B2, C2, V7]
6105test { try toAsciiFail("xn--7-zmb872aez5a.xn--wy1ao4929b", false); } // [B2, C2, V7]
6106test { try toAsciiFail("xn--7-zmb872aez5a.xn--wy1ao4929b", true); } // [B2, C2, V7]
26696107test { try toUnicodeFail("xn--7-xmb182aez5a.xn--wy1ao4929b"); } // [B2, C2, V7]
6108test { try toAsciiFail("xn--7-xmb182aez5a.xn--wy1ao4929b", false); } // [B2, C2, V7]
6109test { try toAsciiFail("xn--7-xmb182aez5a.xn--wy1ao4929b", true); } // [B2, C2, V7]
26706110test { try toUnicodeFail("\xdf\xa2\xce\xa3\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
6111test { try toAsciiFail("\xdf\xa2\xce\xa3\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", false); } // [B2, C2, V7]
6112test { try toAsciiFail("\xdf\xa2\xce\xa3\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", true); } // [B2, V7]
26716113test { try toUnicodeFail("\xdf\xa2\xcf\x83\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
6114test { try toAsciiFail("\xdf\xa2\xcf\x83\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", false); } // [B2, C2, V7]
6115test { try toAsciiFail("\xdf\xa2\xcf\x83\xe2\x80\x8d\xf0\x9d\x9f\xb3\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2", true); } // [B2, V7]
26726116test { try toUnicodeFail("\xf0\x90\xb9\xb0.\xd8\x80"); } // [B1, V7]
6117test { try toAsciiFail("\xf0\x90\xb9\xb0.\xd8\x80", false); } // [B1, V7]
6118test { try toAsciiFail("\xf0\x90\xb9\xb0.\xd8\x80", true); } // [B1, V7]
26736119test { try toUnicodeFail("xn--oo0d.xn--ifb"); } // [B1, V7]
6120test { try toAsciiFail("xn--oo0d.xn--ifb", false); } // [B1, V7]
6121test { try toAsciiFail("xn--oo0d.xn--ifb", true); } // [B1, V7]
26746122test { try toUnicodeFail("-\xe0\xa2\xa8.\xf0\xb1\xa0\x96"); } // [B1, V3]
6123test { try toAsciiFail("-\xe0\xa2\xa8.\xf0\xb1\xa0\x96", false); } // [B1, V3]
6124test { try toAsciiFail("-\xe0\xa2\xa8.\xf0\xb1\xa0\x96", true); } // [B1, V3]
26756125test { try toUnicodeFail("xn----mod.xn--5o9n"); } // [B1, V3]
6126test { try toAsciiFail("xn----mod.xn--5o9n", false); } // [B1, V3]
6127test { try toAsciiFail("xn----mod.xn--5o9n", true); } // [B1, V3]
26766128test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88"); } // [B1, V7]
6129test { try toAsciiFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88", false); } // [B1, V7]
6130test { try toAsciiFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88", true); } // [B1, V7]
26776131test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88"); } // [B1, V7]
6132test { try toAsciiFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88", false); } // [B1, V7]
6133test { try toAsciiFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88", true); } // [B1, V7]
26786134test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861."); } // [B1]
6135test { try toAsciiFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861.", false); } // [B1, A4_2]
6136test { try toAsciiFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861.", true); } // [B1, A4_2]
26796137test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861."); } // [B1]
6138test { try toAsciiFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861.", false); } // [B1, A4_2]
6139test { try toAsciiFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861.", true); } // [B1, A4_2]
26806140test { try toUnicodeFail("xn--hdh7151p.xn--1-dy1d."); } // [B1]
6141test { try toAsciiFail("xn--hdh7151p.xn--1-dy1d.", false); } // [B1, A4_2]
6142test { try toAsciiFail("xn--hdh7151p.xn--1-dy1d.", true); } // [B1, A4_2]
26816143test { try toUnicodeFail("xn--hdh7151p.xn--tsh1248a"); } // [B1, V7]
6144test { try toAsciiFail("xn--hdh7151p.xn--tsh1248a", false); } // [B1, V7]
6145test { try toAsciiFail("xn--hdh7151p.xn--tsh1248a", true); } // [B1, V7]
26826146test { try toUnicodeFail("\xd8\x96\xf0\x9e\xa5\x99\xe4\x90\x8a\xd9\x90\xef\xbc\x8e\xef\xb8\x92\xd9\x85\xe2\x86\xba\xda\x9c"); } // [B1, V6, V7]
6147test { try toAsciiFail("\xd8\x96\xf0\x9e\xa5\x99\xe4\x90\x8a\xd9\x90\xef\xbc\x8e\xef\xb8\x92\xd9\x85\xe2\x86\xba\xda\x9c", false); } // [B1, V6, V7]
6148test { try toAsciiFail("\xd8\x96\xf0\x9e\xa5\x99\xe4\x90\x8a\xd9\x90\xef\xbc\x8e\xef\xb8\x92\xd9\x85\xe2\x86\xba\xda\x9c", true); } // [B1, V6, V7]
26836149test { try toUnicodeFail("\xd8\x96\xf0\x9e\xa5\x99\xe4\x90\x8a\xd9\x90.\xe3\x80\x82\xd9\x85\xe2\x86\xba\xda\x9c"); } // [B1, V6, X4_2]
6150test { try toAsciiFail("\xd8\x96\xf0\x9e\xa5\x99\xe4\x90\x8a\xd9\x90.\xe3\x80\x82\xd9\x85\xe2\x86\xba\xda\x9c", false); } // [B1, V6, A4_2]
6151test { try toAsciiFail("\xd8\x96\xf0\x9e\xa5\x99\xe4\x90\x8a\xd9\x90.\xe3\x80\x82\xd9\x85\xe2\x86\xba\xda\x9c", true); } // [B1, V6, A4_2]
26846152test { try toUnicodeFail("xn--4fb0j490qjg4x..xn--hhb8o948e"); } // [B1, V6, X4_2]
6153test { try toAsciiFail("xn--4fb0j490qjg4x..xn--hhb8o948e", false); } // [B1, V6, A4_2]
6154test { try toAsciiFail("xn--4fb0j490qjg4x..xn--hhb8o948e", true); } // [B1, V6, A4_2]
26856155test { try toUnicodeFail("xn--4fb0j490qjg4x.xn--hhb8o948euo5r"); } // [B1, V6, V7]
6156test { try toAsciiFail("xn--4fb0j490qjg4x.xn--hhb8o948euo5r", false); } // [B1, V6, V7]
6157test { try toAsciiFail("xn--4fb0j490qjg4x.xn--hhb8o948euo5r", true); } // [B1, V6, V7]
26866158test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.\xe2\x80\x8c\xe0\xab\x85\xf3\xa9\xb8\xa4\xdb\xb4"); } // [C1, V7, U1]
6159test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.\xe2\x80\x8c\xe0\xab\x85\xf3\xa9\xb8\xa4\xdb\xb4", false); } // [C1, V7, U1]
6160test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.\xe2\x80\x8c\xe0\xab\x85\xf3\xa9\xb8\xa4\xdb\xb4", true); } // [V6, V7, U1]
26876161test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.\xe2\x80\x8c\xe0\xab\x85\xf3\xa9\xb8\xa4\xdb\xb4"); } // [C1, V7, U1]
6162test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.\xe2\x80\x8c\xe0\xab\x85\xf3\xa9\xb8\xa4\xdb\xb4", false); } // [C1, V7, U1]
6163test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.\xe2\x80\x8c\xe0\xab\x85\xf3\xa9\xb8\xa4\xdb\xb4", true); } // [V6, V7, U1]
26886164test { try toUnicodeFail("xn---?-6g4k75207c.xn--hmb76q74166b"); } // [V6, V7, U1]
6165test { try toAsciiFail("xn---?-6g4k75207c.xn--hmb76q74166b", false); } // [V6, V7, U1]
6166test { try toAsciiFail("xn---?-6g4k75207c.xn--hmb76q74166b", true); } // [V6, V7, U1]
26896167test { try toUnicodeFail("xn---?-6g4k75207c.xn--hmb76q48y18505a"); } // [C1, V7, U1]
6168test { try toAsciiFail("xn---?-6g4k75207c.xn--hmb76q48y18505a", false); } // [C1, V7, U1]
6169test { try toAsciiFail("xn---?-6g4k75207c.xn--hmb76q48y18505a", true); } // [C1, V7, U1]
26906170test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q74166b"); } // [V6, V7, U1]
6171test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q74166b", false); } // [V6, V7, U1]
6172test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q74166b", true); } // [V6, V7, U1]
26916173test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q74166b"); } // [V6, V7, U1]
6174test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q74166b", false); } // [V6, V7, U1]
6175test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q74166b", true); } // [V6, V7, U1]
26926176test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B"); } // [V6, V7, U1]
6177test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B", false); } // [V6, V7, U1]
6178test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B", true); } // [V6, V7, U1]
26936179test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B"); } // [V6, V7, U1]
6180test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B", false); } // [V6, V7, U1]
6181test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B", true); } // [V6, V7, U1]
26946182test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b"); } // [V6, V7, U1]
6183test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b", false); } // [V6, V7, U1]
6184test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b", true); } // [V6, V7, U1]
26956185test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b"); } // [V6, V7, U1]
6186test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b", false); } // [V6, V7, U1]
6187test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b", true); } // [V6, V7, U1]
26966188test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a"); } // [C1, V7, U1]
6189test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a", false); } // [C1, V7, U1]
6190test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a", true); } // [C1, V7, U1]
26976191test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a"); } // [C1, V7, U1]
6192test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a", false); } // [C1, V7, U1]
6193test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a", true); } // [C1, V7, U1]
26986194test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A"); } // [C1, V7, U1]
6195test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A", false); } // [C1, V7, U1]
6196test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A", true); } // [C1, V7, U1]
26996197test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A"); } // [C1, V7, U1]
6198test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A", false); } // [C1, V7, U1]
6199test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A", true); } // [C1, V7, U1]
27006200test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a"); } // [C1, V7, U1]
6201test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a", false); } // [C1, V7, U1]
6202test { try toAsciiFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a", true); } // [C1, V7, U1]
27016203test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a"); } // [C1, V7, U1]
6204test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a", false); } // [C1, V7, U1]
6205test { try toAsciiFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a", true); } // [C1, V7, U1]
27026206test { try toUnicodeFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V7]
6207test { try toAsciiFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84", false); } // [B1, V7]
6208test { try toAsciiFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84", true); } // [B1, V7]
27036209test { try toUnicodeFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V6, V7]
6210test { try toAsciiFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84", false); } // [B1, V6, V7]
6211test { try toAsciiFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84", true); } // [B1, V6, V7]
27046212test { try toUnicodeFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V6, V7]
6213test { try toAsciiFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84", false); } // [B1, V6, V7]
6214test { try toAsciiFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84", true); } // [B1, V6, V7]
27056215test { try toUnicodeFail("xn--3kj.xn--2o0d.xn--q30dg029a"); } // [B1, V6, V7]
6216test { try toAsciiFail("xn--3kj.xn--2o0d.xn--q30dg029a", false); } // [B1, V6, V7]
6217test { try toAsciiFail("xn--3kj.xn--2o0d.xn--q30dg029a", true); } // [B1, V6, V7]
27066218test { try toUnicodeFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V7]
6219test { try toAsciiFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84", false); } // [B1, V7]
6220test { try toAsciiFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84", true); } // [B1, V7]
27076221test { try toUnicodeFail("xn--3kj.xn--y86c030a9ob6374b"); } // [B1, V7]
6222test { try toAsciiFail("xn--3kj.xn--y86c030a9ob6374b", false); } // [B1, V7]
6223test { try toAsciiFail("xn--3kj.xn--y86c030a9ob6374b", true); } // [B1, V7]
27086224test { try toUnicodeFail("xn--knd.xn--2o0d.xn--q30dg029a"); } // [B1, V6, V7]
6225test { try toAsciiFail("xn--knd.xn--2o0d.xn--q30dg029a", false); } // [B1, V6, V7]
6226test { try toAsciiFail("xn--knd.xn--2o0d.xn--q30dg029a", true); } // [B1, V6, V7]
27096227test { try toUnicodeFail("xn--knd.xn--y86c030a9ob6374b"); } // [B1, V7]
6228test { try toAsciiFail("xn--knd.xn--y86c030a9ob6374b", false); } // [B1, V7]
6229test { try toAsciiFail("xn--knd.xn--y86c030a9ob6374b", true); } // [B1, V7]
27106230test { try toUnicodeFail("\xf1\xa7\x9e\xbf\xe2\x95\x8f\xe3\x80\x82\xf0\x9e\xa9\x95\xf3\xa0\x81\xbe"); } // [B3, B6, V7]
6231test { try toAsciiFail("\xf1\xa7\x9e\xbf\xe2\x95\x8f\xe3\x80\x82\xf0\x9e\xa9\x95\xf3\xa0\x81\xbe", false); } // [B3, B6, V7]
6232test { try toAsciiFail("\xf1\xa7\x9e\xbf\xe2\x95\x8f\xe3\x80\x82\xf0\x9e\xa9\x95\xf3\xa0\x81\xbe", true); } // [B3, B6, V7]
27116233test { try toUnicodeFail("xn--iyh90030d.xn--1m6hs0260c"); } // [B3, B6, V7]
6234test { try toAsciiFail("xn--iyh90030d.xn--1m6hs0260c", false); } // [B3, B6, V7]
6235test { try toAsciiFail("xn--iyh90030d.xn--1m6hs0260c", true); } // [B3, B6, V7]
27126236test { try toUnicodeFail("\xe2\x80\x8d\xe2\x94\xae\xf3\xa0\x87\x90\xef\xbc\x8e\xe0\xb0\x80\xe0\xb1\x8d\xe1\x9c\xb4\xe2\x80\x8d"); } // [C2, V6]
6237test { try toAsciiFail("\xe2\x80\x8d\xe2\x94\xae\xf3\xa0\x87\x90\xef\xbc\x8e\xe0\xb0\x80\xe0\xb1\x8d\xe1\x9c\xb4\xe2\x80\x8d", false); } // [C2, V6]
6238test { try toAsciiFail("\xe2\x80\x8d\xe2\x94\xae\xf3\xa0\x87\x90\xef\xbc\x8e\xe0\xb0\x80\xe0\xb1\x8d\xe1\x9c\xb4\xe2\x80\x8d", true); } // [V6]
27136239test { try toUnicodeFail("\xe2\x80\x8d\xe2\x94\xae\xf3\xa0\x87\x90.\xe0\xb0\x80\xe0\xb1\x8d\xe1\x9c\xb4\xe2\x80\x8d"); } // [C2, V6]
6240test { try toAsciiFail("\xe2\x80\x8d\xe2\x94\xae\xf3\xa0\x87\x90.\xe0\xb0\x80\xe0\xb1\x8d\xe1\x9c\xb4\xe2\x80\x8d", false); } // [C2, V6]
6241test { try toAsciiFail("\xe2\x80\x8d\xe2\x94\xae\xf3\xa0\x87\x90.\xe0\xb0\x80\xe0\xb1\x8d\xe1\x9c\xb4\xe2\x80\x8d", true); } // [V6]
27146242test { try toUnicodeFail("xn--kxh.xn--eoc8m432a"); } // [V6]
6243test { try toAsciiFail("xn--kxh.xn--eoc8m432a", false); } // [V6]
6244test { try toAsciiFail("xn--kxh.xn--eoc8m432a", true); } // [V6]
27156245test { try toUnicodeFail("xn--1ug04r.xn--eoc8m432a40i"); } // [C2, V6]
6246test { try toAsciiFail("xn--1ug04r.xn--eoc8m432a40i", false); } // [C2, V6]
6247test { try toAsciiFail("xn--1ug04r.xn--eoc8m432a40i", true); } // [C2, V6]
27166248test { try toUnicodeFail("\xf2\xb9\x9a\xaa\xef\xbd\xa1\xf0\x9f\x84\x82"); } // [V7, U1]
6249test { try toAsciiFail("\xf2\xb9\x9a\xaa\xef\xbd\xa1\xf0\x9f\x84\x82", false); } // [V7, U1]
6250test { try toAsciiFail("\xf2\xb9\x9a\xaa\xef\xbd\xa1\xf0\x9f\x84\x82", true); } // [V7, U1]
27176251test { try toUnicodeFail("\xf2\xb9\x9a\xaa\xe3\x80\x821,"); } // [V7, U1]
6252test { try toAsciiFail("\xf2\xb9\x9a\xaa\xe3\x80\x821,", false); } // [V7, U1]
6253test { try toAsciiFail("\xf2\xb9\x9a\xaa\xe3\x80\x821,", true); } // [V7, U1]
27186254test { try toUnicodeFail("xn--n433d.1,"); } // [V7, U1]
6255test { try toAsciiFail("xn--n433d.1,", false); } // [V7, U1]
6256test { try toAsciiFail("xn--n433d.1,", true); } // [V7, U1]
27196257test { try toUnicodeFail("xn--n433d.xn--v07h"); } // [V7]
6258test { try toAsciiFail("xn--n433d.xn--v07h", false); } // [V7]
6259test { try toAsciiFail("xn--n433d.xn--v07h", true); } // [V7]
27206260test { try toUnicodeFail("\xf0\x91\x8d\xa8\xe5\x88\x8d.\xf0\x9f\x9b\xa6"); } // [V6]
6261test { try toAsciiFail("\xf0\x91\x8d\xa8\xe5\x88\x8d.\xf0\x9f\x9b\xa6", false); } // [V6]
6262test { try toAsciiFail("\xf0\x91\x8d\xa8\xe5\x88\x8d.\xf0\x9f\x9b\xa6", true); } // [V6]
27216263test { try toUnicodeFail("xn--rbry728b.xn--y88h"); } // [V6]
6264test { try toAsciiFail("xn--rbry728b.xn--y88h", false); } // [V6]
6265test { try toAsciiFail("xn--rbry728b.xn--y88h", true); } // [V6]
27226266test { try toUnicodeFail("\xf3\xa0\x8c\x8f3\xef\xbd\xa1\xe1\xaf\xb1\xf0\x9d\x9f\x92"); } // [V6, V7]
6267test { try toAsciiFail("\xf3\xa0\x8c\x8f3\xef\xbd\xa1\xe1\xaf\xb1\xf0\x9d\x9f\x92", false); } // [V6, V7]
6268test { try toAsciiFail("\xf3\xa0\x8c\x8f3\xef\xbd\xa1\xe1\xaf\xb1\xf0\x9d\x9f\x92", true); } // [V6, V7]
27236269test { try toUnicodeFail("\xf3\xa0\x8c\x8f3\xe3\x80\x82\xe1\xaf\xb14"); } // [V6, V7]
6270test { try toAsciiFail("\xf3\xa0\x8c\x8f3\xe3\x80\x82\xe1\xaf\xb14", false); } // [V6, V7]
6271test { try toAsciiFail("\xf3\xa0\x8c\x8f3\xe3\x80\x82\xe1\xaf\xb14", true); } // [V6, V7]
27246272test { try toUnicodeFail("xn--3-ib31m.xn--4-pql"); } // [V6, V7]
6273test { try toAsciiFail("xn--3-ib31m.xn--4-pql", false); } // [V6, V7]
6274test { try toAsciiFail("xn--3-ib31m.xn--4-pql", true); } // [V6, V7]
27256275test { try toUnicodeFail("\xda\x87\xef\xbc\x96\xe1\x82\xb4\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1]
6276test { try toAsciiFail("\xda\x87\xef\xbc\x96\xe1\x82\xb4\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c", false); } // [B2, B3, C1]
6277test { try toAsciiFail("\xda\x87\xef\xbc\x96\xe1\x82\xb4\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c", true); } // [B2, B3]
27266278test { try toUnicodeFail("\xda\x876\xe1\x82\xb4\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1]
6279test { try toAsciiFail("\xda\x876\xe1\x82\xb4\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c", false); } // [B2, B3, C1]
6280test { try toAsciiFail("\xda\x876\xe1\x82\xb4\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c", true); } // [B2, B3]
27276281test { try toUnicodeFail("\xda\x876\xe2\xb4\x94\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1]
6282test { try toAsciiFail("\xda\x876\xe2\xb4\x94\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c", false); } // [B2, B3, C1]
6283test { try toAsciiFail("\xda\x876\xe2\xb4\x94\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c", true); } // [B2, B3]
27286284test { try toUnicodeFail("xn--6-gsc2270akm6f.xn--0gb6bxk"); } // [B2, B3]
6285test { try toAsciiFail("xn--6-gsc2270akm6f.xn--0gb6bxk", false); } // [B2, B3]
6286test { try toAsciiFail("xn--6-gsc2270akm6f.xn--0gb6bxk", true); } // [B2, B3]
27296287test { try toUnicodeFail("xn--6-gsc2270akm6f.xn--0gb6bxkx18g"); } // [B2, B3, C1]
6288test { try toAsciiFail("xn--6-gsc2270akm6f.xn--0gb6bxkx18g", false); } // [B2, B3, C1]
6289test { try toAsciiFail("xn--6-gsc2270akm6f.xn--0gb6bxkx18g", true); } // [B2, B3, C1]
27306290test { try toUnicodeFail("\xda\x87\xef\xbc\x96\xe2\xb4\x94\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1]
6291test { try toAsciiFail("\xda\x87\xef\xbc\x96\xe2\xb4\x94\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c", false); } // [B2, B3, C1]
6292test { try toAsciiFail("\xda\x87\xef\xbc\x96\xe2\xb4\x94\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c", true); } // [B2, B3]
27316293test { try toUnicodeFail("xn--6-gsc039eqq6k.xn--0gb6bxk"); } // [B2, B3, V7]
6294test { try toAsciiFail("xn--6-gsc039eqq6k.xn--0gb6bxk", false); } // [B2, B3, V7]
6295test { try toAsciiFail("xn--6-gsc039eqq6k.xn--0gb6bxk", true); } // [B2, B3, V7]
27326296test { try toUnicodeFail("xn--6-gsc039eqq6k.xn--0gb6bxkx18g"); } // [B2, B3, C1, V7]
6297test { try toAsciiFail("xn--6-gsc039eqq6k.xn--0gb6bxkx18g", false); } // [B2, B3, C1, V7]
6298test { try toAsciiFail("xn--6-gsc039eqq6k.xn--0gb6bxkx18g", true); } // [B2, B3, C1, V7]
27336299test { try toUnicodeFail("\xf3\xa0\x84\x8d.\xf0\x90\xae\xad\xf0\x9e\xb0\xac\xf2\xbb\xab\x9e\xdb\xb9"); } // [B2, V7, X4_2]
6300test { try toAsciiFail("\xf3\xa0\x84\x8d.\xf0\x90\xae\xad\xf0\x9e\xb0\xac\xf2\xbb\xab\x9e\xdb\xb9", false); } // [B2, V7, A4_2]
6301test { try toAsciiFail("\xf3\xa0\x84\x8d.\xf0\x90\xae\xad\xf0\x9e\xb0\xac\xf2\xbb\xab\x9e\xdb\xb9", true); } // [B2, V7, A4_2]
27346302test { try toUnicodeFail(".xn--mmb3954kd0uf1zx7f"); } // [B2, V7, X4_2]
6303test { try toAsciiFail(".xn--mmb3954kd0uf1zx7f", false); } // [B2, V7, A4_2]
6304test { try toAsciiFail(".xn--mmb3954kd0uf1zx7f", true); } // [B2, V7, A4_2]
27356305test { try toUnicodeFail("\xea\xa1\xbd\xe2\x89\xaf\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7]
6306test { try toAsciiFail("\xea\xa1\xbd\xe2\x89\xaf\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84", false); } // [V7]
6307test { try toAsciiFail("\xea\xa1\xbd\xe2\x89\xaf\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84", true); } // [V7]
27366308test { try toUnicodeFail("\xea\xa1\xbd>\xcc\xb8\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7]
6309test { try toAsciiFail("\xea\xa1\xbd>\xcc\xb8\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84", false); } // [V7]
6310test { try toAsciiFail("\xea\xa1\xbd>\xcc\xb8\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84", true); } // [V7]
27376311test { try toUnicodeFail("\xea\xa1\xbd\xe2\x89\xaf.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7]
6312test { try toAsciiFail("\xea\xa1\xbd\xe2\x89\xaf.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84", false); } // [V7]
6313test { try toAsciiFail("\xea\xa1\xbd\xe2\x89\xaf.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84", true); } // [V7]
27386314test { try toUnicodeFail("\xea\xa1\xbd>\xcc\xb8.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7]
6315test { try toAsciiFail("\xea\xa1\xbd>\xcc\xb8.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84", false); } // [V7]
6316test { try toAsciiFail("\xea\xa1\xbd>\xcc\xb8.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84", true); } // [V7]
27396317test { try toUnicodeFail("xn--hdh8193c.xn--5z40cp629b"); } // [V7]
6318test { try toAsciiFail("xn--hdh8193c.xn--5z40cp629b", false); } // [V7]
6319test { try toAsciiFail("xn--hdh8193c.xn--5z40cp629b", true); } // [V7]
27406320test { try toUnicodeFail("\xcf\x82\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6]
6321test { try toAsciiFail("\xcf\x82\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94", false); } // [B5, B6]
6322test { try toAsciiFail("\xcf\x82\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94", true); } // [B5, B6]
27416323test { try toUnicodeFail("\xce\xa3\xe1\xb2\x9d\xd9\xbb.\xce\xa3\xdc\x94"); } // [B5, B6]
6324test { try toAsciiFail("\xce\xa3\xe1\xb2\x9d\xd9\xbb.\xce\xa3\xdc\x94", false); } // [B5, B6]
6325test { try toAsciiFail("\xce\xa3\xe1\xb2\x9d\xd9\xbb.\xce\xa3\xdc\x94", true); } // [B5, B6]
27426326test { try toUnicodeFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94"); } // [B5, B6]
6327test { try toAsciiFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94", false); } // [B5, B6]
6328test { try toAsciiFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94", true); } // [B5, B6]
27436329test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94"); } // [B5, B6]
6330test { try toAsciiFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94", false); } // [B5, B6]
6331test { try toAsciiFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94", true); } // [B5, B6]
27446332test { try toUnicodeFail("xn--4xa60l26n.xn--4xa21o"); } // [B5, B6]
6333test { try toAsciiFail("xn--4xa60l26n.xn--4xa21o", false); } // [B5, B6]
6334test { try toAsciiFail("xn--4xa60l26n.xn--4xa21o", true); } // [B5, B6]
27456335test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6]
6336test { try toAsciiFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94", false); } // [B5, B6]
6337test { try toAsciiFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94", true); } // [B5, B6]
27466338test { try toUnicodeFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6]
6339test { try toAsciiFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94", false); } // [B5, B6]
6340test { try toAsciiFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94", true); } // [B5, B6]
27476341test { try toUnicodeFail("xn--4xa60l26n.xn--3xa41o"); } // [B5, B6]
6342test { try toAsciiFail("xn--4xa60l26n.xn--3xa41o", false); } // [B5, B6]
6343test { try toAsciiFail("xn--4xa60l26n.xn--3xa41o", true); } // [B5, B6]
27486344test { try toUnicodeFail("xn--3xa80l26n.xn--3xa41o"); } // [B5, B6]
6345test { try toAsciiFail("xn--3xa80l26n.xn--3xa41o", false); } // [B5, B6]
6346test { try toAsciiFail("xn--3xa80l26n.xn--3xa41o", true); } // [B5, B6]
27496347test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xce\xa3\xdc\x94"); } // [B5, B6]
6348test { try toAsciiFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xce\xa3\xdc\x94", false); } // [B5, B6]
6349test { try toAsciiFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xce\xa3\xdc\x94", true); } // [B5, B6]
27506350test { try toUnicodeFail("\xf2\x84\x96\x9a\xdd\x88\xf0\xa0\x84\xaf\xdd\x9f\xef\xbd\xa1\xf3\xa0\x9b\xa9"); } // [B1, B5, B6, V7]
6351test { try toAsciiFail("\xf2\x84\x96\x9a\xdd\x88\xf0\xa0\x84\xaf\xdd\x9f\xef\xbd\xa1\xf3\xa0\x9b\xa9", false); } // [B1, B5, B6, V7]
6352test { try toAsciiFail("\xf2\x84\x96\x9a\xdd\x88\xf0\xa0\x84\xaf\xdd\x9f\xef\xbd\xa1\xf3\xa0\x9b\xa9", true); } // [B1, B5, B6, V7]
27516353test { try toUnicodeFail("\xf2\x84\x96\x9a\xdd\x88\xf0\xa0\x84\xaf\xdd\x9f\xe3\x80\x82\xf3\xa0\x9b\xa9"); } // [B1, B5, B6, V7]
6354test { try toAsciiFail("\xf2\x84\x96\x9a\xdd\x88\xf0\xa0\x84\xaf\xdd\x9f\xe3\x80\x82\xf3\xa0\x9b\xa9", false); } // [B1, B5, B6, V7]
6355test { try toAsciiFail("\xf2\x84\x96\x9a\xdd\x88\xf0\xa0\x84\xaf\xdd\x9f\xe3\x80\x82\xf3\xa0\x9b\xa9", true); } // [B1, B5, B6, V7]
27526356test { try toUnicodeFail("xn--vob0c4369twfv8b.xn--kl46e"); } // [B1, B5, B6, V7]
6357test { try toAsciiFail("xn--vob0c4369twfv8b.xn--kl46e", false); } // [B1, B5, B6, V7]
6358test { try toAsciiFail("xn--vob0c4369twfv8b.xn--kl46e", true); } // [B1, B5, B6, V7]
27536359test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe"); } // [C2, V7]
6360test { try toAsciiFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe", false); } // [C2, V7]
6361test { try toAsciiFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe", true); } // [V7]
27546362test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe"); } // [C2, V7]
6363test { try toAsciiFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe", false); } // [C2, V7]
6364test { try toAsciiFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe", true); } // [V7]
27556365test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe"); } // [C2, V7]
6366test { try toAsciiFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe", false); } // [C2, V7]
6367test { try toAsciiFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe", true); } // [V7]
27566368test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe"); } // [C2, V7]
6369test { try toAsciiFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe", false); } // [C2, V7]
6370test { try toAsciiFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe", true); } // [V7]
27576371test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e"); } // [C2, V7]
6372test { try toAsciiFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e", false); } // [C2, V7]
6373test { try toAsciiFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e", true); } // [V7]
27586374test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e"); } // [C2, V7]
6375test { try toAsciiFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e", false); } // [C2, V7]
6376test { try toAsciiFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e", true); } // [V7]
27596377test { try toUnicodeFail("xn--1t56e.xn--1ch153bqvw"); } // [V7]
6378test { try toAsciiFail("xn--1t56e.xn--1ch153bqvw", false); } // [V7]
6379test { try toAsciiFail("xn--1t56e.xn--1ch153bqvw", true); } // [V7]
27606380test { try toUnicodeFail("xn--1t56e.xn--1ug73gzzpwi3a"); } // [C2, V7]
6381test { try toAsciiFail("xn--1t56e.xn--1ug73gzzpwi3a", false); } // [C2, V7]
6382test { try toAsciiFail("xn--1t56e.xn--1ug73gzzpwi3a", true); } // [C2, V7]
27616383test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e"); } // [C2, V7]
6384test { try toAsciiFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e", false); } // [C2, V7]
6385test { try toAsciiFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e", true); } // [V7]
27626386test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e"); } // [C2, V7]
6387test { try toAsciiFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e", false); } // [C2, V7]
6388test { try toAsciiFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e", true); } // [V7]
27636389test { try toUnicodeFail("xn--1t56e.xn--2nd141ghl2a"); } // [V7]
6390test { try toAsciiFail("xn--1t56e.xn--2nd141ghl2a", false); } // [V7]
6391test { try toAsciiFail("xn--1t56e.xn--2nd141ghl2a", true); } // [V7]
27646392test { try toUnicodeFail("xn--1t56e.xn--2nd159e9vb743e"); } // [C2, V7]
6393test { try toAsciiFail("xn--1t56e.xn--2nd159e9vb743e", false); } // [C2, V7]
6394test { try toAsciiFail("xn--1t56e.xn--2nd159e9vb743e", true); } // [C2, V7]
27656395test { try toUnicodeFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5\xef\xbc\x8e\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5"); } // [B1, B2, B3]
6396test { try toAsciiFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5\xef\xbc\x8e\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5", false); } // [B1, B2, B3]
6397test { try toAsciiFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5\xef\xbc\x8e\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5", true); } // [B1, B2, B3]
27666398test { try toUnicodeFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5.\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5"); } // [B1, B2, B3]
6399test { try toAsciiFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5.\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5", false); } // [B1, B2, B3]
6400test { try toAsciiFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5.\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5", true); } // [B1, B2, B3]
27676401test { try toUnicodeFail("xn--bv0d02c.xn--bo0dq650b"); } // [B1, B2, B3]
6402test { try toAsciiFail("xn--bv0d02c.xn--bo0dq650b", false); } // [B1, B2, B3]
6403test { try toAsciiFail("xn--bv0d02c.xn--bo0dq650b", true); } // [B1, B2, B3]
27686404test { try toUnicodeFail("\xe2\x92\x8a\xe2\x92\x88\xf0\x91\x81\x84\xe3\x80\x829"); } // [V7]
6405test { try toAsciiFail("\xe2\x92\x8a\xe2\x92\x88\xf0\x91\x81\x84\xe3\x80\x829", false); } // [V7]
6406test { try toAsciiFail("\xe2\x92\x8a\xe2\x92\x88\xf0\x91\x81\x84\xe3\x80\x829", true); } // [V7]
27696407test { try toUnicodeFail("3.1.\xf0\x91\x81\x84\xe3\x80\x829"); } // [V6]
6408test { try toAsciiFail("3.1.\xf0\x91\x81\x84\xe3\x80\x829", false); } // [V6]
6409test { try toAsciiFail("3.1.\xf0\x91\x81\x84\xe3\x80\x829", true); } // [V6]
27706410test { try toUnicodeFail("3.1.xn--110d.j"); } // [V6]
6411test { try toAsciiFail("3.1.xn--110d.j", false); } // [V6]
6412test { try toAsciiFail("3.1.xn--110d.j", true); } // [V6]
27716413test { try toUnicodeFail("xn--tshd3512p.j"); } // [V7]
6414test { try toAsciiFail("xn--tshd3512p.j", false); } // [V7]
6415test { try toAsciiFail("xn--tshd3512p.j", true); } // [V7]
27726416test { try toUnicodeFail("-\xe2\x80\x8c\xe2\xb7\xb1\xe2\x89\xae\xef\xbc\x8e\xf0\x90\xb9\xb1\xf2\xad\x8f\xb44\xe2\x82\x89"); } // [B1, C1, V3, V7]
6417test { try toAsciiFail("-\xe2\x80\x8c\xe2\xb7\xb1\xe2\x89\xae\xef\xbc\x8e\xf0\x90\xb9\xb1\xf2\xad\x8f\xb44\xe2\x82\x89", false); } // [B1, C1, V3, V7]
6418test { try toAsciiFail("-\xe2\x80\x8c\xe2\xb7\xb1\xe2\x89\xae\xef\xbc\x8e\xf0\x90\xb9\xb1\xf2\xad\x8f\xb44\xe2\x82\x89", true); } // [B1, V3, V7]
27736419test { try toUnicodeFail("-\xe2\x80\x8c\xe2\xb7\xb1<\xcc\xb8\xef\xbc\x8e\xf0\x90\xb9\xb1\xf2\xad\x8f\xb44\xe2\x82\x89"); } // [B1, C1, V3, V7]
6420test { try toAsciiFail("-\xe2\x80\x8c\xe2\xb7\xb1<\xcc\xb8\xef\xbc\x8e\xf0\x90\xb9\xb1\xf2\xad\x8f\xb44\xe2\x82\x89", false); } // [B1, C1, V3, V7]
6421test { try toAsciiFail("-\xe2\x80\x8c\xe2\xb7\xb1<\xcc\xb8\xef\xbc\x8e\xf0\x90\xb9\xb1\xf2\xad\x8f\xb44\xe2\x82\x89", true); } // [B1, V3, V7]
27746422test { try toUnicodeFail("-\xe2\x80\x8c\xe2\xb7\xb1\xe2\x89\xae.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449"); } // [B1, C1, V3, V7]
6423test { try toAsciiFail("-\xe2\x80\x8c\xe2\xb7\xb1\xe2\x89\xae.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449", false); } // [B1, C1, V3, V7]
6424test { try toAsciiFail("-\xe2\x80\x8c\xe2\xb7\xb1\xe2\x89\xae.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449", true); } // [B1, V3, V7]
27756425test { try toUnicodeFail("-\xe2\x80\x8c\xe2\xb7\xb1<\xcc\xb8.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449"); } // [B1, C1, V3, V7]
6426test { try toAsciiFail("-\xe2\x80\x8c\xe2\xb7\xb1<\xcc\xb8.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449", false); } // [B1, C1, V3, V7]
6427test { try toAsciiFail("-\xe2\x80\x8c\xe2\xb7\xb1<\xcc\xb8.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449", true); } // [B1, V3, V7]
27766428test { try toUnicodeFail("xn----ngo823c.xn--49-ki3om2611f"); } // [B1, V3, V7]
6429test { try toAsciiFail("xn----ngo823c.xn--49-ki3om2611f", false); } // [B1, V3, V7]
6430test { try toAsciiFail("xn----ngo823c.xn--49-ki3om2611f", true); } // [B1, V3, V7]
27776431test { try toUnicodeFail("xn----sgn20i14s.xn--49-ki3om2611f"); } // [B1, C1, V3, V7]
6432test { try toAsciiFail("xn----sgn20i14s.xn--49-ki3om2611f", false); } // [B1, C1, V3, V7]
6433test { try toAsciiFail("xn----sgn20i14s.xn--49-ki3om2611f", true); } // [B1, C1, V3, V7]
27786434test { try toUnicodeFail("-\xe2\x89\xaf\xeb\x94\xbe\xef\xbd\xa1\xe0\xa1\x87"); } // [B1, V3]
6435test { try toAsciiFail("-\xe2\x89\xaf\xeb\x94\xbe\xef\xbd\xa1\xe0\xa1\x87", false); } // [B1, V3]
6436test { try toAsciiFail("-\xe2\x89\xaf\xeb\x94\xbe\xef\xbd\xa1\xe0\xa1\x87", true); } // [B1, V3]
27796437test { try toUnicodeFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xef\xbd\xa1\xe0\xa1\x87"); } // [B1, V3]
6438test { try toAsciiFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xef\xbd\xa1\xe0\xa1\x87", false); } // [B1, V3]
6439test { try toAsciiFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xef\xbd\xa1\xe0\xa1\x87", true); } // [B1, V3]
27806440test { try toUnicodeFail("-\xe2\x89\xaf\xeb\x94\xbe\xe3\x80\x82\xe0\xa1\x87"); } // [B1, V3]
6441test { try toAsciiFail("-\xe2\x89\xaf\xeb\x94\xbe\xe3\x80\x82\xe0\xa1\x87", false); } // [B1, V3]
6442test { try toAsciiFail("-\xe2\x89\xaf\xeb\x94\xbe\xe3\x80\x82\xe0\xa1\x87", true); } // [B1, V3]
27816443test { try toUnicodeFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xe3\x80\x82\xe0\xa1\x87"); } // [B1, V3]
6444test { try toAsciiFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xe3\x80\x82\xe0\xa1\x87", false); } // [B1, V3]
6445test { try toAsciiFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xe3\x80\x82\xe0\xa1\x87", true); } // [B1, V3]
27826446test { try toUnicodeFail("xn----pgow547d.xn--5vb"); } // [B1, V3]
6447test { try toAsciiFail("xn----pgow547d.xn--5vb", false); } // [B1, V3]
6448test { try toAsciiFail("xn----pgow547d.xn--5vb", true); } // [B1, V3]
27836449test { try toUnicodeFail("\xf0\x91\x99\xa2\xe2\x92\x88\xf0\x90\xb9\xa0-\xef\xbd\xa1\xf3\xa0\x97\x90\xe2\x80\x8c"); } // [B1, C1, V3, V7]
6450test { try toAsciiFail("\xf0\x91\x99\xa2\xe2\x92\x88\xf0\x90\xb9\xa0-\xef\xbd\xa1\xf3\xa0\x97\x90\xe2\x80\x8c", false); } // [B1, C1, V3, V7]
6451test { try toAsciiFail("\xf0\x91\x99\xa2\xe2\x92\x88\xf0\x90\xb9\xa0-\xef\xbd\xa1\xf3\xa0\x97\x90\xe2\x80\x8c", true); } // [B1, V3, V7]
27846452test { try toUnicodeFail("\xf0\x91\x99\xa21.\xf0\x90\xb9\xa0-\xe3\x80\x82\xf3\xa0\x97\x90\xe2\x80\x8c"); } // [B1, C1, V3, V7]
6453test { try toAsciiFail("\xf0\x91\x99\xa21.\xf0\x90\xb9\xa0-\xe3\x80\x82\xf3\xa0\x97\x90\xe2\x80\x8c", false); } // [B1, C1, V3, V7]
6454test { try toAsciiFail("\xf0\x91\x99\xa21.\xf0\x90\xb9\xa0-\xe3\x80\x82\xf3\xa0\x97\x90\xe2\x80\x8c", true); } // [B1, V3, V7]
27856455test { try toUnicodeFail("xn--1-bf0j.xn----516i.xn--jd46e"); } // [B1, V3, V7]
6456test { try toAsciiFail("xn--1-bf0j.xn----516i.xn--jd46e", false); } // [B1, V3, V7]
6457test { try toAsciiFail("xn--1-bf0j.xn----516i.xn--jd46e", true); } // [B1, V3, V7]
27866458test { try toUnicodeFail("xn--1-bf0j.xn----516i.xn--0ug23321l"); } // [B1, C1, V3, V7]
6459test { try toAsciiFail("xn--1-bf0j.xn----516i.xn--0ug23321l", false); } // [B1, C1, V3, V7]
6460test { try toAsciiFail("xn--1-bf0j.xn----516i.xn--0ug23321l", true); } // [B1, C1, V3, V7]
27876461test { try toUnicodeFail("xn----dcpy090hiyg.xn--jd46e"); } // [B1, V3, V7]
6462test { try toAsciiFail("xn----dcpy090hiyg.xn--jd46e", false); } // [B1, V3, V7]
6463test { try toAsciiFail("xn----dcpy090hiyg.xn--jd46e", true); } // [B1, V3, V7]
27886464test { try toUnicodeFail("xn----dcpy090hiyg.xn--0ug23321l"); } // [B1, C1, V3, V7]
6465test { try toAsciiFail("xn----dcpy090hiyg.xn--0ug23321l", false); } // [B1, C1, V3, V7]
6466test { try toAsciiFail("xn----dcpy090hiyg.xn--0ug23321l", true); } // [B1, C1, V3, V7]
27896467test { try toUnicodeFail("\xcd\x8a\xef\xbc\x8e\xf0\x90\xa8\x8e"); } // [V6]
6468test { try toAsciiFail("\xcd\x8a\xef\xbc\x8e\xf0\x90\xa8\x8e", false); } // [V6]
6469test { try toAsciiFail("\xcd\x8a\xef\xbc\x8e\xf0\x90\xa8\x8e", true); } // [V6]
27906470test { try toUnicodeFail("\xcd\x8a.\xf0\x90\xa8\x8e"); } // [V6]
6471test { try toAsciiFail("\xcd\x8a.\xf0\x90\xa8\x8e", false); } // [V6]
6472test { try toAsciiFail("\xcd\x8a.\xf0\x90\xa8\x8e", true); } // [V6]
27916473test { try toUnicodeFail("xn--oua.xn--mr9c"); } // [V6]
6474test { try toAsciiFail("xn--oua.xn--mr9c", false); } // [V6]
6475test { try toAsciiFail("xn--oua.xn--mr9c", true); } // [V6]
27926476test { try toUnicodeFail("\xed\x9b\x89\xe2\x89\xae\xef\xbd\xa1\xe0\xb8\xb4"); } // [V6]
6477test { try toAsciiFail("\xed\x9b\x89\xe2\x89\xae\xef\xbd\xa1\xe0\xb8\xb4", false); } // [V6]
6478test { try toAsciiFail("\xed\x9b\x89\xe2\x89\xae\xef\xbd\xa1\xe0\xb8\xb4", true); } // [V6]
27936479test { try toUnicodeFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xef\xbd\xa1\xe0\xb8\xb4"); } // [V6]
6480test { try toAsciiFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xef\xbd\xa1\xe0\xb8\xb4", false); } // [V6]
6481test { try toAsciiFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xef\xbd\xa1\xe0\xb8\xb4", true); } // [V6]
27946482test { try toUnicodeFail("\xed\x9b\x89\xe2\x89\xae\xe3\x80\x82\xe0\xb8\xb4"); } // [V6]
6483test { try toAsciiFail("\xed\x9b\x89\xe2\x89\xae\xe3\x80\x82\xe0\xb8\xb4", false); } // [V6]
6484test { try toAsciiFail("\xed\x9b\x89\xe2\x89\xae\xe3\x80\x82\xe0\xb8\xb4", true); } // [V6]
27956485test { try toUnicodeFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xe3\x80\x82\xe0\xb8\xb4"); } // [V6]
6486test { try toAsciiFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xe3\x80\x82\xe0\xb8\xb4", false); } // [V6]
6487test { try toAsciiFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xe3\x80\x82\xe0\xb8\xb4", true); } // [V6]
27966488test { try toUnicodeFail("xn--gdh2512e.xn--i4c"); } // [V6]
6489test { try toAsciiFail("xn--gdh2512e.xn--i4c", false); } // [V6]
6490test { try toAsciiFail("xn--gdh2512e.xn--i4c", true); } // [V6]
27976491test { try toUnicodeFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98\xef\xbc\x8e\xf0\xb4\x88\x87\xf0\x9d\x9f\xb8\xd9\x99\xf0\x9e\xa4\xaf"); } // [B1, B5, B6, V6, V7]
6492test { try toAsciiFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98\xef\xbc\x8e\xf0\xb4\x88\x87\xf0\x9d\x9f\xb8\xd9\x99\xf0\x9e\xa4\xaf", false); } // [B1, B5, B6, V6, V7]
6493test { try toAsciiFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98\xef\xbc\x8e\xf0\xb4\x88\x87\xf0\x9d\x9f\xb8\xd9\x99\xf0\x9e\xa4\xaf", true); } // [B1, B5, B6, V6, V7]
27986494test { try toUnicodeFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98.\xf0\xb4\x88\x872\xd9\x99\xf0\x9e\xa4\xaf"); } // [B1, B5, B6, V6, V7]
6495test { try toAsciiFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98.\xf0\xb4\x88\x872\xd9\x99\xf0\x9e\xa4\xaf", false); } // [B1, B5, B6, V6, V7]
6496test { try toAsciiFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98.\xf0\xb4\x88\x872\xd9\x99\xf0\x9e\xa4\xaf", true); } // [B1, B5, B6, V6, V7]
27996497test { try toUnicodeFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98.\xf0\xb4\x88\x872\xd9\x99\xf0\x9e\xa4\x8d"); } // [B1, B5, B6, V6, V7]
6498test { try toAsciiFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98.\xf0\xb4\x88\x872\xd9\x99\xf0\x9e\xa4\x8d", false); } // [B1, B5, B6, V6, V7]
6499test { try toAsciiFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98.\xf0\xb4\x88\x872\xd9\x99\xf0\x9e\xa4\x8d", true); } // [B1, B5, B6, V6, V7]
28006500test { try toUnicodeFail("xn--trj8045le6s9b.xn--2-upc23918acjsj"); } // [B1, B5, B6, V6, V7]
6501test { try toAsciiFail("xn--trj8045le6s9b.xn--2-upc23918acjsj", false); } // [B1, B5, B6, V6, V7]
6502test { try toAsciiFail("xn--trj8045le6s9b.xn--2-upc23918acjsj", true); } // [B1, B5, B6, V6, V7]
28016503test { try toUnicodeFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98\xef\xbc\x8e\xf0\xb4\x88\x87\xf0\x9d\x9f\xb8\xd9\x99\xf0\x9e\xa4\x8d"); } // [B1, B5, B6, V6, V7]
6504test { try toAsciiFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98\xef\xbc\x8e\xf0\xb4\x88\x87\xf0\x9d\x9f\xb8\xd9\x99\xf0\x9e\xa4\x8d", false); } // [B1, B5, B6, V6, V7]
6505test { try toAsciiFail("\xe2\xb7\xb7\xf2\x9e\xa3\x89\xf0\x9f\x83\x98\xef\xbc\x8e\xf0\xb4\x88\x87\xf0\x9d\x9f\xb8\xd9\x99\xf0\x9e\xa4\x8d", true); } // [B1, B5, B6, V6, V7]
28026506test { try toUnicodeFail("\xf3\x97\x87\xa9\xc3\x9f\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-"); } // [B1, B6, C1, V3, V7]
6507test { try toAsciiFail("\xf3\x97\x87\xa9\xc3\x9f\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-", false); } // [B1, B6, C1, V3, V7]
6508test { try toAsciiFail("\xf3\x97\x87\xa9\xc3\x9f\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-", true); } // [B1, V3, V7]
28036509test { try toUnicodeFail("\xf3\x97\x87\xa9\xc3\x9f\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-"); } // [B1, B6, C1, V3, V7]
6510test { try toAsciiFail("\xf3\x97\x87\xa9\xc3\x9f\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-", false); } // [B1, B6, C1, V3, V7]
6511test { try toAsciiFail("\xf3\x97\x87\xa9\xc3\x9f\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-", true); } // [B1, V3, V7]
28046512test { try toUnicodeFail("\xf3\x97\x87\xa9SS\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-"); } // [B1, B6, C1, V3, V7]
6513test { try toAsciiFail("\xf3\x97\x87\xa9SS\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-", false); } // [B1, B6, C1, V3, V7]
6514test { try toAsciiFail("\xf3\x97\x87\xa9SS\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-", true); } // [B1, V3, V7]
28056515test { try toUnicodeFail("\xf3\x97\x87\xa9ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-"); } // [B1, B6, C1, V3, V7]
6516test { try toAsciiFail("\xf3\x97\x87\xa9ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-", false); } // [B1, B6, C1, V3, V7]
6517test { try toAsciiFail("\xf3\x97\x87\xa9ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-", true); } // [B1, V3, V7]
28066518test { try toUnicodeFail("\xf3\x97\x87\xa9Ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-"); } // [B1, B6, C1, V3, V7]
6519test { try toAsciiFail("\xf3\x97\x87\xa9Ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-", false); } // [B1, B6, C1, V3, V7]
6520test { try toAsciiFail("\xf3\x97\x87\xa9Ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xd9\x86\xd8\xae-", true); } // [B1, V3, V7]
28076521test { try toUnicodeFail("xn--ss-jepz4596r.xn----dnc5e1er384z"); } // [B1, V3, V7]
6522test { try toAsciiFail("xn--ss-jepz4596r.xn----dnc5e1er384z", false); } // [B1, V3, V7]
6523test { try toAsciiFail("xn--ss-jepz4596r.xn----dnc5e1er384z", true); } // [B1, V3, V7]
28086524test { try toUnicodeFail("xn--ss-jep006bqt765b.xn----dnc5e1er384z"); } // [B1, B6, C1, V3, V7]
6525test { try toAsciiFail("xn--ss-jep006bqt765b.xn----dnc5e1er384z", false); } // [B1, B6, C1, V3, V7]
6526test { try toAsciiFail("xn--ss-jep006bqt765b.xn----dnc5e1er384z", true); } // [B1, B6, C1, V3, V7]
28096527test { try toUnicodeFail("xn--zca272jbif10059a.xn----dnc5e1er384z"); } // [B1, B6, C1, V3, V7]
6528test { try toAsciiFail("xn--zca272jbif10059a.xn----dnc5e1er384z", false); } // [B1, B6, C1, V3, V7]
6529test { try toAsciiFail("xn--zca272jbif10059a.xn----dnc5e1er384z", true); } // [B1, B6, C1, V3, V7]
28106530test { try toUnicodeFail("\xf3\x97\x87\xa9SS\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-"); } // [B1, B6, C1, V3, V7]
6531test { try toAsciiFail("\xf3\x97\x87\xa9SS\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-", false); } // [B1, B6, C1, V3, V7]
6532test { try toAsciiFail("\xf3\x97\x87\xa9SS\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-", true); } // [B1, V3, V7]
28116533test { try toUnicodeFail("\xf3\x97\x87\xa9ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-"); } // [B1, B6, C1, V3, V7]
6534test { try toAsciiFail("\xf3\x97\x87\xa9ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-", false); } // [B1, B6, C1, V3, V7]
6535test { try toAsciiFail("\xf3\x97\x87\xa9ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-", true); } // [B1, V3, V7]
28126536test { try toUnicodeFail("\xf3\x97\x87\xa9Ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-"); } // [B1, B6, C1, V3, V7]
6537test { try toAsciiFail("\xf3\x97\x87\xa9Ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-", false); } // [B1, B6, C1, V3, V7]
6538test { try toAsciiFail("\xf3\x97\x87\xa9Ss\xe1\xa2\x9e\xe2\x80\x8c\xe3\x80\x82\xd9\xa0\xf0\x9e\xb7\xbb\xef\xb3\x94-", true); } // [B1, V3, V7]
28136539test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xeb\x86\xae-"); } // [V3]
6540test { try toAsciiFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xeb\x86\xae-", false); } // [V3]
6541test { try toAsciiFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xeb\x86\xae-", true); } // [V3]
28146542test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-"); } // [V3]
6543test { try toAsciiFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-", false); } // [V3]
6544test { try toAsciiFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-", true); } // [V3]
28156545test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-"); } // [V3]
6546test { try toAsciiFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-", false); } // [V3]
6547test { try toAsciiFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-", true); } // [V3]
28166548test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xeb\x86\xae-"); } // [V3]
6549test { try toAsciiFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xeb\x86\xae-", false); } // [V3]
6550test { try toAsciiFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xeb\x86\xae-", true); } // [V3]
28176551test { try toUnicodeFail("xn--fc9a.xn----qmg097k469k"); } // [V3]
6552test { try toAsciiFail("xn--fc9a.xn----qmg097k469k", false); } // [V3]
6553test { try toAsciiFail("xn--fc9a.xn----qmg097k469k", true); } // [V3]
28186554test { try toUnicodeFail("xn--fc9a.xn----qmg787k869k"); } // [V3, V7]
6555test { try toAsciiFail("xn--fc9a.xn----qmg787k869k", false); } // [V3, V7]
6556test { try toAsciiFail("xn--fc9a.xn----qmg787k869k", true); } // [V3, V7]
28196557test { try toUnicodeFail("\xef\xb6\xad\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9"); } // [B3, B5, B6, C2, V7]
6558test { try toAsciiFail("\xef\xb6\xad\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9", false); } // [B3, B5, B6, C2, V7]
6559test { try toAsciiFail("\xef\xb6\xad\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9", true); } // [B5, B6, V7]
28206560test { try toUnicodeFail("\xd9\x84\xd9\x85\xd9\x8a\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9"); } // [B3, B5, B6, C2, V7]
6561test { try toAsciiFail("\xd9\x84\xd9\x85\xd9\x8a\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9", false); } // [B3, B5, B6, C2, V7]
6562test { try toAsciiFail("\xd9\x84\xd9\x85\xd9\x8a\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9", true); } // [B5, B6, V7]
28216563test { try toUnicodeFail("xn--ghbcp.xn--ckb36214f"); } // [B5, B6, V7]
6564test { try toAsciiFail("xn--ghbcp.xn--ckb36214f", false); } // [B5, B6, V7]
6565test { try toAsciiFail("xn--ghbcp.xn--ckb36214f", true); } // [B5, B6, V7]
28226566test { try toUnicodeFail("xn--ghbcp494x.xn--ckb36214f"); } // [B3, B5, B6, C2, V7]
6567test { try toAsciiFail("xn--ghbcp494x.xn--ckb36214f", false); } // [B3, B5, B6, C2, V7]
6568test { try toAsciiFail("xn--ghbcp494x.xn--ckb36214f", true); } // [B3, B5, B6, C2, V7]
28236569test { try toUnicodeFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb3\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba"); } // [B1, B5, B6, V6]
6570test { try toAsciiFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb3\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", false); } // [B1, B5, B6, V6]
6571test { try toAsciiFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb3\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", true); } // [B1, B5, B6, V6]
28246572test { try toUnicodeFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb3\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba"); } // [B1, B5, B6, V6]
6573test { try toAsciiFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb3\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", false); } // [B1, B5, B6, V6]
6574test { try toAsciiFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb3\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", true); } // [B1, B5, B6, V6]
28256575test { try toUnicodeFail("\xe2\xb4\x9c\xe1\xb0\xaf\xf0\x90\xb3\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba"); } // [B1, B5, B6, V6]
6576test { try toAsciiFail("\xe2\xb4\x9c\xe1\xb0\xaf\xf0\x90\xb3\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", false); } // [B1, B5, B6, V6]
6577test { try toAsciiFail("\xe2\xb4\x9c\xe1\xb0\xaf\xf0\x90\xb3\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", true); } // [B1, B5, B6, V6]
28266578test { try toUnicodeFail("\xe2\xb4\x9c\xe1\xb0\xaf\xf0\x90\xb3\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba"); } // [B1, B5, B6, V6]
6579test { try toAsciiFail("\xe2\xb4\x9c\xe1\xb0\xaf\xf0\x90\xb3\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", false); } // [B1, B5, B6, V6]
6580test { try toAsciiFail("\xe2\xb4\x9c\xe1\xb0\xaf\xf0\x90\xb3\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", true); } // [B1, B5, B6, V6]
28276581test { try toUnicodeFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb2\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba"); } // [B1, B5, B6, V6]
6582test { try toAsciiFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb2\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", false); } // [B1, B5, B6, V6]
6583test { try toAsciiFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb2\x92\xe2\x89\xaf\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", true); } // [B1, B5, B6, V6]
28286584test { try toUnicodeFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb2\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba"); } // [B1, B5, B6, V6]
6585test { try toAsciiFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb2\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", false); } // [B1, B5, B6, V6]
6586test { try toAsciiFail("\xe1\x82\xbc\xe1\xb0\xaf\xf0\x90\xb2\x92>\xcc\xb8\xe3\x80\x82\xdb\xa0\xe1\x9c\xb2\xe0\xbe\xba", true); } // [B1, B5, B6, V6]
28296587test { try toUnicodeFail("xn--r1f68xh1jgv7u.xn--wlb646b4ng"); } // [B1, B5, B6, V6]
6588test { try toAsciiFail("xn--r1f68xh1jgv7u.xn--wlb646b4ng", false); } // [B1, B5, B6, V6]
6589test { try toAsciiFail("xn--r1f68xh1jgv7u.xn--wlb646b4ng", true); } // [B1, B5, B6, V6]
28306590test { try toUnicodeFail("xn--0nd679cf3eq67y.xn--wlb646b4ng"); } // [B1, B5, B6, V6, V7]
6591test { try toAsciiFail("xn--0nd679cf3eq67y.xn--wlb646b4ng", false); } // [B1, B5, B6, V6, V7]
6592test { try toAsciiFail("xn--0nd679cf3eq67y.xn--wlb646b4ng", true); } // [B1, B5, B6, V6, V7]
28316593test { try toUnicodeFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xef\xb3\xac"); } // [B1]
6594test { try toAsciiFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xef\xb3\xac", false); } // [B1]
6595test { try toAsciiFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xef\xb3\xac", true); } // [B1]
28326596test { try toUnicodeFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xd9\x83\xd9\x85"); } // [B1]
6597test { try toAsciiFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xd9\x83\xd9\x85", false); } // [B1]
6598test { try toAsciiFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xd9\x83\xd9\x85", true); } // [B1]
28336599test { try toUnicodeFail("xn--p97c.xn--fhbe"); } // [B1]
6600test { try toAsciiFail("xn--p97c.xn--fhbe", false); } // [B1]
6601test { try toAsciiFail("xn--p97c.xn--fhbe", true); } // [B1]
28346602test { try toUnicodeFail("\xf0\x90\x8b\xb5.\xd9\x83\xd9\x85"); } // [B1]
6603test { try toAsciiFail("\xf0\x90\x8b\xb5.\xd9\x83\xd9\x85", false); } // [B1]
6604test { try toAsciiFail("\xf0\x90\x8b\xb5.\xd9\x83\xd9\x85", true); } // [B1]
28356605test { try toUnicodeFail("\xe2\x89\xae\xf0\x9d\x85\xb6\xef\xbc\x8e\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad"); } // [V7]
6606test { try toAsciiFail("\xe2\x89\xae\xf0\x9d\x85\xb6\xef\xbc\x8e\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad", false); } // [V7]
6607test { try toAsciiFail("\xe2\x89\xae\xf0\x9d\x85\xb6\xef\xbc\x8e\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad", true); } // [V7]
28366608test { try toUnicodeFail("<\xcc\xb8\xf0\x9d\x85\xb6\xef\xbc\x8e\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad"); } // [V7]
6609test { try toAsciiFail("<\xcc\xb8\xf0\x9d\x85\xb6\xef\xbc\x8e\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad", false); } // [V7]
6610test { try toAsciiFail("<\xcc\xb8\xf0\x9d\x85\xb6\xef\xbc\x8e\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad", true); } // [V7]
28376611test { try toUnicodeFail("\xe2\x89\xae\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad"); } // [V7]
6612test { try toAsciiFail("\xe2\x89\xae\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad", false); } // [V7]
6613test { try toAsciiFail("\xe2\x89\xae\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad", true); } // [V7]
28386614test { try toUnicodeFail("<\xcc\xb8\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad"); } // [V7]
6615test { try toAsciiFail("<\xcc\xb8\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad", false); } // [V7]
6616test { try toAsciiFail("<\xcc\xb8\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad", true); } // [V7]
28396617test { try toUnicodeFail("xn--gdh.xn--4tjx101bsg00ds9pyc"); } // [V7]
6618test { try toAsciiFail("xn--gdh.xn--4tjx101bsg00ds9pyc", false); } // [V7]
6619test { try toAsciiFail("xn--gdh.xn--4tjx101bsg00ds9pyc", true); } // [V7]
28406620test { try toUnicodeFail("xn--gdh0880o.xn--4tjx101bsg00ds9pyc"); } // [V7]
6621test { try toAsciiFail("xn--gdh0880o.xn--4tjx101bsg00ds9pyc", false); } // [V7]
6622test { try toAsciiFail("xn--gdh0880o.xn--4tjx101bsg00ds9pyc", true); } // [V7]
28416623test { try toUnicodeFail("\xe2\xb7\xb0\xcd\x98\xe1\xa2\x95\xef\xbc\x8e\xcd\xa1\xf0\x90\xb9\xb7\xf3\xa0\xb4\x8d"); } // [B1, V6, V7]
6624test { try toAsciiFail("\xe2\xb7\xb0\xcd\x98\xe1\xa2\x95\xef\xbc\x8e\xcd\xa1\xf0\x90\xb9\xb7\xf3\xa0\xb4\x8d", false); } // [B1, V6, V7]
6625test { try toAsciiFail("\xe2\xb7\xb0\xcd\x98\xe1\xa2\x95\xef\xbc\x8e\xcd\xa1\xf0\x90\xb9\xb7\xf3\xa0\xb4\x8d", true); } // [B1, V6, V7]
28426626test { try toUnicodeFail("\xe2\xb7\xb0\xcd\x98\xe1\xa2\x95.\xcd\xa1\xf0\x90\xb9\xb7\xf3\xa0\xb4\x8d"); } // [B1, V6, V7]
6627test { try toAsciiFail("\xe2\xb7\xb0\xcd\x98\xe1\xa2\x95.\xcd\xa1\xf0\x90\xb9\xb7\xf3\xa0\xb4\x8d", false); } // [B1, V6, V7]
6628test { try toAsciiFail("\xe2\xb7\xb0\xcd\x98\xe1\xa2\x95.\xcd\xa1\xf0\x90\xb9\xb7\xf3\xa0\xb4\x8d", true); } // [B1, V6, V7]
28436629test { try toUnicodeFail("xn--2ua889htsp.xn--cva2687k2tv0g"); } // [B1, V6, V7]
6630test { try toAsciiFail("xn--2ua889htsp.xn--cva2687k2tv0g", false); } // [B1, V6, V7]
6631test { try toAsciiFail("xn--2ua889htsp.xn--cva2687k2tv0g", true); } // [B1, V6, V7]
28446632test { try toUnicodeFail("\xef\xb5\xb9\xe1\xa1\x90\xe2\x80\x8c\xda\xad\xef\xbc\x8e\xf0\x91\x8b\xaa\xd7\x87"); } // [B1, B2, V6]
6633test { try toAsciiFail("\xef\xb5\xb9\xe1\xa1\x90\xe2\x80\x8c\xda\xad\xef\xbc\x8e\xf0\x91\x8b\xaa\xd7\x87", false); } // [B1, B2, V6]
6634test { try toAsciiFail("\xef\xb5\xb9\xe1\xa1\x90\xe2\x80\x8c\xda\xad\xef\xbc\x8e\xf0\x91\x8b\xaa\xd7\x87", true); } // [B1, B2, V6]
28456635test { try toUnicodeFail("\xd8\xba\xd9\x85\xd9\x85\xe1\xa1\x90\xe2\x80\x8c\xda\xad.\xf0\x91\x8b\xaa\xd7\x87"); } // [B1, B2, V6]
6636test { try toAsciiFail("\xd8\xba\xd9\x85\xd9\x85\xe1\xa1\x90\xe2\x80\x8c\xda\xad.\xf0\x91\x8b\xaa\xd7\x87", false); } // [B1, B2, V6]
6637test { try toAsciiFail("\xd8\xba\xd9\x85\xd9\x85\xe1\xa1\x90\xe2\x80\x8c\xda\xad.\xf0\x91\x8b\xaa\xd7\x87", true); } // [B1, B2, V6]
28466638test { try toUnicodeFail("xn--5gbwa03bg24e.xn--vdb1198k"); } // [B1, B2, V6]
6639test { try toAsciiFail("xn--5gbwa03bg24e.xn--vdb1198k", false); } // [B1, B2, V6]
6640test { try toAsciiFail("xn--5gbwa03bg24e.xn--vdb1198k", true); } // [B1, B2, V6]
28476641test { try toUnicodeFail("xn--5gbwa03bg24eptk.xn--vdb1198k"); } // [B1, B2, V6]
6642test { try toAsciiFail("xn--5gbwa03bg24eptk.xn--vdb1198k", false); } // [B1, B2, V6]
6643test { try toAsciiFail("xn--5gbwa03bg24eptk.xn--vdb1198k", true); } // [B1, B2, V6]
28486644test { try toUnicodeFail("\xf0\x91\x91\x82\xef\xbd\xa1\xe2\x80\x8d\xf3\xa5\x9e\x80\xf0\x9f\x9e\x95\xf2\xa5\x81\x94"); } // [C2, V6, V7]
6645test { try toAsciiFail("\xf0\x91\x91\x82\xef\xbd\xa1\xe2\x80\x8d\xf3\xa5\x9e\x80\xf0\x9f\x9e\x95\xf2\xa5\x81\x94", false); } // [C2, V6, V7]
6646test { try toAsciiFail("\xf0\x91\x91\x82\xef\xbd\xa1\xe2\x80\x8d\xf3\xa5\x9e\x80\xf0\x9f\x9e\x95\xf2\xa5\x81\x94", true); } // [V6, V7]
28496647test { try toUnicodeFail("\xf0\x91\x91\x82\xe3\x80\x82\xe2\x80\x8d\xf3\xa5\x9e\x80\xf0\x9f\x9e\x95\xf2\xa5\x81\x94"); } // [C2, V6, V7]
6648test { try toAsciiFail("\xf0\x91\x91\x82\xe3\x80\x82\xe2\x80\x8d\xf3\xa5\x9e\x80\xf0\x9f\x9e\x95\xf2\xa5\x81\x94", false); } // [C2, V6, V7]
6649test { try toAsciiFail("\xf0\x91\x91\x82\xe3\x80\x82\xe2\x80\x8d\xf3\xa5\x9e\x80\xf0\x9f\x9e\x95\xf2\xa5\x81\x94", true); } // [V6, V7]
28506650test { try toUnicodeFail("xn--8v1d.xn--ye9h41035a2qqs"); } // [V6, V7]
6651test { try toAsciiFail("xn--8v1d.xn--ye9h41035a2qqs", false); } // [V6, V7]
6652test { try toAsciiFail("xn--8v1d.xn--ye9h41035a2qqs", true); } // [V6, V7]
28516653test { try toUnicodeFail("xn--8v1d.xn--1ug1386plvx1cd8vya"); } // [C2, V6, V7]
6654test { try toAsciiFail("xn--8v1d.xn--1ug1386plvx1cd8vya", false); } // [C2, V6, V7]
6655test { try toAsciiFail("xn--8v1d.xn--1ug1386plvx1cd8vya", true); } // [C2, V6, V7]
28526656test { try toUnicodeFail("-\xd7\xa9\xe3\x80\x82\xe2\x92\x9a"); } // [B1, V3, V7]
6657test { try toAsciiFail("-\xd7\xa9\xe3\x80\x82\xe2\x92\x9a", false); } // [B1, V3, V7]
6658test { try toAsciiFail("-\xd7\xa9\xe3\x80\x82\xe2\x92\x9a", true); } // [B1, V3, V7]
28536659test { try toUnicodeFail("-\xd7\xa9\xe3\x80\x8219."); } // [B1, V3]
6660test { try toAsciiFail("-\xd7\xa9\xe3\x80\x8219.", false); } // [B1, V3, A4_2]
6661test { try toAsciiFail("-\xd7\xa9\xe3\x80\x8219.", true); } // [B1, V3, A4_2]
28546662test { try toUnicodeFail("xn----gjc.1j."); } // [B1, V3]
6663test { try toAsciiFail("xn----gjc.1j.", false); } // [B1, V3, A4_2]
6664test { try toAsciiFail("xn----gjc.1j.", true); } // [B1, V3, A4_2]
28556665test { try toUnicodeFail("xn----gjc.xn--cth"); } // [B1, V3, V7]
6666test { try toAsciiFail("xn----gjc.xn--cth", false); } // [B1, V3, V7]
6667test { try toAsciiFail("xn----gjc.xn--cth", true); } // [B1, V3, V7]
28566668test { try toUnicodeFail("\xf4\x8a\xbe\xbb\xe0\xa1\x85\xe2\x80\x8c\xef\xbd\xa1\xe1\xa2\x8e\xe2\x80\x8d"); } // [B5, B6, C1, C2, V7]
6669test { try toAsciiFail("\xf4\x8a\xbe\xbb\xe0\xa1\x85\xe2\x80\x8c\xef\xbd\xa1\xe1\xa2\x8e\xe2\x80\x8d", false); } // [B5, B6, C1, C2, V7]
6670test { try toAsciiFail("\xf4\x8a\xbe\xbb\xe0\xa1\x85\xe2\x80\x8c\xef\xbd\xa1\xe1\xa2\x8e\xe2\x80\x8d", true); } // [B5, B6, V7]
28576671test { try toUnicodeFail("\xf4\x8a\xbe\xbb\xe0\xa1\x85\xe2\x80\x8c\xe3\x80\x82\xe1\xa2\x8e\xe2\x80\x8d"); } // [B5, B6, C1, C2, V7]
6672test { try toAsciiFail("\xf4\x8a\xbe\xbb\xe0\xa1\x85\xe2\x80\x8c\xe3\x80\x82\xe1\xa2\x8e\xe2\x80\x8d", false); } // [B5, B6, C1, C2, V7]
6673test { try toAsciiFail("\xf4\x8a\xbe\xbb\xe0\xa1\x85\xe2\x80\x8c\xe3\x80\x82\xe1\xa2\x8e\xe2\x80\x8d", true); } // [B5, B6, V7]
28586674test { try toUnicodeFail("xn--3vb50049s.xn--79e"); } // [B5, B6, V7]
6675test { try toAsciiFail("xn--3vb50049s.xn--79e", false); } // [B5, B6, V7]
6676test { try toAsciiFail("xn--3vb50049s.xn--79e", true); } // [B5, B6, V7]
28596677test { try toUnicodeFail("xn--3vb882jz4411a.xn--79e259a"); } // [B5, B6, C1, C2, V7]
6678test { try toAsciiFail("xn--3vb882jz4411a.xn--79e259a", false); } // [B5, B6, C1, C2, V7]
6679test { try toAsciiFail("xn--3vb882jz4411a.xn--79e259a", true); } // [B5, B6, C1, C2, V7]
28606680test { try toUnicodePass("\xc3\x9f\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "\xc3\x9f\xe0\xa7\x81\xe1\xb7\xad.\xd8\xa085"); }
28616681test { try toAsciiPass("\xc3\x9f\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--zca266bwrr.xn--85-psd", false); }
28626682test { try toAsciiPass("\xc3\x9f\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", true); }
......@@ -2900,19 +6720,47 @@ test { try toUnicodePass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x8
29006720test { try toAsciiPass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", false); }
29016721test { try toAsciiPass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", true); }
29026722test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5\xc3\x9f"); } // [B1, V6]
6723test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5\xc3\x9f", false); } // [B1, V6]
6724test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5\xc3\x9f", true); } // [B1, V6]
29036725test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5\xc3\x9f"); } // [B1, V6]
6726test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5\xc3\x9f", false); } // [B1, V6]
6727test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5\xc3\x9f", true); } // [B1, V6]
29046728test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5SS"); } // [B1, V6]
6729test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5SS", false); } // [B1, V6]
6730test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5SS", true); } // [B1, V6]
29056731test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5ss"); } // [B1, V6]
6732test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5ss", false); } // [B1, V6]
6733test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5ss", true); } // [B1, V6]
29066734test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5Ss"); } // [B1, V6]
6735test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5Ss", false); } // [B1, V6]
6736test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5Ss", true); } // [B1, V6]
29076737test { try toUnicodeFail("xn--1-0xb049b102o.xn--3ss-nv9t"); } // [B1, V6]
6738test { try toAsciiFail("xn--1-0xb049b102o.xn--3ss-nv9t", false); } // [B1, V6]
6739test { try toAsciiFail("xn--1-0xb049b102o.xn--3ss-nv9t", true); } // [B1, V6]
29086740test { try toUnicodeFail("xn--1-0xb049b102o.xn--3-qfa7018r"); } // [B1, V6]
6741test { try toAsciiFail("xn--1-0xb049b102o.xn--3-qfa7018r", false); } // [B1, V6]
6742test { try toAsciiFail("xn--1-0xb049b102o.xn--3-qfa7018r", true); } // [B1, V6]
29096743test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5SS"); } // [B1, V6]
6744test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5SS", false); } // [B1, V6]
6745test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5SS", true); } // [B1, V6]
29106746test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5ss"); } // [B1, V6]
6747test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5ss", false); } // [B1, V6]
6748test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5ss", true); } // [B1, V6]
29116749test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5Ss"); } // [B1, V6]
6750test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5Ss", false); } // [B1, V6]
6751test { try toAsciiFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x85\xf0\x9d\x9f\xa3\xef\xbc\x8e\xe2\x82\x83\xf0\x90\xb9\xa5Ss", true); } // [B1, V6]
29126752test { try toUnicodeFail("\xdc\xab\xef\xbd\xa1\xf0\x91\x93\x82\xe2\x92\x88\xf0\x91\x9c\xab\xf3\xa0\xbf\xbb"); } // [B1, V6, V7]
6753test { try toAsciiFail("\xdc\xab\xef\xbd\xa1\xf0\x91\x93\x82\xe2\x92\x88\xf0\x91\x9c\xab\xf3\xa0\xbf\xbb", false); } // [B1, V6, V7]
6754test { try toAsciiFail("\xdc\xab\xef\xbd\xa1\xf0\x91\x93\x82\xe2\x92\x88\xf0\x91\x9c\xab\xf3\xa0\xbf\xbb", true); } // [B1, V6, V7]
29136755test { try toUnicodeFail("\xdc\xab\xe3\x80\x82\xf0\x91\x93\x821.\xf0\x91\x9c\xab\xf3\xa0\xbf\xbb"); } // [B1, V6, V7]
6756test { try toAsciiFail("\xdc\xab\xe3\x80\x82\xf0\x91\x93\x821.\xf0\x91\x9c\xab\xf3\xa0\xbf\xbb", false); } // [B1, V6, V7]
6757test { try toAsciiFail("\xdc\xab\xe3\x80\x82\xf0\x91\x93\x821.\xf0\x91\x9c\xab\xf3\xa0\xbf\xbb", true); } // [B1, V6, V7]
29146758test { try toUnicodeFail("xn--1nb.xn--1-jq9i.xn--ji2dg9877c"); } // [B1, V6, V7]
6759test { try toAsciiFail("xn--1nb.xn--1-jq9i.xn--ji2dg9877c", false); } // [B1, V6, V7]
6760test { try toAsciiFail("xn--1nb.xn--1-jq9i.xn--ji2dg9877c", true); } // [B1, V6, V7]
29156761test { try toUnicodeFail("xn--1nb.xn--tsh7798f6rbrt828c"); } // [B1, V6, V7]
6762test { try toAsciiFail("xn--1nb.xn--tsh7798f6rbrt828c", false); } // [B1, V6, V7]
6763test { try toAsciiFail("xn--1nb.xn--tsh7798f6rbrt828c", true); } // [B1, V6, V7]
29166764test { try toUnicodePass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "\xe0\xaa\x9b.\xe5\xb5\xa8"); }
29176765test { try toAsciiPass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "xn--6dc.xn--tot", false); }
29186766test { try toAsciiPass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "xn--6dc.xn--tot", true); }
......@@ -2923,27 +6771,71 @@ test { try toUnicodePass("\xe0\xaa\x9b.\xe5\xb5\xa8", "\xe0\xaa\x9b.\xe5\xb5\xa8
29236771test { try toAsciiPass("\xe0\xaa\x9b.\xe5\xb5\xa8", "xn--6dc.xn--tot", false); }
29246772test { try toAsciiPass("\xe0\xaa\x9b.\xe5\xb5\xa8", "xn--6dc.xn--tot", true); }
29256773test { try toUnicodeFail("\xe1\x82\xb4\xe2\x89\xa0\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1]
6774test { try toAsciiFail("\xe1\x82\xb4\xe2\x89\xa0\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0", false); } // [B1]
6775test { try toAsciiFail("\xe1\x82\xb4\xe2\x89\xa0\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0", true); } // [B1]
29266776test { try toUnicodeFail("\xe1\x82\xb4=\xcc\xb8\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1]
6777test { try toAsciiFail("\xe1\x82\xb4=\xcc\xb8\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0", false); } // [B1]
6778test { try toAsciiFail("\xe1\x82\xb4=\xcc\xb8\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0", true); } // [B1]
29276779test { try toUnicodeFail("\xe2\xb4\x94=\xcc\xb8\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1]
6780test { try toAsciiFail("\xe2\xb4\x94=\xcc\xb8\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0", false); } // [B1]
6781test { try toAsciiFail("\xe2\xb4\x94=\xcc\xb8\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0", true); } // [B1]
29286782test { try toUnicodeFail("\xe2\xb4\x94\xe2\x89\xa0\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1]
6783test { try toAsciiFail("\xe2\xb4\x94\xe2\x89\xa0\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0", false); } // [B1]
6784test { try toAsciiFail("\xe2\xb4\x94\xe2\x89\xa0\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0", true); } // [B1]
29296785test { try toUnicodeFail("xn--1ch603bxb.xn--do0dwa"); } // [B1]
6786test { try toAsciiFail("xn--1ch603bxb.xn--do0dwa", false); } // [B1]
6787test { try toAsciiFail("xn--1ch603bxb.xn--do0dwa", true); } // [B1]
29306788test { try toUnicodeFail("xn--7md3b171g.xn--do0dwa"); } // [B1, V7]
6789test { try toAsciiFail("xn--7md3b171g.xn--do0dwa", false); } // [B1, V7]
6790test { try toAsciiFail("xn--7md3b171g.xn--do0dwa", true); } // [B1, V7]
29316791test { try toUnicodeFail("-\xe2\x80\x8c\xe2\x92\x99\xf0\x90\xab\xa5\xef\xbd\xa1\xf0\x9d\xa8\xb5"); } // [C1, V3, V6, V7]
6792test { try toAsciiFail("-\xe2\x80\x8c\xe2\x92\x99\xf0\x90\xab\xa5\xef\xbd\xa1\xf0\x9d\xa8\xb5", false); } // [C1, V3, V6, V7]
6793test { try toAsciiFail("-\xe2\x80\x8c\xe2\x92\x99\xf0\x90\xab\xa5\xef\xbd\xa1\xf0\x9d\xa8\xb5", true); } // [V3, V6, V7]
29326794test { try toUnicodeFail("-\xe2\x80\x8c18.\xf0\x90\xab\xa5\xe3\x80\x82\xf0\x9d\xa8\xb5"); } // [C1, V3, V6]
6795test { try toAsciiFail("-\xe2\x80\x8c18.\xf0\x90\xab\xa5\xe3\x80\x82\xf0\x9d\xa8\xb5", false); } // [C1, V3, V6]
6796test { try toAsciiFail("-\xe2\x80\x8c18.\xf0\x90\xab\xa5\xe3\x80\x82\xf0\x9d\xa8\xb5", true); } // [V3, V6]
29336797test { try toUnicodeFail("-18.xn--rx9c.xn--382h"); } // [V3, V6]
6798test { try toAsciiFail("-18.xn--rx9c.xn--382h", false); } // [V3, V6]
6799test { try toAsciiFail("-18.xn--rx9c.xn--382h", true); } // [V3, V6]
29346800test { try toUnicodeFail("xn---18-9m0a.xn--rx9c.xn--382h"); } // [C1, V3, V6]
6801test { try toAsciiFail("xn---18-9m0a.xn--rx9c.xn--382h", false); } // [C1, V3, V6]
6802test { try toAsciiFail("xn---18-9m0a.xn--rx9c.xn--382h", true); } // [C1, V3, V6]
29356803test { try toUnicodeFail("xn----ddps939g.xn--382h"); } // [V3, V6, V7]
6804test { try toAsciiFail("xn----ddps939g.xn--382h", false); } // [V3, V6, V7]
6805test { try toAsciiFail("xn----ddps939g.xn--382h", true); } // [V3, V6, V7]
29366806test { try toUnicodeFail("xn----sgn18r3191a.xn--382h"); } // [C1, V3, V6, V7]
6807test { try toAsciiFail("xn----sgn18r3191a.xn--382h", false); } // [C1, V3, V6, V7]
6808test { try toAsciiFail("xn----sgn18r3191a.xn--382h", true); } // [C1, V3, V6, V7]
29376809test { try toUnicodeFail("\xef\xb8\x92.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B1, B5, B6, V7]
6810test { try toAsciiFail("\xef\xb8\x92.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd", false); } // [B1, B5, B6, V7]
6811test { try toAsciiFail("\xef\xb8\x92.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd", true); } // [B1, B5, B6, V7]
29386812test { try toUnicodeFail("\xe3\x80\x82.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B5, B6, X4_2]
6813test { try toAsciiFail("\xe3\x80\x82.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd", false); } // [B5, B6, A4_2]
6814test { try toAsciiFail("\xe3\x80\x82.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd", true); } // [B5, B6, A4_2]
29396815test { try toUnicodeFail("\xe3\x80\x82.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B5, B6, X4_2]
6816test { try toAsciiFail("\xe3\x80\x82.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd", false); } // [B5, B6, A4_2]
6817test { try toAsciiFail("\xe3\x80\x82.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd", true); } // [B5, B6, A4_2]
29406818test { try toUnicodeFail("..xn----73a596nuh9t"); } // [B5, B6, X4_2]
6819test { try toAsciiFail("..xn----73a596nuh9t", false); } // [B5, B6, A4_2]
6820test { try toAsciiFail("..xn----73a596nuh9t", true); } // [B5, B6, A4_2]
29416821test { try toUnicodeFail("\xef\xb8\x92.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B1, B5, B6, V7]
6822test { try toAsciiFail("\xef\xb8\x92.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd", false); } // [B1, B5, B6, V7]
6823test { try toAsciiFail("\xef\xb8\x92.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd", true); } // [B1, B5, B6, V7]
29426824test { try toUnicodeFail("xn--y86c.xn----73a596nuh9t"); } // [B1, B5, B6, V7]
6825test { try toAsciiFail("xn--y86c.xn----73a596nuh9t", false); } // [B1, B5, B6, V7]
6826test { try toAsciiFail("xn--y86c.xn----73a596nuh9t", true); } // [B1, B5, B6, V7]
29436827test { 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]
6829test { try toAsciiFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", true); } // [V7]
29446830test { 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]
6832test { try toAsciiFail("\xef\xb8\x85\xe3\x80\x82\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0", true); } // [A4_2]
29456833test { try toUnicodeFail("..xn--t6f5138v"); } // [X4_2]
6834test { try toAsciiFail("..xn--t6f5138v", false); } // [A4_2]
6835test { try toAsciiFail("..xn--t6f5138v", true); } // [A4_2]
29466836test { try toUnicodeFail("xn--y86c.xn--t6f5138v"); } // [V7]
6837test { try toAsciiFail("xn--y86c.xn--t6f5138v", false); } // [V7]
6838test { try toAsciiFail("xn--y86c.xn--t6f5138v", true); } // [V7]
29476839test { try toUnicodePass("xn--t6f5138v", "\xf0\xa6\x80\xbe\xe1\xb3\xa0"); }
29486840test { try toAsciiPass("xn--t6f5138v", "xn--t6f5138v", false); }
29496841test { try toAsciiPass("xn--t6f5138v", "xn--t6f5138v", true); }
......@@ -2951,41 +6843,101 @@ test { try toUnicodePass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "\xf0\xa6\x80\xbe\xe1\x
29516843test { try toAsciiPass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "xn--t6f5138v", false); }
29526844test { try toAsciiPass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "xn--t6f5138v", true); }
29536845test { try toUnicodeFail("\xf0\x9e\xae\x91\xc3\x9f\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7]
6846test { try toAsciiFail("\xf0\x9e\xae\x91\xc3\x9f\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81", false); } // [B2, B3, V7]
6847test { try toAsciiFail("\xf0\x9e\xae\x91\xc3\x9f\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81", true); } // [B2, B3, V7]
29546848test { try toUnicodeFail("\xf0\x9e\xae\x91SS\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7]
6849test { try toAsciiFail("\xf0\x9e\xae\x91SS\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81", false); } // [B2, B3, V7]
6850test { try toAsciiFail("\xf0\x9e\xae\x91SS\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81", true); } // [B2, B3, V7]
29556851test { try toUnicodeFail("\xf0\x9e\xae\x91ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7]
6852test { try toAsciiFail("\xf0\x9e\xae\x91ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81", false); } // [B2, B3, V7]
6853test { try toAsciiFail("\xf0\x9e\xae\x91ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81", true); } // [B2, B3, V7]
29566854test { try toUnicodeFail("\xf0\x9e\xae\x91Ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7]
6855test { try toAsciiFail("\xf0\x9e\xae\x91Ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81", false); } // [B2, B3, V7]
6856test { try toAsciiFail("\xf0\x9e\xae\x91Ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81", true); } // [B2, B3, V7]
29576857test { try toUnicodeFail("xn--ss-o412ac6305g.xn--07e"); } // [B2, B3, V7]
6858test { try toAsciiFail("xn--ss-o412ac6305g.xn--07e", false); } // [B2, B3, V7]
6859test { try toAsciiFail("xn--ss-o412ac6305g.xn--07e", true); } // [B2, B3, V7]
29586860test { try toUnicodeFail("xn--zca9432wb989f.xn--07e"); } // [B2, B3, V7]
6861test { try toAsciiFail("xn--zca9432wb989f.xn--07e", false); } // [B2, B3, V7]
6862test { try toAsciiFail("xn--zca9432wb989f.xn--07e", true); } // [B2, B3, V7]
29596863test { try toUnicodeFail("\xea\xa5\x93\xe2\x80\x8d\xd8\xac\xd9\xac\xe3\x80\x82\xf0\xb1\x86\x8e\xf3\xbb\xa1\x9f\xe2\x80\x8c\xf3\xa0\x85\x86"); } // [B5, B6, C1, V6, V7]
6864test { try toAsciiFail("\xea\xa5\x93\xe2\x80\x8d\xd8\xac\xd9\xac\xe3\x80\x82\xf0\xb1\x86\x8e\xf3\xbb\xa1\x9f\xe2\x80\x8c\xf3\xa0\x85\x86", false); } // [B5, B6, C1, V6, V7]
6865test { try toAsciiFail("\xea\xa5\x93\xe2\x80\x8d\xd8\xac\xd9\xac\xe3\x80\x82\xf0\xb1\x86\x8e\xf3\xbb\xa1\x9f\xe2\x80\x8c\xf3\xa0\x85\x86", true); } // [B5, B6, V6, V7]
29606866test { try toUnicodeFail("xn--rgb2k6711c.xn--ec8nj3948b"); } // [B5, B6, V6, V7]
6867test { try toAsciiFail("xn--rgb2k6711c.xn--ec8nj3948b", false); } // [B5, B6, V6, V7]
6868test { try toAsciiFail("xn--rgb2k6711c.xn--ec8nj3948b", true); } // [B5, B6, V6, V7]
29616869test { try toUnicodeFail("xn--rgb2k500fhq9j.xn--0ug78870a5sp9d"); } // [B5, B6, C1, V6, V7]
6870test { try toAsciiFail("xn--rgb2k500fhq9j.xn--0ug78870a5sp9d", false); } // [B5, B6, C1, V6, V7]
6871test { try toAsciiFail("xn--rgb2k500fhq9j.xn--0ug78870a5sp9d", true); } // [B5, B6, C1, V6, V7]
29626872test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
6873test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0", false); } // [C1, V3, V7]
6874test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0", true); } // [V3, V7]
29636875test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
6876test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c=\xcc\xb8", false); } // [C1, V3, V7]
6877test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c=\xcc\xb8", true); } // [V3, V7]
29646878test { try toUnicodeFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
6879test { try toAsciiFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0", false); } // [C1, V3, V7]
6880test { try toAsciiFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0", true); } // [V3, V7]
29656881test { try toUnicodeFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
6882test { try toAsciiFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c=\xcc\xb8", false); } // [C1, V3, V7]
6883test { try toAsciiFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c=\xcc\xb8", true); } // [V3, V7]
29666884test { try toUnicodeFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
6885test { try toAsciiFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c=\xcc\xb8", false); } // [C1, V3, V7]
6886test { try toAsciiFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c=\xcc\xb8", true); } // [V3, V7]
29676887test { try toUnicodeFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
6888test { try toAsciiFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c\xe2\x89\xa0", false); } // [C1, V3, V7]
6889test { try toAsciiFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c\xe2\x89\xa0", true); } // [V3, V7]
29686890test { try toUnicodeFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
6891test { try toAsciiFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c\xe2\x89\xa0", false); } // [C1, V3, V7]
6892test { try toAsciiFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c\xe2\x89\xa0", true); } // [V3, V7]
29696893test { try toUnicodeFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
6894test { try toAsciiFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c=\xcc\xb8", false); } // [C1, V3, V7]
6895test { try toAsciiFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c=\xcc\xb8", true); } // [V3, V7]
29706896test { try toUnicodeFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
6897test { try toAsciiFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c=\xcc\xb8", false); } // [C1, V3, V7]
6898test { try toAsciiFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c=\xcc\xb8", true); } // [V3, V7]
29716899test { try toUnicodeFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
6900test { try toAsciiFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c\xe2\x89\xa0", false); } // [C1, V3, V7]
6901test { try toAsciiFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c\xe2\x89\xa0", true); } // [V3, V7]
29726902test { try toUnicodeFail("xn--u836e.xn---ss-gl2a"); } // [V3, V7]
6903test { try toAsciiFail("xn--u836e.xn---ss-gl2a", false); } // [V3, V7]
6904test { try toAsciiFail("xn--u836e.xn---ss-gl2a", true); } // [V3, V7]
29736905test { try toUnicodeFail("xn--u836e.xn---ss-cn0at5l"); } // [C1, V3, V7]
6906test { try toAsciiFail("xn--u836e.xn---ss-cn0at5l", false); } // [C1, V3, V7]
6907test { try toAsciiFail("xn--u836e.xn---ss-cn0at5l", true); } // [C1, V3, V7]
29746908test { try toUnicodeFail("xn--u836e.xn----qfa750ve7b"); } // [C1, V3, V7]
6909test { try toAsciiFail("xn--u836e.xn----qfa750ve7b", false); } // [C1, V3, V7]
6910test { try toAsciiFail("xn--u836e.xn----qfa750ve7b", true); } // [C1, V3, V7]
29756911test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
6912test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c=\xcc\xb8", false); } // [C1, V3, V7]
6913test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c=\xcc\xb8", true); } // [V3, V7]
29766914test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
6915test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c\xe2\x89\xa0", false); } // [C1, V3, V7]
6916test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c\xe2\x89\xa0", true); } // [V3, V7]
29776917test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
6918test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c\xe2\x89\xa0", false); } // [C1, V3, V7]
6919test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c\xe2\x89\xa0", true); } // [V3, V7]
29786920test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
6921test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c=\xcc\xb8", false); } // [C1, V3, V7]
6922test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c=\xcc\xb8", true); } // [V3, V7]
29796923test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
6924test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c=\xcc\xb8", false); } // [C1, V3, V7]
6925test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c=\xcc\xb8", true); } // [V3, V7]
29806926test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
6927test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c\xe2\x89\xa0", false); } // [C1, V3, V7]
6928test { try toAsciiFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c\xe2\x89\xa0", true); } // [V3, V7]
29816929test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0", "xn--p8e.xn--1ch3a7084l", true); }
29826930test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); } // [C1]
6931test { try toAsciiFail("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0", false); } // [C1]
29836932test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }
29846933test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8"); } // [C1]
6934test { try toAsciiFail("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", false); } // [C1]
29856935test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0", "xn--p8e.xn--1ch3a7084l", true); }
29866936test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); } // [C1]
6937test { try toAsciiFail("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0", false); } // [C1]
29876938test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }
29886939test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8"); } // [C1]
6940test { try toAsciiFail("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", false); } // [C1]
29896941test { try toUnicodePass("xn--p8e.xn--1ch3a7084l", "\xe1\xa1\x99.\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); }
29906942test { try toAsciiPass("xn--p8e.xn--1ch3a7084l", "xn--p8e.xn--1ch3a7084l", false); }
29916943test { try toAsciiPass("xn--p8e.xn--1ch3a7084l", "xn--p8e.xn--1ch3a7084l", true); }
......@@ -2996,150 +6948,422 @@ test { try toUnicodePass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "\xe
29966948test { try toAsciiPass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", false); }
29976949test { try toAsciiPass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }
29986950test { try toUnicodeFail("xn--p8e650b.xn--1ch3a7084l"); } // [C1]
6951test { try toAsciiFail("xn--p8e650b.xn--1ch3a7084l", false); } // [C1]
6952test { try toAsciiFail("xn--p8e650b.xn--1ch3a7084l", true); } // [C1]
29996953test { try toUnicodeFail("\xf0\x90\xb9\xa7\xf0\x9e\xb2\x84\xf3\xa0\x81\xad\xf1\x86\xbc\xa9\xe3\x80\x82\xcd\x8e\xf0\x9f\x84\x80"); } // [B1, V6, V7]
6954test { try toAsciiFail("\xf0\x90\xb9\xa7\xf0\x9e\xb2\x84\xf3\xa0\x81\xad\xf1\x86\xbc\xa9\xe3\x80\x82\xcd\x8e\xf0\x9f\x84\x80", false); } // [B1, V6, V7]
6955test { try toAsciiFail("\xf0\x90\xb9\xa7\xf0\x9e\xb2\x84\xf3\xa0\x81\xad\xf1\x86\xbc\xa9\xe3\x80\x82\xcd\x8e\xf0\x9f\x84\x80", true); } // [B1, V6, V7]
30006956test { try toUnicodeFail("\xf0\x90\xb9\xa7\xf0\x9e\xb2\x84\xf3\xa0\x81\xad\xf1\x86\xbc\xa9\xe3\x80\x82\xcd\x8e0."); } // [B1, V6, V7]
6957test { try toAsciiFail("\xf0\x90\xb9\xa7\xf0\x9e\xb2\x84\xf3\xa0\x81\xad\xf1\x86\xbc\xa9\xe3\x80\x82\xcd\x8e0.", false); } // [B1, V6, V7, A4_2]
6958test { try toAsciiFail("\xf0\x90\xb9\xa7\xf0\x9e\xb2\x84\xf3\xa0\x81\xad\xf1\x86\xbc\xa9\xe3\x80\x82\xcd\x8e0.", true); } // [B1, V6, V7, A4_2]
30016959test { try toUnicodeFail("xn--fo0dw409aq58qrn69d.xn--0-bgb."); } // [B1, V6, V7]
6960test { try toAsciiFail("xn--fo0dw409aq58qrn69d.xn--0-bgb.", false); } // [B1, V6, V7, A4_2]
6961test { try toAsciiFail("xn--fo0dw409aq58qrn69d.xn--0-bgb.", true); } // [B1, V6, V7, A4_2]
30026962test { try toUnicodeFail("xn--fo0dw409aq58qrn69d.xn--sua6883w"); } // [B1, V6, V7]
6963test { try toAsciiFail("xn--fo0dw409aq58qrn69d.xn--sua6883w", false); } // [B1, V6, V7]
6964test { try toAsciiFail("xn--fo0dw409aq58qrn69d.xn--sua6883w", true); } // [B1, V6, V7]
30036965test { try toUnicodeFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7]
6966test { try toAsciiFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82", false); } // [B1, C2, V7]
6967test { try toAsciiFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82", true); } // [B2, B3, V7]
30046968test { try toUnicodeFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7]
6969test { try toAsciiFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82", false); } // [B1, C2, V7]
6970test { try toAsciiFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82", true); } // [B2, B3, V7]
30056971test { try toUnicodeFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7]
6972test { try toAsciiFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82", false); } // [B1, C2, V7]
6973test { try toAsciiFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82", true); } // [B2, B3, V7]
30066974test { try toUnicodeFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3"); } // [B1, C2, V7]
6975test { try toAsciiFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3", false); } // [B1, C2, V7]
6976test { try toAsciiFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3", true); } // [B2, B3, V7]
30076977test { try toUnicodeFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83"); } // [B1, C2, V7]
6978test { try toAsciiFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83", false); } // [B1, C2, V7]
6979test { try toAsciiFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83", true); } // [B2, B3, V7]
30086980test { try toUnicodeFail("xn--vkj.xn--4xa73ob5892c"); } // [B2, B3, V7]
6981test { try toAsciiFail("xn--vkj.xn--4xa73ob5892c", false); } // [B2, B3, V7]
6982test { try toAsciiFail("xn--vkj.xn--4xa73ob5892c", true); } // [B2, B3, V7]
30096983test { try toUnicodeFail("xn--vkj.xn--4xa73o3t5ajq467a"); } // [B1, C2, V7]
6984test { try toAsciiFail("xn--vkj.xn--4xa73o3t5ajq467a", false); } // [B1, C2, V7]
6985test { try toAsciiFail("xn--vkj.xn--4xa73o3t5ajq467a", true); } // [B1, C2, V7]
30106986test { try toUnicodeFail("xn--vkj.xn--3xa93o3t5ajq467a"); } // [B1, C2, V7]
6987test { try toAsciiFail("xn--vkj.xn--3xa93o3t5ajq467a", false); } // [B1, C2, V7]
6988test { try toAsciiFail("xn--vkj.xn--3xa93o3t5ajq467a", true); } // [B1, C2, V7]
30116989test { try toUnicodeFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7]
6990test { try toAsciiFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82", false); } // [B1, C2, V7]
6991test { try toAsciiFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82", true); } // [B2, B3, V7]
30126992test { try toUnicodeFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3"); } // [B1, C2, V7]
6993test { try toAsciiFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3", false); } // [B1, C2, V7]
6994test { try toAsciiFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3", true); } // [B2, B3, V7]
30136995test { try toUnicodeFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83"); } // [B1, C2, V7]
6996test { try toAsciiFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83", false); } // [B1, C2, V7]
6997test { try toAsciiFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83", true); } // [B2, B3, V7]
30146998test { try toUnicodeFail("xn--cnd.xn--4xa73ob5892c"); } // [B2, B3, V7]
6999test { try toAsciiFail("xn--cnd.xn--4xa73ob5892c", false); } // [B2, B3, V7]
7000test { try toAsciiFail("xn--cnd.xn--4xa73ob5892c", true); } // [B2, B3, V7]
30157001test { try toUnicodeFail("xn--cnd.xn--4xa73o3t5ajq467a"); } // [B1, C2, V7]
7002test { try toAsciiFail("xn--cnd.xn--4xa73o3t5ajq467a", false); } // [B1, C2, V7]
7003test { try toAsciiFail("xn--cnd.xn--4xa73o3t5ajq467a", true); } // [B1, C2, V7]
30167004test { try toUnicodeFail("xn--cnd.xn--3xa93o3t5ajq467a"); } // [B1, C2, V7]
7005test { try toAsciiFail("xn--cnd.xn--3xa93o3t5ajq467a", false); } // [B1, C2, V7]
7006test { try toAsciiFail("xn--cnd.xn--3xa93o3t5ajq467a", true); } // [B1, C2, V7]
30177007test { try toUnicodeFail("\xf2\xae\xb5\x9b\xd8\x93.\xe1\x82\xb5"); } // [V7]
7008test { try toAsciiFail("\xf2\xae\xb5\x9b\xd8\x93.\xe1\x82\xb5", false); } // [V7]
7009test { try toAsciiFail("\xf2\xae\xb5\x9b\xd8\x93.\xe1\x82\xb5", true); } // [V7]
30187010test { try toUnicodeFail("\xf2\xae\xb5\x9b\xd8\x93.\xe2\xb4\x95"); } // [V7]
7011test { try toAsciiFail("\xf2\xae\xb5\x9b\xd8\x93.\xe2\xb4\x95", false); } // [V7]
7012test { try toAsciiFail("\xf2\xae\xb5\x9b\xd8\x93.\xe2\xb4\x95", true); } // [V7]
30197013test { try toUnicodeFail("xn--1fb94204l.xn--dlj"); } // [V7]
7014test { try toAsciiFail("xn--1fb94204l.xn--dlj", false); } // [V7]
7015test { try toAsciiFail("xn--1fb94204l.xn--dlj", true); } // [V7]
30207016test { try toUnicodeFail("xn--1fb94204l.xn--tnd"); } // [V7]
7017test { try toAsciiFail("xn--1fb94204l.xn--tnd", false); } // [V7]
7018test { try toAsciiFail("xn--1fb94204l.xn--tnd", true); } // [V7]
30217019test { try toUnicodeFail("\xe2\x89\xaf\xe1\xb7\xb3\xf0\x9e\xa4\xa5\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d"); } // [B1, C1, C2, V7]
7020test { try toAsciiFail("\xe2\x89\xaf\xe1\xb7\xb3\xf0\x9e\xa4\xa5\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d", false); } // [B1, C1, C2, V7]
7021test { try toAsciiFail("\xe2\x89\xaf\xe1\xb7\xb3\xf0\x9e\xa4\xa5\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d", true); } // [B1, V6, V7]
30227022test { try toUnicodeFail(">\xcc\xb8\xe1\xb7\xb3\xf0\x9e\xa4\xa5\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d"); } // [B1, C1, C2, V7]
7023test { try toAsciiFail(">\xcc\xb8\xe1\xb7\xb3\xf0\x9e\xa4\xa5\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d", false); } // [B1, C1, C2, V7]
7024test { try toAsciiFail(">\xcc\xb8\xe1\xb7\xb3\xf0\x9e\xa4\xa5\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d", true); } // [B1, V6, V7]
30237025test { try toUnicodeFail(">\xcc\xb8\xe1\xb7\xb3\xf0\x9e\xa4\x83\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d"); } // [B1, C1, C2, V7]
7026test { try toAsciiFail(">\xcc\xb8\xe1\xb7\xb3\xf0\x9e\xa4\x83\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d", false); } // [B1, C1, C2, V7]
7027test { try toAsciiFail(">\xcc\xb8\xe1\xb7\xb3\xf0\x9e\xa4\x83\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d", true); } // [B1, V6, V7]
30247028test { try toUnicodeFail("\xe2\x89\xaf\xe1\xb7\xb3\xf0\x9e\xa4\x83\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d"); } // [B1, C1, C2, V7]
7029test { try toAsciiFail("\xe2\x89\xaf\xe1\xb7\xb3\xf0\x9e\xa4\x83\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d", false); } // [B1, C1, C2, V7]
7030test { try toAsciiFail("\xe2\x89\xaf\xe1\xb7\xb3\xf0\x9e\xa4\x83\xe3\x80\x82\xe2\x80\x8c\xea\xa3\x84\xf3\xa0\xaa\x89\xe2\x80\x8d", true); } // [B1, V6, V7]
30257031test { try toUnicodeFail("xn--ofg13qyr21c.xn--0f9au6706d"); } // [B1, V6, V7]
7032test { try toAsciiFail("xn--ofg13qyr21c.xn--0f9au6706d", false); } // [B1, V6, V7]
7033test { try toAsciiFail("xn--ofg13qyr21c.xn--0f9au6706d", true); } // [B1, V6, V7]
30267034test { try toUnicodeFail("xn--ofg13qyr21c.xn--0ugc0116hix29k"); } // [B1, C1, C2, V7]
7035test { try toAsciiFail("xn--ofg13qyr21c.xn--0ugc0116hix29k", false); } // [B1, C1, C2, V7]
7036test { try toAsciiFail("xn--ofg13qyr21c.xn--0ugc0116hix29k", true); } // [B1, C1, C2, V7]
30277037test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xef\xbd\xa1\xf2\x92\x91\x81"); } // [C1, V7]
7038test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xef\xbd\xa1\xf2\x92\x91\x81", false); } // [C1, V7]
7039test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xef\xbd\xa1\xf2\x92\x91\x81", true); } // [V7, A4_2]
30287040test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xe3\x80\x82\xf2\x92\x91\x81"); } // [C1, V7]
7041test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xe3\x80\x82\xf2\x92\x91\x81", false); } // [C1, V7]
7042test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xe3\x80\x82\xf2\x92\x91\x81", true); } // [V7, A4_2]
30297043test { try toUnicodeFail(".xn--w720c"); } // [V7, X4_2]
7044test { try toAsciiFail(".xn--w720c", false); } // [V7, A4_2]
7045test { try toAsciiFail(".xn--w720c", true); } // [V7, A4_2]
30307046test { try toUnicodeFail("xn--0ug.xn--w720c"); } // [C1, V7]
7047test { try toAsciiFail("xn--0ug.xn--w720c", false); } // [C1, V7]
7048test { try toAsciiFail("xn--0ug.xn--w720c", true); } // [C1, V7]
30317049test { try toUnicodeFail("\xe2\x92\x88\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f"); } // [C2, V7]
7050test { try toAsciiFail("\xe2\x92\x88\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f", false); } // [C2, V7]
7051test { try toAsciiFail("\xe2\x92\x88\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f", true); } // [V7]
30327052test { try toUnicodeFail("1.\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f"); } // [C2, V6, V7]
7053test { try toAsciiFail("1.\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f", false); } // [C2, V6, V7]
7054test { try toAsciiFail("1.\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f", true); } // [V6, V7]
30337055test { try toUnicodeFail("1.xn--t1c6981c.xn--4c9a21133d"); } // [V6, V7]
7056test { try toAsciiFail("1.xn--t1c6981c.xn--4c9a21133d", false); } // [V6, V7]
7057test { try toAsciiFail("1.xn--t1c6981c.xn--4c9a21133d", true); } // [V6, V7]
30347058test { try toUnicodeFail("1.xn--t1c6981c.xn--1ugz184c9lw7i"); } // [C2, V6, V7]
7059test { try toAsciiFail("1.xn--t1c6981c.xn--1ugz184c9lw7i", false); } // [C2, V6, V7]
7060test { try toAsciiFail("1.xn--t1c6981c.xn--1ugz184c9lw7i", true); } // [C2, V6, V7]
30357061test { try toUnicodeFail("xn--t1c337io97c.xn--4c9a21133d"); } // [V7]
7062test { try toAsciiFail("xn--t1c337io97c.xn--4c9a21133d", false); } // [V7]
7063test { try toAsciiFail("xn--t1c337io97c.xn--4c9a21133d", true); } // [V7]
30367064test { try toUnicodeFail("xn--t1c337io97c.xn--1ugz184c9lw7i"); } // [C2, V7]
7065test { try toAsciiFail("xn--t1c337io97c.xn--1ugz184c9lw7i", false); } // [C2, V7]
7066test { try toAsciiFail("xn--t1c337io97c.xn--1ugz184c9lw7i", true); } // [C2, V7]
30377067test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
7068test { try toAsciiFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", false); } // [B1, B5, V6]
7069test { try toAsciiFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", true); } // [B1, B5, V6]
30387070test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
7071test { try toAsciiFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", false); } // [B1, B5, V6]
7072test { try toAsciiFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", true); } // [B1, B5, V6]
30397073test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
7074test { try toAsciiFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", false); } // [B1, B5, V6]
7075test { try toAsciiFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", true); } // [B1, B5, V6]
30407076test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
7077test { try toAsciiFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", false); } // [B1, B5, V6]
7078test { try toAsciiFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", true); } // [B1, B5, V6]
30417079test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
7080test { try toAsciiFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", false); } // [B1, B5, V6]
7081test { try toAsciiFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", true); } // [B1, B5, V6]
30427082test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
7083test { try toAsciiFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", false); } // [B1, B5, V6]
7084test { try toAsciiFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", true); } // [B1, B5, V6]
30437085test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
7086test { try toAsciiFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", false); } // [B1, B5, V6]
7087test { try toAsciiFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", true); } // [B1, B5, V6]
30447088test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
7089test { try toAsciiFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", false); } // [B1, B5, V6]
7090test { try toAsciiFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", true); } // [B1, B5, V6]
30457091test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
7092test { try toAsciiFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", false); } // [B1, B5, V6]
7093test { try toAsciiFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", true); } // [B1, B5, V6]
30467094test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
7095test { try toAsciiFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", false); } // [B1, B5, V6]
7096test { try toAsciiFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70", true); } // [B1, B5, V6]
30477097test { try toUnicodeFail("xn--4xa544kvid.xn--0-zmb55727aggma"); } // [B1, B5, V6]
7098test { try toAsciiFail("xn--4xa544kvid.xn--0-zmb55727aggma", false); } // [B1, B5, V6]
7099test { try toAsciiFail("xn--4xa544kvid.xn--0-zmb55727aggma", true); } // [B1, B5, V6]
30487100test { try toUnicodeFail("xn--3xa744kvid.xn--0-xmb85727aggma"); } // [B1, B5, V6]
7101test { try toAsciiFail("xn--3xa744kvid.xn--0-xmb85727aggma", false); } // [B1, B5, V6]
7102test { try toAsciiFail("xn--3xa744kvid.xn--0-xmb85727aggma", true); } // [B1, B5, V6]
30497103test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
7104test { try toAsciiFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", false); } // [B1, B5, V6]
7105test { try toAsciiFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", true); } // [B1, B5, V6]
30507106test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
7107test { try toAsciiFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", false); } // [B1, B5, V6]
7108test { try toAsciiFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950", true); } // [B1, B5, V6]
30517109test { try toUnicodeFail("\xf2\xa2\xa6\xbe\xc3\x9f\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7]
7110test { try toAsciiFail("\xf2\xa2\xa6\xbe\xc3\x9f\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1", false); } // [B1, B5, B6, V6, V7]
7111test { try toAsciiFail("\xf2\xa2\xa6\xbe\xc3\x9f\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1", true); } // [B1, B5, B6, V6, V7]
30527112test { try toUnicodeFail("\xf2\xa2\xa6\xbeSS\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7]
7113test { try toAsciiFail("\xf2\xa2\xa6\xbeSS\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1", false); } // [B1, B5, B6, V6, V7]
7114test { try toAsciiFail("\xf2\xa2\xa6\xbeSS\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1", true); } // [B1, B5, B6, V6, V7]
30537115test { try toUnicodeFail("\xf2\xa2\xa6\xbess\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7]
7116test { try toAsciiFail("\xf2\xa2\xa6\xbess\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1", false); } // [B1, B5, B6, V6, V7]
7117test { try toAsciiFail("\xf2\xa2\xa6\xbess\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1", true); } // [B1, B5, B6, V6, V7]
30547118test { try toUnicodeFail("\xf2\xa2\xa6\xbeSs\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7]
7119test { try toAsciiFail("\xf2\xa2\xa6\xbeSs\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1", false); } // [B1, B5, B6, V6, V7]
7120test { try toAsciiFail("\xf2\xa2\xa6\xbeSs\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1", true); } // [B1, B5, B6, V6, V7]
30557121test { try toUnicodeFail("xn--ss-xjd6058xlz50g.xn--4cb62m"); } // [B1, B5, B6, V6, V7]
7122test { try toAsciiFail("xn--ss-xjd6058xlz50g.xn--4cb62m", false); } // [B1, B5, B6, V6, V7]
7123test { try toAsciiFail("xn--ss-xjd6058xlz50g.xn--4cb62m", true); } // [B1, B5, B6, V6, V7]
30567124test { try toUnicodeFail("xn--zca89v339zj118e.xn--4cb62m"); } // [B1, B5, B6, V6, V7]
7125test { try toAsciiFail("xn--zca89v339zj118e.xn--4cb62m", false); } // [B1, B5, B6, V6, V7]
7126test { try toAsciiFail("xn--zca89v339zj118e.xn--4cb62m", true); } // [B1, B5, B6, V6, V7]
30577127test { try toUnicodeFail("-\xf0\x9e\xa3\x84\xef\xbd\xa1\xe2\x92\x88"); } // [B1, V3, V7]
7128test { try toAsciiFail("-\xf0\x9e\xa3\x84\xef\xbd\xa1\xe2\x92\x88", false); } // [B1, V3, V7]
7129test { try toAsciiFail("-\xf0\x9e\xa3\x84\xef\xbd\xa1\xe2\x92\x88", true); } // [B1, V3, V7]
30587130test { try toUnicodeFail("-\xf0\x9e\xa3\x84\xe3\x80\x821."); } // [B1, V3]
7131test { try toAsciiFail("-\xf0\x9e\xa3\x84\xe3\x80\x821.", false); } // [B1, V3, A4_2]
7132test { try toAsciiFail("-\xf0\x9e\xa3\x84\xe3\x80\x821.", true); } // [B1, V3, A4_2]
30597133test { try toUnicodeFail("xn----xc8r.b."); } // [B1, V3]
7134test { try toAsciiFail("xn----xc8r.b.", false); } // [B1, V3, A4_2]
7135test { try toAsciiFail("xn----xc8r.b.", true); } // [B1, V3, A4_2]
30607136test { try toUnicodeFail("xn----xc8r.xn--tsh"); } // [B1, V3, V7]
7137test { try toAsciiFail("xn----xc8r.xn--tsh", false); } // [B1, V3, V7]
7138test { try toAsciiFail("xn----xc8r.xn--tsh", true); } // [B1, V3, V7]
30617139test { try toUnicodeFail("\xf1\x88\xa0\xa2\xf0\x90\xab\x96\xf0\x9d\x9f\xa1\xe3\x80\x82\xd8\xbe\xf0\x91\x98\xbf"); } // [B5, V7]
7140test { try toAsciiFail("\xf1\x88\xa0\xa2\xf0\x90\xab\x96\xf0\x9d\x9f\xa1\xe3\x80\x82\xd8\xbe\xf0\x91\x98\xbf", false); } // [B5, V7]
7141test { try toAsciiFail("\xf1\x88\xa0\xa2\xf0\x90\xab\x96\xf0\x9d\x9f\xa1\xe3\x80\x82\xd8\xbe\xf0\x91\x98\xbf", true); } // [B5, V7]
30627142test { try toUnicodeFail("\xf1\x88\xa0\xa2\xf0\x90\xab\x969\xe3\x80\x82\xd8\xbe\xf0\x91\x98\xbf"); } // [B5, V7]
7143test { try toAsciiFail("\xf1\x88\xa0\xa2\xf0\x90\xab\x969\xe3\x80\x82\xd8\xbe\xf0\x91\x98\xbf", false); } // [B5, V7]
7144test { try toAsciiFail("\xf1\x88\xa0\xa2\xf0\x90\xab\x969\xe3\x80\x82\xd8\xbe\xf0\x91\x98\xbf", true); } // [B5, V7]
30637145test { try toUnicodeFail("xn--9-el5iv442t.xn--9gb0830l"); } // [B5, V7]
7146test { try toAsciiFail("xn--9-el5iv442t.xn--9gb0830l", false); } // [B5, V7]
7147test { try toAsciiFail("xn--9-el5iv442t.xn--9gb0830l", true); } // [B5, V7]
30647148test { try toUnicodeFail("\xd9\xa8\xef\xb2\x8c\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d"); } // [B1, C2]
7149test { try toAsciiFail("\xd9\xa8\xef\xb2\x8c\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d", false); } // [B1, C2]
7150test { try toAsciiFail("\xd9\xa8\xef\xb2\x8c\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d", true); } // [B1, A4_2]
30657151test { try toUnicodeFail("\xd9\xa8\xd9\x86\xd9\x85\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d"); } // [B1, C2]
7152test { try toAsciiFail("\xd9\xa8\xd9\x86\xd9\x85\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d", false); } // [B1, C2]
7153test { try toAsciiFail("\xd9\xa8\xd9\x86\xd9\x85\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d", true); } // [B1, A4_2]
30667154test { try toUnicodeFail("xn--hhbb5hc956w."); } // [B1]
7155test { try toAsciiFail("xn--hhbb5hc956w.", false); } // [B1, A4_2]
7156test { try toAsciiFail("xn--hhbb5hc956w.", true); } // [B1, A4_2]
30677157test { try toUnicodeFail("xn--hhbb5hc956w.xn--1ug"); } // [B1, C2]
7158test { try toAsciiFail("xn--hhbb5hc956w.xn--1ug", false); } // [B1, C2]
7159test { try toAsciiFail("xn--hhbb5hc956w.xn--1ug", true); } // [B1, C2]
30687160test { try toUnicodeFail("\xf0\x9d\x9f\x98\xef\xbc\x8e\xe1\x82\xa7\xf3\x80\xb3\x91\xef\xb5\x90\xf1\xab\x83\xb1"); } // [B1, B5, V7]
7161test { try toAsciiFail("\xf0\x9d\x9f\x98\xef\xbc\x8e\xe1\x82\xa7\xf3\x80\xb3\x91\xef\xb5\x90\xf1\xab\x83\xb1", false); } // [B1, B5, V7]
7162test { try toAsciiFail("\xf0\x9d\x9f\x98\xef\xbc\x8e\xe1\x82\xa7\xf3\x80\xb3\x91\xef\xb5\x90\xf1\xab\x83\xb1", true); } // [B1, B5, V7]
30697163test { try toUnicodeFail("0.\xe1\x82\xa7\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1"); } // [B1, B5, V7]
7164test { try toAsciiFail("0.\xe1\x82\xa7\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1", false); } // [B1, B5, V7]
7165test { try toAsciiFail("0.\xe1\x82\xa7\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1", true); } // [B1, B5, V7]
30707166test { try toUnicodeFail("0.\xe2\xb4\x87\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1"); } // [B1, B5, V7]
7167test { try toAsciiFail("0.\xe2\xb4\x87\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1", false); } // [B1, B5, V7]
7168test { try toAsciiFail("0.\xe2\xb4\x87\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1", true); } // [B1, B5, V7]
30717169test { try toUnicodeFail("0.xn--pgbe9ez79qd207lvff8b"); } // [B1, B5, V7]
7170test { try toAsciiFail("0.xn--pgbe9ez79qd207lvff8b", false); } // [B1, B5, V7]
7171test { try toAsciiFail("0.xn--pgbe9ez79qd207lvff8b", true); } // [B1, B5, V7]
30727172test { try toUnicodeFail("\xf0\x9d\x9f\x98\xef\xbc\x8e\xe2\xb4\x87\xf3\x80\xb3\x91\xef\xb5\x90\xf1\xab\x83\xb1"); } // [B1, B5, V7]
7173test { try toAsciiFail("\xf0\x9d\x9f\x98\xef\xbc\x8e\xe2\xb4\x87\xf3\x80\xb3\x91\xef\xb5\x90\xf1\xab\x83\xb1", false); } // [B1, B5, V7]
7174test { try toAsciiFail("\xf0\x9d\x9f\x98\xef\xbc\x8e\xe2\xb4\x87\xf3\x80\xb3\x91\xef\xb5\x90\xf1\xab\x83\xb1", true); } // [B1, B5, V7]
30737175test { try toUnicodeFail("0.xn--pgbe9e344c2725svff8b"); } // [B1, B5, V7]
7176test { try toAsciiFail("0.xn--pgbe9e344c2725svff8b", false); } // [B1, B5, V7]
7177test { try toAsciiFail("0.xn--pgbe9e344c2725svff8b", true); } // [B1, B5, V7]
30747178test { try toUnicodeFail("\xf0\x91\x87\x80\xe2\x96\x8d.\xe2\x81\x9e\xe1\xa0\xb0"); } // [V6]
7179test { try toAsciiFail("\xf0\x91\x87\x80\xe2\x96\x8d.\xe2\x81\x9e\xe1\xa0\xb0", false); } // [V6]
7180test { try toAsciiFail("\xf0\x91\x87\x80\xe2\x96\x8d.\xe2\x81\x9e\xe1\xa0\xb0", true); } // [V6]
30757181test { try toUnicodeFail("xn--9zh3057f.xn--j7e103b"); } // [V6]
7182test { try toAsciiFail("xn--9zh3057f.xn--j7e103b", false); } // [V6]
7183test { try toAsciiFail("xn--9zh3057f.xn--j7e103b", true); } // [V6]
30767184test { try toUnicodeFail("\xe2\x80\x8d-\xd9\xba.\xf2\x8f\xaf\xa9"); } // [B1, C2, V7]
7185test { try toAsciiFail("\xe2\x80\x8d-\xd9\xba.\xf2\x8f\xaf\xa9", false); } // [B1, C2, V7]
7186test { try toAsciiFail("\xe2\x80\x8d-\xd9\xba.\xf2\x8f\xaf\xa9", true); } // [B1, V3, V7]
30777187test { try toUnicodeFail("xn----qrc.xn--ts49b"); } // [B1, V3, V7]
7188test { try toAsciiFail("xn----qrc.xn--ts49b", false); } // [B1, V3, V7]
7189test { try toAsciiFail("xn----qrc.xn--ts49b", true); } // [B1, V3, V7]
30787190test { try toUnicodeFail("xn----qrc357q.xn--ts49b"); } // [B1, C2, V7]
7191test { try toAsciiFail("xn----qrc357q.xn--ts49b", false); } // [B1, C2, V7]
7192test { try toAsciiFail("xn----qrc357q.xn--ts49b", true); } // [B1, C2, V7]
30797193test { try toUnicodeFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xef\xbd\xa1\xe2\x80\x8c\xe2\x89\xaf\xe2\x9c\xb3"); } // [B1, B5, C1]
7194test { try toAsciiFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xef\xbd\xa1\xe2\x80\x8c\xe2\x89\xaf\xe2\x9c\xb3", false); } // [B1, B5, C1]
7195test { try toAsciiFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xef\xbd\xa1\xe2\x80\x8c\xe2\x89\xaf\xe2\x9c\xb3", true); } // [B1, B5]
30807196test { try toUnicodeFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xef\xbd\xa1\xe2\x80\x8c>\xcc\xb8\xe2\x9c\xb3"); } // [B1, B5, C1]
7197test { try toAsciiFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xef\xbd\xa1\xe2\x80\x8c>\xcc\xb8\xe2\x9c\xb3", false); } // [B1, B5, C1]
7198test { try toAsciiFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xef\xbd\xa1\xe2\x80\x8c>\xcc\xb8\xe2\x9c\xb3", true); } // [B1, B5]
30817199test { try toUnicodeFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xe3\x80\x82\xe2\x80\x8c\xe2\x89\xaf\xe2\x9c\xb3"); } // [B1, B5, C1]
7200test { try toAsciiFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xe3\x80\x82\xe2\x80\x8c\xe2\x89\xaf\xe2\x9c\xb3", false); } // [B1, B5, C1]
7201test { try toAsciiFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xe3\x80\x82\xe2\x80\x8c\xe2\x89\xaf\xe2\x9c\xb3", true); } // [B1, B5]
30827202test { try toUnicodeFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xe3\x80\x82\xe2\x80\x8c>\xcc\xb8\xe2\x9c\xb3"); } // [B1, B5, C1]
7203test { try toAsciiFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xe3\x80\x82\xe2\x80\x8c>\xcc\xb8\xe2\x9c\xb3", false); } // [B1, B5, C1]
7204test { try toAsciiFail("\xe1\xa0\xa2\xf0\x90\xae\x82\xf0\x90\xab\x98\xe5\xaf\x90\xe3\x80\x82\xe2\x80\x8c>\xcc\xb8\xe2\x9c\xb3", true); } // [B1, B5]
30837205test { try toUnicodeFail("xn--46e6675axzzhota.xn--hdh99p"); } // [B1, B5]
7206test { try toAsciiFail("xn--46e6675axzzhota.xn--hdh99p", false); } // [B1, B5]
7207test { try toAsciiFail("xn--46e6675axzzhota.xn--hdh99p", true); } // [B1, B5]
30847208test { try toUnicodeFail("xn--46e6675axzzhota.xn--0ug06gu8f"); } // [B1, B5, C1]
7209test { try toAsciiFail("xn--46e6675axzzhota.xn--0ug06gu8f", false); } // [B1, B5, C1]
7210test { try toAsciiFail("xn--46e6675axzzhota.xn--0ug06gu8f", true); } // [B1, B5, C1]
30857211test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe1\x82\xba\xe1\x82\xb4\xf0\x9e\xa8\x87"); } // [B1, B5, B6, C2, V7]
7212test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe1\x82\xba\xe1\x82\xb4\xf0\x9e\xa8\x87", false); } // [B1, B5, B6, C2, V7]
7213test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe1\x82\xba\xe1\x82\xb4\xf0\x9e\xa8\x87", true); } // [B5, B6, V7, A4_2]
30867214test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe1\x82\xba\xe1\x82\xb4\xf0\x9e\xa8\x87"); } // [B1, B5, B6, C2, V7]
7215test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe1\x82\xba\xe1\x82\xb4\xf0\x9e\xa8\x87", false); } // [B1, B5, B6, C2, V7]
7216test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe1\x82\xba\xe1\x82\xb4\xf0\x9e\xa8\x87", true); } // [B5, B6, V7, A4_2]
30877217test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe2\xb4\x9a\xe2\xb4\x94\xf0\x9e\xa8\x87"); } // [B1, B5, B6, C2, V7]
7218test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe2\xb4\x9a\xe2\xb4\x94\xf0\x9e\xa8\x87", false); } // [B1, B5, B6, C2, V7]
7219test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe2\xb4\x9a\xe2\xb4\x94\xf0\x9e\xa8\x87", true); } // [B5, B6, V7, A4_2]
30887220test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe1\x82\xba\xe2\xb4\x94\xf0\x9e\xa8\x87"); } // [B1, B5, B6, C2, V7]
7221test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe1\x82\xba\xe2\xb4\x94\xf0\x9e\xa8\x87", false); } // [B1, B5, B6, C2, V7]
7222test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf3\xb8\xb2\x9c\xe1\x82\xba\xe2\xb4\x94\xf0\x9e\xa8\x87", true); } // [B5, B6, V7, A4_2]
30897223test { try toUnicodeFail(".xn--cljl81825an3r4h"); } // [B5, B6, V7, X4_2]
7224test { try toAsciiFail(".xn--cljl81825an3r4h", false); } // [B5, B6, V7, A4_2]
7225test { try toAsciiFail(".xn--cljl81825an3r4h", true); } // [B5, B6, V7, A4_2]
30907226test { try toUnicodeFail("xn--1ug.xn--cljl81825an3r4h"); } // [B1, B5, B6, C2, V7]
7227test { try toAsciiFail("xn--1ug.xn--cljl81825an3r4h", false); } // [B1, B5, B6, C2, V7]
7228test { try toAsciiFail("xn--1ug.xn--cljl81825an3r4h", true); } // [B1, B5, B6, C2, V7]
30917229test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe2\xb4\x9a\xe2\xb4\x94\xf0\x9e\xa8\x87"); } // [B1, B5, B6, C2, V7]
7230test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe2\xb4\x9a\xe2\xb4\x94\xf0\x9e\xa8\x87", false); } // [B1, B5, B6, C2, V7]
7231test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe2\xb4\x9a\xe2\xb4\x94\xf0\x9e\xa8\x87", true); } // [B5, B6, V7, A4_2]
30927232test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe1\x82\xba\xe2\xb4\x94\xf0\x9e\xa8\x87"); } // [B1, B5, B6, C2, V7]
7233test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe1\x82\xba\xe2\xb4\x94\xf0\x9e\xa8\x87", false); } // [B1, B5, B6, C2, V7]
7234test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf3\xb8\xb2\x9c\xe1\x82\xba\xe2\xb4\x94\xf0\x9e\xa8\x87", true); } // [B5, B6, V7, A4_2]
30937235test { try toUnicodeFail(".xn--ynd036lq981an3r4h"); } // [B5, B6, V7, X4_2]
7236test { try toAsciiFail(".xn--ynd036lq981an3r4h", false); } // [B5, B6, V7, A4_2]
7237test { try toAsciiFail(".xn--ynd036lq981an3r4h", true); } // [B5, B6, V7, A4_2]
30947238test { try toUnicodeFail("xn--1ug.xn--ynd036lq981an3r4h"); } // [B1, B5, B6, C2, V7]
7239test { try toAsciiFail("xn--1ug.xn--ynd036lq981an3r4h", false); } // [B1, B5, B6, C2, V7]
7240test { try toAsciiFail("xn--1ug.xn--ynd036lq981an3r4h", true); } // [B1, B5, B6, C2, V7]
30957241test { try toUnicodeFail(".xn--sndl01647an3h1h"); } // [B5, B6, V7, X4_2]
7242test { try toAsciiFail(".xn--sndl01647an3h1h", false); } // [B5, B6, V7, A4_2]
7243test { try toAsciiFail(".xn--sndl01647an3h1h", true); } // [B5, B6, V7, A4_2]
30967244test { try toUnicodeFail("xn--1ug.xn--sndl01647an3h1h"); } // [B1, B5, B6, C2, V7]
7245test { try toAsciiFail("xn--1ug.xn--sndl01647an3h1h", false); } // [B1, B5, B6, C2, V7]
7246test { try toAsciiFail("xn--1ug.xn--sndl01647an3h1h", true); } // [B1, B5, B6, C2, V7]
30977247test { try toUnicodeFail("-3.\xe2\x80\x8d\xe3\x83\x8c\xe1\xa2\x95"); } // [C2, V3]
7248test { try toAsciiFail("-3.\xe2\x80\x8d\xe3\x83\x8c\xe1\xa2\x95", false); } // [C2, V3]
7249test { try toAsciiFail("-3.\xe2\x80\x8d\xe3\x83\x8c\xe1\xa2\x95", true); } // [V3]
30987250test { try toUnicodeFail("-3.xn--fbf115j"); } // [V3]
7251test { try toAsciiFail("-3.xn--fbf115j", false); } // [V3]
7252test { try toAsciiFail("-3.xn--fbf115j", true); } // [V3]
30997253test { try toUnicodeFail("-3.xn--fbf739aq5o"); } // [C2, V3]
7254test { try toAsciiFail("-3.xn--fbf739aq5o", false); } // [C2, V3]
7255test { try toAsciiFail("-3.xn--fbf739aq5o", true); } // [C2, V3]
31007256test { try toUnicodeFail("\xf0\x9f\x82\x83\xd9\xa6\xc3\x9f\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-"); } // [B1, C2, V3, V7]
7257test { try toAsciiFail("\xf0\x9f\x82\x83\xd9\xa6\xc3\x9f\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-", false); } // [B1, C2, V3, V7]
7258test { try toAsciiFail("\xf0\x9f\x82\x83\xd9\xa6\xc3\x9f\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-", true); } // [B1, V3, V7]
31017259test { try toUnicodeFail("\xf0\x9f\x82\x83\xd9\xa6SS\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-"); } // [B1, C2, V3, V7]
7260test { try toAsciiFail("\xf0\x9f\x82\x83\xd9\xa6SS\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-", false); } // [B1, C2, V3, V7]
7261test { try toAsciiFail("\xf0\x9f\x82\x83\xd9\xa6SS\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-", true); } // [B1, V3, V7]
31027262test { try toUnicodeFail("\xf0\x9f\x82\x83\xd9\xa6ss\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-"); } // [B1, C2, V3, V7]
7263test { try toAsciiFail("\xf0\x9f\x82\x83\xd9\xa6ss\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-", false); } // [B1, C2, V3, V7]
7264test { try toAsciiFail("\xf0\x9f\x82\x83\xd9\xa6ss\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-", true); } // [B1, V3, V7]
31037265test { try toUnicodeFail("xn--ss-pyd98921c.xn----nz8rh7531csznt"); } // [B1, V3, V7]
7266test { try toAsciiFail("xn--ss-pyd98921c.xn----nz8rh7531csznt", false); } // [B1, V3, V7]
7267test { try toAsciiFail("xn--ss-pyd98921c.xn----nz8rh7531csznt", true); } // [B1, V3, V7]
31047268test { try toUnicodeFail("xn--ss-pyd483x5k99b.xn----nz8rh7531csznt"); } // [B1, C2, V3, V7]
7269test { try toAsciiFail("xn--ss-pyd483x5k99b.xn----nz8rh7531csznt", false); } // [B1, C2, V3, V7]
7270test { try toAsciiFail("xn--ss-pyd483x5k99b.xn----nz8rh7531csznt", true); } // [B1, C2, V3, V7]
31057271test { try toUnicodeFail("xn--zca34z68yzu83b.xn----nz8rh7531csznt"); } // [B1, C2, V3, V7]
7272test { try toAsciiFail("xn--zca34z68yzu83b.xn----nz8rh7531csznt", false); } // [B1, C2, V3, V7]
7273test { try toAsciiFail("xn--zca34z68yzu83b.xn----nz8rh7531csznt", true); } // [B1, C2, V3, V7]
31067274test { try toUnicodeFail("\xf0\x9f\x82\x83\xd9\xa6Ss\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-"); } // [B1, C2, V3, V7]
7275test { try toAsciiFail("\xf0\x9f\x82\x83\xd9\xa6Ss\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-", false); } // [B1, C2, V3, V7]
7276test { try toAsciiFail("\xf0\x9f\x82\x83\xd9\xa6Ss\xe2\x80\x8d\xe3\x80\x82\xf3\xa0\xa0\x82\xf2\xad\xb0\x8d\xf0\x9e\xa9\x92-", true); } // [B1, V3, V7]
31077277test { try toUnicodeFail("\xea\x87\x9f-\xf0\x90\xbe\xba\xda\x9f\xe3\x80\x82\xf2\xb0\x80\xba\xe2\x80\x8c"); } // [B5, B6, C1, V7]
7278test { try toAsciiFail("\xea\x87\x9f-\xf0\x90\xbe\xba\xda\x9f\xe3\x80\x82\xf2\xb0\x80\xba\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
7279test { try toAsciiFail("\xea\x87\x9f-\xf0\x90\xbe\xba\xda\x9f\xe3\x80\x82\xf2\xb0\x80\xba\xe2\x80\x8c", true); } // [B5, B6, V7]
31087280test { try toUnicodeFail("xn----utc4430jd3zd.xn--bp20d"); } // [B5, B6, V7]
7281test { try toAsciiFail("xn----utc4430jd3zd.xn--bp20d", false); } // [B5, B6, V7]
7282test { try toAsciiFail("xn----utc4430jd3zd.xn--bp20d", true); } // [B5, B6, V7]
31097283test { try toUnicodeFail("xn----utc4430jd3zd.xn--0ugx6670i"); } // [B5, B6, C1, V7]
7284test { try toAsciiFail("xn----utc4430jd3zd.xn--0ugx6670i", false); } // [B5, B6, C1, V7]
7285test { try toAsciiFail("xn----utc4430jd3zd.xn--0ugx6670i", true); } // [B5, B6, C1, V7]
31107286test { try toUnicodeFail("\xd9\xa5.\xd2\x84\xf0\x90\xa8\x97\xf0\x9d\xa9\x8b\xf0\xb4\xa4\x83"); } // [B1, V6, V7]
7287test { try toAsciiFail("\xd9\xa5.\xd2\x84\xf0\x90\xa8\x97\xf0\x9d\xa9\x8b\xf0\xb4\xa4\x83", false); } // [B1, V6, V7]
7288test { try toAsciiFail("\xd9\xa5.\xd2\x84\xf0\x90\xa8\x97\xf0\x9d\xa9\x8b\xf0\xb4\xa4\x83", true); } // [B1, V6, V7]
31117289test { try toUnicodeFail("xn--eib.xn--n3a0405kus8eft5l"); } // [B1, V6, V7]
7290test { try toAsciiFail("xn--eib.xn--n3a0405kus8eft5l", false); } // [B1, V6, V7]
7291test { try toAsciiFail("xn--eib.xn--n3a0405kus8eft5l", true); } // [B1, V6, V7]
31127292test { try toUnicodeFail("-.\xf1\xb1\xbc\x93\xd9\x89\xf0\x90\xa8\xbf"); } // [B1, B5, B6, V3, V7]
7293test { try toAsciiFail("-.\xf1\xb1\xbc\x93\xd9\x89\xf0\x90\xa8\xbf", false); } // [B1, B5, B6, V3, V7]
7294test { try toAsciiFail("-.\xf1\xb1\xbc\x93\xd9\x89\xf0\x90\xa8\xbf", true); } // [B1, B5, B6, V3, V7]
31137295test { try toUnicodeFail("-.xn--lhb4124khbq4b"); } // [B1, B5, B6, V3, V7]
7296test { try toAsciiFail("-.xn--lhb4124khbq4b", false); } // [B1, B5, B6, V3, V7]
7297test { try toAsciiFail("-.xn--lhb4124khbq4b", true); } // [B1, B5, B6, V3, V7]
31147298test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x82.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7]
7299test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x82.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f", false); } // [B2, B3, V7]
7300test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x82.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f", true); } // [B2, B3, V7]
31157301test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x82.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f"); } // [B2, B3, V7]
7302test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x82.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f", false); } // [B2, B3, V7]
7303test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x82.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f", true); } // [B2, B3, V7]
31167304test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6SS"); } // [B2, B3, V7]
7305test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6SS", false); } // [B2, B3, V7]
7306test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6SS", true); } // [B2, B3, V7]
31177307test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSS"); } // [B2, B3, V7]
7308test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSS", false); } // [B2, B3, V7]
7309test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSS", true); } // [B2, B3, V7]
31187310test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xabss"); } // [B2, B3, V7]
7311test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xabss", false); } // [B2, B3, V7]
7312test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xabss", true); } // [B2, B3, V7]
31197313test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss"); } // [B2, B3, V7]
7314test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss", false); } // [B2, B3, V7]
7315test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss", true); } // [B2, B3, V7]
31207316test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss"); } // [B2, B3, V7]
7317test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss", false); } // [B2, B3, V7]
7318test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss", true); } // [B2, B3, V7]
31217319test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabss"); } // [B2, B3, V7]
7320test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabss", false); } // [B2, B3, V7]
7321test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabss", true); } // [B2, B3, V7]
31227322test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSs"); } // [B2, B3, V7]
7323test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSs", false); } // [B2, B3, V7]
7324test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSs", true); } // [B2, B3, V7]
31237325test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6Ss"); } // [B2, B3, V7]
7326test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6Ss", false); } // [B2, B3, V7]
7327test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6Ss", true); } // [B2, B3, V7]
31247328test { try toUnicodeFail("xn--4xa76659r.xn--ss-d64i8755h"); } // [B2, B3, V7]
7329test { try toAsciiFail("xn--4xa76659r.xn--ss-d64i8755h", false); } // [B2, B3, V7]
7330test { try toAsciiFail("xn--4xa76659r.xn--ss-d64i8755h", true); } // [B2, B3, V7]
31257331test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f"); } // [B2, B3, V7]
7332test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f", false); } // [B2, B3, V7]
7333test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f", true); } // [B2, B3, V7]
31267334test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7]
7335test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f", false); } // [B2, B3, V7]
7336test { try toAsciiFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f", true); } // [B2, B3, V7]
31277337test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7]
7338test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f", false); } // [B2, B3, V7]
7339test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f", true); } // [B2, B3, V7]
31287340test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f"); } // [B2, B3, V7]
7341test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f", false); } // [B2, B3, V7]
7342test { try toAsciiFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6\xc3\x9f", true); } // [B2, B3, V7]
31297343test { try toUnicodeFail("xn--4xa76659r.xn--zca5051g4h4i"); } // [B2, B3, V7]
7344test { try toAsciiFail("xn--4xa76659r.xn--zca5051g4h4i", false); } // [B2, B3, V7]
7345test { try toAsciiFail("xn--4xa76659r.xn--zca5051g4h4i", true); } // [B2, B3, V7]
31307346test { try toUnicodeFail("xn--3xa96659r.xn--zca5051g4h4i"); } // [B2, B3, V7]
7347test { try toAsciiFail("xn--3xa96659r.xn--zca5051g4h4i", false); } // [B2, B3, V7]
7348test { try toAsciiFail("xn--3xa96659r.xn--zca5051g4h4i", true); } // [B2, B3, V7]
31317349test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c", "xn--u4e969b.xn--1ch", true); }
31327350test { try toUnicodeFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
7351test { try toAsciiFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c", false); } // [C1, C2]
31337352test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c", "xn--u4e969b.xn--1ch", true); }
31347353test { try toUnicodeFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
7354test { try toAsciiFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c", false); } // [C1, C2]
31357355test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c", "xn--u4e969b.xn--1ch", true); }
31367356test { try toUnicodeFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
7357test { try toAsciiFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c", false); } // [C1, C2]
31377358test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c", "xn--u4e969b.xn--1ch", true); }
31387359test { try toUnicodeFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
7360test { try toAsciiFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c", false); } // [C1, C2]
31397361test { try toAsciiPass("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c", "xn--u4e969b.xn--1ch", true); }
31407362test { try toUnicodeFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
7363test { try toAsciiFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c", false); } // [C1, C2]
31417364test { try toAsciiPass("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c", "xn--u4e969b.xn--1ch", true); }
31427365test { try toUnicodeFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
7366test { try toAsciiFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c", false); } // [C1, C2]
31437367test { try toUnicodePass("xn--u4e969b.xn--1ch", "\xe2\x85\x8e\xe1\x9f\x92.\xe2\x89\xa0"); }
31447368test { try toAsciiPass("xn--u4e969b.xn--1ch", "xn--u4e969b.xn--1ch", false); }
31457369test { try toAsciiPass("xn--u4e969b.xn--1ch", "xn--u4e969b.xn--1ch", true); }
......@@ -3156,291 +7380,851 @@ test { try toUnicodePass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "\xe2\x85\x8e\
31567380test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "xn--u4e969b.xn--1ch", false); }
31577381test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "xn--u4e969b.xn--1ch", true); }
31587382test { try toUnicodeFail("xn--u4e823bq1a.xn--0ugb89o"); } // [C1, C2]
7383test { try toAsciiFail("xn--u4e823bq1a.xn--0ugb89o", false); } // [C1, C2]
7384test { try toAsciiFail("xn--u4e823bq1a.xn--0ugb89o", true); } // [C1, C2]
31597385test { try toAsciiPass("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c", "xn--u4e969b.xn--1ch", true); }
31607386test { try toUnicodeFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
7387test { try toAsciiFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c", false); } // [C1, C2]
31617388test { try toAsciiPass("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c", "xn--u4e969b.xn--1ch", true); }
31627389test { try toUnicodeFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
7390test { try toAsciiFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1\xe2\x89\xa0\xe2\x80\x8d\xe2\x80\x8c", false); } // [C1, C2]
31637391test { try toUnicodeFail("xn--u4e319b.xn--1ch"); } // [V7]
7392test { try toAsciiFail("xn--u4e319b.xn--1ch", false); } // [V7]
7393test { try toAsciiFail("xn--u4e319b.xn--1ch", true); } // [V7]
31647394test { try toUnicodeFail("xn--u4e823bcza.xn--0ugb89o"); } // [C1, C2, V7]
7395test { try toAsciiFail("xn--u4e823bcza.xn--0ugb89o", false); } // [C1, C2, V7]
7396test { try toAsciiFail("xn--u4e823bcza.xn--0ugb89o", true); } // [C1, C2, V7]
31657397test { try toUnicodeFail("\xf0\x90\x8b\xba\xea\xab\xb6\xea\xa5\x93\xf3\xa7\xa6\x89\xef\xbc\x8e\xe2\x80\x8c\xe1\x9c\x94\xda\x8f"); } // [B1, C1, V7]
7398test { try toAsciiFail("\xf0\x90\x8b\xba\xea\xab\xb6\xea\xa5\x93\xf3\xa7\xa6\x89\xef\xbc\x8e\xe2\x80\x8c\xe1\x9c\x94\xda\x8f", false); } // [B1, C1, V7]
7399test { try toAsciiFail("\xf0\x90\x8b\xba\xea\xab\xb6\xea\xa5\x93\xf3\xa7\xa6\x89\xef\xbc\x8e\xe2\x80\x8c\xe1\x9c\x94\xda\x8f", true); } // [B1, V6, V7]
31667400test { try toUnicodeFail("\xf0\x90\x8b\xba\xea\xab\xb6\xea\xa5\x93\xf3\xa7\xa6\x89.\xe2\x80\x8c\xe1\x9c\x94\xda\x8f"); } // [B1, C1, V7]
7401test { try toAsciiFail("\xf0\x90\x8b\xba\xea\xab\xb6\xea\xa5\x93\xf3\xa7\xa6\x89.\xe2\x80\x8c\xe1\x9c\x94\xda\x8f", false); } // [B1, C1, V7]
7402test { try toAsciiFail("\xf0\x90\x8b\xba\xea\xab\xb6\xea\xa5\x93\xf3\xa7\xa6\x89.\xe2\x80\x8c\xe1\x9c\x94\xda\x8f", true); } // [B1, V6, V7]
31677403test { try toUnicodeFail("xn--3j9a14ak27osbz2o.xn--ljb175f"); } // [B1, V6, V7]
7404test { try toAsciiFail("xn--3j9a14ak27osbz2o.xn--ljb175f", false); } // [B1, V6, V7]
7405test { try toAsciiFail("xn--3j9a14ak27osbz2o.xn--ljb175f", true); } // [B1, V6, V7]
31687406test { try toUnicodeFail("xn--3j9a14ak27osbz2o.xn--ljb175f1wg"); } // [B1, C1, V7]
7407test { try toAsciiFail("xn--3j9a14ak27osbz2o.xn--ljb175f1wg", false); } // [B1, C1, V7]
7408test { try toAsciiFail("xn--3j9a14ak27osbz2o.xn--ljb175f1wg", true); } // [B1, C1, V7]
31697409test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e\xe2\x89\xaf"); } // [V7]
7410test { try toAsciiFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e\xe2\x89\xaf", false); } // [V7]
7411test { try toAsciiFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e\xe2\x89\xaf", true); } // [V7]
31707412test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e>\xcc\xb8"); } // [V7]
7413test { try toAsciiFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e>\xcc\xb8", false); } // [V7]
7414test { try toAsciiFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e>\xcc\xb8", true); } // [V7]
31717415test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.\xe2\x89\xaf"); } // [V7]
7416test { try toAsciiFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.\xe2\x89\xaf", false); } // [V7]
7417test { try toAsciiFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.\xe2\x89\xaf", true); } // [V7]
31727418test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.>\xcc\xb8"); } // [V7]
7419test { try toAsciiFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.>\xcc\xb8", false); } // [V7]
7420test { try toAsciiFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.>\xcc\xb8", true); } // [V7]
31737421test { try toUnicodeFail("xn--4fd57150h.xn--hdh"); } // [V7]
7422test { try toAsciiFail("xn--4fd57150h.xn--hdh", false); } // [V7]
7423test { try toAsciiFail("xn--4fd57150h.xn--hdh", true); } // [V7]
31747424test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3\xef\xbc\x8e\xf0\x90\x87\xbd"); } // [B1, C2, V6]
7425test { try toAsciiFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3\xef\xbc\x8e\xf0\x90\x87\xbd", false); } // [B1, C2, V6]
7426test { try toAsciiFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3\xef\xbc\x8e\xf0\x90\x87\xbd", true); } // [B1, B2, B3, V6]
31757427test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3.\xf0\x90\x87\xbd"); } // [B1, C2, V6]
7428test { try toAsciiFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3.\xf0\x90\x87\xbd", false); } // [B1, C2, V6]
7429test { try toAsciiFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3.\xf0\x90\x87\xbd", true); } // [B1, B2, B3, V6]
31767430test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93.\xf0\x90\x87\xbd"); } // [B1, C2, V6]
7431test { try toAsciiFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93.\xf0\x90\x87\xbd", false); } // [B1, C2, V6]
7432test { try toAsciiFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93.\xf0\x90\x87\xbd", true); } // [B1, B2, B3, V6]
31777433test { try toUnicodeFail("xn--blj7492l.xn--m27c"); } // [B1, B2, B3, V6]
7434test { try toAsciiFail("xn--blj7492l.xn--m27c", false); } // [B1, B2, B3, V6]
7435test { try toAsciiFail("xn--blj7492l.xn--m27c", true); } // [B1, B2, B3, V6]
31787436test { try toUnicodeFail("xn--1ugz52c4i16a.xn--m27c"); } // [B1, C2, V6]
7437test { try toAsciiFail("xn--1ugz52c4i16a.xn--m27c", false); } // [B1, C2, V6]
7438test { try toAsciiFail("xn--1ugz52c4i16a.xn--m27c", true); } // [B1, C2, V6]
31797439test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93\xef\xbc\x8e\xf0\x90\x87\xbd"); } // [B1, C2, V6]
7440test { try toAsciiFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93\xef\xbc\x8e\xf0\x90\x87\xbd", false); } // [B1, C2, V6]
7441test { try toAsciiFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93\xef\xbc\x8e\xf0\x90\x87\xbd", true); } // [B1, B2, B3, V6]
31807442test { try toUnicodeFail("xn--rnd5552v.xn--m27c"); } // [B1, B2, B3, V6, V7]
7443test { try toAsciiFail("xn--rnd5552v.xn--m27c", false); } // [B1, B2, B3, V6, V7]
7444test { try toAsciiFail("xn--rnd5552v.xn--m27c", true); } // [B1, B2, B3, V6, V7]
31817445test { try toUnicodeFail("xn--rnd379ex885a.xn--m27c"); } // [B1, C2, V6, V7]
7446test { try toAsciiFail("xn--rnd379ex885a.xn--m27c", false); } // [B1, C2, V6, V7]
7447test { try toAsciiFail("xn--rnd379ex885a.xn--m27c", true); } // [B1, C2, V6, V7]
31827448test { try toUnicodeFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3]
7449test { try toAsciiFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4", false); } // [B2, B3]
7450test { try toAsciiFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4", true); } // [B2, B3]
31837451test { try toUnicodeFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3]
7452test { try toAsciiFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa.\xe1\xa1\xa4", false); } // [B2, B3]
7453test { try toAsciiFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa.\xe1\xa1\xa4", true); } // [B2, B3]
31847454test { try toUnicodeFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3]
7455test { try toAsciiFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa.\xe1\xa1\xa4", false); } // [B2, B3]
7456test { try toAsciiFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa.\xe1\xa1\xa4", true); } // [B2, B3]
31857457test { try toUnicodeFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3]
7458test { try toAsciiFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa.\xe1\xa1\xa4", false); } // [B2, B3]
7459test { try toAsciiFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa.\xe1\xa1\xa4", true); } // [B2, B3]
31867460test { try toUnicodeFail("xn--ss-tu9hw933a.xn--08e"); } // [B2, B3]
7461test { try toAsciiFail("xn--ss-tu9hw933a.xn--08e", false); } // [B2, B3]
7462test { try toAsciiFail("xn--ss-tu9hw933a.xn--08e", true); } // [B2, B3]
31877463test { try toUnicodeFail("xn--zca2517f2hvc.xn--08e"); } // [B2, B3]
7464test { try toAsciiFail("xn--zca2517f2hvc.xn--08e", false); } // [B2, B3]
7465test { try toAsciiFail("xn--zca2517f2hvc.xn--08e", true); } // [B2, B3]
31887466test { try toUnicodeFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3]
7467test { try toAsciiFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4", false); } // [B2, B3]
7468test { try toAsciiFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4", true); } // [B2, B3]
31897469test { try toUnicodeFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3]
7470test { try toAsciiFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4", false); } // [B2, B3]
7471test { try toAsciiFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4", true); } // [B2, B3]
31907472test { try toUnicodeFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3]
7473test { try toAsciiFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa.\xe1\xa1\xa4", false); } // [B2, B3]
7474test { try toAsciiFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa.\xe1\xa1\xa4", true); } // [B2, B3]
31917475test { try toUnicodeFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3]
7476test { try toAsciiFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4", false); } // [B2, B3]
7477test { try toAsciiFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4", true); } // [B2, B3]
31927478test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x82"); } // [V6]
7479test { try toAsciiFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x82", false); } // [V6]
7480test { try toAsciiFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x82", true); } // [V6]
31937481test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xce\xa3"); } // [V6]
7482test { try toAsciiFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xce\xa3", false); } // [V6]
7483test { try toAsciiFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xce\xa3", true); } // [V6]
31947484test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x83"); } // [V6]
7485test { try toAsciiFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x83", false); } // [V6]
7486test { try toAsciiFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x83", true); } // [V6]
31957487test { try toUnicodeFail("xn--l76a726rt2h.xn--4xa"); } // [V6]
7488test { try toAsciiFail("xn--l76a726rt2h.xn--4xa", false); } // [V6]
7489test { try toAsciiFail("xn--l76a726rt2h.xn--4xa", true); } // [V6]
31967490test { try toUnicodeFail("xn--l76a726rt2h.xn--3xa"); } // [V6]
7491test { try toAsciiFail("xn--l76a726rt2h.xn--3xa", false); } // [V6]
7492test { try toAsciiFail("xn--l76a726rt2h.xn--3xa", true); } // [V6]
31977493test { try toUnicodeFail("\xe2\x92\x97\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3, V7]
7494test { try toAsciiFail("\xe2\x92\x97\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6", false); } // [B1, V3, V7]
7495test { try toAsciiFail("\xe2\x92\x97\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6", true); } // [B1, V3, V7]
31987496test { try toUnicodeFail("16.\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3]
7497test { try toAsciiFail("16.\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6", false); } // [B1, V3]
7498test { try toAsciiFail("16.\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6", true); } // [B1, V3]
31997499test { try toUnicodeFail("16.\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3]
7500test { try toAsciiFail("16.\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6", false); } // [B1, V3]
7501test { try toAsciiFail("16.\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6", true); } // [B1, V3]
32007502test { try toUnicodeFail("16.xn--ke6h.xn----4j0j"); } // [B1, V3]
7503test { try toAsciiFail("16.xn--ke6h.xn----4j0j", false); } // [B1, V3]
7504test { try toAsciiFail("16.xn--ke6h.xn----4j0j", true); } // [B1, V3]
32017505test { try toUnicodeFail("\xe2\x92\x97\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3, V7]
7506test { try toAsciiFail("\xe2\x92\x97\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6", false); } // [B1, V3, V7]
7507test { try toAsciiFail("\xe2\x92\x97\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6", true); } // [B1, V3, V7]
32027508test { try toUnicodeFail("xn--8shw466n.xn----4j0j"); } // [B1, V3, V7]
7509test { try toAsciiFail("xn--8shw466n.xn----4j0j", false); } // [B1, V3, V7]
7510test { try toAsciiFail("xn--8shw466n.xn----4j0j", true); } // [B1, V3, V7]
32037511test { try toUnicodeFail("\xe0\xa2\xb3\xf0\x9e\xa4\xbf\xe2\xbe\xab\xef\xbd\xa1\xf0\x90\xb9\xa3\xda\x8f\xe2\x92\x88"); } // [B1, B2, B3, V7]
7512test { try toAsciiFail("\xe0\xa2\xb3\xf0\x9e\xa4\xbf\xe2\xbe\xab\xef\xbd\xa1\xf0\x90\xb9\xa3\xda\x8f\xe2\x92\x88", false); } // [B1, B2, B3, V7]
7513test { try toAsciiFail("\xe0\xa2\xb3\xf0\x9e\xa4\xbf\xe2\xbe\xab\xef\xbd\xa1\xf0\x90\xb9\xa3\xda\x8f\xe2\x92\x88", true); } // [B1, B2, B3, V7]
32047514test { try toUnicodeFail("\xe0\xa2\xb3\xf0\x9e\xa4\xbf\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1."); } // [B1, B2, B3]
7515test { try toAsciiFail("\xe0\xa2\xb3\xf0\x9e\xa4\xbf\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1.", false); } // [B1, B2, B3, A4_2]
7516test { try toAsciiFail("\xe0\xa2\xb3\xf0\x9e\xa4\xbf\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1.", true); } // [B1, B2, B3, A4_2]
32057517test { try toUnicodeFail("\xe0\xa2\xb3\xf0\x9e\xa4\x9d\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1."); } // [B1, B2, B3]
7518test { try toAsciiFail("\xe0\xa2\xb3\xf0\x9e\xa4\x9d\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1.", false); } // [B1, B2, B3, A4_2]
7519test { try toAsciiFail("\xe0\xa2\xb3\xf0\x9e\xa4\x9d\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1.", true); } // [B1, B2, B3, A4_2]
32067520test { try toUnicodeFail("xn--8yb0383efiwk.xn--1-wsc3373r."); } // [B1, B2, B3]
7521test { try toAsciiFail("xn--8yb0383efiwk.xn--1-wsc3373r.", false); } // [B1, B2, B3, A4_2]
7522test { try toAsciiFail("xn--8yb0383efiwk.xn--1-wsc3373r.", true); } // [B1, B2, B3, A4_2]
32077523test { try toUnicodeFail("\xe0\xa2\xb3\xf0\x9e\xa4\x9d\xe2\xbe\xab\xef\xbd\xa1\xf0\x90\xb9\xa3\xda\x8f\xe2\x92\x88"); } // [B1, B2, B3, V7]
7524test { try toAsciiFail("\xe0\xa2\xb3\xf0\x9e\xa4\x9d\xe2\xbe\xab\xef\xbd\xa1\xf0\x90\xb9\xa3\xda\x8f\xe2\x92\x88", false); } // [B1, B2, B3, V7]
7525test { try toAsciiFail("\xe0\xa2\xb3\xf0\x9e\xa4\x9d\xe2\xbe\xab\xef\xbd\xa1\xf0\x90\xb9\xa3\xda\x8f\xe2\x92\x88", true); } // [B1, B2, B3, V7]
32087526test { try toUnicodeFail("xn--8yb0383efiwk.xn--ljb064mol4n"); } // [B1, B2, B3, V7]
7527test { try toAsciiFail("xn--8yb0383efiwk.xn--ljb064mol4n", false); } // [B1, B2, B3, V7]
7528test { try toAsciiFail("xn--8yb0383efiwk.xn--ljb064mol4n", true); } // [B1, B2, B3, V7]
32097529test { try toUnicodeFail("\xe2\x90\xb3\xf0\x9a\x8e\x9b\xf0\x9d\x9f\xa7\xd9\xa1.\xe1\xa1\xa28\xe0\xbd\xb2\xd8\x80"); } // [B5, B6, V7]
7530test { try toAsciiFail("\xe2\x90\xb3\xf0\x9a\x8e\x9b\xf0\x9d\x9f\xa7\xd9\xa1.\xe1\xa1\xa28\xe0\xbd\xb2\xd8\x80", false); } // [B5, B6, V7]
7531test { try toAsciiFail("\xe2\x90\xb3\xf0\x9a\x8e\x9b\xf0\x9d\x9f\xa7\xd9\xa1.\xe1\xa1\xa28\xe0\xbd\xb2\xd8\x80", true); } // [B5, B6, V7]
32107532test { try toUnicodeFail("\xe2\x90\xb3\xf0\x9a\x8e\x9b5\xd9\xa1.\xe1\xa1\xa28\xe0\xbd\xb2\xd8\x80"); } // [B5, B6, V7]
7533test { try toAsciiFail("\xe2\x90\xb3\xf0\x9a\x8e\x9b5\xd9\xa1.\xe1\xa1\xa28\xe0\xbd\xb2\xd8\x80", false); } // [B5, B6, V7]
7534test { try toAsciiFail("\xe2\x90\xb3\xf0\x9a\x8e\x9b5\xd9\xa1.\xe1\xa1\xa28\xe0\xbd\xb2\xd8\x80", true); } // [B5, B6, V7]
32117535test { try toUnicodeFail("xn--5-bqc410un435a.xn--8-rkc763epjj"); } // [B5, B6, V7]
7536test { try toAsciiFail("xn--5-bqc410un435a.xn--8-rkc763epjj", false); } // [B5, B6, V7]
7537test { try toAsciiFail("xn--5-bqc410un435a.xn--8-rkc763epjj", true); } // [B5, B6, V7]
32127538test { try toUnicodeFail("\xf0\x90\xb9\xa0.\xf0\x9f\x84\x80\xe2\x92\x92-\xf3\xa8\xb0\x88"); } // [B1, V7]
7539test { try toAsciiFail("\xf0\x90\xb9\xa0.\xf0\x9f\x84\x80\xe2\x92\x92-\xf3\xa8\xb0\x88", false); } // [B1, V7]
7540test { try toAsciiFail("\xf0\x90\xb9\xa0.\xf0\x9f\x84\x80\xe2\x92\x92-\xf3\xa8\xb0\x88", true); } // [B1, V7]
32137541test { try toUnicodeFail("\xf0\x90\xb9\xa0.0.11.-\xf3\xa8\xb0\x88"); } // [B1, V3, V7]
7542test { try toAsciiFail("\xf0\x90\xb9\xa0.0.11.-\xf3\xa8\xb0\x88", false); } // [B1, V3, V7]
7543test { try toAsciiFail("\xf0\x90\xb9\xa0.0.11.-\xf3\xa8\xb0\x88", true); } // [B1, V3, V7]
32147544test { try toUnicodeFail("xn--7n0d.0.11.xn----8j07m"); } // [B1, V3, V7]
7545test { try toAsciiFail("xn--7n0d.0.11.xn----8j07m", false); } // [B1, V3, V7]
7546test { try toAsciiFail("xn--7n0d.0.11.xn----8j07m", true); } // [B1, V3, V7]
32157547test { try toUnicodeFail("xn--7n0d.xn----xcp9757q1s13g"); } // [B1, V7]
7548test { try toAsciiFail("xn--7n0d.xn----xcp9757q1s13g", false); } // [B1, V7]
7549test { try toAsciiFail("xn--7n0d.xn----xcp9757q1s13g", true); } // [B1, V7]
32167550test { try toUnicodeFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3]
7551test { try toAsciiFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-", false); } // [C1, V3]
7552test { try toAsciiFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-", true); } // [V3]
32177553test { try toUnicodeFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3]
7554test { try toAsciiFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c1-", false); } // [C1, V3]
7555test { try toAsciiFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c1-", true); } // [V3]
32187556test { try toUnicodeFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3]
7557test { try toAsciiFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c1-", false); } // [C1, V3]
7558test { try toAsciiFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c1-", true); } // [V3]
32197559test { try toUnicodeFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3]
7560test { try toAsciiFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c1-", false); } // [C1, V3]
7561test { try toAsciiFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c1-", true); } // [V3]
32207562test { try toUnicodeFail("xn----zmb.1-"); } // [V3]
7563test { try toAsciiFail("xn----zmb.1-", false); } // [V3]
7564test { try toAsciiFail("xn----zmb.1-", true); } // [V3]
32217565test { try toUnicodeFail("xn----zmb.xn--1--i1t"); } // [C1, V3]
7566test { try toAsciiFail("xn----zmb.xn--1--i1t", false); } // [C1, V3]
7567test { try toAsciiFail("xn----zmb.xn--1--i1t", true); } // [C1, V3]
32227568test { try toUnicodeFail("xn----xmb.xn--1--i1t"); } // [C1, V3]
7569test { try toAsciiFail("xn----xmb.xn--1--i1t", false); } // [C1, V3]
7570test { try toAsciiFail("xn----xmb.xn--1--i1t", true); } // [C1, V3]
32237571test { try toUnicodeFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3]
7572test { try toAsciiFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-", false); } // [C1, V3]
7573test { try toAsciiFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-", true); } // [V3]
32247574test { try toUnicodeFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3]
7575test { try toAsciiFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-", false); } // [C1, V3]
7576test { try toAsciiFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-", true); } // [V3]
32257577test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe1\x82\xa4"); } // [V6]
7578test { try toAsciiFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe1\x82\xa4", false); } // [V6]
7579test { try toAsciiFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe1\x82\xa4", true); } // [V6]
32267580test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe1\x82\xa4"); } // [V6]
7581test { try toAsciiFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe1\x82\xa4", false); } // [V6]
7582test { try toAsciiFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe1\x82\xa4", true); } // [V6]
32277583test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe2\xb4\x84"); } // [V6]
7584test { try toAsciiFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe2\xb4\x84", false); } // [V6]
7585test { try toAsciiFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe2\xb4\x84", true); } // [V6]
32287586test { try toUnicodeFail("xn----ggf830f.xn--vkj"); } // [V6]
7587test { try toAsciiFail("xn----ggf830f.xn--vkj", false); } // [V6]
7588test { try toAsciiFail("xn----ggf830f.xn--vkj", true); } // [V6]
32297589test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe2\xb4\x84"); } // [V6]
7590test { try toAsciiFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe2\xb4\x84", false); } // [V6]
7591test { try toAsciiFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe2\xb4\x84", true); } // [V6]
32307592test { try toUnicodeFail("xn----ggf830f.xn--cnd"); } // [V6, V7]
7593test { try toAsciiFail("xn----ggf830f.xn--cnd", false); } // [V6, V7]
7594test { try toAsciiFail("xn----ggf830f.xn--cnd", true); } // [V6, V7]
32317595test { try toUnicodeFail("\xf2\xad\x88\x97\xe2\x99\x8b\xda\xbb\xf0\x90\xa6\xa5\xef\xbd\xa1\xe0\xa5\x94\xe2\x92\x88"); } // [B1, B5, B6, V6, V7]
7596test { try toAsciiFail("\xf2\xad\x88\x97\xe2\x99\x8b\xda\xbb\xf0\x90\xa6\xa5\xef\xbd\xa1\xe0\xa5\x94\xe2\x92\x88", false); } // [B1, B5, B6, V6, V7]
7597test { try toAsciiFail("\xf2\xad\x88\x97\xe2\x99\x8b\xda\xbb\xf0\x90\xa6\xa5\xef\xbd\xa1\xe0\xa5\x94\xe2\x92\x88", true); } // [B1, B5, B6, V6, V7]
32327598test { try toUnicodeFail("\xf2\xad\x88\x97\xe2\x99\x8b\xda\xbb\xf0\x90\xa6\xa5\xe3\x80\x82\xe0\xa5\x941."); } // [B1, B5, B6, V6, V7]
7599test { try toAsciiFail("\xf2\xad\x88\x97\xe2\x99\x8b\xda\xbb\xf0\x90\xa6\xa5\xe3\x80\x82\xe0\xa5\x941.", false); } // [B1, B5, B6, V6, V7, A4_2]
7600test { try toAsciiFail("\xf2\xad\x88\x97\xe2\x99\x8b\xda\xbb\xf0\x90\xa6\xa5\xe3\x80\x82\xe0\xa5\x941.", true); } // [B1, B5, B6, V6, V7, A4_2]
32337601test { try toUnicodeFail("xn--ukb372n129m3rs7f.xn--1-fyd."); } // [B1, B5, B6, V6, V7]
7602test { try toAsciiFail("xn--ukb372n129m3rs7f.xn--1-fyd.", false); } // [B1, B5, B6, V6, V7, A4_2]
7603test { try toAsciiFail("xn--ukb372n129m3rs7f.xn--1-fyd.", true); } // [B1, B5, B6, V6, V7, A4_2]
32347604test { try toUnicodeFail("xn--ukb372n129m3rs7f.xn--u3b240l"); } // [B1, B5, B6, V6, V7]
7605test { try toAsciiFail("xn--ukb372n129m3rs7f.xn--u3b240l", false); } // [B1, B5, B6, V6, V7]
7606test { try toAsciiFail("xn--ukb372n129m3rs7f.xn--u3b240l", true); } // [B1, B5, B6, V6, V7]
32357607test { try toUnicodeFail("\xd6\xa4\xef\xbc\x8e\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c"); } // [B1, B3, C1, V6]
7608test { try toAsciiFail("\xd6\xa4\xef\xbc\x8e\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c", false); } // [B1, B3, C1, V6]
7609test { try toAsciiFail("\xd6\xa4\xef\xbc\x8e\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c", true); } // [B1, V6]
32367610test { try toUnicodeFail("\xd6\xa4.\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c"); } // [B1, B3, C1, V6]
7611test { try toAsciiFail("\xd6\xa4.\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c", false); } // [B1, B3, C1, V6]
7612test { try toAsciiFail("\xd6\xa4.\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c", true); } // [B1, V6]
32377613test { try toUnicodeFail("xn--vcb.xn--0kb623h"); } // [B1, V6]
7614test { try toAsciiFail("xn--vcb.xn--0kb623h", false); } // [B1, V6]
7615test { try toAsciiFail("xn--vcb.xn--0kb623h", true); } // [B1, V6]
32387616test { try toUnicodeFail("xn--vcb.xn--0kb623hm1d"); } // [B1, B3, C1, V6]
7617test { try toAsciiFail("xn--vcb.xn--0kb623hm1d", false); } // [B1, B3, C1, V6]
7618test { try toAsciiFail("xn--vcb.xn--0kb623hm1d", true); } // [B1, B3, C1, V6]
32397619test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86\xe2\x89\xae\xe0\xab\x8d\xef\xbc\x8e\xf0\x9e\xa6\x8a"); } // [B5, B6, V7]
7620test { try toAsciiFail("\xf1\xa2\xad\x8f\xe0\xa1\x86\xe2\x89\xae\xe0\xab\x8d\xef\xbc\x8e\xf0\x9e\xa6\x8a", false); } // [B5, B6, V7]
7621test { try toAsciiFail("\xf1\xa2\xad\x8f\xe0\xa1\x86\xe2\x89\xae\xe0\xab\x8d\xef\xbc\x8e\xf0\x9e\xa6\x8a", true); } // [B5, B6, V7]
32407622test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d\xef\xbc\x8e\xf0\x9e\xa6\x8a"); } // [B5, B6, V7]
7623test { try toAsciiFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d\xef\xbc\x8e\xf0\x9e\xa6\x8a", false); } // [B5, B6, V7]
7624test { try toAsciiFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d\xef\xbc\x8e\xf0\x9e\xa6\x8a", true); } // [B5, B6, V7]
32417625test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86\xe2\x89\xae\xe0\xab\x8d.\xf0\x9e\xa6\x8a"); } // [B5, B6, V7]
7626test { try toAsciiFail("\xf1\xa2\xad\x8f\xe0\xa1\x86\xe2\x89\xae\xe0\xab\x8d.\xf0\x9e\xa6\x8a", false); } // [B5, B6, V7]
7627test { try toAsciiFail("\xf1\xa2\xad\x8f\xe0\xa1\x86\xe2\x89\xae\xe0\xab\x8d.\xf0\x9e\xa6\x8a", true); } // [B5, B6, V7]
32427628test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d.\xf0\x9e\xa6\x8a"); } // [B5, B6, V7]
7629test { try toAsciiFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d.\xf0\x9e\xa6\x8a", false); } // [B5, B6, V7]
7630test { try toAsciiFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d.\xf0\x9e\xa6\x8a", true); } // [B5, B6, V7]
32437631test { try toUnicodeFail("xn--4vb80kq29ayo62l.xn--8g6h"); } // [B5, B6, V7]
7632test { try toAsciiFail("xn--4vb80kq29ayo62l.xn--8g6h", false); } // [B5, B6, V7]
7633test { try toAsciiFail("xn--4vb80kq29ayo62l.xn--8g6h", true); } // [B5, B6, V7]
32447634test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x98\xe2\x92\x88\xea\xa1\x8d\xe6\x93\x89"); } // [C2, V6, V7]
7635test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x98\xe2\x92\x88\xea\xa1\x8d\xe6\x93\x89", false); } // [C2, V6, V7]
7636test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x98\xe2\x92\x88\xea\xa1\x8d\xe6\x93\x89", true); } // [V6, V7, A4_2]
32457637test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x981.\xea\xa1\x8d\xe6\x93\x89"); } // [C2, V6]
7638test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x981.\xea\xa1\x8d\xe6\x93\x89", false); } // [C2, V6]
7639test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x981.\xea\xa1\x8d\xe6\x93\x89", true); } // [V6, A4_2]
32467640test { try toUnicodeFail(".xn--1-1p4r.xn--s7uv61m"); } // [V6, X4_2]
7641test { try toAsciiFail(".xn--1-1p4r.xn--s7uv61m", false); } // [V6, A4_2]
7642test { try toAsciiFail(".xn--1-1p4r.xn--s7uv61m", true); } // [V6, A4_2]
32477643test { try toUnicodeFail("xn--1ug.xn--1-1p4r.xn--s7uv61m"); } // [C2, V6]
7644test { try toAsciiFail("xn--1ug.xn--1-1p4r.xn--s7uv61m", false); } // [C2, V6]
7645test { try toAsciiFail("xn--1ug.xn--1-1p4r.xn--s7uv61m", true); } // [C2, V6]
32487646test { try toUnicodeFail(".xn--tsh026uql4bew9p"); } // [V6, V7, X4_2]
7647test { try toAsciiFail(".xn--tsh026uql4bew9p", false); } // [V6, V7, A4_2]
7648test { try toAsciiFail(".xn--tsh026uql4bew9p", true); } // [V6, V7, A4_2]
32497649test { try toUnicodeFail("xn--1ug.xn--tsh026uql4bew9p"); } // [C2, V6, V7]
7650test { try toAsciiFail("xn--1ug.xn--tsh026uql4bew9p", false); } // [C2, V6, V7]
7651test { try toAsciiFail("xn--1ug.xn--tsh026uql4bew9p", true); } // [C2, V6, V7]
32507652test { try toUnicodeFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4\xe2\x89\xa0"); } // [B1, B3]
7653test { try toAsciiFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4\xe2\x89\xa0", false); } // [B1, B3]
7654test { try toAsciiFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4\xe2\x89\xa0", true); } // [B1, B3]
32517655test { try toUnicodeFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4=\xcc\xb8"); } // [B1, B3]
7656test { try toAsciiFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4=\xcc\xb8", false); } // [B1, B3]
7657test { try toAsciiFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4=\xcc\xb8", true); } // [B1, B3]
32527658test { try toUnicodeFail("8\xdf\x8b.\xd9\xbf\xe2\x89\xa0"); } // [B1, B3]
7659test { try toAsciiFail("8\xdf\x8b.\xd9\xbf\xe2\x89\xa0", false); } // [B1, B3]
7660test { try toAsciiFail("8\xdf\x8b.\xd9\xbf\xe2\x89\xa0", true); } // [B1, B3]
32537661test { try toUnicodeFail("8\xdf\x8b.\xd9\xbf=\xcc\xb8"); } // [B1, B3]
7662test { try toAsciiFail("8\xdf\x8b.\xd9\xbf=\xcc\xb8", false); } // [B1, B3]
7663test { try toAsciiFail("8\xdf\x8b.\xd9\xbf=\xcc\xb8", true); } // [B1, B3]
32547664test { try toUnicodeFail("xn--8-zbd.xn--4ib883l"); } // [B1, B3]
7665test { try toAsciiFail("xn--8-zbd.xn--4ib883l", false); } // [B1, B3]
7666test { try toAsciiFail("xn--8-zbd.xn--4ib883l", true); } // [B1, B3]
32557667test { try toUnicodeFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.\xe2\x92\x92\xd9\x82\xf0\x91\x8d\xa6"); } // [B1, B5, V7]
7668test { try toAsciiFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.\xe2\x92\x92\xd9\x82\xf0\x91\x8d\xa6", false); } // [B1, B5, V7]
7669test { try toAsciiFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.\xe2\x92\x92\xd9\x82\xf0\x91\x8d\xa6", true); } // [B1, B5, V7]
32567670test { try toUnicodeFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.11.\xd9\x82\xf0\x91\x8d\xa6"); } // [B1, B5, V7]
7671test { try toAsciiFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.11.\xd9\x82\xf0\x91\x8d\xa6", false); } // [B1, B5, V7]
7672test { try toAsciiFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.11.\xd9\x82\xf0\x91\x8d\xa6", true); } // [B1, B5, V7]
32577673test { try toUnicodeFail("xn--5sb596fi873t.11.xn--ehb4198k"); } // [B1, B5, V7]
7674test { try toAsciiFail("xn--5sb596fi873t.11.xn--ehb4198k", false); } // [B1, B5, V7]
7675test { try toAsciiFail("xn--5sb596fi873t.11.xn--ehb4198k", true); } // [B1, B5, V7]
32587676test { try toUnicodeFail("xn--5sb596fi873t.xn--ehb336mvy7n"); } // [B1, B5, V7]
7677test { try toAsciiFail("xn--5sb596fi873t.xn--ehb336mvy7n", false); } // [B1, B5, V7]
7678test { try toAsciiFail("xn--5sb596fi873t.xn--ehb336mvy7n", true); } // [B1, B5, V7]
32597679test { try toUnicodeFail("\xe0\xb9\x88-\xf0\x90\xb9\xba\xf0\x9d\x9f\x9c.\xcd\xa3\xdb\xa1\xe2\x92\x8f"); } // [B1, V6, V7]
7680test { try toAsciiFail("\xe0\xb9\x88-\xf0\x90\xb9\xba\xf0\x9d\x9f\x9c.\xcd\xa3\xdb\xa1\xe2\x92\x8f", false); } // [B1, V6, V7]
7681test { try toAsciiFail("\xe0\xb9\x88-\xf0\x90\xb9\xba\xf0\x9d\x9f\x9c.\xcd\xa3\xdb\xa1\xe2\x92\x8f", true); } // [B1, V6, V7]
32607682test { try toUnicodeFail("\xe0\xb9\x88-\xf0\x90\xb9\xba4.\xcd\xa3\xdb\xa18."); } // [B1, V6]
7683test { try toAsciiFail("\xe0\xb9\x88-\xf0\x90\xb9\xba4.\xcd\xa3\xdb\xa18.", false); } // [B1, V6, A4_2]
7684test { try toAsciiFail("\xe0\xb9\x88-\xf0\x90\xb9\xba4.\xcd\xa3\xdb\xa18.", true); } // [B1, V6, A4_2]
32617685test { try toUnicodeFail("xn---4-owiz479s.xn--8-ihb69x."); } // [B1, V6]
7686test { try toAsciiFail("xn---4-owiz479s.xn--8-ihb69x.", false); } // [B1, V6, A4_2]
7687test { try toAsciiFail("xn---4-owiz479s.xn--8-ihb69x.", true); } // [B1, V6, A4_2]
32627688test { try toUnicodeFail("xn---4-owiz479s.xn--eva20pjv9a"); } // [B1, V6, V7]
7689test { try toAsciiFail("xn---4-owiz479s.xn--eva20pjv9a", false); } // [B1, V6, V7]
7690test { try toAsciiFail("xn---4-owiz479s.xn--eva20pjv9a", true); } // [B1, V6, V7]
32637691test { try toUnicodeFail("\xe2\xab\x90\xef\xbd\xa1\xe1\x83\x80-\xf3\x83\x90\xa2"); } // [V7]
7692test { try toAsciiFail("\xe2\xab\x90\xef\xbd\xa1\xe1\x83\x80-\xf3\x83\x90\xa2", false); } // [V7]
7693test { try toAsciiFail("\xe2\xab\x90\xef\xbd\xa1\xe1\x83\x80-\xf3\x83\x90\xa2", true); } // [V7]
32647694test { try toUnicodeFail("\xe2\xab\x90\xe3\x80\x82\xe1\x83\x80-\xf3\x83\x90\xa2"); } // [V7]
7695test { try toAsciiFail("\xe2\xab\x90\xe3\x80\x82\xe1\x83\x80-\xf3\x83\x90\xa2", false); } // [V7]
7696test { try toAsciiFail("\xe2\xab\x90\xe3\x80\x82\xe1\x83\x80-\xf3\x83\x90\xa2", true); } // [V7]
32657697test { try toUnicodeFail("\xe2\xab\x90\xe3\x80\x82\xe2\xb4\xa0-\xf3\x83\x90\xa2"); } // [V7]
7698test { try toAsciiFail("\xe2\xab\x90\xe3\x80\x82\xe2\xb4\xa0-\xf3\x83\x90\xa2", false); } // [V7]
7699test { try toAsciiFail("\xe2\xab\x90\xe3\x80\x82\xe2\xb4\xa0-\xf3\x83\x90\xa2", true); } // [V7]
32667700test { try toUnicodeFail("xn--r3i.xn----2wst7439i"); } // [V7]
7701test { try toAsciiFail("xn--r3i.xn----2wst7439i", false); } // [V7]
7702test { try toAsciiFail("xn--r3i.xn----2wst7439i", true); } // [V7]
32677703test { try toUnicodeFail("\xe2\xab\x90\xef\xbd\xa1\xe2\xb4\xa0-\xf3\x83\x90\xa2"); } // [V7]
7704test { try toAsciiFail("\xe2\xab\x90\xef\xbd\xa1\xe2\xb4\xa0-\xf3\x83\x90\xa2", false); } // [V7]
7705test { try toAsciiFail("\xe2\xab\x90\xef\xbd\xa1\xe2\xb4\xa0-\xf3\x83\x90\xa2", true); } // [V7]
32687706test { try toUnicodeFail("xn--r3i.xn----z1g58579u"); } // [V7]
7707test { try toAsciiFail("xn--r3i.xn----z1g58579u", false); } // [V7]
7708test { try toAsciiFail("xn--r3i.xn----z1g58579u", true); } // [V7]
32697709test { try toUnicodeFail("\xf0\x91\x91\x82\xe2\x97\x8a\xef\xbc\x8e\xe2\xa6\x9f\xe2\x88\xa0"); } // [V6]
7710test { try toAsciiFail("\xf0\x91\x91\x82\xe2\x97\x8a\xef\xbc\x8e\xe2\xa6\x9f\xe2\x88\xa0", false); } // [V6]
7711test { try toAsciiFail("\xf0\x91\x91\x82\xe2\x97\x8a\xef\xbc\x8e\xe2\xa6\x9f\xe2\x88\xa0", true); } // [V6]
32707712test { try toUnicodeFail("\xf0\x91\x91\x82\xe2\x97\x8a.\xe2\xa6\x9f\xe2\x88\xa0"); } // [V6]
7713test { try toAsciiFail("\xf0\x91\x91\x82\xe2\x97\x8a.\xe2\xa6\x9f\xe2\x88\xa0", false); } // [V6]
7714test { try toAsciiFail("\xf0\x91\x91\x82\xe2\x97\x8a.\xe2\xa6\x9f\xe2\x88\xa0", true); } // [V6]
32717715test { try toUnicodeFail("xn--01h3338f.xn--79g270a"); } // [V6]
7716test { try toAsciiFail("xn--01h3338f.xn--79g270a", false); } // [V6]
7717test { try toAsciiFail("xn--01h3338f.xn--79g270a", true); } // [V6]
32727718test { try toUnicodeFail("\xf0\xbf\x8c\xb0-\xd9\xa2\xe3\x80\x82\xf3\x8b\xb8\x9b\xea\xa1\x82"); } // [B5, B6, V7]
7719test { try toAsciiFail("\xf0\xbf\x8c\xb0-\xd9\xa2\xe3\x80\x82\xf3\x8b\xb8\x9b\xea\xa1\x82", false); } // [B5, B6, V7]
7720test { try toAsciiFail("\xf0\xbf\x8c\xb0-\xd9\xa2\xe3\x80\x82\xf3\x8b\xb8\x9b\xea\xa1\x82", true); } // [B5, B6, V7]
32737721test { try toUnicodeFail("xn----dqc20828e.xn--bc9an2879c"); } // [B5, B6, V7]
7722test { try toAsciiFail("xn----dqc20828e.xn--bc9an2879c", false); } // [B5, B6, V7]
7723test { try toAsciiFail("xn----dqc20828e.xn--bc9an2879c", true); } // [B5, B6, V7]
32747724test { try toUnicodeFail("\xd9\xb8\xe3\x80\x82\xf3\xa0\x8f\xac\xdd\x81\xf0\x9e\xaa\xad\xf0\x90\xb9\xaa"); } // [B1, V7]
7725test { try toAsciiFail("\xd9\xb8\xe3\x80\x82\xf3\xa0\x8f\xac\xdd\x81\xf0\x9e\xaa\xad\xf0\x90\xb9\xaa", false); } // [B1, V7]
7726test { try toAsciiFail("\xd9\xb8\xe3\x80\x82\xf3\xa0\x8f\xac\xdd\x81\xf0\x9e\xaa\xad\xf0\x90\xb9\xaa", true); } // [B1, V7]
32757727test { try toUnicodeFail("\xd9\x8a\xd9\xb4\xe3\x80\x82\xf3\xa0\x8f\xac\xdd\x81\xf0\x9e\xaa\xad\xf0\x90\xb9\xaa"); } // [B1, V7]
7728test { try toAsciiFail("\xd9\x8a\xd9\xb4\xe3\x80\x82\xf3\xa0\x8f\xac\xdd\x81\xf0\x9e\xaa\xad\xf0\x90\xb9\xaa", false); } // [B1, V7]
7729test { try toAsciiFail("\xd9\x8a\xd9\xb4\xe3\x80\x82\xf3\xa0\x8f\xac\xdd\x81\xf0\x9e\xaa\xad\xf0\x90\xb9\xaa", true); } // [B1, V7]
32767730test { try toUnicodeFail("xn--mhb8f.xn--oob2585kfdsfsbo7h"); } // [B1, V7]
7731test { try toAsciiFail("xn--mhb8f.xn--oob2585kfdsfsbo7h", false); } // [B1, V7]
7732test { try toAsciiFail("xn--mhb8f.xn--oob2585kfdsfsbo7h", true); } // [B1, V7]
32777733test { try toUnicodeFail("\xf0\x90\xab\x86\xea\x8c\x84\xef\xbd\xa1\xe2\x80\x8d\xe1\xa3\xac"); } // [B1, B2, B3, C2]
7734test { try toAsciiFail("\xf0\x90\xab\x86\xea\x8c\x84\xef\xbd\xa1\xe2\x80\x8d\xe1\xa3\xac", false); } // [B1, B2, B3, C2]
7735test { try toAsciiFail("\xf0\x90\xab\x86\xea\x8c\x84\xef\xbd\xa1\xe2\x80\x8d\xe1\xa3\xac", true); } // [B2, B3]
32787736test { try toUnicodeFail("\xf0\x90\xab\x86\xea\x8c\x84\xe3\x80\x82\xe2\x80\x8d\xe1\xa3\xac"); } // [B1, B2, B3, C2]
7737test { try toAsciiFail("\xf0\x90\xab\x86\xea\x8c\x84\xe3\x80\x82\xe2\x80\x8d\xe1\xa3\xac", false); } // [B1, B2, B3, C2]
7738test { try toAsciiFail("\xf0\x90\xab\x86\xea\x8c\x84\xe3\x80\x82\xe2\x80\x8d\xe1\xa3\xac", true); } // [B2, B3]
32797739test { try toUnicodeFail("xn--y77ao18q.xn--wdf"); } // [B2, B3]
7740test { try toAsciiFail("xn--y77ao18q.xn--wdf", false); } // [B2, B3]
7741test { try toAsciiFail("xn--y77ao18q.xn--wdf", true); } // [B2, B3]
32807742test { try toUnicodeFail("xn--y77ao18q.xn--wdf367a"); } // [B1, B2, B3, C2]
7743test { try toAsciiFail("xn--y77ao18q.xn--wdf367a", false); } // [B1, B2, B3, C2]
7744test { try toAsciiFail("xn--y77ao18q.xn--wdf367a", true); } // [B1, B2, B3, C2]
32817745test { try toUnicodeFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-"); } // [B1, B6, V3, V7]
7746test { try toAsciiFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-", false); } // [B1, B6, V3, V7]
7747test { try toAsciiFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-", true); } // [B1, B6, V3, V7]
32827748test { try toUnicodeFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-"); } // [B1, B6, V3, V7]
7749test { try toAsciiFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-", false); } // [B1, B6, V3, V7]
7750test { try toAsciiFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-", true); } // [B1, B6, V3, V7]
32837751test { try toUnicodeFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-"); } // [B1, B6, V3, V7]
7752test { try toAsciiFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-", false); } // [B1, B6, V3, V7]
7753test { try toAsciiFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-", true); } // [B1, B6, V3, V7]
32847754test { try toUnicodeFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-"); } // [B1, B6, V3, V7]
7755test { try toAsciiFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-", false); } // [B1, B6, V3, V7]
7756test { try toAsciiFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-", true); } // [B1, B6, V3, V7]
32857757test { try toUnicodeFail("xn--0-dqc.xn----ogov3342l"); } // [B1, B6, V3, V7]
7758test { try toAsciiFail("xn--0-dqc.xn----ogov3342l", false); } // [B1, B6, V3, V7]
7759test { try toAsciiFail("xn--0-dqc.xn----ogov3342l", true); } // [B1, B6, V3, V7]
32867760test { try toUnicodeFail("\xcc\x9c\xf0\x90\xb9\xab-\xf0\x9e\xaf\x83.\xf0\x90\x8b\xa4\xe0\xa1\x85"); } // [B1, V6, V7]
7761test { try toAsciiFail("\xcc\x9c\xf0\x90\xb9\xab-\xf0\x9e\xaf\x83.\xf0\x90\x8b\xa4\xe0\xa1\x85", false); } // [B1, V6, V7]
7762test { try toAsciiFail("\xcc\x9c\xf0\x90\xb9\xab-\xf0\x9e\xaf\x83.\xf0\x90\x8b\xa4\xe0\xa1\x85", true); } // [B1, V6, V7]
32877763test { try toUnicodeFail("xn----gdb7046r692g.xn--3vb1349j"); } // [B1, V6, V7]
7764test { try toAsciiFail("xn----gdb7046r692g.xn--3vb1349j", false); } // [B1, V6, V7]
7765test { try toAsciiFail("xn----gdb7046r692g.xn--3vb1349j", true); } // [B1, V6, V7]
32887766test { try toUnicodeFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6]
7767test { try toAsciiFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94", false); } // [B1, V6]
7768test { try toAsciiFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94", true); } // [B1, V6]
32897769test { try toUnicodeFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6]
7770test { try toAsciiFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94", false); } // [B1, V6]
7771test { try toAsciiFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94", true); } // [B1, V6]
32907772test { try toUnicodeFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6]
7773test { try toAsciiFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94", false); } // [B1, V6]
7774test { try toAsciiFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94", true); } // [B1, V6]
32917775test { try toUnicodeFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6]
7776test { try toAsciiFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94", false); } // [B1, V6]
7777test { try toAsciiFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94", true); } // [B1, V6]
32927778test { try toUnicodeFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6]
7779test { try toAsciiFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94", false); } // [B1, V6]
7780test { try toAsciiFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94", true); } // [B1, V6]
32937781test { try toUnicodeFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6]
7782test { try toAsciiFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94", false); } // [B1, V6]
7783test { try toAsciiFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94", true); } // [B1, V6]
32947784test { try toUnicodeFail("xn--1ch.xn--fcb363rk03mypug"); } // [B1, V6]
7785test { try toAsciiFail("xn--1ch.xn--fcb363rk03mypug", false); } // [B1, V6]
7786test { try toAsciiFail("xn--1ch.xn--fcb363rk03mypug", true); } // [B1, V6]
32957787test { try toUnicodeFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6]
7788test { try toAsciiFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94", false); } // [B1, V6]
7789test { try toAsciiFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94", true); } // [B1, V6]
32967790test { try toUnicodeFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6]
7791test { try toAsciiFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94", false); } // [B1, V6]
7792test { try toAsciiFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94", true); } // [B1, V6]
32977793test { try toUnicodeFail("xn--1ch.xn--fcb538c649rypog"); } // [B1, V6, V7]
7794test { try toAsciiFail("xn--1ch.xn--fcb538c649rypog", false); } // [B1, V6, V7]
7795test { try toAsciiFail("xn--1ch.xn--fcb538c649rypog", true); } // [B1, V6, V7]
32987796test { try toUnicodeFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe1\x82\xa0\xf0\x90\xae\x80"); } // [B1, B5, B6, V6]
7797test { try toAsciiFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe1\x82\xa0\xf0\x90\xae\x80", false); } // [B1, B5, B6, V6]
7798test { try toAsciiFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe1\x82\xa0\xf0\x90\xae\x80", true); } // [B1, B5, B6, V6]
32997799test { try toUnicodeFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe1\x82\xa0\xf0\x90\xae\x80"); } // [B1, B5, B6, V6]
7800test { try toAsciiFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe1\x82\xa0\xf0\x90\xae\x80", false); } // [B1, B5, B6, V6]
7801test { try toAsciiFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe1\x82\xa0\xf0\x90\xae\x80", true); } // [B1, B5, B6, V6]
33007802test { try toUnicodeFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe2\xb4\x80\xf0\x90\xae\x80"); } // [B1, B5, B6, V6]
7803test { try toAsciiFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe2\xb4\x80\xf0\x90\xae\x80", false); } // [B1, B5, B6, V6]
7804test { try toAsciiFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe2\xb4\x80\xf0\x90\xae\x80", true); } // [B1, B5, B6, V6]
33017805test { try toUnicodeFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe2\xb4\x80\xf0\x90\xae\x80"); } // [B1, B5, B6, V6]
7806test { try toAsciiFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe2\xb4\x80\xf0\x90\xae\x80", false); } // [B1, B5, B6, V6]
7807test { try toAsciiFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe2\xb4\x80\xf0\x90\xae\x80", true); } // [B1, B5, B6, V6]
33027808test { try toUnicodeFail("xn--1ch9250k.xn--rkj6232e"); } // [B1, B5, B6, V6]
7809test { try toAsciiFail("xn--1ch9250k.xn--rkj6232e", false); } // [B1, B5, B6, V6]
7810test { try toAsciiFail("xn--1ch9250k.xn--rkj6232e", true); } // [B1, B5, B6, V6]
33037811test { try toUnicodeFail("xn--1ch9250k.xn--7md2659j"); } // [B1, B5, B6, V6, V7]
7812test { try toAsciiFail("xn--1ch9250k.xn--7md2659j", false); } // [B1, B5, B6, V6, V7]
7813test { try toAsciiFail("xn--1ch9250k.xn--7md2659j", true); } // [B1, B5, B6, V6, V7]
33047814test { try toUnicodeFail("\xf3\xa0\x85\xbe\xdc\xb6\xdc\xa6\xef\xbc\x8e\xe1\xa2\x9a\xe9\x96\xaa\xe0\xa3\xa2\xf0\x9d\xa9\x9f"); } // [B1, B5, B6, V6, V7]
7815test { try toAsciiFail("\xf3\xa0\x85\xbe\xdc\xb6\xdc\xa6\xef\xbc\x8e\xe1\xa2\x9a\xe9\x96\xaa\xe0\xa3\xa2\xf0\x9d\xa9\x9f", false); } // [B1, B5, B6, V6, V7]
7816test { try toAsciiFail("\xf3\xa0\x85\xbe\xdc\xb6\xdc\xa6\xef\xbc\x8e\xe1\xa2\x9a\xe9\x96\xaa\xe0\xa3\xa2\xf0\x9d\xa9\x9f", true); } // [B1, B5, B6, V6, V7]
33057817test { try toUnicodeFail("\xf3\xa0\x85\xbe\xdc\xb6\xdc\xa6.\xe1\xa2\x9a\xe9\x96\xaa\xe0\xa3\xa2\xf0\x9d\xa9\x9f"); } // [B1, B5, B6, V6, V7]
7818test { try toAsciiFail("\xf3\xa0\x85\xbe\xdc\xb6\xdc\xa6.\xe1\xa2\x9a\xe9\x96\xaa\xe0\xa3\xa2\xf0\x9d\xa9\x9f", false); } // [B1, B5, B6, V6, V7]
7819test { try toAsciiFail("\xf3\xa0\x85\xbe\xdc\xb6\xdc\xa6.\xe1\xa2\x9a\xe9\x96\xaa\xe0\xa3\xa2\xf0\x9d\xa9\x9f", true); } // [B1, B5, B6, V6, V7]
33067820test { try toUnicodeFail("xn--wnb5a.xn--l0b161fis8gbp5m"); } // [B1, B5, B6, V6, V7]
7821test { try toAsciiFail("xn--wnb5a.xn--l0b161fis8gbp5m", false); } // [B1, B5, B6, V6, V7]
7822test { try toAsciiFail("xn--wnb5a.xn--l0b161fis8gbp5m", true); } // [B1, B5, B6, V6, V7]
33077823test { try toUnicodeFail("\xe2\x80\x8d\xf3\xa0\x87\x9c\xdb\x8b\xea\xa3\xa9\xef\xbd\xa1\xe2\x83\x9d\xe0\xbe\xb0-\xe1\x9b\x9f"); } // [B1, C2, V6]
7824test { try toAsciiFail("\xe2\x80\x8d\xf3\xa0\x87\x9c\xdb\x8b\xea\xa3\xa9\xef\xbd\xa1\xe2\x83\x9d\xe0\xbe\xb0-\xe1\x9b\x9f", false); } // [B1, C2, V6]
7825test { try toAsciiFail("\xe2\x80\x8d\xf3\xa0\x87\x9c\xdb\x8b\xea\xa3\xa9\xef\xbd\xa1\xe2\x83\x9d\xe0\xbe\xb0-\xe1\x9b\x9f", true); } // [B1, V6]
33087826test { try toUnicodeFail("\xe2\x80\x8d\xf3\xa0\x87\x9c\xdb\x8b\xea\xa3\xa9\xe3\x80\x82\xe2\x83\x9d\xe0\xbe\xb0-\xe1\x9b\x9f"); } // [B1, C2, V6]
7827test { try toAsciiFail("\xe2\x80\x8d\xf3\xa0\x87\x9c\xdb\x8b\xea\xa3\xa9\xe3\x80\x82\xe2\x83\x9d\xe0\xbe\xb0-\xe1\x9b\x9f", false); } // [B1, C2, V6]
7828test { try toAsciiFail("\xe2\x80\x8d\xf3\xa0\x87\x9c\xdb\x8b\xea\xa3\xa9\xe3\x80\x82\xe2\x83\x9d\xe0\xbe\xb0-\xe1\x9b\x9f", true); } // [B1, V6]
33097829test { try toUnicodeFail("xn--blb8114f.xn----gmg236cj6k"); } // [B1, V6]
7830test { try toAsciiFail("xn--blb8114f.xn----gmg236cj6k", false); } // [B1, V6]
7831test { try toAsciiFail("xn--blb8114f.xn----gmg236cj6k", true); } // [B1, V6]
33107832test { try toUnicodeFail("xn--blb540ke10h.xn----gmg236cj6k"); } // [B1, C2, V6]
7833test { try toAsciiFail("xn--blb540ke10h.xn----gmg236cj6k", false); } // [B1, C2, V6]
7834test { try toAsciiFail("xn--blb540ke10h.xn----gmg236cj6k", true); } // [B1, C2, V6]
33117835test { try toUnicodeFail("\xed\x97\x81\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba\xf0\x9d\x9f\x9c"); } // [V7]
7836test { try toAsciiFail("\xed\x97\x81\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba\xf0\x9d\x9f\x9c", false); } // [V7]
7837test { try toAsciiFail("\xed\x97\x81\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba\xf0\x9d\x9f\x9c", true); } // [V7]
33127838test { try toUnicodeFail("\xe1\x84\x92\xe1\x85\xa4\xe1\x86\xbc\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba\xf0\x9d\x9f\x9c"); } // [V7]
7839test { try toAsciiFail("\xe1\x84\x92\xe1\x85\xa4\xe1\x86\xbc\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba\xf0\x9d\x9f\x9c", false); } // [V7]
7840test { try toAsciiFail("\xe1\x84\x92\xe1\x85\xa4\xe1\x86\xbc\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba\xf0\x9d\x9f\x9c", true); } // [V7]
33137841test { try toUnicodeFail("\xed\x97\x81\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba4"); } // [V7]
7842test { try toAsciiFail("\xed\x97\x81\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba4", false); } // [V7]
7843test { try toAsciiFail("\xed\x97\x81\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba4", true); } // [V7]
33147844test { try toUnicodeFail("\xe1\x84\x92\xe1\x85\xa4\xe1\x86\xbc\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba4"); } // [V7]
7845test { try toAsciiFail("\xe1\x84\x92\xe1\x85\xa4\xe1\x86\xbc\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba4", false); } // [V7]
7846test { try toAsciiFail("\xe1\x84\x92\xe1\x85\xa4\xe1\x86\xbc\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba4", true); } // [V7]
33157847test { try toUnicodeFail("xn--o4c1723h8g85gt4ya.xn--4-dvc"); } // [V7]
7848test { try toAsciiFail("xn--o4c1723h8g85gt4ya.xn--4-dvc", false); } // [V7]
7849test { try toAsciiFail("xn--o4c1723h8g85gt4ya.xn--4-dvc", true); } // [V7]
33167850test { try toUnicodeFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe"); } // [B1, C1, V7]
7851test { try toAsciiFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe", false); } // [B1, C1, V7]
7852test { try toAsciiFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe", true); } // [B1, V7]
33177853test { try toUnicodeFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe"); } // [B1, C1, V7]
7854test { try toAsciiFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe", false); } // [B1, C1, V7]
7855test { try toAsciiFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe", true); } // [B1, V7]
33187856test { try toUnicodeFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e"); } // [B1, C1, V7]
7857test { try toAsciiFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e", false); } // [B1, C1, V7]
7858test { try toAsciiFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e", true); } // [B1, V7]
33197859test { try toUnicodeFail("xn--lo0d.xn--mljx1099g"); } // [B1, V7]
7860test { try toAsciiFail("xn--lo0d.xn--mljx1099g", false); } // [B1, V7]
7861test { try toAsciiFail("xn--lo0d.xn--mljx1099g", true); } // [B1, V7]
33207862test { try toUnicodeFail("xn--lo0d.xn--0ugx72cwi33v"); } // [B1, C1, V7]
7863test { try toAsciiFail("xn--lo0d.xn--0ugx72cwi33v", false); } // [B1, C1, V7]
7864test { try toAsciiFail("xn--lo0d.xn--0ugx72cwi33v", true); } // [B1, C1, V7]
33217865test { try toUnicodeFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e"); } // [B1, C1, V7]
7866test { try toAsciiFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e", false); } // [B1, C1, V7]
7867test { try toAsciiFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e", true); } // [B1, V7]
33227868test { try toUnicodeFail("xn--lo0d.xn--2nd75260n"); } // [B1, V7]
7869test { try toAsciiFail("xn--lo0d.xn--2nd75260n", false); } // [B1, V7]
7870test { try toAsciiFail("xn--lo0d.xn--2nd75260n", true); } // [B1, V7]
33237871test { try toUnicodeFail("xn--lo0d.xn--2nd949eqw95u"); } // [B1, C1, V7]
7872test { try toAsciiFail("xn--lo0d.xn--2nd949eqw95u", false); } // [B1, C1, V7]
7873test { try toAsciiFail("xn--lo0d.xn--2nd949eqw95u", true); } // [B1, C1, V7]
33247874test { try toUnicodeFail("\xea\xa5\x93.\xcc\xbd\xf0\x91\x82\xbd\xe9\xa6\x8b"); } // [V6, V7]
7875test { try toAsciiFail("\xea\xa5\x93.\xcc\xbd\xf0\x91\x82\xbd\xe9\xa6\x8b", false); } // [V6, V7]
7876test { try toAsciiFail("\xea\xa5\x93.\xcc\xbd\xf0\x91\x82\xbd\xe9\xa6\x8b", true); } // [V6, V7]
33257877test { try toUnicodeFail("xn--3j9a.xn--bua0708eqzrd"); } // [V6, V7]
7878test { try toAsciiFail("xn--3j9a.xn--bua0708eqzrd", false); } // [V6, V7]
7879test { try toAsciiFail("xn--3j9a.xn--bua0708eqzrd", true); } // [V6, V7]
33267880test { try toUnicodeFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xef\xbd\xa1\xe4\x9c\x96"); } // [C2, V7]
7881test { try toAsciiFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xef\xbd\xa1\xe4\x9c\x96", false); } // [C2, V7]
7882test { try toAsciiFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xef\xbd\xa1\xe4\x9c\x96", true); } // [V7]
33277883test { try toUnicodeFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xe3\x80\x82\xe4\x9c\x96"); } // [C2, V7]
7884test { try toAsciiFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xe3\x80\x82\xe4\x9c\x96", false); } // [C2, V7]
7885test { try toAsciiFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xe3\x80\x82\xe4\x9c\x96", true); } // [V7]
33287886test { try toUnicodeFail("xn--g138cxw05a.xn--k0o"); } // [V7]
7887test { try toAsciiFail("xn--g138cxw05a.xn--k0o", false); } // [V7]
7888test { try toAsciiFail("xn--g138cxw05a.xn--k0o", true); } // [V7]
33297889test { try toUnicodeFail("xn--1ug30527h9mxi.xn--k0o"); } // [C2, V7]
7890test { try toAsciiFail("xn--1ug30527h9mxi.xn--k0o", false); } // [C2, V7]
7891test { try toAsciiFail("xn--1ug30527h9mxi.xn--k0o", true); } // [C2, V7]
33307892test { try toUnicodeFail("\xe1\xa1\xaf\xe2\x9a\x89\xe5\xa7\xb6\xf0\x9f\x84\x89\xef\xbc\x8e\xdb\xb7\xe2\x80\x8d\xf0\x9f\x8e\xaa\xe2\x80\x8d"); } // [C2, U1]
7893test { try toAsciiFail("\xe1\xa1\xaf\xe2\x9a\x89\xe5\xa7\xb6\xf0\x9f\x84\x89\xef\xbc\x8e\xdb\xb7\xe2\x80\x8d\xf0\x9f\x8e\xaa\xe2\x80\x8d", false); } // [C2, U1]
7894test { try toAsciiFail("\xe1\xa1\xaf\xe2\x9a\x89\xe5\xa7\xb6\xf0\x9f\x84\x89\xef\xbc\x8e\xdb\xb7\xe2\x80\x8d\xf0\x9f\x8e\xaa\xe2\x80\x8d", true); } // [U1]
33317895test { try toUnicodeFail("\xe1\xa1\xaf\xe2\x9a\x89\xe5\xa7\xb68,.\xdb\xb7\xe2\x80\x8d\xf0\x9f\x8e\xaa\xe2\x80\x8d"); } // [C2, U1]
7896test { try toAsciiFail("\xe1\xa1\xaf\xe2\x9a\x89\xe5\xa7\xb68,.\xdb\xb7\xe2\x80\x8d\xf0\x9f\x8e\xaa\xe2\x80\x8d", false); } // [C2, U1]
7897test { try toAsciiFail("\xe1\xa1\xaf\xe2\x9a\x89\xe5\xa7\xb68,.\xdb\xb7\xe2\x80\x8d\xf0\x9f\x8e\xaa\xe2\x80\x8d", true); } // [U1]
33327898test { try toUnicodeFail("xn--8,-g9oy26fzu4d.xn--kmb6733w"); } // [U1]
7899test { try toAsciiFail("xn--8,-g9oy26fzu4d.xn--kmb6733w", false); } // [U1]
7900test { try toAsciiFail("xn--8,-g9oy26fzu4d.xn--kmb6733w", true); } // [U1]
33337901test { try toUnicodeFail("xn--8,-g9oy26fzu4d.xn--kmb859ja94998b"); } // [C2, U1]
7902test { try toAsciiFail("xn--8,-g9oy26fzu4d.xn--kmb859ja94998b", false); } // [C2, U1]
7903test { try toAsciiFail("xn--8,-g9oy26fzu4d.xn--kmb859ja94998b", true); } // [C2, U1]
33347904test { try toUnicodeFail("xn--c9e433epi4b3j20a.xn--kmb6733w"); } // [V7]
7905test { try toAsciiFail("xn--c9e433epi4b3j20a.xn--kmb6733w", false); } // [V7]
7906test { try toAsciiFail("xn--c9e433epi4b3j20a.xn--kmb6733w", true); } // [V7]
33357907test { try toUnicodeFail("xn--c9e433epi4b3j20a.xn--kmb859ja94998b"); } // [C2, V7]
7908test { try toAsciiFail("xn--c9e433epi4b3j20a.xn--kmb859ja94998b", false); } // [C2, V7]
7909test { try toAsciiFail("xn--c9e433epi4b3j20a.xn--kmb859ja94998b", true); } // [C2, V7]
33367910test { try toUnicodeFail("\xf0\x9e\xbd\x80.\xf0\x90\xb9\xb8\xf0\x9f\x9a\x96\xe0\xb8\xba"); } // [B1, V7]
7911test { try toAsciiFail("\xf0\x9e\xbd\x80.\xf0\x90\xb9\xb8\xf0\x9f\x9a\x96\xe0\xb8\xba", false); } // [B1, V7]
7912test { try toAsciiFail("\xf0\x9e\xbd\x80.\xf0\x90\xb9\xb8\xf0\x9f\x9a\x96\xe0\xb8\xba", true); } // [B1, V7]
33377913test { try toUnicodeFail("xn--0n7h.xn--o4c9032klszf"); } // [B1, V7]
7914test { try toAsciiFail("xn--0n7h.xn--o4c9032klszf", false); } // [B1, V7]
7915test { try toAsciiFail("xn--0n7h.xn--o4c9032klszf", true); } // [B1, V7]
33387916test { try toUnicodeFail("\xe1\x82\xb4\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1]
7917test { try toAsciiFail("\xe1\x82\xb4\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9", false); } // [B1]
7918test { try toAsciiFail("\xe1\x82\xb4\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9", true); } // [B1]
33397919test { try toUnicodeFail("\xe1\x82\xb4\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1]
7920test { try toAsciiFail("\xe1\x82\xb4\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9", false); } // [B1]
7921test { try toAsciiFail("\xe1\x82\xb4\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9", true); } // [B1]
33407922test { try toUnicodeFail("\xe2\xb4\x94\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1]
7923test { try toAsciiFail("\xe2\xb4\x94\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9", false); } // [B1]
7924test { try toAsciiFail("\xe2\xb4\x94\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9", true); } // [B1]
33417925test { try toUnicodeFail("xn--o7e997h.xn--mmb9ml895e"); } // [B1]
7926test { try toAsciiFail("xn--o7e997h.xn--mmb9ml895e", false); } // [B1]
7927test { try toAsciiFail("xn--o7e997h.xn--mmb9ml895e", true); } // [B1]
33427928test { try toUnicodeFail("\xe2\xb4\x94\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1]
7929test { try toAsciiFail("\xe2\xb4\x94\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9", false); } // [B1]
7930test { try toAsciiFail("\xe2\xb4\x94\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9", true); } // [B1]
33437931test { try toUnicodeFail("xn--snd659a.xn--mmb9ml895e"); } // [B1, V7]
7932test { try toAsciiFail("xn--snd659a.xn--mmb9ml895e", false); } // [B1, V7]
7933test { try toAsciiFail("xn--snd659a.xn--mmb9ml895e", true); } // [B1, V7]
33447934test { try toUnicodeFail("\xe1\x8d\x9f\xe1\xa1\x88\xe2\x80\x8c\xef\xbc\x8e\xef\xb8\x92-\xf0\x96\xbe\x90-"); } // [C1, V3, V6, V7]
7935test { try toAsciiFail("\xe1\x8d\x9f\xe1\xa1\x88\xe2\x80\x8c\xef\xbc\x8e\xef\xb8\x92-\xf0\x96\xbe\x90-", false); } // [C1, V3, V6, V7]
7936test { try toAsciiFail("\xe1\x8d\x9f\xe1\xa1\x88\xe2\x80\x8c\xef\xbc\x8e\xef\xb8\x92-\xf0\x96\xbe\x90-", true); } // [V3, V6, V7]
33457937test { try toUnicodeFail("\xe1\x8d\x9f\xe1\xa1\x88\xe2\x80\x8c.\xe3\x80\x82-\xf0\x96\xbe\x90-"); } // [C1, V3, V6, X4_2]
7938test { try toAsciiFail("\xe1\x8d\x9f\xe1\xa1\x88\xe2\x80\x8c.\xe3\x80\x82-\xf0\x96\xbe\x90-", false); } // [C1, V3, V6, A4_2]
7939test { try toAsciiFail("\xe1\x8d\x9f\xe1\xa1\x88\xe2\x80\x8c.\xe3\x80\x82-\xf0\x96\xbe\x90-", true); } // [V3, V6, A4_2]
33467940test { try toUnicodeFail("xn--b7d82w..xn-----pe4u"); } // [V3, V6, X4_2]
7941test { try toAsciiFail("xn--b7d82w..xn-----pe4u", false); } // [V3, V6, A4_2]
7942test { try toAsciiFail("xn--b7d82w..xn-----pe4u", true); } // [V3, V6, A4_2]
33477943test { try toUnicodeFail("xn--b7d82wo4h..xn-----pe4u"); } // [C1, V3, V6, X4_2]
7944test { try toAsciiFail("xn--b7d82wo4h..xn-----pe4u", false); } // [C1, V3, V6, A4_2]
7945test { try toAsciiFail("xn--b7d82wo4h..xn-----pe4u", true); } // [C1, V3, V6, A4_2]
33487946test { try toUnicodeFail("xn--b7d82w.xn-----c82nz547a"); } // [V3, V6, V7]
7947test { try toAsciiFail("xn--b7d82w.xn-----c82nz547a", false); } // [V3, V6, V7]
7948test { try toAsciiFail("xn--b7d82w.xn-----c82nz547a", true); } // [V3, V6, V7]
33497949test { try toUnicodeFail("xn--b7d82wo4h.xn-----c82nz547a"); } // [C1, V3, V6, V7]
7950test { try toAsciiFail("xn--b7d82wo4h.xn-----c82nz547a", false); } // [C1, V3, V6, V7]
7951test { try toAsciiFail("xn--b7d82wo4h.xn-----c82nz547a", true); } // [C1, V3, V6, V7]
33507952test { try toUnicodeFail("\xe2\x92\x88\xd8\x81\xe2\x92\x96\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b"); } // [B1, C1, V6, V7]
7953test { try toAsciiFail("\xe2\x92\x88\xd8\x81\xe2\x92\x96\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b", false); } // [B1, C1, V6, V7]
7954test { try toAsciiFail("\xe2\x92\x88\xd8\x81\xe2\x92\x96\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b", true); } // [B1, V6, V7]
33517955test { try toUnicodeFail("1.\xd8\x8115.\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b"); } // [B1, C1, V6, V7]
7956test { try toAsciiFail("1.\xd8\x8115.\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b", false); } // [B1, C1, V6, V7]
7957test { try toAsciiFail("1.\xd8\x8115.\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b", true); } // [B1, V6, V7, A4_2]
33527958test { try toUnicodeFail("1.xn--15-1pd..xn--2sb914i"); } // [B1, V6, V7, X4_2]
7959test { try toAsciiFail("1.xn--15-1pd..xn--2sb914i", false); } // [B1, V6, V7, A4_2]
7960test { try toAsciiFail("1.xn--15-1pd..xn--2sb914i", true); } // [B1, V6, V7, A4_2]
33537961test { try toUnicodeFail("1.xn--15-1pd.xn--0ug.xn--2sb914i"); } // [B1, C1, V6, V7]
7962test { try toAsciiFail("1.xn--15-1pd.xn--0ug.xn--2sb914i", false); } // [B1, C1, V6, V7]
7963test { try toAsciiFail("1.xn--15-1pd.xn--0ug.xn--2sb914i", true); } // [B1, C1, V6, V7]
33547964test { try toUnicodeFail("xn--jfb347mib.xn--2sb914i"); } // [B1, V6, V7]
7965test { try toAsciiFail("xn--jfb347mib.xn--2sb914i", false); } // [B1, V6, V7]
7966test { try toAsciiFail("xn--jfb347mib.xn--2sb914i", true); } // [B1, V6, V7]
33557967test { try toUnicodeFail("xn--jfb844kmfdwb.xn--2sb914i"); } // [B1, C1, V6, V7]
7968test { try toAsciiFail("xn--jfb844kmfdwb.xn--2sb914i", false); } // [B1, C1, V6, V7]
7969test { try toAsciiFail("xn--jfb844kmfdwb.xn--2sb914i", true); } // [B1, C1, V6, V7]
33567970test { try toUnicodeFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe1\x82\xab"); } // [V3, V6]
7971test { try toAsciiFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe1\x82\xab", false); } // [V3, V6]
7972test { try toAsciiFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe1\x82\xab", true); } // [V3, V6]
33577973test { try toUnicodeFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe2\xb4\x8b"); } // [V3, V6]
7974test { try toAsciiFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe2\xb4\x8b", false); } // [V3, V6]
7975test { try toAsciiFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe2\xb4\x8b", true); } // [V3, V6]
33587976test { try toUnicodeFail("xn--792h.xn----bse820x"); } // [V3, V6]
7977test { try toAsciiFail("xn--792h.xn----bse820x", false); } // [V3, V6]
7978test { try toAsciiFail("xn--792h.xn----bse820x", true); } // [V3, V6]
33597979test { try toUnicodeFail("xn--792h.xn----bse632b"); } // [V3, V6, V7]
7980test { try toAsciiFail("xn--792h.xn----bse632b", false); } // [V3, V6, V7]
7981test { try toAsciiFail("xn--792h.xn----bse632b", true); } // [V3, V6, V7]
33607982test { try toUnicodeFail("\xc3\x9f\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3]
7983test { try toAsciiFail("\xc3\x9f\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd", false); } // [B2, B3]
7984test { try toAsciiFail("\xc3\x9f\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd", true); } // [B2, B3]
33617985test { try toUnicodeFail("\xc3\x9f\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d"); } // [B2, B3]
7986test { try toAsciiFail("\xc3\x9f\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d", false); } // [B2, B3]
7987test { try toAsciiFail("\xc3\x9f\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d", true); } // [B2, B3]
33627988test { try toUnicodeFail("SS\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3]
7989test { try toAsciiFail("SS\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd", false); } // [B2, B3]
7990test { try toAsciiFail("SS\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd", true); } // [B2, B3]
33637991test { try toUnicodeFail("ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d"); } // [B2, B3]
7992test { try toAsciiFail("ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d", false); } // [B2, B3]
7993test { try toAsciiFail("ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d", true); } // [B2, B3]
33647994test { try toUnicodeFail("Ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3]
7995test { try toAsciiFail("Ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd", false); } // [B2, B3]
7996test { try toAsciiFail("Ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd", true); } // [B2, B3]
33657997test { try toUnicodeFail("xn--ss-j81a.xn--fgb670rovy"); } // [B2, B3]
7998test { try toAsciiFail("xn--ss-j81a.xn--fgb670rovy", false); } // [B2, B3]
7999test { try toAsciiFail("xn--ss-j81a.xn--fgb670rovy", true); } // [B2, B3]
33668000test { try toUnicodeFail("xn--zca277t.xn--fgb670rovy"); } // [B2, B3]
8001test { try toAsciiFail("xn--zca277t.xn--fgb670rovy", false); } // [B2, B3]
8002test { try toAsciiFail("xn--zca277t.xn--fgb670rovy", true); } // [B2, B3]
33678003test { try toUnicodeFail("xn--ss-j81a.xn--fgb845cb66c"); } // [B2, B3, V7]
8004test { try toAsciiFail("xn--ss-j81a.xn--fgb845cb66c", false); } // [B2, B3, V7]
8005test { try toAsciiFail("xn--ss-j81a.xn--fgb845cb66c", true); } // [B2, B3, V7]
33688006test { try toUnicodeFail("xn--ss-wgk.xn--fgb845cb66c"); } // [B2, B3, V7]
8007test { try toAsciiFail("xn--ss-wgk.xn--fgb845cb66c", false); } // [B2, B3, V7]
8008test { try toAsciiFail("xn--ss-wgk.xn--fgb845cb66c", true); } // [B2, B3, V7]
33698009test { try toUnicodeFail("xn--zca442f.xn--fgb845cb66c"); } // [B2, B3, V7]
8010test { try toAsciiFail("xn--zca442f.xn--fgb845cb66c", false); } // [B2, B3, V7]
8011test { try toAsciiFail("xn--zca442f.xn--fgb845cb66c", true); } // [B2, B3, V7]
33708012test { try toUnicodeFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3"); } // [B5, B6, V6]
8013test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", false); } // [B5, B6, V6]
8014test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", true); } // [B5, B6, V6]
33718015test { try toUnicodeFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3"); } // [B5, B6, V6]
8016test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", false); } // [B5, B6, V6]
8017test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", true); } // [B5, B6, V6]
33728018test { try toUnicodeFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3"); } // [B5, B6, V6]
8019test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", false); } // [B5, B6, V6]
8020test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", true); } // [B5, B6, V6]
33738021test { try toUnicodeFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3"); } // [B5, B6, V6]
8022test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", false); } // [B5, B6, V6]
8023test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x84\xb2\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", true); } // [B5, B6, V6]
33748024test { try toUnicodeFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3"); } // [B5, B6, V6]
8025test { try toAsciiFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", false); } // [B5, B6, V6]
8026test { try toAsciiFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", true); } // [B5, B6, V6]
33758027test { try toUnicodeFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3"); } // [B5, B6, V6]
8028test { try toAsciiFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", false); } // [B5, B6, V6]
8029test { try toAsciiFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", true); } // [B5, B6, V6]
33768030test { try toUnicodeFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3"); } // [B5, B6, V6]
8031test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", false); } // [B5, B6, V6]
8032test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", true); } // [B5, B6, V6]
33778033test { try toUnicodeFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3"); } // [B5, B6, V6]
8034test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", false); } // [B5, B6, V6]
8035test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xe3\x80\x82\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", true); } // [B5, B6, V6]
33788036test { try toUnicodeFail("xn--yxf24x4ol.xn--sib102gc69k"); } // [B5, B6, V6]
8037test { try toAsciiFail("xn--yxf24x4ol.xn--sib102gc69k", false); } // [B5, B6, V6]
8038test { try toAsciiFail("xn--yxf24x4ol.xn--sib102gc69k", true); } // [B5, B6, V6]
33798039test { try toUnicodeFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3"); } // [B5, B6, V6]
8040test { try toAsciiFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", false); } // [B5, B6, V6]
8041test { try toAsciiFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", true); } // [B5, B6, V6]
33808042test { try toUnicodeFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3"); } // [B5, B6, V6]
8043test { try toAsciiFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", false); } // [B5, B6, V6]
8044test { try toAsciiFail("\xe1\xae\xaa\xe2\xb4\x83\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", true); } // [B5, B6, V6]
33818045test { try toUnicodeFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3"); } // [B5, B6, V6]
8046test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", false); } // [B5, B6, V6]
8047test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xed\x88\xbb\xd9\xb3", true); } // [B5, B6, V6]
33828048test { try toUnicodeFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3"); } // [B5, B6, V6]
8049test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", false); } // [B5, B6, V6]
8050test { try toAsciiFail("\xe1\xae\xaa\xe1\x82\xa3\xe2\x85\x8e\xef\xbd\xa1\xe1\xa0\xb3\xe1\x84\x90\xe1\x85\xae\xe1\x86\xb6\xd9\xb3", true); } // [B5, B6, V6]
33838051test { try toUnicodeFail("xn--bnd957c2pe.xn--sib102gc69k"); } // [B5, B6, V6, V7]
8052test { try toAsciiFail("xn--bnd957c2pe.xn--sib102gc69k", false); } // [B5, B6, V6, V7]
8053test { try toAsciiFail("xn--bnd957c2pe.xn--sib102gc69k", true); } // [B5, B6, V6, V7]
33848054test { try toUnicodeFail("xn--bnd957cone.xn--sib102gc69k"); } // [B5, B6, V6, V7]
8055test { try toAsciiFail("xn--bnd957cone.xn--sib102gc69k", false); } // [B5, B6, V6, V7]
8056test { try toAsciiFail("xn--bnd957cone.xn--sib102gc69k", true); } // [B5, B6, V6, V7]
33858057test { try toUnicodeFail("\xdb\xac.\xe0\xa2\xa2\xf0\x90\xb9\xab\xd9\xbc"); } // [B1, V6]
8058test { try toAsciiFail("\xdb\xac.\xe0\xa2\xa2\xf0\x90\xb9\xab\xd9\xbc", false); } // [B1, V6]
8059test { try toAsciiFail("\xdb\xac.\xe0\xa2\xa2\xf0\x90\xb9\xab\xd9\xbc", true); } // [B1, V6]
33868060test { try toUnicodeFail("xn--8lb.xn--1ib31ily45b"); } // [B1, V6]
8061test { try toAsciiFail("xn--8lb.xn--1ib31ily45b", false); } // [B1, V6]
8062test { try toAsciiFail("xn--8lb.xn--1ib31ily45b", true); } // [B1, V6]
33878063test { try toUnicodeFail("\xda\xb6\xdb\x9f\xe3\x80\x82\xe2\x82\x87\xea\xa0\x86"); } // [B1]
8064test { try toAsciiFail("\xda\xb6\xdb\x9f\xe3\x80\x82\xe2\x82\x87\xea\xa0\x86", false); } // [B1]
8065test { try toAsciiFail("\xda\xb6\xdb\x9f\xe3\x80\x82\xe2\x82\x87\xea\xa0\x86", true); } // [B1]
33888066test { try toUnicodeFail("\xda\xb6\xdb\x9f\xe3\x80\x827\xea\xa0\x86"); } // [B1]
8067test { try toAsciiFail("\xda\xb6\xdb\x9f\xe3\x80\x827\xea\xa0\x86", false); } // [B1]
8068test { try toAsciiFail("\xda\xb6\xdb\x9f\xe3\x80\x827\xea\xa0\x86", true); } // [B1]
33898069test { try toUnicodeFail("xn--pkb6f.xn--7-x93e"); } // [B1]
8070test { try toAsciiFail("xn--pkb6f.xn--7-x93e", false); } // [B1]
8071test { try toAsciiFail("xn--pkb6f.xn--7-x93e", true); } // [B1]
33908072test { try toUnicodeFail("\xda\xb6\xdb\x9f.7\xea\xa0\x86"); } // [B1]
8073test { try toAsciiFail("\xda\xb6\xdb\x9f.7\xea\xa0\x86", false); } // [B1]
8074test { try toAsciiFail("\xda\xb6\xdb\x9f.7\xea\xa0\x86", true); } // [B1]
33918075test { try toUnicodeFail("\xe1\x83\x83\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3\xe2\x89\xae\xf3\xa0\xa9\x89"); } // [B1, B5, B6, C1, V7]
8076test { try toAsciiFail("\xe1\x83\x83\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3\xe2\x89\xae\xf3\xa0\xa9\x89", false); } // [B1, B5, B6, C1, V7]
8077test { try toAsciiFail("\xe1\x83\x83\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3\xe2\x89\xae\xf3\xa0\xa9\x89", true); } // [B1, B5, B6, V6, V7]
33928078test { try toUnicodeFail("\xe1\x83\x83\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3<\xcc\xb8\xf3\xa0\xa9\x89"); } // [B1, B5, B6, C1, V7]
8079test { try toAsciiFail("\xe1\x83\x83\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3<\xcc\xb8\xf3\xa0\xa9\x89", false); } // [B1, B5, B6, C1, V7]
8080test { try toAsciiFail("\xe1\x83\x83\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3<\xcc\xb8\xf3\xa0\xa9\x89", true); } // [B1, B5, B6, V6, V7]
33938081test { try toUnicodeFail("\xe2\xb4\xa3\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3<\xcc\xb8\xf3\xa0\xa9\x89"); } // [B1, B5, B6, C1, V7]
8082test { try toAsciiFail("\xe2\xb4\xa3\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3<\xcc\xb8\xf3\xa0\xa9\x89", false); } // [B1, B5, B6, C1, V7]
8083test { try toAsciiFail("\xe2\xb4\xa3\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3<\xcc\xb8\xf3\xa0\xa9\x89", true); } // [B1, B5, B6, V6, V7]
33948084test { try toUnicodeFail("\xe2\xb4\xa3\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3\xe2\x89\xae\xf3\xa0\xa9\x89"); } // [B1, B5, B6, C1, V7]
8085test { try toAsciiFail("\xe2\xb4\xa3\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3\xe2\x89\xae\xf3\xa0\xa9\x89", false); } // [B1, B5, B6, C1, V7]
8086test { try toAsciiFail("\xe2\xb4\xa3\xf0\x90\xb9\xbb.\xe2\x80\x8c\xf0\x9d\xaa\xa3\xe2\x89\xae\xf3\xa0\xa9\x89", true); } // [B1, B5, B6, V6, V7]
33958087test { try toUnicodeFail("xn--rlj6323e.xn--gdh4944ob3x3e"); } // [B1, B5, B6, V6, V7]
8088test { try toAsciiFail("xn--rlj6323e.xn--gdh4944ob3x3e", false); } // [B1, B5, B6, V6, V7]
8089test { try toAsciiFail("xn--rlj6323e.xn--gdh4944ob3x3e", true); } // [B1, B5, B6, V6, V7]
33968090test { try toUnicodeFail("xn--rlj6323e.xn--0ugy6gn120eb103g"); } // [B1, B5, B6, C1, V7]
8091test { try toAsciiFail("xn--rlj6323e.xn--0ugy6gn120eb103g", false); } // [B1, B5, B6, C1, V7]
8092test { try toAsciiFail("xn--rlj6323e.xn--0ugy6gn120eb103g", true); } // [B1, B5, B6, C1, V7]
33978093test { try toUnicodeFail("xn--7nd8101k.xn--gdh4944ob3x3e"); } // [B1, B5, B6, V6, V7]
8094test { try toAsciiFail("xn--7nd8101k.xn--gdh4944ob3x3e", false); } // [B1, B5, B6, V6, V7]
8095test { try toAsciiFail("xn--7nd8101k.xn--gdh4944ob3x3e", true); } // [B1, B5, B6, V6, V7]
33988096test { try toUnicodeFail("xn--7nd8101k.xn--0ugy6gn120eb103g"); } // [B1, B5, B6, C1, V7]
8097test { try toAsciiFail("xn--7nd8101k.xn--0ugy6gn120eb103g", false); } // [B1, B5, B6, C1, V7]
8098test { try toAsciiFail("xn--7nd8101k.xn--0ugy6gn120eb103g", true); } // [B1, B5, B6, C1, V7]
33998099test { try toUnicodeFail("\xf0\x9d\x9f\xb5\xe9\x9a\x81\xe2\xaf\xae\xef\xbc\x8e\xe1\xa0\x8d\xe2\x80\x8c"); } // [C1]
8100test { try toAsciiFail("\xf0\x9d\x9f\xb5\xe9\x9a\x81\xe2\xaf\xae\xef\xbc\x8e\xe1\xa0\x8d\xe2\x80\x8c", false); } // [C1]
8101test { try toAsciiFail("\xf0\x9d\x9f\xb5\xe9\x9a\x81\xe2\xaf\xae\xef\xbc\x8e\xe1\xa0\x8d\xe2\x80\x8c", true); } // [A4_2]
34008102test { try toUnicodeFail("9\xe9\x9a\x81\xe2\xaf\xae.\xe1\xa0\x8d\xe2\x80\x8c"); } // [C1]
8103test { try toAsciiFail("9\xe9\x9a\x81\xe2\xaf\xae.\xe1\xa0\x8d\xe2\x80\x8c", false); } // [C1]
8104test { try toAsciiFail("9\xe9\x9a\x81\xe2\xaf\xae.\xe1\xa0\x8d\xe2\x80\x8c", true); } // [A4_2]
34018105test { try toUnicodePass("xn--9-mfs8024b.", "9\xe9\x9a\x81\xe2\xaf\xae."); }
8106test { try toAsciiFail("xn--9-mfs8024b.", false); } // [A4_2]
8107test { try toAsciiFail("xn--9-mfs8024b.", true); } // [A4_2]
34028108test { try toUnicodePass("9\xe9\x9a\x81\xe2\xaf\xae.", "9\xe9\x9a\x81\xe2\xaf\xae."); }
8109test { try toAsciiFail("9\xe9\x9a\x81\xe2\xaf\xae.", false); } // [A4_2]
8110test { try toAsciiFail("9\xe9\x9a\x81\xe2\xaf\xae.", true); } // [A4_2]
34038111test { try toUnicodeFail("xn--9-mfs8024b.xn--0ug"); } // [C1]
8112test { try toAsciiFail("xn--9-mfs8024b.xn--0ug", false); } // [C1]
8113test { try toAsciiFail("xn--9-mfs8024b.xn--0ug", true); } // [C1]
34048114test { try toUnicodeFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1, V7]
8115test { try toAsciiFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6", false); } // [B1, V7]
8116test { try toAsciiFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6", true); } // [B1, V7]
34058117test { try toUnicodeFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1]
8118test { try toAsciiFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6", false); } // [B1]
8119test { try toAsciiFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6", true); } // [B1]
34068120test { try toUnicodeFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1]
8121test { try toAsciiFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6", false); } // [B1]
8122test { try toAsciiFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6", true); } // [B1]
34078123test { try toUnicodeFail("8.xn--fo0d.xn--3ed972m6o8a"); } // [B1]
8124test { try toAsciiFail("8.xn--fo0d.xn--3ed972m6o8a", false); } // [B1]
8125test { try toAsciiFail("8.xn--fo0d.xn--3ed972m6o8a", true); } // [B1]
34088126test { try toUnicodeFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1, V7]
8127test { try toAsciiFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6", false); } // [B1, V7]
8128test { try toAsciiFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6", true); } // [B1, V7]
34098129test { try toUnicodeFail("xn--0sh2466f.xn--3ed972m6o8a"); } // [B1, V7]
8130test { try toAsciiFail("xn--0sh2466f.xn--3ed972m6o8a", false); } // [B1, V7]
8131test { try toAsciiFail("xn--0sh2466f.xn--3ed972m6o8a", true); } // [B1, V7]
34108132test { try toUnicodeFail("8.xn--fo0d.xn--3ed15dt93o"); } // [B1, V7]
8133test { try toAsciiFail("8.xn--fo0d.xn--3ed15dt93o", false); } // [B1, V7]
8134test { try toAsciiFail("8.xn--fo0d.xn--3ed15dt93o", true); } // [B1, V7]
34118135test { try toUnicodeFail("xn--0sh2466f.xn--3ed15dt93o"); } // [B1, V7]
8136test { try toAsciiFail("xn--0sh2466f.xn--3ed15dt93o", false); } // [B1, V7]
8137test { try toAsciiFail("xn--0sh2466f.xn--3ed15dt93o", true); } // [B1, V7]
34128138test { try toUnicodeFail("-\xe9\x97\xae\xf1\xac\xb0\x94\xe2\x92\x9b\xe3\x80\x82\xd8\x84-\xf1\x9c\x97\x89\xe6\xa9\xac"); } // [B1, V3, V7]
8139test { try toAsciiFail("-\xe9\x97\xae\xf1\xac\xb0\x94\xe2\x92\x9b\xe3\x80\x82\xd8\x84-\xf1\x9c\x97\x89\xe6\xa9\xac", false); } // [B1, V3, V7]
8140test { try toAsciiFail("-\xe9\x97\xae\xf1\xac\xb0\x94\xe2\x92\x9b\xe3\x80\x82\xd8\x84-\xf1\x9c\x97\x89\xe6\xa9\xac", true); } // [B1, V3, V7]
34138141test { try toUnicodeFail("-\xe9\x97\xae\xf1\xac\xb0\x9420.\xe3\x80\x82\xd8\x84-\xf1\x9c\x97\x89\xe6\xa9\xac"); } // [B1, V3, V7, X4_2]
8142test { try toAsciiFail("-\xe9\x97\xae\xf1\xac\xb0\x9420.\xe3\x80\x82\xd8\x84-\xf1\x9c\x97\x89\xe6\xa9\xac", false); } // [B1, V3, V7, A4_2]
8143test { try toAsciiFail("-\xe9\x97\xae\xf1\xac\xb0\x9420.\xe3\x80\x82\xd8\x84-\xf1\x9c\x97\x89\xe6\xa9\xac", true); } // [B1, V3, V7, A4_2]
34148144test { try toUnicodeFail("xn---20-658jx1776d..xn----ykc7228efm46d"); } // [B1, V3, V7, X4_2]
8145test { try toAsciiFail("xn---20-658jx1776d..xn----ykc7228efm46d", false); } // [B1, V3, V7, A4_2]
8146test { try toAsciiFail("xn---20-658jx1776d..xn----ykc7228efm46d", true); } // [B1, V3, V7, A4_2]
34158147test { try toUnicodeFail("xn----hdpu849bhis3e.xn----ykc7228efm46d"); } // [B1, V3, V7]
8148test { try toAsciiFail("xn----hdpu849bhis3e.xn----ykc7228efm46d", false); } // [B1, V3, V7]
8149test { try toAsciiFail("xn----hdpu849bhis3e.xn----ykc7228efm46d", true); } // [B1, V3, V7]
34168150test { try toUnicodeFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8"); } // [C1, V6]
8151test { try toAsciiFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8", false); } // [C1, V6]
8152test { try toAsciiFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8", true); } // [V6]
34178153test { try toUnicodeFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x822"); } // [C1, V6]
8154test { try toAsciiFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x822", false); } // [C1, V6]
8155test { try toAsciiFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x822", true); } // [V6]
34188156test { try toUnicodeFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x822"); } // [C1, V6]
8157test { try toAsciiFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x822", false); } // [C1, V6]
8158test { try toAsciiFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x822", true); } // [V6]
34198159test { try toUnicodeFail("xn--mta176jjjm.c"); } // [V6]
8160test { try toAsciiFail("xn--mta176jjjm.c", false); } // [V6]
8161test { try toAsciiFail("xn--mta176jjjm.c", true); } // [V6]
34208162test { try toUnicodeFail("xn--mta176j97cl2q.c"); } // [C1, V6]
8163test { try toAsciiFail("xn--mta176j97cl2q.c", false); } // [C1, V6]
8164test { try toAsciiFail("xn--mta176j97cl2q.c", true); } // [C1, V6]
34218165test { try toUnicodeFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8"); } // [C1, V6]
8166test { try toAsciiFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8", false); } // [C1, V6]
8167test { try toAsciiFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8", true); } // [V6]
34228168test { try toUnicodeFail("xn--mta930emri.c"); } // [V6, V7]
8169test { try toAsciiFail("xn--mta930emri.c", false); } // [V6, V7]
8170test { try toAsciiFail("xn--mta930emri.c", true); } // [V6, V7]
34238171test { try toUnicodeFail("xn--mta930emribme.c"); } // [C1, V6, V7]
8172test { try toAsciiFail("xn--mta930emribme.c", false); } // [C1, V6, V7]
8173test { try toAsciiFail("xn--mta930emribme.c", true); } // [C1, V6, V7]
34248174test { try toUnicodeFail("?\xe3\x80\x82\xea\xa0\x86\xd9\xa9\xf3\xa0\x92\xa9"); } // [B1, V6, V7, U1]
8175test { try toAsciiFail("?\xe3\x80\x82\xea\xa0\x86\xd9\xa9\xf3\xa0\x92\xa9", false); } // [B1, V6, V7, U1]
8176test { try toAsciiFail("?\xe3\x80\x82\xea\xa0\x86\xd9\xa9\xf3\xa0\x92\xa9", true); } // [B1, V6, V7, U1]
34258177test { try toUnicodeFail("?.xn--iib9583fusy0i"); } // [B1, V6, V7, U1]
8178test { try toAsciiFail("?.xn--iib9583fusy0i", false); } // [B1, V6, V7, U1]
8179test { try toAsciiFail("?.xn--iib9583fusy0i", true); } // [B1, V6, V7, U1]
34268180test { try toUnicodeFail("\xf3\xa0\x84\x81\xcd\x9f\xe2\xbe\xb6\xef\xbd\xa1\xe2\x82\x87\xef\xb8\x92\xeb\x88\x87\xe2\x89\xae"); } // [V6, V7]
8181test { try toAsciiFail("\xf3\xa0\x84\x81\xcd\x9f\xe2\xbe\xb6\xef\xbd\xa1\xe2\x82\x87\xef\xb8\x92\xeb\x88\x87\xe2\x89\xae", false); } // [V6, V7]
8182test { try toAsciiFail("\xf3\xa0\x84\x81\xcd\x9f\xe2\xbe\xb6\xef\xbd\xa1\xe2\x82\x87\xef\xb8\x92\xeb\x88\x87\xe2\x89\xae", true); } // [V6, V7]
34278183test { try toUnicodeFail("\xf3\xa0\x84\x81\xcd\x9f\xe2\xbe\xb6\xef\xbd\xa1\xe2\x82\x87\xef\xb8\x92\xe1\x84\x82\xe1\x85\xae\xe1\x86\xaa<\xcc\xb8"); } // [V6, V7]
8184test { try toAsciiFail("\xf3\xa0\x84\x81\xcd\x9f\xe2\xbe\xb6\xef\xbd\xa1\xe2\x82\x87\xef\xb8\x92\xe1\x84\x82\xe1\x85\xae\xe1\x86\xaa<\xcc\xb8", false); } // [V6, V7]
8185test { try toAsciiFail("\xf3\xa0\x84\x81\xcd\x9f\xe2\xbe\xb6\xef\xbd\xa1\xe2\x82\x87\xef\xb8\x92\xe1\x84\x82\xe1\x85\xae\xe1\x86\xaa<\xcc\xb8", true); } // [V6, V7]
34288186test { try toUnicodeFail("\xf3\xa0\x84\x81\xcd\x9f\xe9\xa3\x9b\xe3\x80\x827\xe3\x80\x82\xeb\x88\x87\xe2\x89\xae"); } // [V6]
8187test { try toAsciiFail("\xf3\xa0\x84\x81\xcd\x9f\xe9\xa3\x9b\xe3\x80\x827\xe3\x80\x82\xeb\x88\x87\xe2\x89\xae", false); } // [V6]
8188test { try toAsciiFail("\xf3\xa0\x84\x81\xcd\x9f\xe9\xa3\x9b\xe3\x80\x827\xe3\x80\x82\xeb\x88\x87\xe2\x89\xae", true); } // [V6]
34298189test { try toUnicodeFail("\xf3\xa0\x84\x81\xcd\x9f\xe9\xa3\x9b\xe3\x80\x827\xe3\x80\x82\xe1\x84\x82\xe1\x85\xae\xe1\x86\xaa<\xcc\xb8"); } // [V6]
8190test { try toAsciiFail("\xf3\xa0\x84\x81\xcd\x9f\xe9\xa3\x9b\xe3\x80\x827\xe3\x80\x82\xe1\x84\x82\xe1\x85\xae\xe1\x86\xaa<\xcc\xb8", false); } // [V6]
8191test { try toAsciiFail("\xf3\xa0\x84\x81\xcd\x9f\xe9\xa3\x9b\xe3\x80\x827\xe3\x80\x82\xe1\x84\x82\xe1\x85\xae\xe1\x86\xaa<\xcc\xb8", true); } // [V6]
34308192test { try toUnicodeFail("xn--9ua0567e.7.xn--gdh6767c"); } // [V6]
8193test { try toAsciiFail("xn--9ua0567e.7.xn--gdh6767c", false); } // [V6]
8194test { try toAsciiFail("xn--9ua0567e.7.xn--gdh6767c", true); } // [V6]
34318195test { try toUnicodeFail("xn--9ua0567e.xn--7-ngou006d1ttc"); } // [V6, V7]
8196test { try toAsciiFail("xn--9ua0567e.xn--7-ngou006d1ttc", false); } // [V6, V7]
8197test { try toAsciiFail("xn--9ua0567e.xn--7-ngou006d1ttc", true); } // [V6, V7]
34328198test { try toUnicodeFail("\xe2\x80\x8c\xef\xb8\x89\xf0\x90\xb9\xb4\xe2\x80\x8d\xef\xbc\x8e\xe2\x80\x8c\xe2\xbf\x83"); } // [B1, C1, C2]
8199test { try toAsciiFail("\xe2\x80\x8c\xef\xb8\x89\xf0\x90\xb9\xb4\xe2\x80\x8d\xef\xbc\x8e\xe2\x80\x8c\xe2\xbf\x83", false); } // [B1, C1, C2]
8200test { try toAsciiFail("\xe2\x80\x8c\xef\xb8\x89\xf0\x90\xb9\xb4\xe2\x80\x8d\xef\xbc\x8e\xe2\x80\x8c\xe2\xbf\x83", true); } // [B1]
34338201test { try toUnicodeFail("\xe2\x80\x8c\xef\xb8\x89\xf0\x90\xb9\xb4\xe2\x80\x8d.\xe2\x80\x8c\xe9\xb3\xa5"); } // [B1, C1, C2]
8202test { try toAsciiFail("\xe2\x80\x8c\xef\xb8\x89\xf0\x90\xb9\xb4\xe2\x80\x8d.\xe2\x80\x8c\xe9\xb3\xa5", false); } // [B1, C1, C2]
8203test { try toAsciiFail("\xe2\x80\x8c\xef\xb8\x89\xf0\x90\xb9\xb4\xe2\x80\x8d.\xe2\x80\x8c\xe9\xb3\xa5", true); } // [B1]
34348204test { try toUnicodeFail("xn--so0d.xn--6x6a"); } // [B1]
8205test { try toAsciiFail("xn--so0d.xn--6x6a", false); } // [B1]
8206test { try toAsciiFail("xn--so0d.xn--6x6a", true); } // [B1]
34358207test { try toUnicodeFail("xn--0ugc6024p.xn--0ug1920c"); } // [B1, C1, C2]
8208test { try toAsciiFail("xn--0ugc6024p.xn--0ug1920c", false); } // [B1, C1, C2]
8209test { try toAsciiFail("xn--0ugc6024p.xn--0ug1920c", true); } // [B1, C1, C2]
34368210test { try toUnicodeFail("\xf0\x9f\x8d\xae\xef\xbc\x8e\xe2\x80\x8d\xf3\xa0\x97\x92\xf0\x90\xa6\x81\xf0\x9d\xa8\x9d"); } // [B1, C2, V7]
8211test { try toAsciiFail("\xf0\x9f\x8d\xae\xef\xbc\x8e\xe2\x80\x8d\xf3\xa0\x97\x92\xf0\x90\xa6\x81\xf0\x9d\xa8\x9d", false); } // [B1, C2, V7]
8212test { try toAsciiFail("\xf0\x9f\x8d\xae\xef\xbc\x8e\xe2\x80\x8d\xf3\xa0\x97\x92\xf0\x90\xa6\x81\xf0\x9d\xa8\x9d", true); } // [B1, V7]
34378213test { try toUnicodeFail("\xf0\x9f\x8d\xae.\xe2\x80\x8d\xf3\xa0\x97\x92\xf0\x90\xa6\x81\xf0\x9d\xa8\x9d"); } // [B1, C2, V7]
8214test { try toAsciiFail("\xf0\x9f\x8d\xae.\xe2\x80\x8d\xf3\xa0\x97\x92\xf0\x90\xa6\x81\xf0\x9d\xa8\x9d", false); } // [B1, C2, V7]
8215test { try toAsciiFail("\xf0\x9f\x8d\xae.\xe2\x80\x8d\xf3\xa0\x97\x92\xf0\x90\xa6\x81\xf0\x9d\xa8\x9d", true); } // [B1, V7]
34388216test { try toUnicodeFail("xn--lj8h.xn--ln9ci476aqmr2g"); } // [B1, V7]
8217test { try toAsciiFail("xn--lj8h.xn--ln9ci476aqmr2g", false); } // [B1, V7]
8218test { try toAsciiFail("xn--lj8h.xn--ln9ci476aqmr2g", true); } // [B1, V7]
34398219test { try toUnicodeFail("xn--lj8h.xn--1ug6603gr1pfwq37h"); } // [B1, C2, V7]
8220test { try toAsciiFail("xn--lj8h.xn--1ug6603gr1pfwq37h", false); } // [B1, C2, V7]
8221test { try toAsciiFail("xn--lj8h.xn--1ug6603gr1pfwq37h", true); } // [B1, C2, V7]
34408222test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93\xe2\x80\x8d", "xn--2ib43l.xn--te6h", true); }
34418223test { try toUnicodeFail("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93\xe2\x80\x8d"); } // [B3, C2]
8224test { try toAsciiFail("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93\xe2\x80\x8d", false); } // [B3, C2]
34428225test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5\xe2\x80\x8d", "xn--2ib43l.xn--te6h", true); }
34438226test { try toUnicodeFail("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5\xe2\x80\x8d"); } // [B3, C2]
8227test { try toAsciiFail("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5\xe2\x80\x8d", false); } // [B3, C2]
34448228test { try toUnicodePass("xn--2ib43l.xn--te6h", "\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5"); }
34458229test { try toAsciiPass("xn--2ib43l.xn--te6h", "xn--2ib43l.xn--te6h", false); }
34468230test { try toAsciiPass("xn--2ib43l.xn--te6h", "xn--2ib43l.xn--te6h", true); }
......@@ -3451,91 +8235,263 @@ test { try toUnicodePass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "\xd9\xbd\xe0\
34518235test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "xn--2ib43l.xn--te6h", false); }
34528236test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "xn--2ib43l.xn--te6h", true); }
34538237test { try toUnicodeFail("xn--2ib43l.xn--1ugy711p"); } // [B3, C2]
8238test { try toAsciiFail("xn--2ib43l.xn--1ugy711p", false); } // [B3, C2]
8239test { try toAsciiFail("xn--2ib43l.xn--1ugy711p", true); } // [B3, C2]
34548240test { try toUnicodeFail("\xd9\xa4\xe0\xa9\x8d-\xef\xbc\x8e\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90"); } // [B1, V3, V7]
8241test { try toAsciiFail("\xd9\xa4\xe0\xa9\x8d-\xef\xbc\x8e\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90", false); } // [B1, V3, V7]
8242test { try toAsciiFail("\xd9\xa4\xe0\xa9\x8d-\xef\xbc\x8e\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90", true); } // [B1, V3, V7]
34558243test { try toUnicodeFail("\xd9\xa4\xe0\xa9\x8d-.\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90"); } // [B1, V3, V7]
8244test { try toAsciiFail("\xd9\xa4\xe0\xa9\x8d-.\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90", false); } // [B1, V3, V7]
8245test { try toAsciiFail("\xd9\xa4\xe0\xa9\x8d-.\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90", true); } // [B1, V3, V7]
34568246test { try toUnicodeFail("xn----gqc711a.xn--9jd88234f3qm0b"); } // [B1, V3, V7]
8247test { try toAsciiFail("xn----gqc711a.xn--9jd88234f3qm0b", false); } // [B1, V3, V7]
8248test { try toAsciiFail("xn----gqc711a.xn--9jd88234f3qm0b", true); } // [B1, V3, V7]
34578249test { try toUnicodeFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xef\xbd\xa1\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4\xe2\x89\xae"); } // [B1, C1, V6]
8250test { try toAsciiFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xef\xbd\xa1\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4\xe2\x89\xae", false); } // [B1, C1, V6]
8251test { try toAsciiFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xef\xbd\xa1\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4\xe2\x89\xae", true); } // [B1, V6]
34588252test { try toUnicodeFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xef\xbd\xa1\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4<\xcc\xb8"); } // [B1, C1, V6]
8253test { try toAsciiFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xef\xbd\xa1\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4<\xcc\xb8", false); } // [B1, C1, V6]
8254test { try toAsciiFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xef\xbd\xa1\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4<\xcc\xb8", true); } // [B1, V6]
34598255test { try toUnicodeFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xe3\x80\x82\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4\xe2\x89\xae"); } // [B1, C1, V6]
8256test { try toAsciiFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xe3\x80\x82\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4\xe2\x89\xae", false); } // [B1, C1, V6]
8257test { try toAsciiFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xe3\x80\x82\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4\xe2\x89\xae", true); } // [B1, V6]
34608258test { try toUnicodeFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xe3\x80\x82\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4<\xcc\xb8"); } // [B1, C1, V6]
8259test { try toAsciiFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xe3\x80\x82\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4<\xcc\xb8", false); } // [B1, C1, V6]
8260test { try toAsciiFail("4\xe1\x80\xba-\xf0\x90\xb9\xb8\xe3\x80\x82\xea\xa8\xa9\xe2\x80\x8c\xf0\x90\xb9\xb4<\xcc\xb8", true); } // [B1, V6]
34618261test { try toUnicodeFail("xn--4--e4j7831r.xn--gdh8754cz40c"); } // [B1, V6]
8262test { try toAsciiFail("xn--4--e4j7831r.xn--gdh8754cz40c", false); } // [B1, V6]
8263test { try toAsciiFail("xn--4--e4j7831r.xn--gdh8754cz40c", true); } // [B1, V6]
34628264test { try toUnicodeFail("xn--4--e4j7831r.xn--0ugy6gjy5sl3ud"); } // [B1, C1, V6]
8265test { try toAsciiFail("xn--4--e4j7831r.xn--0ugy6gjy5sl3ud", false); } // [B1, C1, V6]
8266test { try toAsciiFail("xn--4--e4j7831r.xn--0ugy6gjy5sl3ud", true); } // [B1, C1, V6]
34638267test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xef\xbe\xa0\xe0\xbe\x84\xe0\xbe\x96"); } // [C1, V6]
8268test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xef\xbe\xa0\xe0\xbe\x84\xe0\xbe\x96", false); } // [C1, V6]
8269test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xef\xbe\xa0\xe0\xbe\x84\xe0\xbe\x96", true); } // [V6, A4_2]
34648270test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe1\x85\xa0\xe0\xbe\x84\xe0\xbe\x96"); } // [C1, V6]
8271test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe1\x85\xa0\xe0\xbe\x84\xe0\xbe\x96", false); } // [C1, V6]
8272test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe1\x85\xa0\xe0\xbe\x84\xe0\xbe\x96", true); } // [V6, A4_2]
34658273test { try toUnicodeFail(".xn--3ed0b"); } // [V6, X4_2]
8274test { try toAsciiFail(".xn--3ed0b", false); } // [V6, A4_2]
8275test { try toAsciiFail(".xn--3ed0b", true); } // [V6, A4_2]
34668276test { try toUnicodeFail("xn--0ug.xn--3ed0b"); } // [C1, V6]
8277test { try toAsciiFail("xn--0ug.xn--3ed0b", false); } // [C1, V6]
8278test { try toAsciiFail("xn--0ug.xn--3ed0b", true); } // [C1, V6]
34678279test { try toUnicodeFail(".xn--3ed0b20h"); } // [V7, X4_2]
8280test { try toAsciiFail(".xn--3ed0b20h", false); } // [V7, A4_2]
8281test { try toAsciiFail(".xn--3ed0b20h", true); } // [V7, A4_2]
34688282test { try toUnicodeFail("xn--0ug.xn--3ed0b20h"); } // [C1, V7]
8283test { try toAsciiFail("xn--0ug.xn--3ed0b20h", false); } // [C1, V7]
8284test { try toAsciiFail("xn--0ug.xn--3ed0b20h", true); } // [C1, V7]
34698285test { try toUnicodeFail(".xn--3ed0by082k"); } // [V7, X4_2]
8286test { try toAsciiFail(".xn--3ed0by082k", false); } // [V7, A4_2]
8287test { try toAsciiFail(".xn--3ed0by082k", true); } // [V7, A4_2]
34708288test { try toUnicodeFail("xn--0ug.xn--3ed0by082k"); } // [C1, V7]
8289test { try toAsciiFail("xn--0ug.xn--3ed0by082k", false); } // [C1, V7]
8290test { try toAsciiFail("xn--0ug.xn--3ed0by082k", true); } // [C1, V7]
34718291test { try toUnicodeFail("\xe2\x89\xaf\xf2\x8d\x98\x85\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7]
8292test { try toAsciiFail("\xe2\x89\xaf\xf2\x8d\x98\x85\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b", false); } // [C2, V7]
8293test { try toAsciiFail("\xe2\x89\xaf\xf2\x8d\x98\x85\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b", true); } // [V7]
34728294test { try toUnicodeFail(">\xcc\xb8\xf2\x8d\x98\x85\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7]
8295test { try toAsciiFail(">\xcc\xb8\xf2\x8d\x98\x85\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b", false); } // [C2, V7]
8296test { try toAsciiFail(">\xcc\xb8\xf2\x8d\x98\x85\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b", true); } // [V7]
34738297test { try toUnicodeFail("\xe2\x89\xaf\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7]
8298test { try toAsciiFail("\xe2\x89\xaf\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b", false); } // [C2, V7]
8299test { try toAsciiFail("\xe2\x89\xaf\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b", true); } // [V7]
34748300test { try toUnicodeFail(">\xcc\xb8\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7]
8301test { try toAsciiFail(">\xcc\xb8\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b", false); } // [C2, V7]
8302test { try toAsciiFail(">\xcc\xb8\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b", true); } // [V7]
34758303test { try toUnicodeFail("xn--hdh84488f.xn--xy7cw2886b"); } // [V7]
8304test { try toAsciiFail("xn--hdh84488f.xn--xy7cw2886b", false); } // [V7]
8305test { try toAsciiFail("xn--hdh84488f.xn--xy7cw2886b", true); } // [V7]
34768306test { try toUnicodeFail("xn--hdh84488f.xn--1ug8099fbjp4e"); } // [C2, V7]
8307test { try toAsciiFail("xn--hdh84488f.xn--1ug8099fbjp4e", false); } // [C2, V7]
8308test { try toAsciiFail("xn--hdh84488f.xn--1ug8099fbjp4e", true); } // [C2, V7]
34778309test { try toUnicodeFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2]
8310test { try toAsciiFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab", false); } // [B1, B2]
8311test { try toAsciiFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab", true); } // [B1, B2]
34788312test { try toUnicodeFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2]
8313test { try toAsciiFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab", false); } // [B1, B2]
8314test { try toAsciiFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab", true); } // [B1, B2]
34798315test { try toUnicodeFail("\xd9\x81SS\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2]
8316test { try toAsciiFail("\xd9\x81SS\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab", false); } // [B1, B2]
8317test { try toAsciiFail("\xd9\x81SS\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab", true); } // [B1, B2]
34808318test { try toUnicodeFail("\xd9\x81ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2]
8319test { try toAsciiFail("\xd9\x81ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab", false); } // [B1, B2]
8320test { try toAsciiFail("\xd9\x81ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab", true); } // [B1, B2]
34818321test { try toUnicodeFail("xn--ss-jvd2339x.xn--7-mm5i"); } // [B1, B2]
8322test { try toAsciiFail("xn--ss-jvd2339x.xn--7-mm5i", false); } // [B1, B2]
8323test { try toAsciiFail("xn--ss-jvd2339x.xn--7-mm5i", true); } // [B1, B2]
34828324test { try toUnicodeFail("xn--zca96ys96y.xn--7-mm5i"); } // [B1, B2]
8325test { try toAsciiFail("xn--zca96ys96y.xn--7-mm5i", false); } // [B1, B2]
8326test { try toAsciiFail("xn--zca96ys96y.xn--7-mm5i", true); } // [B1, B2]
34838327test { try toUnicodeFail("\xd9\x81SS\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2]
8328test { try toAsciiFail("\xd9\x81SS\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab", false); } // [B1, B2]
8329test { try toAsciiFail("\xd9\x81SS\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab", true); } // [B1, B2]
34848330test { try toUnicodeFail("\xd9\x81ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2]
8331test { try toAsciiFail("\xd9\x81ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab", false); } // [B1, B2]
8332test { try toAsciiFail("\xd9\x81ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab", true); } // [B1, B2]
34858333test { try toUnicodeFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2]
8334test { try toAsciiFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab", false); } // [B1, B2]
8335test { try toAsciiFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab", true); } // [B1, B2]
34868336test { try toUnicodeFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2]
8337test { try toAsciiFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab", false); } // [B1, B2]
8338test { try toAsciiFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab", true); } // [B1, B2]
34878339test { try toUnicodeFail("\xc3\x9f\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2"); } // [B2, B5, B6, V7]
8340test { try toAsciiFail("\xc3\x9f\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2", false); } // [B2, B5, B6, V7]
8341test { try toAsciiFail("\xc3\x9f\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2", true); } // [B2, B5, B6, V7]
34888342test { try toUnicodeFail("SS\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2"); } // [B2, B5, B6, V7]
8343test { try toAsciiFail("SS\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2", false); } // [B2, B5, B6, V7]
8344test { try toAsciiFail("SS\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2", true); } // [B2, B5, B6, V7]
34898345test { try toUnicodeFail("ss\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2"); } // [B2, B5, B6, V7]
8346test { try toAsciiFail("ss\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2", false); } // [B2, B5, B6, V7]
8347test { try toAsciiFail("ss\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2", true); } // [B2, B5, B6, V7]
34908348test { try toUnicodeFail("Ss\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2"); } // [B2, B5, B6, V7]
8349test { try toAsciiFail("Ss\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2", false); } // [B2, B5, B6, V7]
8350test { try toAsciiFail("Ss\xde\xac\xde\xa7\xe0\xa2\xb1\xe3\x80\x82\xf0\x90\xad\x81\xf4\x85\xae\x99\xf0\x90\xb9\xb2", true); } // [B2, B5, B6, V7]
34918351test { try toUnicodeFail("xn--ss-9qet02k.xn--e09co8cr9861c"); } // [B2, B5, B6, V7]
8352test { try toAsciiFail("xn--ss-9qet02k.xn--e09co8cr9861c", false); } // [B2, B5, B6, V7]
8353test { try toAsciiFail("xn--ss-9qet02k.xn--e09co8cr9861c", true); } // [B2, B5, B6, V7]
34928354test { try toUnicodeFail("xn--zca685aoa95h.xn--e09co8cr9861c"); } // [B2, B5, B6, V7]
8355test { try toAsciiFail("xn--zca685aoa95h.xn--e09co8cr9861c", false); } // [B2, B5, B6, V7]
8356test { try toAsciiFail("xn--zca685aoa95h.xn--e09co8cr9861c", true); } // [B2, B5, B6, V7]
34938357test { try toUnicodeFail("-\xef\xbd\xa1\xf3\xa0\x89\x97\xe2\x92\x8c\xf0\x9e\xaf\x9b"); } // [B1, V3, V7]
8358test { try toAsciiFail("-\xef\xbd\xa1\xf3\xa0\x89\x97\xe2\x92\x8c\xf0\x9e\xaf\x9b", false); } // [B1, V3, V7]
8359test { try toAsciiFail("-\xef\xbd\xa1\xf3\xa0\x89\x97\xe2\x92\x8c\xf0\x9e\xaf\x9b", true); } // [B1, V3, V7]
34948360test { try toUnicodeFail("-\xe3\x80\x82\xf3\xa0\x89\x975.\xf0\x9e\xaf\x9b"); } // [B1, V3, V7]
8361test { try toAsciiFail("-\xe3\x80\x82\xf3\xa0\x89\x975.\xf0\x9e\xaf\x9b", false); } // [B1, V3, V7]
8362test { try toAsciiFail("-\xe3\x80\x82\xf3\xa0\x89\x975.\xf0\x9e\xaf\x9b", true); } // [B1, V3, V7]
34958363test { try toUnicodeFail("-.xn--5-zz21m.xn--6x6h"); } // [B1, V3, V7]
8364test { try toAsciiFail("-.xn--5-zz21m.xn--6x6h", false); } // [B1, V3, V7]
8365test { try toAsciiFail("-.xn--5-zz21m.xn--6x6h", true); } // [B1, V3, V7]
34968366test { try toUnicodeFail("-.xn--xsh6367n1bi3e"); } // [B1, V3, V7]
8367test { try toAsciiFail("-.xn--xsh6367n1bi3e", false); } // [B1, V3, V7]
8368test { try toAsciiFail("-.xn--xsh6367n1bi3e", true); } // [B1, V3, V7]
34978369test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7]
8370test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab", false); } // [B1, V3, V7]
8371test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab", true); } // [B1, V3, V7]
34988372test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7]
8373test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab", false); } // [B1, V3, V7]
8374test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab", true); } // [B1, V3, V7]
34998375test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7]
8376test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x82.-\xe2\x89\xae\xd8\xae\xd8\xac", false); } // [B1, V3, V7]
8377test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x82.-\xe2\x89\xae\xd8\xae\xd8\xac", true); } // [B1, V3, V7]
35008378test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7]
8379test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x82.-<\xcc\xb8\xd8\xae\xd8\xac", false); } // [B1, V3, V7]
8380test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x82.-<\xcc\xb8\xd8\xae\xd8\xac", true); } // [B1, V3, V7]
35018381test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7]
8382test { try toAsciiFail("\xf0\xbc\x8e\x8f\xce\xa3.-<\xcc\xb8\xd8\xae\xd8\xac", false); } // [B1, V3, V7]
8383test { try toAsciiFail("\xf0\xbc\x8e\x8f\xce\xa3.-<\xcc\xb8\xd8\xae\xd8\xac", true); } // [B1, V3, V7]
35028384test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7]
8385test { try toAsciiFail("\xf0\xbc\x8e\x8f\xce\xa3.-\xe2\x89\xae\xd8\xae\xd8\xac", false); } // [B1, V3, V7]
8386test { try toAsciiFail("\xf0\xbc\x8e\x8f\xce\xa3.-\xe2\x89\xae\xd8\xae\xd8\xac", true); } // [B1, V3, V7]
35038387test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7]
8388test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x83.-\xe2\x89\xae\xd8\xae\xd8\xac", false); } // [B1, V3, V7]
8389test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x83.-\xe2\x89\xae\xd8\xae\xd8\xac", true); } // [B1, V3, V7]
35048390test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7]
8391test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x83.-<\xcc\xb8\xd8\xae\xd8\xac", false); } // [B1, V3, V7]
8392test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x83.-<\xcc\xb8\xd8\xae\xd8\xac", true); } // [B1, V3, V7]
35058393test { try toUnicodeFail("xn--4xa92520c.xn----9mcf1400a"); } // [B1, V3, V7]
8394test { try toAsciiFail("xn--4xa92520c.xn----9mcf1400a", false); } // [B1, V3, V7]
8395test { try toAsciiFail("xn--4xa92520c.xn----9mcf1400a", true); } // [B1, V3, V7]
35068396test { try toUnicodeFail("xn--3xa13520c.xn----9mcf1400a"); } // [B1, V3, V7]
8397test { try toAsciiFail("xn--3xa13520c.xn----9mcf1400a", false); } // [B1, V3, V7]
8398test { try toAsciiFail("xn--3xa13520c.xn----9mcf1400a", true); } // [B1, V3, V7]
35078399test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7]
8400test { try toAsciiFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab", false); } // [B1, V3, V7]
8401test { try toAsciiFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab", true); } // [B1, V3, V7]
35088402test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7]
8403test { try toAsciiFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab", false); } // [B1, V3, V7]
8404test { try toAsciiFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab", true); } // [B1, V3, V7]
35098405test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7]
8406test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab", false); } // [B1, V3, V7]
8407test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab", true); } // [B1, V3, V7]
35108408test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7]
8409test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab", false); } // [B1, V3, V7]
8410test { try toAsciiFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab", true); } // [B1, V3, V7]
35118411test { try toUnicodeFail("\xea\xa1\x97\xe0\xa2\xb8\xdc\x99\xef\xbc\x8e\xf1\x94\xa4\x94\xf3\xa0\x9b\x99\xe0\xb1\x8d\xef\xb0\xbe"); } // [B5, B6, V7]
8412test { try toAsciiFail("\xea\xa1\x97\xe0\xa2\xb8\xdc\x99\xef\xbc\x8e\xf1\x94\xa4\x94\xf3\xa0\x9b\x99\xe0\xb1\x8d\xef\xb0\xbe", false); } // [B5, B6, V7]
8413test { try toAsciiFail("\xea\xa1\x97\xe0\xa2\xb8\xdc\x99\xef\xbc\x8e\xf1\x94\xa4\x94\xf3\xa0\x9b\x99\xe0\xb1\x8d\xef\xb0\xbe", true); } // [B5, B6, V7]
35128414test { try toUnicodeFail("\xea\xa1\x97\xe0\xa2\xb8\xdc\x99.\xf1\x94\xa4\x94\xf3\xa0\x9b\x99\xe0\xb1\x8d\xd9\x83\xd9\x8a"); } // [B5, B6, V7]
8415test { try toAsciiFail("\xea\xa1\x97\xe0\xa2\xb8\xdc\x99.\xf1\x94\xa4\x94\xf3\xa0\x9b\x99\xe0\xb1\x8d\xd9\x83\xd9\x8a", false); } // [B5, B6, V7]
8416test { try toAsciiFail("\xea\xa1\x97\xe0\xa2\xb8\xdc\x99.\xf1\x94\xa4\x94\xf3\xa0\x9b\x99\xe0\xb1\x8d\xd9\x83\xd9\x8a", true); } // [B5, B6, V7]
35138417test { try toUnicodeFail("xn--jnb34fs003a.xn--fhbo927bk128mpi24d"); } // [B5, B6, V7]
8418test { try toAsciiFail("xn--jnb34fs003a.xn--fhbo927bk128mpi24d", false); } // [B5, B6, V7]
8419test { try toAsciiFail("xn--jnb34fs003a.xn--fhbo927bk128mpi24d", true); } // [B5, B6, V7]
35148420test { try toUnicodeFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\x8c\xf0\x90\xab\xad\xe3\x80\x82\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83"); } // [B1]
8421test { try toAsciiFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\x8c\xf0\x90\xab\xad\xe3\x80\x82\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83", false); } // [B1]
8422test { try toAsciiFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\x8c\xf0\x90\xab\xad\xe3\x80\x82\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83", true); } // [B1]
35158423test { try toUnicodeFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\xae\xf0\x90\xab\xad\xe3\x80\x82\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83"); } // [B1]
8424test { try toAsciiFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\xae\xf0\x90\xab\xad\xe3\x80\x82\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83", false); } // [B1]
8425test { try toAsciiFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\xae\xf0\x90\xab\xad\xe3\x80\x82\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83", true); } // [B1]
35168426test { try toUnicodeFail("xn--dzb5191kezbrw47a.xn--p4e3841jz9tf"); } // [B1]
8427test { try toAsciiFail("xn--dzb5191kezbrw47a.xn--p4e3841jz9tf", false); } // [B1]
8428test { try toAsciiFail("xn--dzb5191kezbrw47a.xn--p4e3841jz9tf", true); } // [B1]
35178429test { try toUnicodeFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\xae\xf0\x90\xab\xad.\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83"); } // [B1]
8430test { try toAsciiFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\xae\xf0\x90\xab\xad.\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83", false); } // [B1]
8431test { try toAsciiFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\xae\xf0\x90\xab\xad.\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83", true); } // [B1]
35188432test { try toUnicodeFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\x8c\xf0\x90\xab\xad.\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83"); } // [B1]
8433test { try toAsciiFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\x8c\xf0\x90\xab\xad.\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83", false); } // [B1]
8434test { try toAsciiFail("\xf0\x90\xa0\xb0\xe0\xa2\xb7\xf0\x9e\xa4\x8c\xf0\x90\xab\xad.\xf0\x90\x8b\xa6\xe1\x9f\x8d\xf0\x9d\xa9\x83", true); } // [B1]
35198435test { try toUnicodeFail("\xe2\x82\x82\xe3\x98\xb7--\xe3\x80\x82\xdb\x93\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf"); } // [B1, C1, V2, V3]
8436test { try toAsciiFail("\xe2\x82\x82\xe3\x98\xb7--\xe3\x80\x82\xdb\x93\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf", false); } // [B1, C1, V2, V3]
8437test { try toAsciiFail("\xe2\x82\x82\xe3\x98\xb7--\xe3\x80\x82\xdb\x93\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf", true); } // [B1, V2, V3]
35208438test { try toUnicodeFail("\xe2\x82\x82\xe3\x98\xb7--\xe3\x80\x82\xdb\x92\xd9\x94\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf"); } // [B1, C1, V2, V3]
8439test { try toAsciiFail("\xe2\x82\x82\xe3\x98\xb7--\xe3\x80\x82\xdb\x92\xd9\x94\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf", false); } // [B1, C1, V2, V3]
8440test { try toAsciiFail("\xe2\x82\x82\xe3\x98\xb7--\xe3\x80\x82\xdb\x92\xd9\x94\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf", true); } // [B1, V2, V3]
35218441test { try toUnicodeFail("2\xe3\x98\xb7--\xe3\x80\x82\xdb\x93\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf"); } // [B1, C1, V2, V3]
8442test { try toAsciiFail("2\xe3\x98\xb7--\xe3\x80\x82\xdb\x93\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf", false); } // [B1, C1, V2, V3]
8443test { try toAsciiFail("2\xe3\x98\xb7--\xe3\x80\x82\xdb\x93\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf", true); } // [B1, V2, V3]
35228444test { try toUnicodeFail("2\xe3\x98\xb7--\xe3\x80\x82\xdb\x92\xd9\x94\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf"); } // [B1, C1, V2, V3]
8445test { try toAsciiFail("2\xe3\x98\xb7--\xe3\x80\x82\xdb\x92\xd9\x94\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf", false); } // [B1, C1, V2, V3]
8446test { try toAsciiFail("2\xe3\x98\xb7--\xe3\x80\x82\xdb\x92\xd9\x94\xe2\x80\x8c\xf0\x90\xab\x86\xf0\x91\x96\xbf", true); } // [B1, V2, V3]
35238447test { try toUnicodeFail("xn--2---u58b.xn--jlb8024k14g"); } // [B1, V2, V3]
8448test { try toAsciiFail("xn--2---u58b.xn--jlb8024k14g", false); } // [B1, V2, V3]
8449test { try toAsciiFail("xn--2---u58b.xn--jlb8024k14g", true); } // [B1, V2, V3]
35248450test { try toUnicodeFail("xn--2---u58b.xn--jlb820ku99nbgj"); } // [B1, C1, V2, V3]
8451test { try toAsciiFail("xn--2---u58b.xn--jlb820ku99nbgj", false); } // [B1, C1, V2, V3]
8452test { try toAsciiFail("xn--2---u58b.xn--jlb820ku99nbgj", true); } // [B1, C1, V2, V3]
35258453test { try toUnicodeFail("-\xf0\x98\x8a\xbb\xef\xbc\x8e\xe1\xa1\xae\xd8\xad-"); } // [B1, B5, B6, V3]
8454test { try toAsciiFail("-\xf0\x98\x8a\xbb\xef\xbc\x8e\xe1\xa1\xae\xd8\xad-", false); } // [B1, B5, B6, V3]
8455test { try toAsciiFail("-\xf0\x98\x8a\xbb\xef\xbc\x8e\xe1\xa1\xae\xd8\xad-", true); } // [B1, B5, B6, V3]
35268456test { try toUnicodeFail("-\xf0\x98\x8a\xbb.\xe1\xa1\xae\xd8\xad-"); } // [B1, B5, B6, V3]
8457test { try toAsciiFail("-\xf0\x98\x8a\xbb.\xe1\xa1\xae\xd8\xad-", false); } // [B1, B5, B6, V3]
8458test { try toAsciiFail("-\xf0\x98\x8a\xbb.\xe1\xa1\xae\xd8\xad-", true); } // [B1, B5, B6, V3]
35278459test { try toUnicodeFail("xn----bp5n.xn----bnc231l"); } // [B1, B5, B6, V3]
8460test { try toAsciiFail("xn----bp5n.xn----bnc231l", false); } // [B1, B5, B6, V3]
8461test { try toAsciiFail("xn----bp5n.xn----bnc231l", true); } // [B1, B5, B6, V3]
35288462test { try toUnicodeFail("\xe2\x80\x8c-\xc3\x9f\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
8463test { try toAsciiFail("\xe2\x80\x8c-\xc3\x9f\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", false); } // [B1, B5, B6, C1]
8464test { try toAsciiFail("\xe2\x80\x8c-\xc3\x9f\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", true); } // [B1, B5, B6, V3]
35298465test { try toUnicodeFail("\xe2\x80\x8c-\xc3\x9f\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
8466test { try toAsciiFail("\xe2\x80\x8c-\xc3\x9f\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", false); } // [B1, B5, B6, C1]
8467test { try toAsciiFail("\xe2\x80\x8c-\xc3\x9f\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", true); } // [B1, B5, B6, V3]
35308468test { try toUnicodeFail("\xe2\x80\x8c-SS\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
8469test { try toAsciiFail("\xe2\x80\x8c-SS\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", false); } // [B1, B5, B6, C1]
8470test { try toAsciiFail("\xe2\x80\x8c-SS\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", true); } // [B1, B5, B6, V3]
35318471test { try toUnicodeFail("\xe2\x80\x8c-ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
8472test { try toAsciiFail("\xe2\x80\x8c-ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", false); } // [B1, B5, B6, C1]
8473test { try toAsciiFail("\xe2\x80\x8c-ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", true); } // [B1, B5, B6, V3]
35328474test { try toUnicodeFail("\xe2\x80\x8c-Ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
8475test { try toAsciiFail("\xe2\x80\x8c-Ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", false); } // [B1, B5, B6, C1]
8476test { try toAsciiFail("\xe2\x80\x8c-Ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", true); } // [B1, B5, B6, V3]
35338477test { try toUnicodeFail("-ss.xn--bhb925glx3p"); } // [B1, B5, B6, V3]
8478test { try toAsciiFail("-ss.xn--bhb925glx3p", false); } // [B1, B5, B6, V3]
8479test { try toAsciiFail("-ss.xn--bhb925glx3p", true); } // [B1, B5, B6, V3]
35348480test { try toUnicodeFail("xn---ss-8m0a.xn--bhb925glx3p"); } // [B1, B5, B6, C1]
8481test { try toAsciiFail("xn---ss-8m0a.xn--bhb925glx3p", false); } // [B1, B5, B6, C1]
8482test { try toAsciiFail("xn---ss-8m0a.xn--bhb925glx3p", true); } // [B1, B5, B6, C1]
35358483test { try toUnicodeFail("xn----qfa550v.xn--bhb925glx3p"); } // [B1, B5, B6, C1]
8484test { try toAsciiFail("xn----qfa550v.xn--bhb925glx3p", false); } // [B1, B5, B6, C1]
8485test { try toAsciiFail("xn----qfa550v.xn--bhb925glx3p", true); } // [B1, B5, B6, C1]
35368486test { try toUnicodeFail("\xe2\x80\x8c-SS\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
8487test { try toAsciiFail("\xe2\x80\x8c-SS\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", false); } // [B1, B5, B6, C1]
8488test { try toAsciiFail("\xe2\x80\x8c-SS\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", true); } // [B1, B5, B6, V3]
35378489test { try toUnicodeFail("\xe2\x80\x8c-ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
8490test { try toAsciiFail("\xe2\x80\x8c-ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", false); } // [B1, B5, B6, C1]
8491test { try toAsciiFail("\xe2\x80\x8c-ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", true); } // [B1, B5, B6, V3]
35388492test { try toUnicodeFail("\xe2\x80\x8c-Ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
8493test { try toAsciiFail("\xe2\x80\x8c-Ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", false); } // [B1, B5, B6, C1]
8494test { try toAsciiFail("\xe2\x80\x8c-Ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf", true); } // [B1, B5, B6, V3]
35398495test { try toUnicodePass("\xea\xa7\x90\xd3\x80\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6.\xeb\x88\xb5"); }
35408496test { try toAsciiPass("\xea\xa7\x90\xd3\x80\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", false); }
35418497test { try toAsciiPass("\xea\xa7\x90\xd3\x80\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", true); }
......@@ -3564,173 +8520,509 @@ test { try toUnicodePass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x
35648520test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", false); }
35658521test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", true); }
35668522test { try toUnicodeFail("xn--d5a07sn4u297k.xn--2e1b"); } // [V7]
8523test { try toAsciiFail("xn--d5a07sn4u297k.xn--2e1b", false); } // [V7]
8524test { try toAsciiFail("xn--d5a07sn4u297k.xn--2e1b", true); } // [V7]
35678525test { try toUnicodeFail("\xea\xa3\xaa\xef\xbd\xa1\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97"); } // [V6, V7]
8526test { try toAsciiFail("\xea\xa3\xaa\xef\xbd\xa1\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97", false); } // [V6, V7]
8527test { try toAsciiFail("\xea\xa3\xaa\xef\xbd\xa1\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97", true); } // [V6, V7]
35688528test { try toUnicodeFail("\xea\xa3\xaa\xe3\x80\x82\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97"); } // [V6, V7]
8529test { try toAsciiFail("\xea\xa3\xaa\xe3\x80\x82\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97", false); } // [V6, V7]
8530test { try toAsciiFail("\xea\xa3\xaa\xe3\x80\x82\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97", true); } // [V6, V7]
35698531test { try toUnicodeFail("xn--3g9a.xn--ud1dz07k"); } // [V6, V7]
8532test { try toAsciiFail("xn--3g9a.xn--ud1dz07k", false); } // [V6, V7]
8533test { try toAsciiFail("xn--3g9a.xn--ud1dz07k", true); } // [V6, V7]
35708534test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe2\xbe\x87"); } // [V7]
8535test { try toAsciiFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe2\xbe\x87", false); } // [V7]
8536test { try toAsciiFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe2\xbe\x87", true); } // [V7]
35718537test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe2\xbe\x87"); } // [V7]
8538test { try toAsciiFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe2\xbe\x87", false); } // [V7]
8539test { try toAsciiFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe2\xbe\x87", true); } // [V7]
35728540test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe8\x88\x9b"); } // [V7]
8541test { try toAsciiFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe8\x88\x9b", false); } // [V7]
8542test { try toAsciiFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe8\x88\x9b", true); } // [V7]
35738543test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe8\x88\x9b"); } // [V7]
8544test { try toAsciiFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe8\x88\x9b", false); } // [V7]
8545test { try toAsciiFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe8\x88\x9b", true); } // [V7]
35748546test { try toUnicodeFail("xn--3e2d79770c.xn--hdh0088abyy1c"); } // [V7]
8547test { try toAsciiFail("xn--3e2d79770c.xn--hdh0088abyy1c", false); } // [V7]
8548test { try toAsciiFail("xn--3e2d79770c.xn--hdh0088abyy1c", true); } // [V7]
35758549test { try toUnicodeFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c\xef\xbc\x8e\xe2\x80\x8d\xe2\x80\x8c"); } // [B1, B3, C1, C2]
8550test { try toAsciiFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c\xef\xbc\x8e\xe2\x80\x8d\xe2\x80\x8c", false); } // [B1, B3, C1, C2]
8551test { try toAsciiFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c\xef\xbc\x8e\xe2\x80\x8d\xe2\x80\x8c", true); } // [A4_2]
35768552test { try toUnicodeFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c.\xe2\x80\x8d\xe2\x80\x8c"); } // [B1, B3, C1, C2]
8553test { try toAsciiFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c.\xe2\x80\x8d\xe2\x80\x8c", false); } // [B1, B3, C1, C2]
8554test { try toAsciiFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c.\xe2\x80\x8d\xe2\x80\x8c", true); } // [A4_2]
35778555test { try toUnicodePass("xn--9hb7344k.", "\xf0\x90\xab\x87\xd9\xa1."); }
8556test { try toAsciiFail("xn--9hb7344k.", false); } // [A4_2]
8557test { try toAsciiFail("xn--9hb7344k.", true); } // [A4_2]
35788558test { try toUnicodePass("\xf0\x90\xab\x87\xd9\xa1.", "\xf0\x90\xab\x87\xd9\xa1."); }
8559test { try toAsciiFail("\xf0\x90\xab\x87\xd9\xa1.", false); } // [A4_2]
8560test { try toAsciiFail("\xf0\x90\xab\x87\xd9\xa1.", true); } // [A4_2]
35798561test { try toUnicodeFail("xn--9hb652kv99n.xn--0ugb"); } // [B1, B3, C1, C2]
8562test { try toAsciiFail("xn--9hb652kv99n.xn--0ugb", false); } // [B1, B3, C1, C2]
8563test { try toAsciiFail("xn--9hb652kv99n.xn--0ugb", true); } // [B1, B3, C1, C2]
35808564test { try toUnicodeFail("\xf1\xa1\x85\x88\xe7\xa0\xaa\xe2\x89\xaf\xe1\xa2\x91\xef\xbd\xa1\xe2\x89\xaf\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c"); } // [C1, V7]
8565test { try toAsciiFail("\xf1\xa1\x85\x88\xe7\xa0\xaa\xe2\x89\xaf\xe1\xa2\x91\xef\xbd\xa1\xe2\x89\xaf\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c", false); } // [C1, V7]
8566test { try toAsciiFail("\xf1\xa1\x85\x88\xe7\xa0\xaa\xe2\x89\xaf\xe1\xa2\x91\xef\xbd\xa1\xe2\x89\xaf\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c", true); } // [V7]
35818567test { try toUnicodeFail("\xf1\xa1\x85\x88\xe7\xa0\xaa>\xcc\xb8\xe1\xa2\x91\xef\xbd\xa1>\xcc\xb8\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c"); } // [C1, V7]
8568test { try toAsciiFail("\xf1\xa1\x85\x88\xe7\xa0\xaa>\xcc\xb8\xe1\xa2\x91\xef\xbd\xa1>\xcc\xb8\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c", false); } // [C1, V7]
8569test { try toAsciiFail("\xf1\xa1\x85\x88\xe7\xa0\xaa>\xcc\xb8\xe1\xa2\x91\xef\xbd\xa1>\xcc\xb8\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c", true); } // [V7]
35828570test { try toUnicodeFail("\xf1\xa1\x85\x88\xe7\xa0\xaa\xe2\x89\xaf\xe1\xa2\x91\xe3\x80\x82\xe2\x89\xaf\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c"); } // [C1, V7]
8571test { try toAsciiFail("\xf1\xa1\x85\x88\xe7\xa0\xaa\xe2\x89\xaf\xe1\xa2\x91\xe3\x80\x82\xe2\x89\xaf\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c", false); } // [C1, V7]
8572test { try toAsciiFail("\xf1\xa1\x85\x88\xe7\xa0\xaa\xe2\x89\xaf\xe1\xa2\x91\xe3\x80\x82\xe2\x89\xaf\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c", true); } // [V7]
35838573test { try toUnicodeFail("\xf1\xa1\x85\x88\xe7\xa0\xaa>\xcc\xb8\xe1\xa2\x91\xe3\x80\x82>\xcc\xb8\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c"); } // [C1, V7]
8574test { try toAsciiFail("\xf1\xa1\x85\x88\xe7\xa0\xaa>\xcc\xb8\xe1\xa2\x91\xe3\x80\x82>\xcc\xb8\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c", false); } // [C1, V7]
8575test { try toAsciiFail("\xf1\xa1\x85\x88\xe7\xa0\xaa>\xcc\xb8\xe1\xa2\x91\xe3\x80\x82>\xcc\xb8\xf0\x9d\xa9\x9a\xf2\x93\xb4\x94\xe2\x80\x8c", true); } // [V7]
35848576test { try toUnicodeFail("xn--bbf561cf95e57y3e.xn--hdh0834o7mj6b"); } // [V7]
8577test { try toAsciiFail("xn--bbf561cf95e57y3e.xn--hdh0834o7mj6b", false); } // [V7]
8578test { try toAsciiFail("xn--bbf561cf95e57y3e.xn--hdh0834o7mj6b", true); } // [V7]
35858579test { try toUnicodeFail("xn--bbf561cf95e57y3e.xn--0ugz6gc910ejro8c"); } // [C1, V7]
8580test { try toAsciiFail("xn--bbf561cf95e57y3e.xn--0ugz6gc910ejro8c", false); } // [C1, V7]
8581test { try toAsciiFail("xn--bbf561cf95e57y3e.xn--0ugz6gc910ejro8c", true); } // [C1, V7]
35868582test { try toUnicodeFail("\xe1\x83\x85.\xf0\x91\x84\xb3\xe3\x8a\xb8"); } // [V6]
8583test { try toAsciiFail("\xe1\x83\x85.\xf0\x91\x84\xb3\xe3\x8a\xb8", false); } // [V6]
8584test { try toAsciiFail("\xe1\x83\x85.\xf0\x91\x84\xb3\xe3\x8a\xb8", true); } // [V6]
35878585test { try toUnicodeFail("\xe1\x83\x85.\xf0\x91\x84\xb343"); } // [V6]
8586test { try toAsciiFail("\xe1\x83\x85.\xf0\x91\x84\xb343", false); } // [V6]
8587test { try toAsciiFail("\xe1\x83\x85.\xf0\x91\x84\xb343", true); } // [V6]
35888588test { try toUnicodeFail("\xe2\xb4\xa5.\xf0\x91\x84\xb343"); } // [V6]
8589test { try toAsciiFail("\xe2\xb4\xa5.\xf0\x91\x84\xb343", false); } // [V6]
8590test { try toAsciiFail("\xe2\xb4\xa5.\xf0\x91\x84\xb343", true); } // [V6]
35898591test { try toUnicodeFail("xn--tlj.xn--43-274o"); } // [V6]
8592test { try toAsciiFail("xn--tlj.xn--43-274o", false); } // [V6]
8593test { try toAsciiFail("xn--tlj.xn--43-274o", true); } // [V6]
35908594test { try toUnicodeFail("\xe2\xb4\xa5.\xf0\x91\x84\xb3\xe3\x8a\xb8"); } // [V6]
8595test { try toAsciiFail("\xe2\xb4\xa5.\xf0\x91\x84\xb3\xe3\x8a\xb8", false); } // [V6]
8596test { try toAsciiFail("\xe2\xb4\xa5.\xf0\x91\x84\xb3\xe3\x8a\xb8", true); } // [V6]
35918597test { try toUnicodeFail("xn--9nd.xn--43-274o"); } // [V6, V7]
8598test { try toAsciiFail("xn--9nd.xn--43-274o", false); } // [V6, V7]
8599test { try toAsciiFail("xn--9nd.xn--43-274o", true); } // [V6, V7]
35928600test { try toUnicodeFail("\xf0\x9d\x9f\x8e\xd9\xa3\xe3\x80\x82\xe1\x82\xb2\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0"); } // [B1, B5, B6]
8601test { try toAsciiFail("\xf0\x9d\x9f\x8e\xd9\xa3\xe3\x80\x82\xe1\x82\xb2\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0", false); } // [B1, B5, B6]
8602test { try toAsciiFail("\xf0\x9d\x9f\x8e\xd9\xa3\xe3\x80\x82\xe1\x82\xb2\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0", true); } // [B1, B5, B6]
35938603test { try toUnicodeFail("0\xd9\xa3\xe3\x80\x82\xe1\x82\xb2\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0"); } // [B1, B5, B6]
8604test { try toAsciiFail("0\xd9\xa3\xe3\x80\x82\xe1\x82\xb2\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0", false); } // [B1, B5, B6]
8605test { try toAsciiFail("0\xd9\xa3\xe3\x80\x82\xe1\x82\xb2\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0", true); } // [B1, B5, B6]
35948606test { try toUnicodeFail("0\xd9\xa3\xe3\x80\x82\xe2\xb4\x92\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0"); } // [B1, B5, B6]
8607test { try toAsciiFail("0\xd9\xa3\xe3\x80\x82\xe2\xb4\x92\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0", false); } // [B1, B5, B6]
8608test { try toAsciiFail("0\xd9\xa3\xe3\x80\x82\xe2\xb4\x92\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0", true); } // [B1, B5, B6]
35958609test { try toUnicodeFail("xn--0-fqc.xn--10b369eivp359r"); } // [B1, B5, B6]
8610test { try toAsciiFail("xn--0-fqc.xn--10b369eivp359r", false); } // [B1, B5, B6]
8611test { try toAsciiFail("xn--0-fqc.xn--10b369eivp359r", true); } // [B1, B5, B6]
35968612test { try toUnicodeFail("\xf0\x9d\x9f\x8e\xd9\xa3\xe3\x80\x82\xe2\xb4\x92\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0"); } // [B1, B5, B6]
8613test { try toAsciiFail("\xf0\x9d\x9f\x8e\xd9\xa3\xe3\x80\x82\xe2\xb4\x92\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0", false); } // [B1, B5, B6]
8614test { try toAsciiFail("\xf0\x9d\x9f\x8e\xd9\xa3\xe3\x80\x82\xe2\xb4\x92\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0", true); } // [B1, B5, B6]
35978615test { try toUnicodeFail("xn--0-fqc.xn--10b180bnwgfy0z"); } // [B1, B5, B6, V7]
8616test { try toAsciiFail("xn--0-fqc.xn--10b180bnwgfy0z", false); } // [B1, B5, B6, V7]
8617test { try toAsciiFail("xn--0-fqc.xn--10b180bnwgfy0z", true); } // [B1, B5, B6, V7]
35988618test { try toUnicodeFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xef\xbe\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93"); } // [V7]
8619test { try toAsciiFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xef\xbe\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93", false); } // [V7]
8620test { try toAsciiFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xef\xbe\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93", true); } // [V7]
35998621test { try toUnicodeFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xe1\x85\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93"); } // [V7]
8622test { try toAsciiFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xe1\x85\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93", false); } // [V7]
8623test { try toAsciiFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xe1\x85\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93", true); } // [V7]
36008624test { try toUnicodeFail("xn--kgd72212e.xn--3j9au7544a"); } // [V7]
8625test { try toAsciiFail("xn--kgd72212e.xn--3j9au7544a", false); } // [V7]
8626test { try toAsciiFail("xn--kgd72212e.xn--3j9au7544a", true); } // [V7]
36018627test { try toUnicodeFail("xn--kgd36f9z57y.xn--3j9au7544a"); } // [V7]
8628test { try toAsciiFail("xn--kgd36f9z57y.xn--3j9au7544a", false); } // [V7]
8629test { try toAsciiFail("xn--kgd36f9z57y.xn--3j9au7544a", true); } // [V7]
36028630test { try toUnicodeFail("xn--kgd7493jee34a.xn--3j9au7544a"); } // [V7]
8631test { try toAsciiFail("xn--kgd7493jee34a.xn--3j9au7544a", false); } // [V7]
8632test { try toAsciiFail("xn--kgd7493jee34a.xn--3j9au7544a", true); } // [V7]
36038633test { try toUnicodeFail("\xd8\x98.\xdb\xb3\xe2\x80\x8c\xea\xa5\x93"); } // [C1, V6]
8634test { try toAsciiFail("\xd8\x98.\xdb\xb3\xe2\x80\x8c\xea\xa5\x93", false); } // [C1, V6]
8635test { try toAsciiFail("\xd8\x98.\xdb\xb3\xe2\x80\x8c\xea\xa5\x93", true); } // [V6]
36048636test { try toUnicodeFail("xn--6fb.xn--gmb0524f"); } // [V6]
8637test { try toAsciiFail("xn--6fb.xn--gmb0524f", false); } // [V6]
8638test { try toAsciiFail("xn--6fb.xn--gmb0524f", true); } // [V6]
36058639test { try toUnicodeFail("xn--6fb.xn--gmb469jjf1h"); } // [C1, V6]
8640test { try toAsciiFail("xn--6fb.xn--gmb469jjf1h", false); } // [C1, V6]
8641test { try toAsciiFail("xn--6fb.xn--gmb469jjf1h", true); } // [C1, V6]
36068642test { 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]
8644test { try toAsciiFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91", true); } // [V7]
36078645test { 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]
8647test { try toAsciiFail("\xe1\xa1\x8c.\xe3\x80\x82\xe1\xa2\x91", true); } // [A4_2]
36088648test { try toUnicodeFail("xn--c8e..xn--bbf"); } // [X4_2]
8649test { try toAsciiFail("xn--c8e..xn--bbf", false); } // [A4_2]
8650test { try toAsciiFail("xn--c8e..xn--bbf", true); } // [A4_2]
36098651test { try toUnicodeFail("xn--c8e.xn--bbf9168i"); } // [V7]
8652test { try toAsciiFail("xn--c8e.xn--bbf9168i", false); } // [V7]
8653test { try toAsciiFail("xn--c8e.xn--bbf9168i", true); } // [V7]
36108654test { try toUnicodeFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xef\xbd\xa1\xf0\x9e\xbd\xa7"); } // [B1, V6, V7]
8655test { try toAsciiFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xef\xbd\xa1\xf0\x9e\xbd\xa7", false); } // [B1, V6, V7]
8656test { try toAsciiFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xef\xbd\xa1\xf0\x9e\xbd\xa7", true); } // [B1, V6, V7]
36118657test { try toUnicodeFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xe3\x80\x82\xf0\x9e\xbd\xa7"); } // [B1, V6, V7]
8658test { try toAsciiFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xe3\x80\x82\xf0\x9e\xbd\xa7", false); } // [B1, V6, V7]
8659test { try toAsciiFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xe3\x80\x82\xf0\x9e\xbd\xa7", true); } // [B1, V6, V7]
36128660test { try toUnicodeFail("xn--xld7443k.xn--4o7h"); } // [B1, V6, V7]
8661test { try toAsciiFail("xn--xld7443k.xn--4o7h", false); } // [B1, V6, V7]
8662test { try toAsciiFail("xn--xld7443k.xn--4o7h", true); } // [B1, V6, V7]
36138663test { try toUnicodeFail("\xf0\x9e\xb7\x8f\xe3\x80\x82\xe1\xa0\xa2\xf2\x93\x98\x86"); } // [V7]
8664test { try toAsciiFail("\xf0\x9e\xb7\x8f\xe3\x80\x82\xe1\xa0\xa2\xf2\x93\x98\x86", false); } // [V7]
8665test { try toAsciiFail("\xf0\x9e\xb7\x8f\xe3\x80\x82\xe1\xa0\xa2\xf2\x93\x98\x86", true); } // [V7]
36148666test { try toUnicodeFail("xn--hd7h.xn--46e66060j"); } // [V7]
8667test { try toAsciiFail("xn--hd7h.xn--46e66060j", false); } // [V7]
8668test { try toAsciiFail("xn--hd7h.xn--46e66060j", true); } // [V7]
36158669test { try toUnicodeFail("\xf0\x91\x84\xb3\xe3\xb4\xbc\xef\xbc\x8e\xe2\x80\x8c\xf0\x90\xb9\xa1\xe2\x83\xab\xf1\xab\xba\xa6"); } // [B1, C1, V6, V7]
8670test { try toAsciiFail("\xf0\x91\x84\xb3\xe3\xb4\xbc\xef\xbc\x8e\xe2\x80\x8c\xf0\x90\xb9\xa1\xe2\x83\xab\xf1\xab\xba\xa6", false); } // [B1, C1, V6, V7]
8671test { try toAsciiFail("\xf0\x91\x84\xb3\xe3\xb4\xbc\xef\xbc\x8e\xe2\x80\x8c\xf0\x90\xb9\xa1\xe2\x83\xab\xf1\xab\xba\xa6", true); } // [B1, V6, V7]
36168672test { try toUnicodeFail("\xf0\x91\x84\xb3\xe3\xb4\xbc.\xe2\x80\x8c\xf0\x90\xb9\xa1\xe2\x83\xab\xf1\xab\xba\xa6"); } // [B1, C1, V6, V7]
8673test { try toAsciiFail("\xf0\x91\x84\xb3\xe3\xb4\xbc.\xe2\x80\x8c\xf0\x90\xb9\xa1\xe2\x83\xab\xf1\xab\xba\xa6", false); } // [B1, C1, V6, V7]
8674test { try toAsciiFail("\xf0\x91\x84\xb3\xe3\xb4\xbc.\xe2\x80\x8c\xf0\x90\xb9\xa1\xe2\x83\xab\xf1\xab\xba\xa6", true); } // [B1, V6, V7]
36178675test { try toUnicodeFail("xn--iym9428c.xn--e1g3464g08p3b"); } // [B1, V6, V7]
8676test { try toAsciiFail("xn--iym9428c.xn--e1g3464g08p3b", false); } // [B1, V6, V7]
8677test { try toAsciiFail("xn--iym9428c.xn--e1g3464g08p3b", true); } // [B1, V6, V7]
36188678test { try toUnicodeFail("xn--iym9428c.xn--0ug46a7218cllv0c"); } // [B1, C1, V6, V7]
8679test { try toAsciiFail("xn--iym9428c.xn--0ug46a7218cllv0c", false); } // [B1, C1, V6, V7]
8680test { try toAsciiFail("xn--iym9428c.xn--0ug46a7218cllv0c", true); } // [B1, C1, V6, V7]
36198681test { try toUnicodeFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xef\xbd\xa1\xcc\x9d"); } // [B1, B5, B6, V6, V7]
8682test { try toAsciiFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xef\xbd\xa1\xcc\x9d", false); } // [B1, B5, B6, V6, V7]
8683test { try toAsciiFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xef\xbd\xa1\xcc\x9d", true); } // [B1, B5, B6, V6, V7]
36208684test { try toUnicodeFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xcc\x9d"); } // [B1, B5, B6, V6, V7]
8685test { try toAsciiFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xcc\x9d", false); } // [B1, B5, B6, V6, V7]
8686test { try toAsciiFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xcc\x9d", true); } // [B1, B5, B6, V6, V7]
36218687test { try toUnicodeFail("xn--ro0dw7dey96m.xn--eta"); } // [B1, B5, B6, V6, V7]
8688test { try toAsciiFail("xn--ro0dw7dey96m.xn--eta", false); } // [B1, B5, B6, V6, V7]
8689test { try toAsciiFail("xn--ro0dw7dey96m.xn--eta", true); } // [B1, B5, B6, V6, V7]
36228690test { try toUnicodeFail("\xe1\xa2\x8a\xeb\xbe\x9c\xf3\xa0\xb1\xb4\xf0\x91\x9a\xb6\xe3\x80\x82\xe0\xa2\x9d\xf0\x90\xb9\xa5"); } // [B1, V6, V7]
8691test { try toAsciiFail("\xe1\xa2\x8a\xeb\xbe\x9c\xf3\xa0\xb1\xb4\xf0\x91\x9a\xb6\xe3\x80\x82\xe0\xa2\x9d\xf0\x90\xb9\xa5", false); } // [B1, V6, V7]
8692test { try toAsciiFail("\xe1\xa2\x8a\xeb\xbe\x9c\xf3\xa0\xb1\xb4\xf0\x91\x9a\xb6\xe3\x80\x82\xe0\xa2\x9d\xf0\x90\xb9\xa5", true); } // [B1, V6, V7]
36238693test { try toUnicodeFail("\xe1\xa2\x8a\xe1\x84\x88\xe1\x85\xac\xe1\x86\xaf\xf3\xa0\xb1\xb4\xf0\x91\x9a\xb6\xe3\x80\x82\xe0\xa2\x9d\xf0\x90\xb9\xa5"); } // [B1, V6, V7]
8694test { try toAsciiFail("\xe1\xa2\x8a\xe1\x84\x88\xe1\x85\xac\xe1\x86\xaf\xf3\xa0\xb1\xb4\xf0\x91\x9a\xb6\xe3\x80\x82\xe0\xa2\x9d\xf0\x90\xb9\xa5", false); } // [B1, V6, V7]
8695test { try toAsciiFail("\xe1\xa2\x8a\xe1\x84\x88\xe1\x85\xac\xe1\x86\xaf\xf3\xa0\xb1\xb4\xf0\x91\x9a\xb6\xe3\x80\x82\xe0\xa2\x9d\xf0\x90\xb9\xa5", true); } // [B1, V6, V7]
36248696test { try toUnicodeFail("xn--39e4566fjv8bwmt6n.xn--myb6415k"); } // [B1, V6, V7]
8697test { try toAsciiFail("xn--39e4566fjv8bwmt6n.xn--myb6415k", false); } // [B1, V6, V7]
8698test { try toAsciiFail("xn--39e4566fjv8bwmt6n.xn--myb6415k", true); } // [B1, V6, V7]
36258699test { try toUnicodeFail("\xf0\x90\xb9\xa5\xe2\x89\xa0\xef\xbd\xa1\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c"); } // [B1, C1, V7]
8700test { try toAsciiFail("\xf0\x90\xb9\xa5\xe2\x89\xa0\xef\xbd\xa1\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c", false); } // [B1, C1, V7]
8701test { try toAsciiFail("\xf0\x90\xb9\xa5\xe2\x89\xa0\xef\xbd\xa1\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c", true); } // [B1, V7]
36268702test { try toUnicodeFail("\xf0\x90\xb9\xa5=\xcc\xb8\xef\xbd\xa1\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c"); } // [B1, C1, V7]
8703test { try toAsciiFail("\xf0\x90\xb9\xa5=\xcc\xb8\xef\xbd\xa1\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c", false); } // [B1, C1, V7]
8704test { try toAsciiFail("\xf0\x90\xb9\xa5=\xcc\xb8\xef\xbd\xa1\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c", true); } // [B1, V7]
36278705test { try toUnicodeFail("\xf0\x90\xb9\xa5\xe2\x89\xa0\xe3\x80\x82\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c"); } // [B1, C1, V7]
8706test { try toAsciiFail("\xf0\x90\xb9\xa5\xe2\x89\xa0\xe3\x80\x82\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c", false); } // [B1, C1, V7]
8707test { try toAsciiFail("\xf0\x90\xb9\xa5\xe2\x89\xa0\xe3\x80\x82\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c", true); } // [B1, V7]
36288708test { try toUnicodeFail("\xf0\x90\xb9\xa5=\xcc\xb8\xe3\x80\x82\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c"); } // [B1, C1, V7]
8709test { try toAsciiFail("\xf0\x90\xb9\xa5=\xcc\xb8\xe3\x80\x82\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c", false); } // [B1, C1, V7]
8710test { try toAsciiFail("\xf0\x90\xb9\xa5=\xcc\xb8\xe3\x80\x82\xf0\x90\x8b\xb2\xf3\xa0\xa7\xa0\xe2\x80\x8c", true); } // [B1, V7]
36298711test { try toUnicodeFail("xn--1ch6704g.xn--m97cw2999c"); } // [B1, V7]
8712test { try toAsciiFail("xn--1ch6704g.xn--m97cw2999c", false); } // [B1, V7]
8713test { try toAsciiFail("xn--1ch6704g.xn--m97cw2999c", true); } // [B1, V7]
36308714test { try toUnicodeFail("xn--1ch6704g.xn--0ug3840g51u4g"); } // [B1, C1, V7]
8715test { try toAsciiFail("xn--1ch6704g.xn--0ug3840g51u4g", false); } // [B1, C1, V7]
8716test { try toAsciiFail("xn--1ch6704g.xn--0ug3840g51u4g", true); } // [B1, C1, V7]
36318717test { try toUnicodeFail("\xe1\x85\x9f\xf1\x99\xaf\xa0\xe0\xa5\x8d\xef\xbc\x8e\xe2\x80\x8d\xea\xa5\x93\xf0\x90\xaa\xa4"); } // [B1, C2, V7]
8718test { try toAsciiFail("\xe1\x85\x9f\xf1\x99\xaf\xa0\xe0\xa5\x8d\xef\xbc\x8e\xe2\x80\x8d\xea\xa5\x93\xf0\x90\xaa\xa4", false); } // [B1, C2, V7]
8719test { try toAsciiFail("\xe1\x85\x9f\xf1\x99\xaf\xa0\xe0\xa5\x8d\xef\xbc\x8e\xe2\x80\x8d\xea\xa5\x93\xf0\x90\xaa\xa4", true); } // [B5, B6, V6, V7]
36328720test { try toUnicodeFail("\xe1\x85\x9f\xf1\x99\xaf\xa0\xe0\xa5\x8d.\xe2\x80\x8d\xea\xa5\x93\xf0\x90\xaa\xa4"); } // [B1, C2, V7]
8721test { try toAsciiFail("\xe1\x85\x9f\xf1\x99\xaf\xa0\xe0\xa5\x8d.\xe2\x80\x8d\xea\xa5\x93\xf0\x90\xaa\xa4", false); } // [B1, C2, V7]
8722test { try toAsciiFail("\xe1\x85\x9f\xf1\x99\xaf\xa0\xe0\xa5\x8d.\xe2\x80\x8d\xea\xa5\x93\xf0\x90\xaa\xa4", true); } // [B5, B6, V6, V7]
36338723test { try toUnicodeFail("xn--n3b91514e.xn--3j9al95p"); } // [B5, B6, V6, V7]
8724test { try toAsciiFail("xn--n3b91514e.xn--3j9al95p", false); } // [B5, B6, V6, V7]
8725test { try toAsciiFail("xn--n3b91514e.xn--3j9al95p", true); } // [B5, B6, V6, V7]
36348726test { try toUnicodeFail("xn--n3b91514e.xn--1ug6815co9wc"); } // [B1, C2, V7]
8727test { try toAsciiFail("xn--n3b91514e.xn--1ug6815co9wc", false); } // [B1, C2, V7]
8728test { try toAsciiFail("xn--n3b91514e.xn--1ug6815co9wc", true); } // [B1, C2, V7]
36358729test { try toUnicodeFail("xn--n3b542bb085j.xn--3j9al95p"); } // [B5, B6, V6, V7]
8730test { try toAsciiFail("xn--n3b542bb085j.xn--3j9al95p", false); } // [B5, B6, V6, V7]
8731test { try toAsciiFail("xn--n3b542bb085j.xn--3j9al95p", true); } // [B5, B6, V6, V7]
36368732test { try toUnicodeFail("xn--n3b542bb085j.xn--1ug6815co9wc"); } // [B1, C2, V7]
8733test { try toAsciiFail("xn--n3b542bb085j.xn--1ug6815co9wc", false); } // [B1, C2, V7]
8734test { try toAsciiFail("xn--n3b542bb085j.xn--1ug6815co9wc", true); } // [B1, C2, V7]
36378735test { try toUnicodeFail("\xf2\x8c\x8b\x94\xf3\xa0\x86\x8e\xf3\xa0\x86\x97\xf0\x91\xb2\x95\xe3\x80\x82\xe2\x89\xae"); } // [V7]
8736test { try toAsciiFail("\xf2\x8c\x8b\x94\xf3\xa0\x86\x8e\xf3\xa0\x86\x97\xf0\x91\xb2\x95\xe3\x80\x82\xe2\x89\xae", false); } // [V7]
8737test { try toAsciiFail("\xf2\x8c\x8b\x94\xf3\xa0\x86\x8e\xf3\xa0\x86\x97\xf0\x91\xb2\x95\xe3\x80\x82\xe2\x89\xae", true); } // [V7]
36388738test { try toUnicodeFail("\xf2\x8c\x8b\x94\xf3\xa0\x86\x8e\xf3\xa0\x86\x97\xf0\x91\xb2\x95\xe3\x80\x82<\xcc\xb8"); } // [V7]
8739test { try toAsciiFail("\xf2\x8c\x8b\x94\xf3\xa0\x86\x8e\xf3\xa0\x86\x97\xf0\x91\xb2\x95\xe3\x80\x82<\xcc\xb8", false); } // [V7]
8740test { try toAsciiFail("\xf2\x8c\x8b\x94\xf3\xa0\x86\x8e\xf3\xa0\x86\x97\xf0\x91\xb2\x95\xe3\x80\x82<\xcc\xb8", true); } // [V7]
36398741test { try toUnicodeFail("xn--4m3dv4354a.xn--gdh"); } // [V7]
8742test { try toAsciiFail("xn--4m3dv4354a.xn--gdh", false); } // [V7]
8743test { try toAsciiFail("xn--4m3dv4354a.xn--gdh", true); } // [V7]
36408744test { try toUnicodeFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80\xe2\x89\xa0"); } // [V6, X4_2]
8745test { try toAsciiFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80\xe2\x89\xa0", false); } // [V6, A4_2]
8746test { try toAsciiFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80\xe2\x89\xa0", true); } // [V6, A4_2]
36418747test { try toUnicodeFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80=\xcc\xb8"); } // [V6, X4_2]
8748test { try toAsciiFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80=\xcc\xb8", false); } // [V6, A4_2]
8749test { try toAsciiFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80=\xcc\xb8", true); } // [V6, A4_2]
36428750test { try toUnicodeFail(".xn--m0b461k3g2c"); } // [V6, X4_2]
8751test { try toAsciiFail(".xn--m0b461k3g2c", false); } // [V6, A4_2]
8752test { try toAsciiFail(".xn--m0b461k3g2c", true); } // [V6, A4_2]
36438753test { try toUnicodeFail("\xf0\x90\xa1\xa4\xea\xaf\xad\xef\xbd\xa1\xef\xb4\xb0\xf2\x9c\x96\x85\xe1\xb7\xb0"); } // [B2, B3, V7]
8754test { try toAsciiFail("\xf0\x90\xa1\xa4\xea\xaf\xad\xef\xbd\xa1\xef\xb4\xb0\xf2\x9c\x96\x85\xe1\xb7\xb0", false); } // [B2, B3, V7]
8755test { try toAsciiFail("\xf0\x90\xa1\xa4\xea\xaf\xad\xef\xbd\xa1\xef\xb4\xb0\xf2\x9c\x96\x85\xe1\xb7\xb0", true); } // [B2, B3, V7]
36448756test { try toUnicodeFail("\xf0\x90\xa1\xa4\xea\xaf\xad\xe3\x80\x82\xd8\xb4\xd9\x85\xf2\x9c\x96\x85\xe1\xb7\xb0"); } // [B2, B3, V7]
8757test { try toAsciiFail("\xf0\x90\xa1\xa4\xea\xaf\xad\xe3\x80\x82\xd8\xb4\xd9\x85\xf2\x9c\x96\x85\xe1\xb7\xb0", false); } // [B2, B3, V7]
8758test { try toAsciiFail("\xf0\x90\xa1\xa4\xea\xaf\xad\xe3\x80\x82\xd8\xb4\xd9\x85\xf2\x9c\x96\x85\xe1\xb7\xb0", true); } // [B2, B3, V7]
36458759test { try toUnicodeFail("xn--429ak76o.xn--zgb8a701kox37t"); } // [B2, B3, V7]
8760test { try toAsciiFail("xn--429ak76o.xn--zgb8a701kox37t", false); } // [B2, B3, V7]
8761test { try toAsciiFail("xn--429ak76o.xn--zgb8a701kox37t", true); } // [B2, B3, V7]
36468762test { try toUnicodeFail("\xf0\x9d\x89\x83\xe2\x80\x8d\xe2\x92\x88\xef\xbd\xa1\xe1\x82\xac\xf0\x9e\xb1\x93"); } // [B1, B5, B6, C2, V6, V7]
8763test { try toAsciiFail("\xf0\x9d\x89\x83\xe2\x80\x8d\xe2\x92\x88\xef\xbd\xa1\xe1\x82\xac\xf0\x9e\xb1\x93", false); } // [B1, B5, B6, C2, V6, V7]
8764test { try toAsciiFail("\xf0\x9d\x89\x83\xe2\x80\x8d\xe2\x92\x88\xef\xbd\xa1\xe1\x82\xac\xf0\x9e\xb1\x93", true); } // [B1, B5, B6, V6, V7]
36478765test { try toUnicodeFail("\xf0\x9d\x89\x83\xe2\x80\x8d1.\xe3\x80\x82\xe1\x82\xac\xf0\x9e\xb1\x93"); } // [B1, B5, B6, C2, V6, V7, X4_2]
8766test { try toAsciiFail("\xf0\x9d\x89\x83\xe2\x80\x8d1.\xe3\x80\x82\xe1\x82\xac\xf0\x9e\xb1\x93", false); } // [B1, B5, B6, C2, V6, V7, A4_2]
8767test { try toAsciiFail("\xf0\x9d\x89\x83\xe2\x80\x8d1.\xe3\x80\x82\xe1\x82\xac\xf0\x9e\xb1\x93", true); } // [B1, B5, B6, V6, V7, A4_2]
36488768test { try toUnicodeFail("\xf0\x9d\x89\x83\xe2\x80\x8d1.\xe3\x80\x82\xe2\xb4\x8c\xf0\x9e\xb1\x93"); } // [B1, B5, B6, C2, V6, V7, X4_2]
8769test { try toAsciiFail("\xf0\x9d\x89\x83\xe2\x80\x8d1.\xe3\x80\x82\xe2\xb4\x8c\xf0\x9e\xb1\x93", false); } // [B1, B5, B6, C2, V6, V7, A4_2]
8770test { try toAsciiFail("\xf0\x9d\x89\x83\xe2\x80\x8d1.\xe3\x80\x82\xe2\xb4\x8c\xf0\x9e\xb1\x93", true); } // [B1, B5, B6, V6, V7, A4_2]
36498771test { try toUnicodeFail("xn--1-px8q..xn--3kj4524l"); } // [B1, B5, B6, V6, V7, X4_2]
8772test { try toAsciiFail("xn--1-px8q..xn--3kj4524l", false); } // [B1, B5, B6, V6, V7, A4_2]
8773test { try toAsciiFail("xn--1-px8q..xn--3kj4524l", true); } // [B1, B5, B6, V6, V7, A4_2]
36508774test { try toUnicodeFail("xn--1-tgn9827q..xn--3kj4524l"); } // [B1, B5, B6, C2, V6, V7, X4_2]
8775test { try toAsciiFail("xn--1-tgn9827q..xn--3kj4524l", false); } // [B1, B5, B6, C2, V6, V7, A4_2]
8776test { try toAsciiFail("xn--1-tgn9827q..xn--3kj4524l", true); } // [B1, B5, B6, C2, V6, V7, A4_2]
36518777test { try toUnicodeFail("\xf0\x9d\x89\x83\xe2\x80\x8d\xe2\x92\x88\xef\xbd\xa1\xe2\xb4\x8c\xf0\x9e\xb1\x93"); } // [B1, B5, B6, C2, V6, V7]
8778test { try toAsciiFail("\xf0\x9d\x89\x83\xe2\x80\x8d\xe2\x92\x88\xef\xbd\xa1\xe2\xb4\x8c\xf0\x9e\xb1\x93", false); } // [B1, B5, B6, C2, V6, V7]
8779test { try toAsciiFail("\xf0\x9d\x89\x83\xe2\x80\x8d\xe2\x92\x88\xef\xbd\xa1\xe2\xb4\x8c\xf0\x9e\xb1\x93", true); } // [B1, B5, B6, V6, V7]
36528780test { try toUnicodeFail("xn--tshz828m.xn--3kj4524l"); } // [B1, B5, B6, V6, V7]
8781test { try toAsciiFail("xn--tshz828m.xn--3kj4524l", false); } // [B1, B5, B6, V6, V7]
8782test { try toAsciiFail("xn--tshz828m.xn--3kj4524l", true); } // [B1, B5, B6, V6, V7]
36538783test { try toUnicodeFail("xn--1ug68oq348b.xn--3kj4524l"); } // [B1, B5, B6, C2, V6, V7]
8784test { try toAsciiFail("xn--1ug68oq348b.xn--3kj4524l", false); } // [B1, B5, B6, C2, V6, V7]
8785test { try toAsciiFail("xn--1ug68oq348b.xn--3kj4524l", true); } // [B1, B5, B6, C2, V6, V7]
36548786test { try toUnicodeFail("xn--1-px8q..xn--knd8464v"); } // [B1, B5, B6, V6, V7, X4_2]
8787test { try toAsciiFail("xn--1-px8q..xn--knd8464v", false); } // [B1, B5, B6, V6, V7, A4_2]
8788test { try toAsciiFail("xn--1-px8q..xn--knd8464v", true); } // [B1, B5, B6, V6, V7, A4_2]
36558789test { try toUnicodeFail("xn--1-tgn9827q..xn--knd8464v"); } // [B1, B5, B6, C2, V6, V7, X4_2]
8790test { try toAsciiFail("xn--1-tgn9827q..xn--knd8464v", false); } // [B1, B5, B6, C2, V6, V7, A4_2]
8791test { try toAsciiFail("xn--1-tgn9827q..xn--knd8464v", true); } // [B1, B5, B6, C2, V6, V7, A4_2]
36568792test { try toUnicodeFail("xn--tshz828m.xn--knd8464v"); } // [B1, B5, B6, V6, V7]
8793test { try toAsciiFail("xn--tshz828m.xn--knd8464v", false); } // [B1, B5, B6, V6, V7]
8794test { try toAsciiFail("xn--tshz828m.xn--knd8464v", true); } // [B1, B5, B6, V6, V7]
36578795test { try toUnicodeFail("xn--1ug68oq348b.xn--knd8464v"); } // [B1, B5, B6, C2, V6, V7]
8796test { try toAsciiFail("xn--1ug68oq348b.xn--knd8464v", false); } // [B1, B5, B6, C2, V6, V7]
8797test { try toAsciiFail("xn--1ug68oq348b.xn--knd8464v", true); } // [B1, B5, B6, C2, V6, V7]
36588798test { try toUnicodeFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xcf\x82\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94"); } // [B1, V7]
8799test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xcf\x82\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", false); } // [B1, V7]
8800test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xcf\x82\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", true); } // [B1, V7]
36598801test { try toUnicodeFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xce\xa3\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94"); } // [B1, V7]
8802test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xce\xa3\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", false); } // [B1, V7]
8803test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xce\xa3\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", true); } // [B1, V7]
36608804test { try toUnicodeFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xcf\x83\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94"); } // [B1, V7]
8805test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xcf\x83\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", false); } // [B1, V7]
8806test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xcf\x83\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", true); } // [B1, V7]
36618807test { try toUnicodeFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xcf\x83\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94"); } // [B1, V7]
8808test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xcf\x83\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", false); } // [B1, V7]
8809test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xcf\x83\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", true); } // [B1, V7]
36628810test { try toUnicodeFail("xn--ybc0236vjvxgt5q0g.xn--4xa82737giye6b"); } // [B1, V7]
8811test { try toAsciiFail("xn--ybc0236vjvxgt5q0g.xn--4xa82737giye6b", false); } // [B1, V7]
8812test { try toAsciiFail("xn--ybc0236vjvxgt5q0g.xn--4xa82737giye6b", true); } // [B1, V7]
36638813test { try toUnicodeFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xcf\x82\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94"); } // [B1, V7]
8814test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xcf\x82\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", false); } // [B1, V7]
8815test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\x96.\xcf\x82\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", true); } // [B1, V7]
36648816test { try toUnicodeFail("xn--ybc0236vjvxgt5q0g.xn--3xa03737giye6b"); } // [B1, V7]
8817test { try toAsciiFail("xn--ybc0236vjvxgt5q0g.xn--3xa03737giye6b", false); } // [B1, V7]
8818test { try toAsciiFail("xn--ybc0236vjvxgt5q0g.xn--3xa03737giye6b", true); } // [B1, V7]
36658819test { try toUnicodeFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xce\xa3\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94"); } // [B1, V7]
8820test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xce\xa3\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", false); } // [B1, V7]
8821test { try toAsciiFail("\xf3\xa0\xa3\x99\xe0\xa9\x8d\xf0\xb1\xab\x98\xf0\x9e\xa4\xb8.\xce\xa3\xf1\xb5\xaf\x9e\xf4\x88\xb0\x94", true); } // [B1, V7]
36668822test { try toUnicodeFail("\xdf\x93\xe3\x80\x82\xe2\x80\x8c\xf0\x90\xab\x80\xf2\x9e\xad\xb1"); } // [B1, C1, V7]
8823test { try toAsciiFail("\xdf\x93\xe3\x80\x82\xe2\x80\x8c\xf0\x90\xab\x80\xf2\x9e\xad\xb1", false); } // [B1, C1, V7]
8824test { try toAsciiFail("\xdf\x93\xe3\x80\x82\xe2\x80\x8c\xf0\x90\xab\x80\xf2\x9e\xad\xb1", true); } // [B2, B3, V7]
36678825test { try toUnicodeFail("xn--usb.xn--pw9ci1099a"); } // [B2, B3, V7]
8826test { try toAsciiFail("xn--usb.xn--pw9ci1099a", false); } // [B2, B3, V7]
8827test { try toAsciiFail("xn--usb.xn--pw9ci1099a", true); } // [B2, B3, V7]
36688828test { try toUnicodeFail("xn--usb.xn--0ug9553gm3v5d"); } // [B1, C1, V7]
8829test { try toAsciiFail("xn--usb.xn--0ug9553gm3v5d", false); } // [B1, C1, V7]
8830test { try toAsciiFail("xn--usb.xn--0ug9553gm3v5d", true); } // [B1, C1, V7]
36698831test { try toUnicodeFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\x95\xf3\xa0\x86\x96"); } // [B1, V6]
8832test { try toAsciiFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\x95\xf3\xa0\x86\x96", false); } // [B1, V6]
8833test { try toAsciiFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\x95\xf3\xa0\x86\x96", true); } // [B1, V6]
36708834test { try toUnicodeFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\xb7\xf3\xa0\x86\x96"); } // [B1, V6]
8835test { try toAsciiFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\xb7\xf3\xa0\x86\x96", false); } // [B1, V6]
8836test { try toAsciiFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\xb7\xf3\xa0\x86\x96", true); } // [B1, V6]
36718837test { try toUnicodeFail("xn--q1f4493q.xn--xcb8244fifvj"); } // [B1, V6]
8838test { try toAsciiFail("xn--q1f4493q.xn--xcb8244fifvj", false); } // [B1, V6]
8839test { try toAsciiFail("xn--q1f4493q.xn--xcb8244fifvj", true); } // [B1, V6]
36728840test { try toUnicodeFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6\xef\xbc\x8e\xe2\x80\x8d"); } // [C2, V7]
8841test { try toAsciiFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6\xef\xbc\x8e\xe2\x80\x8d", false); } // [C2, V7]
8842test { try toAsciiFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6\xef\xbc\x8e\xe2\x80\x8d", true); } // [V7, A4_2]
36738843test { try toUnicodeFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6.\xe2\x80\x8d"); } // [C2, V7]
8844test { try toAsciiFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6.\xe2\x80\x8d", false); } // [C2, V7]
8845test { try toAsciiFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6.\xe2\x80\x8d", true); } // [V7, A4_2]
36748846test { try toUnicodeFail("xn--0on3543c5981i."); } // [V7]
8847test { try toAsciiFail("xn--0on3543c5981i.", false); } // [V7, A4_2]
8848test { try toAsciiFail("xn--0on3543c5981i.", true); } // [V7, A4_2]
36758849test { try toUnicodeFail("xn--0on3543c5981i.xn--1ug"); } // [C2, V7]
8850test { try toAsciiFail("xn--0on3543c5981i.xn--1ug", false); } // [C2, V7]
8851test { try toAsciiFail("xn--0on3543c5981i.xn--1ug", true); } // [C2, V7]
36768852test { try toUnicodeFail("\xea\xa7\x80\xe2\x80\x8c\xf0\x90\xb9\xb2\xe2\x80\x8c\xef\xbd\xa1\xdd\xa7\xf0\x9f\x84\x89"); } // [B3, B5, B6, C1, V6, U1]
8853test { try toAsciiFail("\xea\xa7\x80\xe2\x80\x8c\xf0\x90\xb9\xb2\xe2\x80\x8c\xef\xbd\xa1\xdd\xa7\xf0\x9f\x84\x89", false); } // [B3, B5, B6, C1, V6, U1]
8854test { try toAsciiFail("\xea\xa7\x80\xe2\x80\x8c\xf0\x90\xb9\xb2\xe2\x80\x8c\xef\xbd\xa1\xdd\xa7\xf0\x9f\x84\x89", true); } // [B3, B5, B6, V6, U1]
36778855test { try toUnicodeFail("\xea\xa7\x80\xe2\x80\x8c\xf0\x90\xb9\xb2\xe2\x80\x8c\xe3\x80\x82\xdd\xa78,"); } // [B3, B5, B6, C1, V6, U1]
8856test { try toAsciiFail("\xea\xa7\x80\xe2\x80\x8c\xf0\x90\xb9\xb2\xe2\x80\x8c\xe3\x80\x82\xdd\xa78,", false); } // [B3, B5, B6, C1, V6, U1]
8857test { try toAsciiFail("\xea\xa7\x80\xe2\x80\x8c\xf0\x90\xb9\xb2\xe2\x80\x8c\xe3\x80\x82\xdd\xa78,", true); } // [B3, B5, B6, V6, U1]
36788858test { try toUnicodeFail("xn--7m9an32q.xn--8,-qle"); } // [B3, B5, B6, V6, U1]
8859test { try toAsciiFail("xn--7m9an32q.xn--8,-qle", false); } // [B3, B5, B6, V6, U1]
8860test { try toAsciiFail("xn--7m9an32q.xn--8,-qle", true); } // [B3, B5, B6, V6, U1]
36798861test { try toUnicodeFail("xn--0uga8686hdgvd.xn--8,-qle"); } // [B3, B5, B6, C1, V6, U1]
8862test { try toAsciiFail("xn--0uga8686hdgvd.xn--8,-qle", false); } // [B3, B5, B6, C1, V6, U1]
8863test { try toAsciiFail("xn--0uga8686hdgvd.xn--8,-qle", true); } // [B3, B5, B6, C1, V6, U1]
36808864test { try toUnicodeFail("xn--7m9an32q.xn--rpb6081w"); } // [B5, B6, V6, V7]
8865test { try toAsciiFail("xn--7m9an32q.xn--rpb6081w", false); } // [B5, B6, V6, V7]
8866test { try toAsciiFail("xn--7m9an32q.xn--rpb6081w", true); } // [B5, B6, V6, V7]
36818867test { try toUnicodeFail("xn--0uga8686hdgvd.xn--rpb6081w"); } // [B5, B6, C1, V6, V7]
8868test { try toAsciiFail("xn--0uga8686hdgvd.xn--rpb6081w", false); } // [B5, B6, C1, V6, V7]
8869test { try toAsciiFail("xn--0uga8686hdgvd.xn--rpb6081w", true); } // [B5, B6, C1, V6, V7]
36828870test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3\xe2\x89\xaf"); } // [V7]
8871test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3\xe2\x89\xaf", false); } // [V7]
8872test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3\xe2\x89\xaf", true); } // [V7]
36838873test { 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]
8875test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8", true); } // [V7]
36848876test { 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]
8878test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3\xe2\x89\xaf", true); } // [A4_2]
36858879test { 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]
8881test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3>\xcc\xb8", true); } // [A4_2]
36868882test { 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]
8884test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83>\xcc\xb8", true); } // [A4_2]
36878885test { 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]
8887test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83\xe2\x89\xaf", true); } // [A4_2]
36888888test { try toUnicodeFail("..xn--hdh782b"); } // [X4_2]
8889test { try toAsciiFail("..xn--hdh782b", false); } // [A4_2]
8890test { try toAsciiFail("..xn--hdh782b", true); } // [A4_2]
36898891test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83>\xcc\xb8"); } // [V7]
8892test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83>\xcc\xb8", false); } // [V7]
8893test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83>\xcc\xb8", true); } // [V7]
36908894test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83\xe2\x89\xaf"); } // [V7]
8895test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83\xe2\x89\xaf", false); } // [V7]
8896test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83\xe2\x89\xaf", true); } // [V7]
36918897test { try toUnicodeFail("xn--y86c.xn--hdh782b"); } // [V7]
8898test { try toAsciiFail("xn--y86c.xn--hdh782b", false); } // [V7]
8899test { try toAsciiFail("xn--y86c.xn--hdh782b", true); } // [V7]
36928900test { try toUnicodeFail("..xn--bnd622g"); } // [V7, X4_2]
8901test { try toAsciiFail("..xn--bnd622g", false); } // [V7, A4_2]
8902test { try toAsciiFail("..xn--bnd622g", true); } // [V7, A4_2]
36938903test { try toUnicodeFail("xn--y86c.xn--bnd622g"); } // [V7]
8904test { try toAsciiFail("xn--y86c.xn--bnd622g", false); } // [V7]
8905test { try toAsciiFail("xn--y86c.xn--bnd622g", true); } // [V7]
36948906test { try toUnicodeFail("\xf0\x90\xb9\xae\xef\xbd\xa1\xf3\xa0\xa2\xbc\xe2\x80\x8d"); } // [B1, C2, V7]
8907test { try toAsciiFail("\xf0\x90\xb9\xae\xef\xbd\xa1\xf3\xa0\xa2\xbc\xe2\x80\x8d", false); } // [B1, C2, V7]
8908test { try toAsciiFail("\xf0\x90\xb9\xae\xef\xbd\xa1\xf3\xa0\xa2\xbc\xe2\x80\x8d", true); } // [B1, V7]
36958909test { try toUnicodeFail("\xf0\x90\xb9\xae\xe3\x80\x82\xf3\xa0\xa2\xbc\xe2\x80\x8d"); } // [B1, C2, V7]
8910test { try toAsciiFail("\xf0\x90\xb9\xae\xe3\x80\x82\xf3\xa0\xa2\xbc\xe2\x80\x8d", false); } // [B1, C2, V7]
8911test { try toAsciiFail("\xf0\x90\xb9\xae\xe3\x80\x82\xf3\xa0\xa2\xbc\xe2\x80\x8d", true); } // [B1, V7]
36968912test { try toUnicodeFail("xn--mo0d.xn--wy46e"); } // [B1, V7]
8913test { try toAsciiFail("xn--mo0d.xn--wy46e", false); } // [B1, V7]
8914test { try toAsciiFail("xn--mo0d.xn--wy46e", true); } // [B1, V7]
36978915test { try toUnicodeFail("xn--mo0d.xn--1ug18431l"); } // [B1, C2, V7]
8916test { try toAsciiFail("xn--mo0d.xn--1ug18431l", false); } // [B1, C2, V7]
8917test { try toAsciiFail("xn--mo0d.xn--1ug18431l", true); } // [B1, C2, V7]
36988918test { try toUnicodeFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe1\x82\xaf"); } // [B1, B5, B6, C2, V7]
8919test { try toAsciiFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe1\x82\xaf", false); } // [B1, B5, B6, C2, V7]
8920test { try toAsciiFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe1\x82\xaf", true); } // [B1, B5, B6, V7]
36998921test { try toUnicodeFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe1\x82\xaf"); } // [B2, B3, B5, B6, C2, X4_2]
8922test { try toAsciiFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe1\x82\xaf", false); } // [B2, B3, B5, B6, C2, A4_2]
8923test { try toAsciiFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe1\x82\xaf", true); } // [B2, B3, B5, B6, A4_2]
37008924test { try toUnicodeFail("\xe2\xb4\x9e\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f"); } // [B2, B3, B5, B6, C2, X4_2]
8925test { try toAsciiFail("\xe2\xb4\x9e\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f", false); } // [B2, B3, B5, B6, C2, A4_2]
8926test { try toAsciiFail("\xe2\xb4\x9e\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f", true); } // [B2, B3, B5, B6, A4_2]
37018927test { try toUnicodeFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f"); } // [B2, B3, B5, B6, C2, X4_2]
8928test { try toAsciiFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f", false); } // [B2, B3, B5, B6, C2, A4_2]
8929test { try toAsciiFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xe3\x80\x82\xe3\x80\x82\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f", true); } // [B2, B3, B5, B6, A4_2]
37028930test { try toUnicodeFail("xn--mlju223e..xn--eqb053q"); } // [B2, B3, B5, B6, X4_2]
8931test { try toAsciiFail("xn--mlju223e..xn--eqb053q", false); } // [B2, B3, B5, B6, A4_2]
8932test { try toAsciiFail("xn--mlju223e..xn--eqb053q", true); } // [B2, B3, B5, B6, A4_2]
37038933test { try toUnicodeFail("xn--mlju223e..xn--eqb096jpgj"); } // [B2, B3, B5, B6, C2, X4_2]
8934test { try toAsciiFail("xn--mlju223e..xn--eqb096jpgj", false); } // [B2, B3, B5, B6, C2, A4_2]
8935test { try toAsciiFail("xn--mlju223e..xn--eqb096jpgj", true); } // [B2, B3, B5, B6, C2, A4_2]
37048936test { try toUnicodeFail("\xe2\xb4\x9e\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f"); } // [B1, B5, B6, C2, V7]
8937test { try toAsciiFail("\xe2\xb4\x9e\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f", false); } // [B1, B5, B6, C2, V7]
8938test { try toAsciiFail("\xe2\xb4\x9e\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f", true); } // [B1, B5, B6, V7]
37058939test { try toUnicodeFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f"); } // [B1, B5, B6, C2, V7]
8940test { try toAsciiFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f", false); } // [B1, B5, B6, C2, V7]
8941test { try toAsciiFail("\xe1\x82\xbe\xf0\x90\xb9\xa8\xef\xbd\xa1\xef\xb8\x92\xdd\xbd\xe2\x80\x8d\xe2\xb4\x8f", true); } // [B1, B5, B6, V7]
37068942test { try toUnicodeFail("xn--mlju223e.xn--eqb053qjk7l"); } // [B1, B5, B6, V7]
8943test { try toAsciiFail("xn--mlju223e.xn--eqb053qjk7l", false); } // [B1, B5, B6, V7]
8944test { try toAsciiFail("xn--mlju223e.xn--eqb053qjk7l", true); } // [B1, B5, B6, V7]
37078945test { try toUnicodeFail("xn--mlju223e.xn--eqb096jpgj9y7r"); } // [B1, B5, B6, C2, V7]
8946test { try toAsciiFail("xn--mlju223e.xn--eqb096jpgj9y7r", false); } // [B1, B5, B6, C2, V7]
8947test { try toAsciiFail("xn--mlju223e.xn--eqb096jpgj9y7r", true); } // [B1, B5, B6, C2, V7]
37088948test { try toUnicodeFail("xn--2nd0990k..xn--eqb053q"); } // [B2, B3, B5, B6, V7, X4_2]
8949test { try toAsciiFail("xn--2nd0990k..xn--eqb053q", false); } // [B2, B3, B5, B6, V7, A4_2]
8950test { try toAsciiFail("xn--2nd0990k..xn--eqb053q", true); } // [B2, B3, B5, B6, V7, A4_2]
37098951test { try toUnicodeFail("xn--2nd0990k..xn--eqb096jpgj"); } // [B2, B3, B5, B6, C2, V7, X4_2]
8952test { try toAsciiFail("xn--2nd0990k..xn--eqb096jpgj", false); } // [B2, B3, B5, B6, C2, V7, A4_2]
8953test { try toAsciiFail("xn--2nd0990k..xn--eqb096jpgj", true); } // [B2, B3, B5, B6, C2, V7, A4_2]
37108954test { try toUnicodeFail("xn--2nd0990k..xn--eqb228b"); } // [B2, B3, B5, B6, V7, X4_2]
8955test { try toAsciiFail("xn--2nd0990k..xn--eqb228b", false); } // [B2, B3, B5, B6, V7, A4_2]
8956test { try toAsciiFail("xn--2nd0990k..xn--eqb228b", true); } // [B2, B3, B5, B6, V7, A4_2]
37118957test { try toUnicodeFail("xn--2nd0990k..xn--eqb228bgzm"); } // [B2, B3, B5, B6, C2, V7, X4_2]
8958test { try toAsciiFail("xn--2nd0990k..xn--eqb228bgzm", false); } // [B2, B3, B5, B6, C2, V7, A4_2]
8959test { try toAsciiFail("xn--2nd0990k..xn--eqb228bgzm", true); } // [B2, B3, B5, B6, C2, V7, A4_2]
37128960test { try toUnicodeFail("xn--2nd0990k.xn--eqb053qjk7l"); } // [B1, B5, B6, V7]
8961test { try toAsciiFail("xn--2nd0990k.xn--eqb053qjk7l", false); } // [B1, B5, B6, V7]
8962test { try toAsciiFail("xn--2nd0990k.xn--eqb053qjk7l", true); } // [B1, B5, B6, V7]
37138963test { try toUnicodeFail("xn--2nd0990k.xn--eqb096jpgj9y7r"); } // [B1, B5, B6, C2, V7]
8964test { try toAsciiFail("xn--2nd0990k.xn--eqb096jpgj9y7r", false); } // [B1, B5, B6, C2, V7]
8965test { try toAsciiFail("xn--2nd0990k.xn--eqb096jpgj9y7r", true); } // [B1, B5, B6, C2, V7]
37148966test { try toUnicodeFail("xn--2nd0990k.xn--eqb228b583r"); } // [B1, B5, B6, V7]
8967test { try toAsciiFail("xn--2nd0990k.xn--eqb228b583r", false); } // [B1, B5, B6, V7]
8968test { try toAsciiFail("xn--2nd0990k.xn--eqb228b583r", true); } // [B1, B5, B6, V7]
37158969test { try toUnicodeFail("xn--2nd0990k.xn--eqb228bgzmvp0t"); } // [B1, B5, B6, C2, V7]
8970test { try toAsciiFail("xn--2nd0990k.xn--eqb228bgzmvp0t", false); } // [B1, B5, B6, C2, V7]
8971test { try toAsciiFail("xn--2nd0990k.xn--eqb228bgzmvp0t", true); } // [B1, B5, B6, C2, V7]
37168972test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa6\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3]
8973test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xa6\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91", false); } // [B1, C1, V3]
8974test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xa6\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91", true); } // [B1, V3]
37178975test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa63\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3]
8976test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xa63\xe3\x80\x82-\xe2\x83\x92-\xdf\x91", false); } // [B1, C1, V3]
8977test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xa63\xe3\x80\x82-\xe2\x83\x92-\xdf\x91", true); } // [B1, V3]
37188978test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x863\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3]
8979test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x863\xe3\x80\x82-\xe2\x83\x92-\xdf\x91", false); } // [B1, C1, V3]
8980test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x863\xe3\x80\x82-\xe2\x83\x92-\xdf\x91", true); } // [B1, V3]
37198981test { try toUnicodeFail("xn--3-lvs.xn-----vue617w"); } // [B1, V3]
8982test { try toAsciiFail("xn--3-lvs.xn-----vue617w", false); } // [B1, V3]
8983test { try toAsciiFail("xn--3-lvs.xn-----vue617w", true); } // [B1, V3]
37208984test { try toUnicodeFail("xn--3-rgnv99c.xn-----vue617w"); } // [B1, C1, V3]
8985test { try toAsciiFail("xn--3-rgnv99c.xn-----vue617w", false); } // [B1, C1, V3]
8986test { try toAsciiFail("xn--3-rgnv99c.xn-----vue617w", true); } // [B1, C1, V3]
37218987test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x86\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3]
8988test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x86\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91", false); } // [B1, C1, V3]
8989test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x86\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91", true); } // [B1, V3]
37228990test { try toUnicodeFail("xn--3-i0g.xn-----vue617w"); } // [B1, V3, V7]
8991test { try toAsciiFail("xn--3-i0g.xn-----vue617w", false); } // [B1, V3, V7]
8992test { try toAsciiFail("xn--3-i0g.xn-----vue617w", true); } // [B1, V3, V7]
37238993test { try toUnicodeFail("xn--3-i0g939i.xn-----vue617w"); } // [B1, C1, V3, V7]
8994test { try toAsciiFail("xn--3-i0g939i.xn-----vue617w", false); } // [B1, C1, V3, V7]
8995test { try toAsciiFail("xn--3-i0g939i.xn-----vue617w", true); } // [B1, C1, V3, V7]
37248996test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7]
8997test { try toAsciiFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96", false); } // [V7]
8998test { try toAsciiFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96", true); } // [V7]
37258999test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7]
9000test { try toAsciiFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96", false); } // [V7]
9001test { try toAsciiFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96", true); } // [V7]
37269002test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7]
9003test { try toAsciiFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96", false); } // [V7]
9004test { try toAsciiFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96", true); } // [V7]
37279005test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7]
9006test { try toAsciiFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96", false); } // [V7]
9007test { try toAsciiFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96", true); } // [V7]
37289008test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7]
9009test { try toAsciiFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96", false); } // [V7]
9010test { try toAsciiFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96", true); } // [V7]
37299011test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7]
9012test { try toAsciiFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96", false); } // [V7]
9013test { try toAsciiFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96", true); } // [V7]
37309014test { try toUnicodeFail("xn----4wsr321ay823p.xn----tfot873s"); } // [V7]
9015test { try toAsciiFail("xn----4wsr321ay823p.xn----tfot873s", false); } // [V7]
9016test { try toAsciiFail("xn----4wsr321ay823p.xn----tfot873s", true); } // [V7]
37319017test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7]
9018test { try toAsciiFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96", false); } // [V7]
9019test { try toAsciiFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96", true); } // [V7]
37329020test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7]
9021test { try toAsciiFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96", false); } // [V7]
9022test { try toAsciiFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96", true); } // [V7]
37339023test { try toUnicodeFail("xn----11g3013fy8x5m.xn----tfot873s"); } // [V7]
9024test { try toAsciiFail("xn----11g3013fy8x5m.xn----tfot873s", false); } // [V7]
9025test { try toAsciiFail("xn----11g3013fy8x5m.xn----tfot873s", true); } // [V7]
37349026test { try toUnicodePass("\xdf\xa5.\xda\xb5", "\xdf\xa5.\xda\xb5"); }
37359027test { try toAsciiPass("\xdf\xa5.\xda\xb5", "xn--dtb.xn--okb", false); }
37369028test { try toAsciiPass("\xdf\xa5.\xda\xb5", "xn--dtb.xn--okb", true); }
......@@ -3738,9 +9030,17 @@ test { try toUnicodePass("xn--dtb.xn--okb", "\xdf\xa5.\xda\xb5"); }
37389030test { try toAsciiPass("xn--dtb.xn--okb", "xn--dtb.xn--okb", false); }
37399031test { try toAsciiPass("xn--dtb.xn--okb", "xn--dtb.xn--okb", true); }
37409032test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\xbf"); } // [B1, C1, C2]
9033test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\xbf", false); } // [B1, C1, C2]
9034test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\xbf", true); } // [A4_2]
37419035test { 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]
9037test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d", true); } // [A4_2]
37429038test { try toUnicodeFail(".xn--3e6h"); } // [X4_2]
9039test { try toAsciiFail(".xn--3e6h", false); } // [A4_2]
9040test { try toAsciiFail(".xn--3e6h", true); } // [A4_2]
37439041test { try toUnicodeFail("xn--0ugc.xn--3e6h"); } // [B1, C1, C2]
9042test { try toAsciiFail("xn--0ugc.xn--3e6h", false); } // [B1, C1, C2]
9043test { try toAsciiFail("xn--0ugc.xn--3e6h", true); } // [B1, C1, C2]
37449044test { try toUnicodePass("xn--3e6h", "\xf0\x9e\xa4\xbf"); }
37459045test { try toAsciiPass("xn--3e6h", "xn--3e6h", false); }
37469046test { try toAsciiPass("xn--3e6h", "xn--3e6h", true); }
......@@ -3751,58 +9051,164 @@ test { try toUnicodePass("\xf0\x9e\xa4\x9d", "\xf0\x9e\xa4\xbf"); }
37519051test { try toAsciiPass("\xf0\x9e\xa4\x9d", "xn--3e6h", false); }
37529052test { try toAsciiPass("\xf0\x9e\xa4\x9d", "xn--3e6h", true); }
37539053test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x82\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1]
9054test { try toAsciiFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x82\xf0\x91\x8d\x8d\xe8\x9c\xb9", false); } // [B1]
9055test { try toAsciiFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x82\xf0\x91\x8d\x8d\xe8\x9c\xb9", true); } // [B1]
37549056test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xce\xa3\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1]
9057test { try toAsciiFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xce\xa3\xf0\x91\x8d\x8d\xe8\x9c\xb9", false); } // [B1]
9058test { try toAsciiFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xce\xa3\xf0\x91\x8d\x8d\xe8\x9c\xb9", true); } // [B1]
37559059test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x83\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1]
9060test { try toAsciiFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x83\xf0\x91\x8d\x8d\xe8\x9c\xb9", false); } // [B1]
9061test { try toAsciiFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x83\xf0\x91\x8d\x8d\xe8\x9c\xb9", true); } // [B1]
37569062test { try toUnicodeFail("xn--4gb3736kk4zf.xn--4xa2248dy27d"); } // [B1]
9063test { try toAsciiFail("xn--4gb3736kk4zf.xn--4xa2248dy27d", false); } // [B1]
9064test { try toAsciiFail("xn--4gb3736kk4zf.xn--4xa2248dy27d", true); } // [B1]
37579065test { try toUnicodeFail("xn--4gb3736kk4zf.xn--3xa4248dy27d"); } // [B1]
9066test { try toAsciiFail("xn--4gb3736kk4zf.xn--3xa4248dy27d", false); } // [B1]
9067test { try toAsciiFail("xn--4gb3736kk4zf.xn--3xa4248dy27d", true); } // [B1]
37589068test { try toUnicodeFail("\xf2\xab\xa0\x90\xe3\x82\xb9\xf4\x86\x9f\xa4\xd9\xa9\xef\xbc\x8e\xf3\x9a\x83\x9f"); } // [B5, B6, V7]
9069test { try toAsciiFail("\xf2\xab\xa0\x90\xe3\x82\xb9\xf4\x86\x9f\xa4\xd9\xa9\xef\xbc\x8e\xf3\x9a\x83\x9f", false); } // [B5, B6, V7]
9070test { try toAsciiFail("\xf2\xab\xa0\x90\xe3\x82\xb9\xf4\x86\x9f\xa4\xd9\xa9\xef\xbc\x8e\xf3\x9a\x83\x9f", true); } // [B5, B6, V7]
37599071test { try toUnicodeFail("\xf2\xab\xa0\x90\xe3\x82\xb9\xf4\x86\x9f\xa4\xd9\xa9.\xf3\x9a\x83\x9f"); } // [B5, B6, V7]
9072test { try toAsciiFail("\xf2\xab\xa0\x90\xe3\x82\xb9\xf4\x86\x9f\xa4\xd9\xa9.\xf3\x9a\x83\x9f", false); } // [B5, B6, V7]
9073test { try toAsciiFail("\xf2\xab\xa0\x90\xe3\x82\xb9\xf4\x86\x9f\xa4\xd9\xa9.\xf3\x9a\x83\x9f", true); } // [B5, B6, V7]
37609074test { try toUnicodeFail("xn--iib777sp230oo708a.xn--7824e"); } // [B5, B6, V7]
9075test { try toAsciiFail("xn--iib777sp230oo708a.xn--7824e", false); } // [B5, B6, V7]
9076test { try toAsciiFail("xn--iib777sp230oo708a.xn--7824e", true); } // [B5, B6, V7]
37619077test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
9078test { try toAsciiFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x82", false); } // [B1, V6, V7, U1]
9079test { try toAsciiFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x82", true); } // [B1, V6, V7, U1]
37629080test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
9081test { try toAsciiFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x81\xd9\x94", false); } // [B1, V6, V7, U1]
9082test { try toAsciiFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x81\xd9\x94", true); } // [B1, V6, V7, U1]
37639083test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
9084test { try toAsciiFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x82", false); } // [B1, V6, V7, U1]
9085test { try toAsciiFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x82", true); } // [B1, V6, V7, U1]
37649086test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
9087test { try toAsciiFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x81\xd9\x94", false); } // [B1, V6, V7, U1]
9088test { try toAsciiFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x81\xd9\x94", true); } // [B1, V6, V7, U1]
37659089test { try toUnicodeFail("xn--8c3hu7971a.xn--?-wec30g"); } // [B1, V6, V7, U1]
9090test { try toAsciiFail("xn--8c3hu7971a.xn--?-wec30g", false); } // [B1, V6, V7, U1]
9091test { try toAsciiFail("xn--8c3hu7971a.xn--?-wec30g", true); } // [B1, V6, V7, U1]
37669092test { try toUnicodeFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
9093test { try toAsciiFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x82", false); } // [B1, V6, V7, U1]
9094test { try toAsciiFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x82", true); } // [B1, V6, V7, U1]
37679095test { try toUnicodeFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
9096test { try toAsciiFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94", false); } // [B1, V6, V7, U1]
9097test { try toAsciiFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94", true); } // [B1, V6, V7, U1]
37689098test { try toUnicodeFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
9099test { try toAsciiFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x81\xd9\x94", false); } // [B1, V6, V7, U1]
9100test { try toAsciiFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x81\xd9\x94", true); } // [B1, V6, V7, U1]
37699101test { try toUnicodeFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
9102test { try toAsciiFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x82", false); } // [B1, V6, V7, U1]
9103test { try toAsciiFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x82", true); } // [B1, V6, V7, U1]
37709104test { try toUnicodeFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
9105test { try toAsciiFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x82", false); } // [B1, V6, V7, U1]
9106test { try toAsciiFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x82", true); } // [B1, V6, V7, U1]
37719107test { try toUnicodeFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
9108test { try toAsciiFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94", false); } // [B1, V6, V7, U1]
9109test { try toAsciiFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94", true); } // [B1, V6, V7, U1]
37729110test { try toUnicodeFail("\xd9\xa0\xf2\xaa\x93\xb5\xe2\x80\x8c\xe3\x80\x82\xdd\x97"); } // [B1, C1, V7]
9111test { try toAsciiFail("\xd9\xa0\xf2\xaa\x93\xb5\xe2\x80\x8c\xe3\x80\x82\xdd\x97", false); } // [B1, C1, V7]
9112test { try toAsciiFail("\xd9\xa0\xf2\xaa\x93\xb5\xe2\x80\x8c\xe3\x80\x82\xdd\x97", true); } // [B1, V7]
37739113test { try toUnicodeFail("xn--8hb82030l.xn--bpb"); } // [B1, V7]
9114test { try toAsciiFail("xn--8hb82030l.xn--bpb", false); } // [B1, V7]
9115test { try toAsciiFail("xn--8hb82030l.xn--bpb", true); } // [B1, V7]
37749116test { try toUnicodeFail("xn--8hb852ke991q.xn--bpb"); } // [B1, C1, V7]
9117test { try toAsciiFail("xn--8hb852ke991q.xn--bpb", false); } // [B1, C1, V7]
9118test { try toAsciiFail("xn--8hb852ke991q.xn--bpb", true); } // [B1, C1, V7]
37759119test { try toUnicodeFail("\xe1\x80\xba\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82-\xe2\x80\x8c"); } // [C1, V3, V6]
9120test { try toAsciiFail("\xe1\x80\xba\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82-\xe2\x80\x8c", false); } // [C1, V3, V6]
9121test { try toAsciiFail("\xe1\x80\xba\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82-\xe2\x80\x8c", true); } // [V3, V6]
37769122test { try toUnicodeFail("xn--bkd.-"); } // [V3, V6]
9123test { try toAsciiFail("xn--bkd.-", false); } // [V3, V6]
9124test { try toAsciiFail("xn--bkd.-", true); } // [V3, V6]
37779125test { try toUnicodeFail("xn--bkd412fca.xn----sgn"); } // [C1, V3, V6]
9126test { try toAsciiFail("xn--bkd412fca.xn----sgn", false); } // [C1, V3, V6]
9127test { try toAsciiFail("xn--bkd412fca.xn----sgn", true); } // [C1, V3, V6]
37789128test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\xad\x84\xe1\xa1\x89"); } // [V6, V7]
9129test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\xad\x84\xe1\xa1\x89", false); } // [V6, V7]
9130test { try toAsciiFail("\xef\xb8\x92\xef\xbd\xa1\xe1\xad\x84\xe1\xa1\x89", true); } // [V6, V7]
37799131test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\xad\x84\xe1\xa1\x89"); } // [V6, X4_2]
9132test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\xad\x84\xe1\xa1\x89", false); } // [V6, A4_2]
9133test { try toAsciiFail("\xe3\x80\x82\xe3\x80\x82\xe1\xad\x84\xe1\xa1\x89", true); } // [V6, A4_2]
37809134test { try toUnicodeFail("..xn--87e93m"); } // [V6, X4_2]
9135test { try toAsciiFail("..xn--87e93m", false); } // [V6, A4_2]
9136test { try toAsciiFail("..xn--87e93m", true); } // [V6, A4_2]
37819137test { try toUnicodeFail("xn--y86c.xn--87e93m"); } // [V6, V7]
9138test { try toAsciiFail("xn--y86c.xn--87e93m", false); } // [V6, V7]
9139test { try toAsciiFail("xn--y86c.xn--87e93m", true); } // [V6, V7]
37829140test { try toUnicodeFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5]
9141test { try toAsciiFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90", false); } // [B2, B3, B5]
9142test { try toAsciiFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90", true); } // [B2, B3, B5]
37839143test { try toUnicodeFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5]
9144test { try toAsciiFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82", false); } // [B2, B3, B5]
9145test { try toAsciiFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82", true); } // [B2, B3, B5]
37849146test { try toUnicodeFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5]
9147test { try toAsciiFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82", false); } // [B2, B3, B5]
9148test { try toAsciiFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82", true); } // [B2, B3, B5]
37859149test { try toUnicodeFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5]
9150test { try toAsciiFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82", false); } // [B2, B3, B5]
9151test { try toAsciiFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82", true); } // [B2, B3, B5]
37869152test { try toUnicodeFail("xn--ss-gke.xn--2-b5c641gfmf"); } // [B2, B3, B5]
9153test { try toAsciiFail("xn--ss-gke.xn--2-b5c641gfmf", false); } // [B2, B3, B5]
9154test { try toAsciiFail("xn--ss-gke.xn--2-b5c641gfmf", true); } // [B2, B3, B5]
37879155test { try toUnicodeFail("xn--zca724a.xn--2-b5c641gfmf"); } // [B2, B3, B5]
9156test { try toAsciiFail("xn--zca724a.xn--2-b5c641gfmf", false); } // [B2, B3, B5]
9157test { try toAsciiFail("xn--zca724a.xn--2-b5c641gfmf", true); } // [B2, B3, B5]
37889158test { try toUnicodeFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5]
9159test { try toAsciiFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90", false); } // [B2, B3, B5]
9160test { try toAsciiFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90", true); } // [B2, B3, B5]
37899161test { try toUnicodeFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5]
9162test { try toAsciiFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90", false); } // [B2, B3, B5]
9163test { try toAsciiFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90", true); } // [B2, B3, B5]
37909164test { try toUnicodeFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5]
9165test { try toAsciiFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82", false); } // [B2, B3, B5]
9166test { try toAsciiFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82", true); } // [B2, B3, B5]
37919167test { try toUnicodeFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5]
9168test { try toAsciiFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90", false); } // [B2, B3, B5]
9169test { try toAsciiFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90", true); } // [B2, B3, B5]
37929170test { try toUnicodeFail("\xdf\x83\xf0\x9e\xb6\x87\xe1\x9a\xb2.\xe0\xa4\x82\xcd\x93\xf0\x9d\x9f\x9a\xe0\xa7\x8d"); } // [B1, B2, B3, V6, V7]
9171test { try toAsciiFail("\xdf\x83\xf0\x9e\xb6\x87\xe1\x9a\xb2.\xe0\xa4\x82\xcd\x93\xf0\x9d\x9f\x9a\xe0\xa7\x8d", false); } // [B1, B2, B3, V6, V7]
9172test { try toAsciiFail("\xdf\x83\xf0\x9e\xb6\x87\xe1\x9a\xb2.\xe0\xa4\x82\xcd\x93\xf0\x9d\x9f\x9a\xe0\xa7\x8d", true); } // [B1, B2, B3, V6, V7]
37939173test { try toUnicodeFail("\xdf\x83\xf0\x9e\xb6\x87\xe1\x9a\xb2.\xe0\xa4\x82\xcd\x932\xe0\xa7\x8d"); } // [B1, B2, B3, V6, V7]
9174test { try toAsciiFail("\xdf\x83\xf0\x9e\xb6\x87\xe1\x9a\xb2.\xe0\xa4\x82\xcd\x932\xe0\xa7\x8d", false); } // [B1, B2, B3, V6, V7]
9175test { try toAsciiFail("\xdf\x83\xf0\x9e\xb6\x87\xe1\x9a\xb2.\xe0\xa4\x82\xcd\x932\xe0\xa7\x8d", true); } // [B1, B2, B3, V6, V7]
37949176test { try toUnicodeFail("xn--esb067enh07a.xn--2-lgb874bjxa"); } // [B1, B2, B3, V6, V7]
9177test { try toAsciiFail("xn--esb067enh07a.xn--2-lgb874bjxa", false); } // [B1, B2, B3, V6, V7]
9178test { try toAsciiFail("xn--esb067enh07a.xn--2-lgb874bjxa", true); } // [B1, B2, B3, V6, V7]
37959179test { try toUnicodeFail("-\xe1\xae\xab\xef\xb8\x92\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93"); } // [C2, V3, V7]
9180test { try toAsciiFail("-\xe1\xae\xab\xef\xb8\x92\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93", false); } // [C2, V3, V7]
9181test { try toAsciiFail("-\xe1\xae\xab\xef\xb8\x92\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93", true); } // [V3, V7]
37969182test { try toUnicodeFail("-\xe1\xae\xab\xe3\x80\x82\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93"); } // [C2, V3, V7]
9183test { try toAsciiFail("-\xe1\xae\xab\xe3\x80\x82\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93", false); } // [C2, V3, V7]
9184test { try toAsciiFail("-\xe1\xae\xab\xe3\x80\x82\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93", true); } // [V3, V7, A4_2]
37979185test { try toUnicodeFail("xn----qml..xn--x50zy803a"); } // [V3, V7, X4_2]
9186test { try toAsciiFail("xn----qml..xn--x50zy803a", false); } // [V3, V7, A4_2]
9187test { try toAsciiFail("xn----qml..xn--x50zy803a", true); } // [V3, V7, A4_2]
37989188test { try toUnicodeFail("xn----qml.xn--1ug.xn--x50zy803a"); } // [C2, V3, V7]
9189test { try toAsciiFail("xn----qml.xn--1ug.xn--x50zy803a", false); } // [C2, V3, V7]
9190test { try toAsciiFail("xn----qml.xn--1ug.xn--x50zy803a", true); } // [C2, V3, V7]
37999191test { try toUnicodeFail("xn----qml1407i.xn--x50zy803a"); } // [V3, V7]
9192test { try toAsciiFail("xn----qml1407i.xn--x50zy803a", false); } // [V3, V7]
9193test { try toAsciiFail("xn----qml1407i.xn--x50zy803a", true); } // [V3, V7]
38009194test { try toUnicodeFail("xn----qmlv7tw180a.xn--x50zy803a"); } // [C2, V3, V7]
9195test { try toAsciiFail("xn----qmlv7tw180a.xn--x50zy803a", false); } // [C2, V3, V7]
9196test { try toAsciiFail("xn----qmlv7tw180a.xn--x50zy803a", true); } // [C2, V3, V7]
38019197test { try toUnicodeFail("\xf3\xa0\xa6\xae.\xe2\x89\xaf\xf0\x9e\x80\x86"); } // [V7]
9198test { try toAsciiFail("\xf3\xa0\xa6\xae.\xe2\x89\xaf\xf0\x9e\x80\x86", false); } // [V7]
9199test { try toAsciiFail("\xf3\xa0\xa6\xae.\xe2\x89\xaf\xf0\x9e\x80\x86", true); } // [V7]
38029200test { try toUnicodeFail("\xf3\xa0\xa6\xae.>\xcc\xb8\xf0\x9e\x80\x86"); } // [V7]
9201test { try toAsciiFail("\xf3\xa0\xa6\xae.>\xcc\xb8\xf0\x9e\x80\x86", false); } // [V7]
9202test { try toAsciiFail("\xf3\xa0\xa6\xae.>\xcc\xb8\xf0\x9e\x80\x86", true); } // [V7]
38039203test { try toUnicodeFail("xn--t546e.xn--hdh5166o"); } // [V7]
9204test { try toAsciiFail("xn--t546e.xn--hdh5166o", false); } // [V7]
9205test { try toAsciiFail("xn--t546e.xn--hdh5166o", true); } // [V7]
38049206test { try toUnicodeFail("-\xf0\x91\x84\xb3\xf3\xa0\x8a\x97\xf0\x90\xb9\xa9\xe3\x80\x82\xf0\x9e\xae\xb1"); } // [B1, V3, V7]
9207test { try toAsciiFail("-\xf0\x91\x84\xb3\xf3\xa0\x8a\x97\xf0\x90\xb9\xa9\xe3\x80\x82\xf0\x9e\xae\xb1", false); } // [B1, V3, V7]
9208test { try toAsciiFail("-\xf0\x91\x84\xb3\xf3\xa0\x8a\x97\xf0\x90\xb9\xa9\xe3\x80\x82\xf0\x9e\xae\xb1", true); } // [B1, V3, V7]
38059209test { try toUnicodeFail("xn----p26i72em2894c.xn--zw6h"); } // [B1, V3, V7]
9210test { try toAsciiFail("xn----p26i72em2894c.xn--zw6h", false); } // [B1, V3, V7]
9211test { try toAsciiFail("xn----p26i72em2894c.xn--zw6h", true); } // [B1, V3, V7]
38069212test { try toUnicodePass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "\xda\xb9.\xe1\xa1\xb3"); }
38079213test { try toAsciiPass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "xn--skb.xn--g9e", false); }
38089214test { try toAsciiPass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "xn--skb.xn--g9e", true); }
......@@ -3816,31 +9222,65 @@ test { try toUnicodePass("\xda\xb9.\xe1\xa1\xb3", "\xda\xb9.\xe1\xa1\xb3"); }
38169222test { try toAsciiPass("\xda\xb9.\xe1\xa1\xb3", "xn--skb.xn--g9e", false); }
38179223test { try toAsciiPass("\xda\xb9.\xe1\xa1\xb3", "xn--skb.xn--g9e", true); }
38189224test { try toUnicodeFail("xn--skb.xn--osd737a"); } // [V7]
9225test { try toAsciiFail("xn--skb.xn--osd737a", false); } // [V7]
9226test { try toAsciiFail("xn--skb.xn--osd737a", true); } // [V7]
38199227test { 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]
9229test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81", true); } // [V7]
38209230test { 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]
9232test { try toAsciiFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xe3\x80\x827\xe0\xb4\x81", true); } // [A4_2]
38219233test { try toUnicodeFail("xn--mbm8237g..xn--7-7hf"); } // [X4_2]
9234test { try toAsciiFail("xn--mbm8237g..xn--7-7hf", false); } // [A4_2]
9235test { try toAsciiFail("xn--mbm8237g..xn--7-7hf", true); } // [A4_2]
38229236test { try toUnicodeFail("xn--mbm8237g.xn--7-7hf1526p"); } // [V7]
9237test { try toAsciiFail("xn--mbm8237g.xn--7-7hf1526p", false); } // [V7]
9238test { try toAsciiFail("xn--mbm8237g.xn--7-7hf1526p", true); } // [V7]
38239239test { try toUnicodeFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3\xe2\x89\xae"); } // [B1, B3, V3, V7]
9240test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3\xe2\x89\xae", false); } // [B1, B3, V3, V7]
9241test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3\xe2\x89\xae", true); } // [B1, B3, V3, V7]
38249242test { try toUnicodeFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3<\xcc\xb8"); } // [B1, B3, V3, V7]
9243test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3<\xcc\xb8", false); } // [B1, B3, V3, V7]
9244test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3<\xcc\xb8", true); } // [B1, B3, V3, V7]
38259245test { try toUnicodeFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3\xe2\x89\xae"); } // [B1, B3, V3, V7]
9246test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3\xe2\x89\xae", false); } // [B1, B3, V3, V7]
9247test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3\xe2\x89\xae", true); } // [B1, B3, V3, V7]
38269248test { try toUnicodeFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3<\xcc\xb8"); } // [B1, B3, V3, V7]
9249test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3<\xcc\xb8", false); } // [B1, B3, V3, V7]
9250test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\xa3<\xcc\xb8", true); } // [B1, B3, V3, V7]
38279251test { try toUnicodeFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81<\xcc\xb8"); } // [B1, B3, V3, V7]
9252test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81<\xcc\xb8", false); } // [B1, B3, V3, V7]
9253test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81<\xcc\xb8", true); } // [B1, B3, V3, V7]
38289254test { try toUnicodeFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81\xe2\x89\xae"); } // [B1, B3, V3, V7]
9255test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81\xe2\x89\xae", false); } // [B1, B3, V3, V7]
9256test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xe3\x80\x82\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81\xe2\x89\xae", true); } // [B1, B3, V3, V7]
38299257test { try toUnicodeFail("xn----dxc06304e.xn--gdh5020pk5c"); } // [B1, B3, V3, V7]
9258test { try toAsciiFail("xn----dxc06304e.xn--gdh5020pk5c", false); } // [B1, B3, V3, V7]
9259test { try toAsciiFail("xn----dxc06304e.xn--gdh5020pk5c", true); } // [B1, B3, V3, V7]
38309260test { try toUnicodeFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81<\xcc\xb8"); } // [B1, B3, V3, V7]
9261test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81<\xcc\xb8", false); } // [B1, B3, V3, V7]
9262test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81<\xcc\xb8", true); } // [B1, B3, V3, V7]
38319263test { try toUnicodeFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81\xe2\x89\xae"); } // [B1, B3, V3, V7]
9264test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81\xe2\x89\xae", false); } // [B1, B3, V3, V7]
9265test { try toAsciiFail("\xdb\x9d\xf0\xbb\xb1\xa7-\xef\xbd\xa1\xf0\x9e\xb7\x81\xe2\x81\xa4\xf0\x9e\xa4\x81\xe2\x89\xae", true); } // [B1, B3, V3, V7]
38329266test { try toAsciiPass("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38339267test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6"); } // [C1]
9268test { try toAsciiFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6", false); } // [C1]
38349269test { try toAsciiPass("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38359270test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6"); } // [C1]
9271test { try toAsciiFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6", false); } // [C1]
38369272test { try toAsciiPass("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38379273test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } // [C1]
9274test { try toAsciiFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96", false); } // [C1]
38389275test { try toAsciiPass("SS\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38399276test { try toUnicodeFail("SS\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6"); } // [C1]
9277test { try toAsciiFail("SS\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6", false); } // [C1]
38409278test { try toAsciiPass("ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38419279test { try toUnicodeFail("ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } // [C1]
9280test { try toAsciiFail("ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96", false); } // [C1]
38429281test { try toAsciiPass("Ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38439282test { try toUnicodeFail("Ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96"); } // [C1]
9283test { try toAsciiFail("Ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", false); } // [C1]
38449284test { try toUnicodePass("xn--ss-4epx629f.xn--ifh802b6a", "ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); }
38459285test { try toAsciiPass("xn--ss-4epx629f.xn--ifh802b6a", "xn--ss-4epx629f.xn--ifh802b6a", false); }
38469286test { try toAsciiPass("xn--ss-4epx629f.xn--ifh802b6a", "xn--ss-4epx629f.xn--ifh802b6a", true); }
......@@ -3854,103 +9294,287 @@ test { try toUnicodePass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe
38549294test { try toAsciiPass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", false); }
38559295test { try toAsciiPass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38569296test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--ifh802b6a"); } // [C1]
9297test { try toAsciiFail("xn--ss-4ep585bkm5p.xn--ifh802b6a", false); } // [C1]
9298test { try toAsciiFail("xn--ss-4ep585bkm5p.xn--ifh802b6a", true); } // [C1]
38579299test { try toUnicodeFail("xn--zca682johfi89m.xn--ifh802b6a"); } // [C1]
9300test { try toAsciiFail("xn--zca682johfi89m.xn--ifh802b6a", false); } // [C1]
9301test { try toAsciiFail("xn--zca682johfi89m.xn--ifh802b6a", true); } // [C1]
38589302test { try toAsciiPass("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38599303test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } // [C1]
9304test { try toAsciiFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96", false); } // [C1]
38609305test { try toAsciiPass("SS\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38619306test { try toUnicodeFail("SS\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6"); } // [C1]
9307test { try toAsciiFail("SS\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6", false); } // [C1]
38629308test { try toAsciiPass("ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38639309test { try toUnicodeFail("ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } // [C1]
9310test { try toAsciiFail("ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96", false); } // [C1]
38649311test { try toAsciiPass("Ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }
38659312test { try toUnicodeFail("Ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96"); } // [C1]
9313test { try toAsciiFail("Ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5\xef\xbc\x8e\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", false); } // [C1]
38669314test { try toUnicodeFail("xn--ss-4epx629f.xn--5nd703gyrh"); } // [V7]
9315test { try toAsciiFail("xn--ss-4epx629f.xn--5nd703gyrh", false); } // [V7]
9316test { try toAsciiFail("xn--ss-4epx629f.xn--5nd703gyrh", true); } // [V7]
38679317test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--5nd703gyrh"); } // [C1, V7]
9318test { try toAsciiFail("xn--ss-4ep585bkm5p.xn--5nd703gyrh", false); } // [C1, V7]
9319test { try toAsciiFail("xn--ss-4ep585bkm5p.xn--5nd703gyrh", true); } // [C1, V7]
38689320test { try toUnicodeFail("xn--ss-4epx629f.xn--undv409k"); } // [V7]
9321test { try toAsciiFail("xn--ss-4epx629f.xn--undv409k", false); } // [V7]
9322test { try toAsciiFail("xn--ss-4epx629f.xn--undv409k", true); } // [V7]
38699323test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--undv409k"); } // [C1, V7]
9324test { try toAsciiFail("xn--ss-4ep585bkm5p.xn--undv409k", false); } // [C1, V7]
9325test { try toAsciiFail("xn--ss-4ep585bkm5p.xn--undv409k", true); } // [C1, V7]
38709326test { try toUnicodeFail("xn--zca682johfi89m.xn--undv409k"); } // [C1, V7]
9327test { try toAsciiFail("xn--zca682johfi89m.xn--undv409k", false); } // [C1, V7]
9328test { try toAsciiFail("xn--zca682johfi89m.xn--undv409k", true); } // [C1, V7]
38719329test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x82\xf3\xa0\x81\x89"); } // [C2, V7]
9330test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x82\xf3\xa0\x81\x89", false); } // [C2, V7]
9331test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x82\xf3\xa0\x81\x89", true); } // [V7, A4_2]
38729332test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xce\xa3\xf3\xa0\x81\x89"); } // [C2, V7]
9333test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xce\xa3\xf3\xa0\x81\x89", false); } // [C2, V7]
9334test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xce\xa3\xf3\xa0\x81\x89", true); } // [V7, A4_2]
38739335test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x83\xf3\xa0\x81\x89"); } // [C2, V7]
9336test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x83\xf3\xa0\x81\x89", false); } // [C2, V7]
9337test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x83\xf3\xa0\x81\x89", true); } // [V7, A4_2]
38749338test { try toUnicodeFail(".xn--4xa24344p"); } // [V7, X4_2]
9339test { try toAsciiFail(".xn--4xa24344p", false); } // [V7, A4_2]
9340test { try toAsciiFail(".xn--4xa24344p", true); } // [V7, A4_2]
38759341test { try toUnicodeFail("xn--1ug.xn--4xa24344p"); } // [C2, V7]
9342test { try toAsciiFail("xn--1ug.xn--4xa24344p", false); } // [C2, V7]
9343test { try toAsciiFail("xn--1ug.xn--4xa24344p", true); } // [C2, V7]
38769344test { try toUnicodeFail("xn--1ug.xn--3xa44344p"); } // [C2, V7]
9345test { try toAsciiFail("xn--1ug.xn--3xa44344p", false); } // [C2, V7]
9346test { try toAsciiFail("xn--1ug.xn--3xa44344p", true); } // [C2, V7]
38779347test { try toUnicodeFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7]
9348test { try toAsciiFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-", false); } // [B2, B3, C2, V3, V7]
9349test { try toAsciiFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-", true); } // [B2, B3, V3, V7]
38789350test { try toUnicodeFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7]
9351test { try toAsciiFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-", false); } // [B2, B3, C2, V3, V7]
9352test { try toAsciiFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-", true); } // [B2, B3, V3, V7]
38799353test { try toUnicodeFail("\xf0\x9e\xb5\x91SS.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7]
9354test { try toAsciiFail("\xf0\x9e\xb5\x91SS.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-", false); } // [B2, B3, C2, V3, V7]
9355test { try toAsciiFail("\xf0\x9e\xb5\x91SS.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-", true); } // [B2, B3, V3, V7]
38809356test { try toUnicodeFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7]
9357test { try toAsciiFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-", false); } // [B2, B3, C2, V3, V7]
9358test { try toAsciiFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-", true); } // [B2, B3, V3, V7]
38819359test { try toUnicodeFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7]
9360test { try toAsciiFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-", false); } // [B2, B3, C2, V3, V7]
9361test { try toAsciiFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-", true); } // [B2, B3, V3, V7]
38829362test { try toUnicodeFail("xn--ss-2722a.xn----z3c03218a"); } // [B2, B3, V3, V7]
9363test { try toAsciiFail("xn--ss-2722a.xn----z3c03218a", false); } // [B2, B3, V3, V7]
9364test { try toAsciiFail("xn--ss-2722a.xn----z3c03218a", true); } // [B2, B3, V3, V7]
38839365test { try toUnicodeFail("xn--ss-2722a.xn----z3c011q9513b"); } // [B2, B3, C2, V3, V7]
9366test { try toAsciiFail("xn--ss-2722a.xn----z3c011q9513b", false); } // [B2, B3, C2, V3, V7]
9367test { try toAsciiFail("xn--ss-2722a.xn----z3c011q9513b", true); } // [B2, B3, C2, V3, V7]
38849368test { try toUnicodeFail("xn--zca5423w.xn----z3c011q9513b"); } // [B2, B3, C2, V3, V7]
9369test { try toAsciiFail("xn--zca5423w.xn----z3c011q9513b", false); } // [B2, B3, C2, V3, V7]
9370test { try toAsciiFail("xn--zca5423w.xn----z3c011q9513b", true); } // [B2, B3, C2, V3, V7]
38859371test { try toUnicodeFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7]
9372test { try toAsciiFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-", false); } // [B2, B3, C2, V3, V7]
9373test { try toAsciiFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-", true); } // [B2, B3, V3, V7]
38869374test { try toUnicodeFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7]
9375test { try toAsciiFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-", false); } // [B2, B3, C2, V3, V7]
9376test { try toAsciiFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-", true); } // [B2, B3, V3, V7]
38879377test { try toUnicodeFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\xa7\xef\xbc\x8e\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-"); } // [B1, C2, V3, V6, V7]
9378test { try toAsciiFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\xa7\xef\xbc\x8e\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-", false); } // [B1, C2, V3, V6, V7]
9379test { try toAsciiFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\xa7\xef\xbc\x8e\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-", true); } // [B1, V3, V6, V7]
38889380test { try toUnicodeFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\xa7.\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-"); } // [B1, C2, V3, V6, V7]
9381test { try toAsciiFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\xa7.\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-", false); } // [B1, C2, V3, V6, V7]
9382test { try toAsciiFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\xa7.\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-", true); } // [B1, V3, V6, V7]
38899383test { try toUnicodeFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\x85.\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-"); } // [B1, C2, V3, V6, V7]
9384test { try toAsciiFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\x85.\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-", false); } // [B1, C2, V3, V6, V7]
9385test { try toAsciiFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\x85.\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-", true); } // [B1, V3, V6, V7]
38909386test { try toUnicodeFail("xn--qb2ds317a.xn----k26iq1483f"); } // [B1, V3, V6, V7]
9387test { try toAsciiFail("xn--qb2ds317a.xn----k26iq1483f", false); } // [B1, V3, V6, V7]
9388test { try toAsciiFail("xn--qb2ds317a.xn----k26iq1483f", true); } // [B1, V3, V6, V7]
38919389test { try toUnicodeFail("xn--1ugz808gdimf.xn----k26iq1483f"); } // [B1, C2, V3, V6, V7]
9390test { try toAsciiFail("xn--1ugz808gdimf.xn----k26iq1483f", false); } // [B1, C2, V3, V6, V7]
9391test { try toAsciiFail("xn--1ugz808gdimf.xn----k26iq1483f", true); } // [B1, C2, V3, V6, V7]
38929392test { try toUnicodeFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\x85\xef\xbc\x8e\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-"); } // [B1, C2, V3, V6, V7]
9393test { try toAsciiFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\x85\xef\xbc\x8e\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-", false); } // [B1, C2, V3, V6, V7]
9394test { try toAsciiFail("\xf0\x91\x98\xbd\xe2\x80\x8d\xf0\x9e\xa4\x85\xef\xbc\x8e\xf0\x90\xb9\xa7\xf3\xa1\xa6\xaa-", true); } // [B1, V3, V6, V7]
38939395test { try toUnicodeFail("\xe2\x92\x92\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a"); } // [V3, V7]
9396test { try toAsciiFail("\xe2\x92\x92\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a", false); } // [V3, V7]
9397test { try toAsciiFail("\xe2\x92\x92\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a", true); } // [V3, V7]
38949398test { try toUnicodeFail("11.\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a"); } // [V3, V7]
9399test { try toAsciiFail("11.\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a", false); } // [V3, V7]
9400test { try toAsciiFail("11.\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a", true); } // [V3, V7]
38959401test { try toUnicodeFail("11.xn--uz1d59632bxujd.xn----x310m"); } // [V3, V7]
9402test { try toAsciiFail("11.xn--uz1d59632bxujd.xn----x310m", false); } // [V3, V7]
9403test { try toAsciiFail("11.xn--uz1d59632bxujd.xn----x310m", true); } // [V3, V7]
38969404test { try toUnicodeFail("xn--3shy698frsu9dt1me.xn----x310m"); } // [V3, V7]
9405test { try toAsciiFail("xn--3shy698frsu9dt1me.xn----x310m", false); } // [V3, V7]
9406test { try toAsciiFail("xn--3shy698frsu9dt1me.xn----x310m", true); } // [V3, V7]
38979407test { try toUnicodeFail("-\xef\xbd\xa1\xe2\x80\x8d"); } // [C2, V3]
9408test { try toAsciiFail("-\xef\xbd\xa1\xe2\x80\x8d", false); } // [C2, V3]
9409test { try toAsciiFail("-\xef\xbd\xa1\xe2\x80\x8d", true); } // [V3, A4_2]
38989410test { try toUnicodeFail("-\xe3\x80\x82\xe2\x80\x8d"); } // [C2, V3]
9411test { try toAsciiFail("-\xe3\x80\x82\xe2\x80\x8d", false); } // [C2, V3]
9412test { try toAsciiFail("-\xe3\x80\x82\xe2\x80\x8d", true); } // [V3, A4_2]
38999413test { try toUnicodeFail("-."); } // [V3]
9414test { try toAsciiFail("-.", false); } // [V3, A4_2]
9415test { try toAsciiFail("-.", true); } // [V3, A4_2]
39009416test { try toUnicodeFail("-.xn--1ug"); } // [C2, V3]
9417test { try toAsciiFail("-.xn--1ug", false); } // [C2, V3]
9418test { try toAsciiFail("-.xn--1ug", true); } // [C2, V3]
39019419test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?"); } // [U1]
9420test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?", false); } // [U1]
9421test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?", true); } // [U1]
39029422test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?"); } // [U1]
9423test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?", false); } // [U1]
9424test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?", true); } // [U1]
39039425test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x821-?"); } // [U1]
9426test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x821-?", false); } // [U1]
9427test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x821-?", true); } // [U1]
39049428test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x821-?"); } // [U1]
9429test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x821-?", false); } // [U1]
9430test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x821-?", true); } // [U1]
39059431test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xce\xa31-?"); } // [U1]
9432test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac.\xce\xa31-?", false); } // [U1]
9433test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac.\xce\xa31-?", true); } // [U1]
39069434test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xce\xa31-?"); } // [U1]
9435test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac.\xce\xa31-?", false); } // [U1]
9436test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac.\xce\xa31-?", true); } // [U1]
39079437test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x831-?"); } // [U1]
9438test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x831-?", false); } // [U1]
9439test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x831-?", true); } // [U1]
39089440test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x831-?"); } // [U1]
9441test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x831-?", false); } // [U1]
9442test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x831-?", true); } // [U1]
39099443test { try toUnicodeFail("xn--88e732c.xn--1-?-pzc"); } // [U1]
9444test { try toAsciiFail("xn--88e732c.xn--1-?-pzc", false); } // [U1]
9445test { try toAsciiFail("xn--88e732c.xn--1-?-pzc", true); } // [U1]
39109446test { try toUnicodeFail("xn--88e732c.xn--1-?-lzc"); } // [U1]
9447test { try toAsciiFail("xn--88e732c.xn--1-?-lzc", false); } // [U1]
9448test { try toAsciiFail("xn--88e732c.xn--1-?-lzc", true); } // [U1]
39119449test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?"); } // [U1]
9450test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?", false); } // [U1]
9451test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?", true); } // [U1]
39129452test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?"); } // [U1]
9453test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?", false); } // [U1]
9454test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?", true); } // [U1]
39139455test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?"); } // [U1]
9456test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?", false); } // [U1]
9457test { try toAsciiFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?", true); } // [U1]
39149458test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?"); } // [U1]
9459test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?", false); } // [U1]
9460test { try toAsciiFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?", true); } // [U1]
39159461test { try toUnicodeFail("xn--88e732c.\xcf\x831-?"); } // [U1]
9462test { try toAsciiFail("xn--88e732c.\xcf\x831-?", false); } // [U1]
9463test { try toAsciiFail("xn--88e732c.\xcf\x831-?", true); } // [U1]
39169464test { try toUnicodeFail("XN--88E732C.\xce\xa31-?"); } // [U1]
9465test { try toAsciiFail("XN--88E732C.\xce\xa31-?", false); } // [U1]
9466test { try toAsciiFail("XN--88E732C.\xce\xa31-?", true); } // [U1]
39179467test { try toUnicodeFail("xn--88e732c.\xcf\x821-?"); } // [U1]
9468test { try toAsciiFail("xn--88e732c.\xcf\x821-?", false); } // [U1]
9469test { try toAsciiFail("xn--88e732c.\xcf\x821-?", true); } // [U1]
39189470test { try toUnicodeFail("Xn--88e732c.\xcf\x821-?"); } // [U1]
9471test { try toAsciiFail("Xn--88e732c.\xcf\x821-?", false); } // [U1]
9472test { try toAsciiFail("Xn--88e732c.\xcf\x821-?", true); } // [U1]
39199473test { try toUnicodeFail("Xn--88e732c.\xcf\x831-?"); } // [U1]
9474test { try toAsciiFail("Xn--88e732c.\xcf\x831-?", false); } // [U1]
9475test { try toAsciiFail("Xn--88e732c.\xcf\x831-?", true); } // [U1]
39209476test { try toUnicodeFail("\xe1\x89\xac\xf2\x94\xa0\xbc\xf1\x81\x97\xb6\xef\xbd\xa1\xf0\x90\xa8\xac\xf0\x9d\x9f\xa0"); } // [V7]
9477test { try toAsciiFail("\xe1\x89\xac\xf2\x94\xa0\xbc\xf1\x81\x97\xb6\xef\xbd\xa1\xf0\x90\xa8\xac\xf0\x9d\x9f\xa0", false); } // [V7]
9478test { try toAsciiFail("\xe1\x89\xac\xf2\x94\xa0\xbc\xf1\x81\x97\xb6\xef\xbd\xa1\xf0\x90\xa8\xac\xf0\x9d\x9f\xa0", true); } // [V7]
39219479test { try toUnicodeFail("\xe1\x89\xac\xf2\x94\xa0\xbc\xf1\x81\x97\xb6\xe3\x80\x82\xf0\x90\xa8\xac8"); } // [V7]
9480test { try toAsciiFail("\xe1\x89\xac\xf2\x94\xa0\xbc\xf1\x81\x97\xb6\xe3\x80\x82\xf0\x90\xa8\xac8", false); } // [V7]
9481test { try toAsciiFail("\xe1\x89\xac\xf2\x94\xa0\xbc\xf1\x81\x97\xb6\xe3\x80\x82\xf0\x90\xa8\xac8", true); } // [V7]
39229482test { try toUnicodeFail("xn--d0d41273c887z.xn--8-ob5i"); } // [V7]
9483test { try toAsciiFail("xn--d0d41273c887z.xn--8-ob5i", false); } // [V7]
9484test { try toAsciiFail("xn--d0d41273c887z.xn--8-ob5i", true); } // [V7]
39239485test { try toUnicodeFail("\xf0\x90\xb1\xb2\xe3\x80\x82\xe8\x94\xab\xdd\xa6"); } // [B5, B6, V7]
9486test { try toAsciiFail("\xf0\x90\xb1\xb2\xe3\x80\x82\xe8\x94\xab\xdd\xa6", false); } // [B5, B6, V7]
9487test { try toAsciiFail("\xf0\x90\xb1\xb2\xe3\x80\x82\xe8\x94\xab\xdd\xa6", true); } // [B5, B6, V7]
39249488test { try toUnicodeFail("xn--389c.xn--qpb7055d"); } // [B5, B6, V7]
9489test { try toAsciiFail("xn--389c.xn--qpb7055d", false); } // [B5, B6, V7]
9490test { try toAsciiFail("xn--389c.xn--qpb7055d", true); } // [B5, B6, V7]
39259491test { try toUnicodeFail("\xf2\x92\xb2\xa7\xe2\x82\x83\xef\xbd\xa1\xea\xa1\x9a\xf0\x9b\x87\x91\xf3\xa0\x84\xb3\xd9\x87"); } // [B5, B6, V7]
9492test { try toAsciiFail("\xf2\x92\xb2\xa7\xe2\x82\x83\xef\xbd\xa1\xea\xa1\x9a\xf0\x9b\x87\x91\xf3\xa0\x84\xb3\xd9\x87", false); } // [B5, B6, V7]
9493test { try toAsciiFail("\xf2\x92\xb2\xa7\xe2\x82\x83\xef\xbd\xa1\xea\xa1\x9a\xf0\x9b\x87\x91\xf3\xa0\x84\xb3\xd9\x87", true); } // [B5, B6, V7]
39269494test { try toUnicodeFail("\xf2\x92\xb2\xa73\xe3\x80\x82\xea\xa1\x9a\xf0\x9b\x87\x91\xf3\xa0\x84\xb3\xd9\x87"); } // [B5, B6, V7]
9495test { try toAsciiFail("\xf2\x92\xb2\xa73\xe3\x80\x82\xea\xa1\x9a\xf0\x9b\x87\x91\xf3\xa0\x84\xb3\xd9\x87", false); } // [B5, B6, V7]
9496test { try toAsciiFail("\xf2\x92\xb2\xa73\xe3\x80\x82\xea\xa1\x9a\xf0\x9b\x87\x91\xf3\xa0\x84\xb3\xd9\x87", true); } // [B5, B6, V7]
39279497test { try toUnicodeFail("xn--3-ep59g.xn--jhb5904fcp0h"); } // [B5, B6, V7]
9498test { try toAsciiFail("xn--3-ep59g.xn--jhb5904fcp0h", false); } // [B5, B6, V7]
9499test { try toAsciiFail("xn--3-ep59g.xn--jhb5904fcp0h", true); } // [B5, B6, V7]
39289500test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.\xc3\x9f"); } // [B5, B6]
9501test { try toAsciiFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.\xc3\x9f", false); } // [B5, B6]
9502test { try toAsciiFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.\xc3\x9f", true); } // [B5, B6]
39299503test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.\xc3\x9f"); } // [B5, B6]
9504test { try toAsciiFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.\xc3\x9f", false); } // [B5, B6]
9505test { try toAsciiFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.\xc3\x9f", true); } // [B5, B6]
39309506test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.SS"); } // [B5, B6]
9507test { try toAsciiFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.SS", false); } // [B5, B6]
9508test { try toAsciiFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.SS", true); } // [B5, B6]
39319509test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.SS"); } // [B5, B6]
9510test { try toAsciiFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.SS", false); } // [B5, B6]
9511test { try toAsciiFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.SS", true); } // [B5, B6]
39329512test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.ss"); } // [B5, B6]
9513test { try toAsciiFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.ss", false); } // [B5, B6]
9514test { try toAsciiFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.ss", true); } // [B5, B6]
39339515test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.ss"); } // [B5, B6]
9516test { try toAsciiFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.ss", false); } // [B5, B6]
9517test { try toAsciiFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.ss", true); } // [B5, B6]
39349518test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.Ss"); } // [B5, B6]
9519test { try toAsciiFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.Ss", false); } // [B5, B6]
9520test { try toAsciiFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.Ss", true); } // [B5, B6]
39359521test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.Ss"); } // [B5, B6]
9522test { try toAsciiFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.Ss", false); } // [B5, B6]
9523test { try toAsciiFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.Ss", true); } // [B5, B6]
39369524test { try toUnicodeFail("xn--ehb015lnt1e.ss"); } // [B5, B6]
9525test { try toAsciiFail("xn--ehb015lnt1e.ss", false); } // [B5, B6]
9526test { try toAsciiFail("xn--ehb015lnt1e.ss", true); } // [B5, B6]
39379527test { try toUnicodeFail("xn--ehb015lnt1e.xn--zca"); } // [B5, B6]
9528test { try toAsciiFail("xn--ehb015lnt1e.xn--zca", false); } // [B5, B6]
9529test { try toAsciiFail("xn--ehb015lnt1e.xn--zca", true); } // [B5, B6]
39389530test { try toUnicodeFail("\xe0\xa1\x8e\xd9\xba\xe0\xb7\x93\xe2\x92\x8a.\xf0\x90\xb9\xb9\xf0\x9e\xb1\xa9\xf3\xa0\x83\xaa\xe2\x80\x8c"); } // [B1, C1, V7]
9531test { try toAsciiFail("\xe0\xa1\x8e\xd9\xba\xe0\xb7\x93\xe2\x92\x8a.\xf0\x90\xb9\xb9\xf0\x9e\xb1\xa9\xf3\xa0\x83\xaa\xe2\x80\x8c", false); } // [B1, C1, V7]
9532test { try toAsciiFail("\xe0\xa1\x8e\xd9\xba\xe0\xb7\x93\xe2\x92\x8a.\xf0\x90\xb9\xb9\xf0\x9e\xb1\xa9\xf3\xa0\x83\xaa\xe2\x80\x8c", true); } // [B1, V7]
39399533test { try toUnicodeFail("\xe0\xa1\x8e\xd9\xba\xe0\xb7\x933..\xf0\x90\xb9\xb9\xf0\x9e\xb1\xa9\xf3\xa0\x83\xaa\xe2\x80\x8c"); } // [B1, C1, V7, X4_2]
9534test { try toAsciiFail("\xe0\xa1\x8e\xd9\xba\xe0\xb7\x933..\xf0\x90\xb9\xb9\xf0\x9e\xb1\xa9\xf3\xa0\x83\xaa\xe2\x80\x8c", false); } // [B1, C1, V7, A4_2]
9535test { try toAsciiFail("\xe0\xa1\x8e\xd9\xba\xe0\xb7\x933..\xf0\x90\xb9\xb9\xf0\x9e\xb1\xa9\xf3\xa0\x83\xaa\xe2\x80\x8c", true); } // [B1, V7, A4_2]
39409536test { try toUnicodeFail("xn--3-prc71ls9j..xn--xo0dw109an237f"); } // [B1, V7, X4_2]
9537test { try toAsciiFail("xn--3-prc71ls9j..xn--xo0dw109an237f", false); } // [B1, V7, A4_2]
9538test { try toAsciiFail("xn--3-prc71ls9j..xn--xo0dw109an237f", true); } // [B1, V7, A4_2]
39419539test { try toUnicodeFail("xn--3-prc71ls9j..xn--0ug3205g7eyf3c96h"); } // [B1, C1, V7, X4_2]
9540test { try toAsciiFail("xn--3-prc71ls9j..xn--0ug3205g7eyf3c96h", false); } // [B1, C1, V7, A4_2]
9541test { try toAsciiFail("xn--3-prc71ls9j..xn--0ug3205g7eyf3c96h", true); } // [B1, C1, V7, A4_2]
39429542test { try toUnicodeFail("xn--zib94gfziuq1a.xn--xo0dw109an237f"); } // [B1, V7]
9543test { try toAsciiFail("xn--zib94gfziuq1a.xn--xo0dw109an237f", false); } // [B1, V7]
9544test { try toAsciiFail("xn--zib94gfziuq1a.xn--xo0dw109an237f", true); } // [B1, V7]
39439545test { try toUnicodeFail("xn--zib94gfziuq1a.xn--0ug3205g7eyf3c96h"); } // [B1, C1, V7]
9546test { try toAsciiFail("xn--zib94gfziuq1a.xn--0ug3205g7eyf3c96h", false); } // [B1, C1, V7]
9547test { try toAsciiFail("xn--zib94gfziuq1a.xn--0ug3205g7eyf3c96h", true); } // [B1, C1, V7]
39449548test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99"); } // [C2, V3]
9549test { try toAsciiFail("\xcf\x82\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99", false); } // [C2, V3]
9550test { try toAsciiFail("\xcf\x82\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99", true); } // [V3]
39459551test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99"); } // [C2, V3]
9552test { try toAsciiFail("\xcf\x82\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99", false); } // [C2, V3]
9553test { try toAsciiFail("\xcf\x82\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99", true); } // [V3]
39469554test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99"); } // [C2, V3]
9555test { try toAsciiFail("\xce\xa3\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99", false); } // [C2, V3]
9556test { try toAsciiFail("\xce\xa3\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99", true); } // [V3]
39479557test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99"); } // [C2, V3]
9558test { try toAsciiFail("\xcf\x83\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99", false); } // [C2, V3]
9559test { try toAsciiFail("\xcf\x83\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99", true); } // [V3]
39489560test { try toUnicodeFail("xn----zmb.xn--rlj2573p"); } // [V3]
9561test { try toAsciiFail("xn----zmb.xn--rlj2573p", false); } // [V3]
9562test { try toAsciiFail("xn----zmb.xn--rlj2573p", true); } // [V3]
39499563test { try toUnicodeFail("xn----zmb048s.xn--rlj2573p"); } // [C2, V3]
9564test { try toAsciiFail("xn----zmb048s.xn--rlj2573p", false); } // [C2, V3]
9565test { try toAsciiFail("xn----zmb048s.xn--rlj2573p", true); } // [C2, V3]
39509566test { try toUnicodeFail("xn----xmb348s.xn--rlj2573p"); } // [C2, V3]
9567test { try toAsciiFail("xn----xmb348s.xn--rlj2573p", false); } // [C2, V3]
9568test { try toAsciiFail("xn----xmb348s.xn--rlj2573p", true); } // [C2, V3]
39519569test { try toUnicodeFail("xn----zmb.xn--7nd64871a"); } // [V3, V7]
9570test { try toAsciiFail("xn----zmb.xn--7nd64871a", false); } // [V3, V7]
9571test { try toAsciiFail("xn----zmb.xn--7nd64871a", true); } // [V3, V7]
39529572test { try toUnicodeFail("xn----zmb048s.xn--7nd64871a"); } // [C2, V3, V7]
9573test { try toAsciiFail("xn----zmb048s.xn--7nd64871a", false); } // [C2, V3, V7]
9574test { try toAsciiFail("xn----zmb048s.xn--7nd64871a", true); } // [C2, V3, V7]
39539575test { try toUnicodeFail("xn----xmb348s.xn--7nd64871a"); } // [C2, V3, V7]
9576test { try toAsciiFail("xn----xmb348s.xn--7nd64871a", false); } // [C2, V3, V7]
9577test { try toAsciiFail("xn----xmb348s.xn--7nd64871a", true); } // [C2, V3, V7]
39549578test { try toUnicodePass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "\xe2\x89\xa0.\xf0\x9f\x9e\xb36"); }
39559579test { try toAsciiPass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "xn--1ch.xn--6-dl4s", false); }
39569580test { try toAsciiPass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "xn--1ch.xn--6-dl4s", true); }
......@@ -3973,206 +9597,602 @@ test { try toUnicodePass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "\xe2\x89\xa0.\xf0\x9f\x
39739597test { try toAsciiPass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", false); }
39749598test { try toAsciiPass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", true); }
39759599test { try toUnicodeFail("\xf3\x85\xac\xbd.\xe8\xa0\x94"); } // [V7]
9600test { try toAsciiFail("\xf3\x85\xac\xbd.\xe8\xa0\x94", false); } // [V7]
9601test { try toAsciiFail("\xf3\x85\xac\xbd.\xe8\xa0\x94", true); } // [V7]
39769602test { try toUnicodeFail("xn--g747d.xn--xl2a"); } // [V7]
9603test { try toAsciiFail("xn--g747d.xn--xl2a", false); } // [V7]
9604test { try toAsciiFail("xn--g747d.xn--xl2a", true); } // [V7]
39779605test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xeb\xbc\xbd"); } // [C2, V6]
9606test { try toAsciiFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xeb\xbc\xbd", false); } // [C2, V6]
9607test { try toAsciiFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xeb\xbc\xbd", true); } // [V6]
39789608test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80"); } // [C2, V6]
9609test { try toAsciiFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80", false); } // [C2, V6]
9610test { try toAsciiFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80", true); } // [V6]
39799611test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d.\xeb\xbc\xbd"); } // [C2, V6]
9612test { try toAsciiFail("\xe0\xa3\xa6\xe2\x80\x8d.\xeb\xbc\xbd", false); } // [C2, V6]
9613test { try toAsciiFail("\xe0\xa3\xa6\xe2\x80\x8d.\xeb\xbc\xbd", true); } // [V6]
39809614test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d.\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80"); } // [C2, V6]
9615test { try toAsciiFail("\xe0\xa3\xa6\xe2\x80\x8d.\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80", false); } // [C2, V6]
9616test { try toAsciiFail("\xe0\xa3\xa6\xe2\x80\x8d.\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80", true); } // [V6]
39819617test { try toUnicodeFail("xn--p0b.xn--e43b"); } // [V6]
9618test { try toAsciiFail("xn--p0b.xn--e43b", false); } // [V6]
9619test { try toAsciiFail("xn--p0b.xn--e43b", true); } // [V6]
39829620test { try toUnicodeFail("xn--p0b869i.xn--e43b"); } // [C2, V6]
9621test { try toAsciiFail("xn--p0b869i.xn--e43b", false); } // [C2, V6]
9622test { try toAsciiFail("xn--p0b869i.xn--e43b", true); } // [C2, V6]
39839623test { try toUnicodeFail("\xe2\x82\x87\xe0\xaf\x8d\xf4\x83\x82\xb7\xdb\x92\xe3\x80\x82\xf0\x9f\x91\x96\xd9\xb5-\xf0\x9e\xaa\x91"); } // [B1, V7]
9624test { try toAsciiFail("\xe2\x82\x87\xe0\xaf\x8d\xf4\x83\x82\xb7\xdb\x92\xe3\x80\x82\xf0\x9f\x91\x96\xd9\xb5-\xf0\x9e\xaa\x91", false); } // [B1, V7]
9625test { try toAsciiFail("\xe2\x82\x87\xe0\xaf\x8d\xf4\x83\x82\xb7\xdb\x92\xe3\x80\x82\xf0\x9f\x91\x96\xd9\xb5-\xf0\x9e\xaa\x91", true); } // [B1, V7]
39849626test { try toUnicodeFail("7\xe0\xaf\x8d\xf4\x83\x82\xb7\xdb\x92\xe3\x80\x82\xf0\x9f\x91\x96\xd8\xa7\xd9\xb4-\xf0\x9e\xaa\x91"); } // [B1, V7]
9627test { try toAsciiFail("7\xe0\xaf\x8d\xf4\x83\x82\xb7\xdb\x92\xe3\x80\x82\xf0\x9f\x91\x96\xd8\xa7\xd9\xb4-\xf0\x9e\xaa\x91", false); } // [B1, V7]
9628test { try toAsciiFail("7\xe0\xaf\x8d\xf4\x83\x82\xb7\xdb\x92\xe3\x80\x82\xf0\x9f\x91\x96\xd8\xa7\xd9\xb4-\xf0\x9e\xaa\x91", true); } // [B1, V7]
39859629test { try toUnicodeFail("xn--7-rwc839aj3073c.xn----ymc5uv818oghka"); } // [B1, V7]
9630test { try toAsciiFail("xn--7-rwc839aj3073c.xn----ymc5uv818oghka", false); } // [B1, V7]
9631test { try toAsciiFail("xn--7-rwc839aj3073c.xn----ymc5uv818oghka", true); } // [B1, V7]
39869632test { try toUnicodeFail("-\xef\xbd\xa1\xdd\xbb"); } // [B1, V3]
9633test { try toAsciiFail("-\xef\xbd\xa1\xdd\xbb", false); } // [B1, V3]
9634test { try toAsciiFail("-\xef\xbd\xa1\xdd\xbb", true); } // [B1, V3]
39879635test { try toUnicodeFail("-\xe3\x80\x82\xdd\xbb"); } // [B1, V3]
9636test { try toAsciiFail("-\xe3\x80\x82\xdd\xbb", false); } // [B1, V3]
9637test { try toAsciiFail("-\xe3\x80\x82\xdd\xbb", true); } // [B1, V3]
39889638test { try toUnicodeFail("-.xn--cqb"); } // [B1, V3]
9639test { try toAsciiFail("-.xn--cqb", false); } // [B1, V3]
9640test { try toAsciiFail("-.xn--cqb", true); } // [B1, V3]
39899641test { try toUnicodeFail("\xf0\x91\x87\x8c\xf0\xb5\x9b\x93\xef\xbd\xa1-\xe2\x92\x88\xea\xa1\x8f\xdc\xab"); } // [B1, V3, V6, V7]
9642test { try toAsciiFail("\xf0\x91\x87\x8c\xf0\xb5\x9b\x93\xef\xbd\xa1-\xe2\x92\x88\xea\xa1\x8f\xdc\xab", false); } // [B1, V3, V6, V7]
9643test { try toAsciiFail("\xf0\x91\x87\x8c\xf0\xb5\x9b\x93\xef\xbd\xa1-\xe2\x92\x88\xea\xa1\x8f\xdc\xab", true); } // [B1, V3, V6, V7]
39909644test { try toUnicodeFail("\xf0\x91\x87\x8c\xf0\xb5\x9b\x93\xe3\x80\x82-1.\xea\xa1\x8f\xdc\xab"); } // [B1, B5, B6, V3, V6, V7]
9645test { try toAsciiFail("\xf0\x91\x87\x8c\xf0\xb5\x9b\x93\xe3\x80\x82-1.\xea\xa1\x8f\xdc\xab", false); } // [B1, B5, B6, V3, V6, V7]
9646test { try toAsciiFail("\xf0\x91\x87\x8c\xf0\xb5\x9b\x93\xe3\x80\x82-1.\xea\xa1\x8f\xdc\xab", true); } // [B1, B5, B6, V3, V6, V7]
39919647test { try toUnicodeFail("xn--8d1dg030h.-1.xn--1nb7163f"); } // [B1, B5, B6, V3, V6, V7]
9648test { try toAsciiFail("xn--8d1dg030h.-1.xn--1nb7163f", false); } // [B1, B5, B6, V3, V6, V7]
9649test { try toAsciiFail("xn--8d1dg030h.-1.xn--1nb7163f", true); } // [B1, B5, B6, V3, V6, V7]
39929650test { try toUnicodeFail("xn--8d1dg030h.xn----u1c466tp10j"); } // [B1, V3, V6, V7]
9651test { try toAsciiFail("xn--8d1dg030h.xn----u1c466tp10j", false); } // [B1, V3, V6, V7]
9652test { try toAsciiFail("xn--8d1dg030h.xn----u1c466tp10j", true); } // [B1, V3, V6, V7]
39939653test { try toUnicodeFail("\xe7\x92\x9b\xe1\x9c\xb4\xda\xaf.-"); } // [B1, B5, B6, V3]
9654test { try toAsciiFail("\xe7\x92\x9b\xe1\x9c\xb4\xda\xaf.-", false); } // [B1, B5, B6, V3]
9655test { try toAsciiFail("\xe7\x92\x9b\xe1\x9c\xb4\xda\xaf.-", true); } // [B1, B5, B6, V3]
39949656test { try toUnicodeFail("xn--ikb175frt4e.-"); } // [B1, B5, B6, V3]
9657test { try toAsciiFail("xn--ikb175frt4e.-", false); } // [B1, B5, B6, V3]
9658test { try toAsciiFail("xn--ikb175frt4e.-", true); } // [B1, B5, B6, V3]
39959659test { try toUnicodeFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xec\x83\x95\xef\xbc\x8e\xf0\x90\xb9\xb2\xed\x9c\x81"); } // [B1, B2, B3]
9660test { try toAsciiFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xec\x83\x95\xef\xbc\x8e\xf0\x90\xb9\xb2\xed\x9c\x81", false); } // [B1, B2, B3]
9661test { try toAsciiFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xec\x83\x95\xef\xbc\x8e\xf0\x90\xb9\xb2\xed\x9c\x81", true); } // [B1, B2, B3]
39969662test { try toUnicodeFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xe1\x84\x89\xe1\x85\xa2\xe1\x86\xb4\xef\xbc\x8e\xf0\x90\xb9\xb2\xe1\x84\x92\xe1\x85\xb0\xe1\x86\xac"); } // [B1, B2, B3]
9663test { try toAsciiFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xe1\x84\x89\xe1\x85\xa2\xe1\x86\xb4\xef\xbc\x8e\xf0\x90\xb9\xb2\xe1\x84\x92\xe1\x85\xb0\xe1\x86\xac", false); } // [B1, B2, B3]
9664test { try toAsciiFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xe1\x84\x89\xe1\x85\xa2\xe1\x86\xb4\xef\xbc\x8e\xf0\x90\xb9\xb2\xe1\x84\x92\xe1\x85\xb0\xe1\x86\xac", true); } // [B1, B2, B3]
39979665test { try toUnicodeFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xec\x83\x95.\xf0\x90\xb9\xb2\xed\x9c\x81"); } // [B1, B2, B3]
9666test { try toAsciiFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xec\x83\x95.\xf0\x90\xb9\xb2\xed\x9c\x81", false); } // [B1, B2, B3]
9667test { try toAsciiFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xec\x83\x95.\xf0\x90\xb9\xb2\xed\x9c\x81", true); } // [B1, B2, B3]
39989668test { try toUnicodeFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xe1\x84\x89\xe1\x85\xa2\xe1\x86\xb4.\xf0\x90\xb9\xb2\xe1\x84\x92\xe1\x85\xb0\xe1\x86\xac"); } // [B1, B2, B3]
9669test { try toAsciiFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xe1\x84\x89\xe1\x85\xa2\xe1\x86\xb4.\xf0\x90\xb9\xb2\xe1\x84\x92\xe1\x85\xb0\xe1\x86\xac", false); } // [B1, B2, B3]
9670test { try toAsciiFail("\xf3\xa0\x86\xb0\xe0\xa2\xa1\xe0\xa9\x8d\xe1\x84\x89\xe1\x85\xa2\xe1\x86\xb4.\xf0\x90\xb9\xb2\xe1\x84\x92\xe1\x85\xb0\xe1\x86\xac", true); } // [B1, B2, B3]
39999671test { try toUnicodeFail("xn--qyb07fj857a.xn--728bv72h"); } // [B1, B2, B3]
9672test { try toAsciiFail("xn--qyb07fj857a.xn--728bv72h", false); } // [B1, B2, B3]
9673test { try toAsciiFail("xn--qyb07fj857a.xn--728bv72h", true); } // [B1, B2, B3]
40009674test { try toUnicodeFail("\xf1\x8d\xa8\xbd\xef\xbc\x8e\xf1\x8b\xb8\x95"); } // [V7]
9675test { try toAsciiFail("\xf1\x8d\xa8\xbd\xef\xbc\x8e\xf1\x8b\xb8\x95", false); } // [V7]
9676test { try toAsciiFail("\xf1\x8d\xa8\xbd\xef\xbc\x8e\xf1\x8b\xb8\x95", true); } // [V7]
40019677test { try toUnicodeFail("\xf1\x8d\xa8\xbd.\xf1\x8b\xb8\x95"); } // [V7]
9678test { try toAsciiFail("\xf1\x8d\xa8\xbd.\xf1\x8b\xb8\x95", false); } // [V7]
9679test { try toAsciiFail("\xf1\x8d\xa8\xbd.\xf1\x8b\xb8\x95", true); } // [V7]
40029680test { try toUnicodeFail("xn--pr3x.xn--rv7w"); } // [V7]
9681test { try toAsciiFail("xn--pr3x.xn--rv7w", false); } // [V7]
9682test { try toAsciiFail("xn--pr3x.xn--rv7w", true); } // [V7]
40039683test { try toUnicodeFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe1\x82\xad-"); } // [B1, V3, V6]
9684test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe1\x82\xad-", false); } // [B1, V3, V6]
9685test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe1\x82\xad-", true); } // [B1, V3, V6]
40049686test { try toUnicodeFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe1\x82\xad-"); } // [B1, V3, V6]
9687test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe1\x82\xad-", false); } // [B1, V3, V6]
9688test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe1\x82\xad-", true); } // [B1, V3, V6]
40059689test { try toUnicodeFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe2\xb4\x8d-"); } // [B1, V3, V6]
9690test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe2\xb4\x8d-", false); } // [B1, V3, V6]
9691test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe2\xb4\x8d-", true); } // [B1, V3, V6]
40069692test { try toUnicodeFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe1\x82\xad-"); } // [B1, V3, V6]
9693test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe1\x82\xad-", false); } // [B1, V3, V6]
9694test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe1\x82\xad-", true); } // [B1, V3, V6]
40079695test { try toUnicodeFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe2\xb4\x8d-"); } // [B1, V3, V6]
9696test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe2\xb4\x8d-", false); } // [B1, V3, V6]
9697test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xe3\x80\x82\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe2\xb4\x8d-", true); } // [B1, V3, V6]
40089698test { try toUnicodeFail("xn--2ib0338v.xn----zvs0199fo91g"); } // [B1, V3, V6]
9699test { try toAsciiFail("xn--2ib0338v.xn----zvs0199fo91g", false); } // [B1, V3, V6]
9700test { try toAsciiFail("xn--2ib0338v.xn----zvs0199fo91g", true); } // [B1, V3, V6]
40099701test { try toUnicodeFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe2\xb4\x8d-"); } // [B1, V3, V6]
9702test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe2\xb4\x8d-", false); } // [B1, V3, V6]
9703test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\xb6\xe2\xb4\x8d-", true); } // [B1, V3, V6]
40109704test { try toUnicodeFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe1\x82\xad-"); } // [B1, V3, V6]
9705test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe1\x82\xad-", false); } // [B1, V3, V6]
9706test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe1\x82\xad-", true); } // [B1, V3, V6]
40119707test { try toUnicodeFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe2\xb4\x8d-"); } // [B1, V3, V6]
9708test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe2\xb4\x8d-", false); } // [B1, V3, V6]
9709test { try toAsciiFail("\xd9\xbd\xf0\x9e\xa5\x95\xef\xbd\xa1\xf0\x91\x91\x82\xf0\x9e\xa4\x94\xe2\xb4\x8d-", true); } // [B1, V3, V6]
40129710test { try toUnicodeFail("xn--2ib0338v.xn----w0g2740ro9vg"); } // [B1, V3, V6, V7]
9711test { try toAsciiFail("xn--2ib0338v.xn----w0g2740ro9vg", false); } // [B1, V3, V6, V7]
9712test { try toAsciiFail("xn--2ib0338v.xn----w0g2740ro9vg", true); } // [B1, V3, V6, V7]
40139713test { try toUnicodeFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa7\xe2\x82\x84\xe1\x82\xab\xf1\x82\xb9\xab"); } // [V7]
9714test { try toAsciiFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa7\xe2\x82\x84\xe1\x82\xab\xf1\x82\xb9\xab", false); } // [V7]
9715test { try toAsciiFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa7\xe2\x82\x84\xe1\x82\xab\xf1\x82\xb9\xab", true); } // [V7]
40149716test { try toUnicodeFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa74\xe1\x82\xab\xf1\x82\xb9\xab"); } // [V7]
9717test { try toAsciiFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa74\xe1\x82\xab\xf1\x82\xb9\xab", false); } // [V7]
9718test { try toAsciiFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa74\xe1\x82\xab\xf1\x82\xb9\xab", true); } // [V7]
40159719test { try toUnicodeFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa74\xe2\xb4\x8b\xf1\x82\xb9\xab"); } // [V7]
9720test { try toAsciiFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa74\xe2\xb4\x8b\xf1\x82\xb9\xab", false); } // [V7]
9721test { try toAsciiFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa74\xe2\xb4\x8b\xf1\x82\xb9\xab", true); } // [V7]
40169722test { try toUnicodeFail("xn--039c42bq865a.xn--4-wvs27840bnrzm"); } // [V7]
9723test { try toAsciiFail("xn--039c42bq865a.xn--4-wvs27840bnrzm", false); } // [V7]
9724test { try toAsciiFail("xn--039c42bq865a.xn--4-wvs27840bnrzm", true); } // [V7]
40179725test { try toUnicodeFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa7\xe2\x82\x84\xe2\xb4\x8b\xf1\x82\xb9\xab"); } // [V7]
9726test { try toAsciiFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa7\xe2\x82\x84\xe2\xb4\x8b\xf1\x82\xb9\xab", false); } // [V7]
9727test { try toAsciiFail("\xf0\x90\xaf\x80\xf0\x90\xb8\x89\xf0\x9e\xa7\x8f\xe3\x80\x82\xf1\xa2\x9a\xa7\xe2\x82\x84\xe2\xb4\x8b\xf1\x82\xb9\xab", true); } // [V7]
40189728test { try toUnicodeFail("xn--039c42bq865a.xn--4-t0g49302fnrzm"); } // [V7]
9729test { try toAsciiFail("xn--039c42bq865a.xn--4-t0g49302fnrzm", false); } // [V7]
9730test { try toAsciiFail("xn--039c42bq865a.xn--4-t0g49302fnrzm", true); } // [V7]
40199731test { try toUnicodeFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.\xe2\x89\xa0"); } // [B1, V7]
9732test { try toAsciiFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.\xe2\x89\xa0", false); } // [B1, V7]
9733test { try toAsciiFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.\xe2\x89\xa0", true); } // [B1, V7]
40209734test { try toUnicodeFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.=\xcc\xb8"); } // [B1, V7]
9735test { try toAsciiFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.=\xcc\xb8", false); } // [B1, V7]
9736test { try toAsciiFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.=\xcc\xb8", true); } // [B1, V7]
40219737test { try toUnicodeFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.\xe2\x89\xa0"); } // [B1, V7]
9738test { try toAsciiFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.\xe2\x89\xa0", false); } // [B1, V7]
9739test { try toAsciiFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.\xe2\x89\xa0", true); } // [B1, V7]
40229740test { try toUnicodeFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.=\xcc\xb8"); } // [B1, V7]
9741test { try toAsciiFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.=\xcc\xb8", false); } // [B1, V7]
9742test { try toAsciiFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.=\xcc\xb8", true); } // [B1, V7]
40239743test { try toUnicodeFail("xn--4-kvc.xn--5136e.xn--1ch"); } // [B1, V7]
9744test { try toAsciiFail("xn--4-kvc.xn--5136e.xn--1ch", false); } // [B1, V7]
9745test { try toAsciiFail("xn--4-kvc.xn--5136e.xn--1ch", true); } // [B1, V7]
40249746test { try toUnicodeFail("xn--4-kvc5601q2h50i.xn--1ch"); } // [B1, V7]
9747test { try toAsciiFail("xn--4-kvc5601q2h50i.xn--1ch", false); } // [B1, V7]
9748test { try toAsciiFail("xn--4-kvc5601q2h50i.xn--1ch", true); } // [B1, V7]
40259749test { try toUnicodeFail("\xf0\x9d\x9f\x93\xe3\x80\x82\xdb\x97"); } // [V6]
9750test { try toAsciiFail("\xf0\x9d\x9f\x93\xe3\x80\x82\xdb\x97", false); } // [V6]
9751test { try toAsciiFail("\xf0\x9d\x9f\x93\xe3\x80\x82\xdb\x97", true); } // [V6]
40269752test { try toUnicodeFail("5\xe3\x80\x82\xdb\x97"); } // [V6]
9753test { try toAsciiFail("5\xe3\x80\x82\xdb\x97", false); } // [V6]
9754test { try toAsciiFail("5\xe3\x80\x82\xdb\x97", true); } // [V6]
40279755test { try toUnicodeFail("5.xn--nlb"); } // [V6]
9756test { try toAsciiFail("5.xn--nlb", false); } // [V6]
9757test { try toAsciiFail("5.xn--nlb", true); } // [V6]
40289758test { try toUnicodeFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe2\xbe\x95"); } // [C1, V7]
9759test { try toAsciiFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe2\xbe\x95", false); } // [C1, V7]
9760test { try toAsciiFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe2\xbe\x95", true); } // [V7]
40299761test { try toUnicodeFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe8\xb0\xb7"); } // [C1, V7]
9762test { try toAsciiFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe8\xb0\xb7", false); } // [C1, V7]
9763test { try toAsciiFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe8\xb0\xb7", true); } // [V7]
40309764test { try toUnicodeFail("xn--i183d.xn--6g3a"); } // [V7]
9765test { try toAsciiFail("xn--i183d.xn--6g3a", false); } // [V7]
9766test { try toAsciiFail("xn--i183d.xn--6g3a", true); } // [V7]
40319767test { try toUnicodeFail("xn--0ug26167i.xn--6g3a"); } // [C1, V7]
9768test { try toAsciiFail("xn--0ug26167i.xn--6g3a", false); } // [C1, V7]
9769test { try toAsciiFail("xn--0ug26167i.xn--6g3a", true); } // [C1, V7]
40329770test { try toUnicodeFail("\xef\xb8\x92\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c"); } // [C1, C2, V3, V7]
9771test { try toAsciiFail("\xef\xb8\x92\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c", false); } // [C1, C2, V3, V7]
9772test { try toAsciiFail("\xef\xb8\x92\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c", true); } // [V3, V7]
40339773test { try toUnicodeFail("\xe3\x80\x82\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c"); } // [C1, C2, V3, V7, X4_2]
9774test { try toAsciiFail("\xe3\x80\x82\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c", false); } // [C1, C2, V3, V7, A4_2]
9775test { try toAsciiFail("\xe3\x80\x82\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c", true); } // [V3, V7, A4_2]
40349776test { try toUnicodeFail(".xn--hh50e.xn----t2c"); } // [V3, V7, X4_2]
9777test { try toAsciiFail(".xn--hh50e.xn----t2c", false); } // [V3, V7, A4_2]
9778test { try toAsciiFail(".xn--hh50e.xn----t2c", true); } // [V3, V7, A4_2]
40359779test { try toUnicodeFail(".xn--1ug05310k.xn----t2c071q"); } // [C1, C2, V3, V7, X4_2]
9780test { try toAsciiFail(".xn--1ug05310k.xn----t2c071q", false); } // [C1, C2, V3, V7, A4_2]
9781test { try toAsciiFail(".xn--1ug05310k.xn----t2c071q", true); } // [C1, C2, V3, V7, A4_2]
40369782test { try toUnicodeFail("xn--y86c71305c.xn----t2c"); } // [V3, V7]
9783test { try toAsciiFail("xn--y86c71305c.xn----t2c", false); } // [V3, V7]
9784test { try toAsciiFail("xn--y86c71305c.xn----t2c", true); } // [V3, V7]
40379785test { try toUnicodeFail("xn--1ug1658ftw26f.xn----t2c071q"); } // [C1, C2, V3, V7]
9786test { try toAsciiFail("xn--1ug1658ftw26f.xn----t2c071q", false); } // [C1, C2, V3, V7]
9787test { try toAsciiFail("xn--1ug1658ftw26f.xn----t2c071q", true); } // [C1, C2, V3, V7]
40389788test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8"); } // [B1]
9789test { try toAsciiFail("\xe2\x89\xaf\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8", false); } // [B1]
9790test { try toAsciiFail("\xe2\x89\xaf\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8", true); } // [B1]
40399791test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8"); } // [B1]
9792test { try toAsciiFail(">\xcc\xb8\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8", false); } // [B1]
9793test { try toAsciiFail(">\xcc\xb8\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8", true); } // [B1]
40409794test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8"); } // [B1]
9795test { try toAsciiFail(">\xcc\xb8\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8", false); } // [B1]
9796test { try toAsciiFail(">\xcc\xb8\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8", true); } // [B1]
40419797test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8"); } // [B1]
9798test { try toAsciiFail("\xe2\x89\xaf\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8", false); } // [B1]
9799test { try toAsciiFail("\xe2\x89\xaf\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8", true); } // [B1]
40429800test { try toUnicodeFail("xn--hdhz520p.xn--48e"); } // [B1]
9801test { try toAsciiFail("xn--hdhz520p.xn--48e", false); } // [B1]
9802test { try toAsciiFail("xn--hdhz520p.xn--48e", true); } // [B1]
40439803test { try toUnicodeFail("\xe0\xbd\xb4\xf0\xab\xab\xb0\xf0\x9d\xa8\x84\xe3\x80\x82\xdc\x93\xf0\x90\xb9\xa6"); } // [B1, V6]
9804test { try toAsciiFail("\xe0\xbd\xb4\xf0\xab\xab\xb0\xf0\x9d\xa8\x84\xe3\x80\x82\xdc\x93\xf0\x90\xb9\xa6", false); } // [B1, V6]
9805test { try toAsciiFail("\xe0\xbd\xb4\xf0\xab\xab\xb0\xf0\x9d\xa8\x84\xe3\x80\x82\xdc\x93\xf0\x90\xb9\xa6", true); } // [B1, V6]
40449806test { try toUnicodeFail("xn--ned8985uo92e.xn--dnb6395k"); } // [B1, V6]
9807test { try toAsciiFail("xn--ned8985uo92e.xn--dnb6395k", false); } // [B1, V6]
9808test { try toAsciiFail("xn--ned8985uo92e.xn--dnb6395k", true); } // [B1, V6]
40459809test { try toUnicodeFail("\xcc\xbc\xdf\x9b\xe2\x81\xb7\xf0\x9d\x9f\xb9\xef\xbd\xa1\xf0\x9d\x9f\xac"); } // [B1, V6]
9810test { try toAsciiFail("\xcc\xbc\xdf\x9b\xe2\x81\xb7\xf0\x9d\x9f\xb9\xef\xbd\xa1\xf0\x9d\x9f\xac", false); } // [B1, V6]
9811test { try toAsciiFail("\xcc\xbc\xdf\x9b\xe2\x81\xb7\xf0\x9d\x9f\xb9\xef\xbd\xa1\xf0\x9d\x9f\xac", true); } // [B1, V6]
40469812test { try toUnicodeFail("\xcc\xbc\xdf\x9b73\xe3\x80\x820"); } // [B1, V6]
9813test { try toAsciiFail("\xcc\xbc\xdf\x9b73\xe3\x80\x820", false); } // [B1, V6]
9814test { try toAsciiFail("\xcc\xbc\xdf\x9b73\xe3\x80\x820", true); } // [B1, V6]
40479815test { try toUnicodeFail("xn--73-9yb648b.a"); } // [B1, V6]
9816test { try toAsciiFail("xn--73-9yb648b.a", false); } // [B1, V6]
9817test { try toAsciiFail("xn--73-9yb648b.a", true); } // [B1, V6]
40489818test { try toUnicodeFail("\xe2\x80\x8d\xef\xbc\x8e\xf0\x9d\x9f\x97"); } // [C2]
9819test { try toAsciiFail("\xe2\x80\x8d\xef\xbc\x8e\xf0\x9d\x9f\x97", false); } // [C2]
9820test { try toAsciiFail("\xe2\x80\x8d\xef\xbc\x8e\xf0\x9d\x9f\x97", true); } // [A4_2]
40499821test { try toUnicodeFail("\xe2\x80\x8d.j"); } // [C2]
9822test { try toAsciiFail("\xe2\x80\x8d.j", false); } // [C2]
9823test { try toAsciiFail("\xe2\x80\x8d.j", true); } // [A4_2]
40509824test { try toUnicodeFail("\xe2\x80\x8d.J"); } // [C2]
9825test { try toAsciiFail("\xe2\x80\x8d.J", false); } // [C2]
9826test { try toAsciiFail("\xe2\x80\x8d.J", true); } // [A4_2]
40519827test { try toUnicodeFail(".j"); } // [X4_2]
9828test { try toAsciiFail(".j", false); } // [A4_2]
9829test { try toAsciiFail(".j", true); } // [A4_2]
40529830test { try toUnicodeFail("xn--1ug.j"); } // [C2]
9831test { try toAsciiFail("xn--1ug.j", false); } // [C2]
9832test { try toAsciiFail("xn--1ug.j", true); } // [C2]
40539833test { try toUnicodePass("j", "j"); }
40549834test { try toAsciiPass("j", "j", false); }
40559835test { try toAsciiPass("j", "j", true); }
40569836test { try toUnicodeFail("\xdd\xb9\xe1\xa1\xad\xf0\xaa\x95\x88\xe3\x80\x82\xda\xb6\xe0\xa3\x99"); } // [B2, B3]
9837test { try toAsciiFail("\xdd\xb9\xe1\xa1\xad\xf0\xaa\x95\x88\xe3\x80\x82\xda\xb6\xe0\xa3\x99", false); } // [B2, B3]
9838test { try toAsciiFail("\xdd\xb9\xe1\xa1\xad\xf0\xaa\x95\x88\xe3\x80\x82\xda\xb6\xe0\xa3\x99", true); } // [B2, B3]
40579839test { try toUnicodeFail("xn--9pb497fs270c.xn--pkb80i"); } // [B2, B3]
9840test { try toAsciiFail("xn--9pb497fs270c.xn--pkb80i", false); } // [B2, B3]
9841test { try toAsciiFail("xn--9pb497fs270c.xn--pkb80i", true); } // [B2, B3]
40589842test { try toUnicodeFail("\xdc\xa6\xef\xbc\x95\xdf\xa2\xea\xb2\x99\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a"); } // [B1, B2, B3, V6, V7]
9843test { try toAsciiFail("\xdc\xa6\xef\xbc\x95\xdf\xa2\xea\xb2\x99\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a", false); } // [B1, B2, B3, V6, V7]
9844test { try toAsciiFail("\xdc\xa6\xef\xbc\x95\xdf\xa2\xea\xb2\x99\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a", true); } // [B1, B2, B3, V6, V7]
40599845test { try toUnicodeFail("\xdc\xa6\xef\xbc\x95\xdf\xa2\xe1\x84\x80\xe1\x85\xa6\xe1\x86\xb4\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a"); } // [B1, B2, B3, V6, V7]
9846test { try toAsciiFail("\xdc\xa6\xef\xbc\x95\xdf\xa2\xe1\x84\x80\xe1\x85\xa6\xe1\x86\xb4\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a", false); } // [B1, B2, B3, V6, V7]
9847test { try toAsciiFail("\xdc\xa6\xef\xbc\x95\xdf\xa2\xe1\x84\x80\xe1\x85\xa6\xe1\x86\xb4\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a", true); } // [B1, B2, B3, V6, V7]
40609848test { try toUnicodeFail("\xdc\xa65\xdf\xa2\xea\xb2\x99\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a"); } // [B1, B2, B3, V6, V7]
9849test { try toAsciiFail("\xdc\xa65\xdf\xa2\xea\xb2\x99\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a", false); } // [B1, B2, B3, V6, V7]
9850test { try toAsciiFail("\xdc\xa65\xdf\xa2\xea\xb2\x99\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a", true); } // [B1, B2, B3, V6, V7]
40619851test { try toUnicodeFail("\xdc\xa65\xdf\xa2\xe1\x84\x80\xe1\x85\xa6\xe1\x86\xb4\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a"); } // [B1, B2, B3, V6, V7]
9852test { try toAsciiFail("\xdc\xa65\xdf\xa2\xe1\x84\x80\xe1\x85\xa6\xe1\x86\xb4\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a", false); } // [B1, B2, B3, V6, V7]
9853test { try toAsciiFail("\xdc\xa65\xdf\xa2\xe1\x84\x80\xe1\x85\xa6\xe1\x86\xb4\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a", true); } // [B1, B2, B3, V6, V7]
40629854test { try toUnicodeFail("xn--5-j1c97c2483c.xn--e7f2093h"); } // [B1, B2, B3, V6, V7]
9855test { try toAsciiFail("xn--5-j1c97c2483c.xn--e7f2093h", false); } // [B1, B2, B3, V6, V7]
9856test { try toAsciiFail("xn--5-j1c97c2483c.xn--e7f2093h", true); } // [B1, B2, B3, V6, V7]
40639857test { try toUnicodeFail("\xe1\x82\xad\xf0\xbf\xa3\x8d\xea\xa1\xa8\xd6\xae\xe3\x80\x82\xe1\x82\xbe\xe2\x80\x8c\xe2\x80\x8c"); } // [C1, V7]
9858test { try toAsciiFail("\xe1\x82\xad\xf0\xbf\xa3\x8d\xea\xa1\xa8\xd6\xae\xe3\x80\x82\xe1\x82\xbe\xe2\x80\x8c\xe2\x80\x8c", false); } // [C1, V7]
9859test { try toAsciiFail("\xe1\x82\xad\xf0\xbf\xa3\x8d\xea\xa1\xa8\xd6\xae\xe3\x80\x82\xe1\x82\xbe\xe2\x80\x8c\xe2\x80\x8c", true); } // [V7]
40649860test { try toUnicodeFail("\xe2\xb4\x8d\xf0\xbf\xa3\x8d\xea\xa1\xa8\xd6\xae\xe3\x80\x82\xe2\xb4\x9e\xe2\x80\x8c\xe2\x80\x8c"); } // [C1, V7]
9861test { try toAsciiFail("\xe2\xb4\x8d\xf0\xbf\xa3\x8d\xea\xa1\xa8\xd6\xae\xe3\x80\x82\xe2\xb4\x9e\xe2\x80\x8c\xe2\x80\x8c", false); } // [C1, V7]
9862test { try toAsciiFail("\xe2\xb4\x8d\xf0\xbf\xa3\x8d\xea\xa1\xa8\xd6\xae\xe3\x80\x82\xe2\xb4\x9e\xe2\x80\x8c\xe2\x80\x8c", true); } // [V7]
40659863test { try toUnicodeFail("xn--5cb172r175fug38a.xn--mlj"); } // [V7]
9864test { try toAsciiFail("xn--5cb172r175fug38a.xn--mlj", false); } // [V7]
9865test { try toAsciiFail("xn--5cb172r175fug38a.xn--mlj", true); } // [V7]
40669866test { try toUnicodeFail("xn--5cb172r175fug38a.xn--0uga051h"); } // [C1, V7]
9867test { try toAsciiFail("xn--5cb172r175fug38a.xn--0uga051h", false); } // [C1, V7]
9868test { try toAsciiFail("xn--5cb172r175fug38a.xn--0uga051h", true); } // [C1, V7]
40679869test { try toUnicodeFail("xn--5cb347co96jug15a.xn--2nd"); } // [V7]
9870test { try toAsciiFail("xn--5cb347co96jug15a.xn--2nd", false); } // [V7]
9871test { try toAsciiFail("xn--5cb347co96jug15a.xn--2nd", true); } // [V7]
40689872test { try toUnicodeFail("xn--5cb347co96jug15a.xn--2nd059ea"); } // [C1, V7]
9873test { try toAsciiFail("xn--5cb347co96jug15a.xn--2nd059ea", false); } // [C1, V7]
9874test { try toAsciiFail("xn--5cb347co96jug15a.xn--2nd059ea", true); } // [C1, V7]
40699875test { try toUnicodeFail("\xf0\x90\x8b\xb0\xe3\x80\x82\xf3\x91\x93\xb1"); } // [V7]
9876test { try toAsciiFail("\xf0\x90\x8b\xb0\xe3\x80\x82\xf3\x91\x93\xb1", false); } // [V7]
9877test { try toAsciiFail("\xf0\x90\x8b\xb0\xe3\x80\x82\xf3\x91\x93\xb1", true); } // [V7]
40709878test { try toUnicodeFail("xn--k97c.xn--q031e"); } // [V7]
9879test { try toAsciiFail("xn--k97c.xn--q031e", false); } // [V7]
9880test { try toAsciiFail("xn--k97c.xn--q031e", true); } // [V7]
40719881test { try toUnicodeFail("\xf3\xa1\x8e\xa6\xe1\x9e\xb4\xe0\xad\x8d.\xf0\x90\xb9\xbe"); } // [B1, V7]
9882test { try toAsciiFail("\xf3\xa1\x8e\xa6\xe1\x9e\xb4\xe0\xad\x8d.\xf0\x90\xb9\xbe", false); } // [B1, V7]
9883test { try toAsciiFail("\xf3\xa1\x8e\xa6\xe1\x9e\xb4\xe0\xad\x8d.\xf0\x90\xb9\xbe", true); } // [B1, V7]
40729884test { try toUnicodeFail("xn--9ic59305p.xn--2o0d"); } // [B1, V7]
9885test { try toAsciiFail("xn--9ic59305p.xn--2o0d", false); } // [B1, V7]
9886test { try toAsciiFail("xn--9ic59305p.xn--2o0d", true); } // [B1, V7]
40739887test { try toUnicodeFail("xn--9ic364dho91z.xn--2o0d"); } // [B1, V7]
9888test { try toAsciiFail("xn--9ic364dho91z.xn--2o0d", false); } // [B1, V7]
9889test { try toAsciiFail("xn--9ic364dho91z.xn--2o0d", true); } // [B1, V7]
40749890test { try toUnicodeFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xea\xb7\xa4\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xed\x9c\xaa\xe0\xab\xa3"); } // [V6, V7]
9891test { try toAsciiFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xea\xb7\xa4\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xed\x9c\xaa\xe0\xab\xa3", false); } // [V6, V7]
9892test { try toAsciiFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xea\xb7\xa4\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xed\x9c\xaa\xe0\xab\xa3", true); } // [V6, V7]
40759893test { try toUnicodeFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3"); } // [V6, V7]
9894test { try toAsciiFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3", false); } // [V6, V7]
9895test { try toAsciiFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3", true); } // [V6, V7]
40769896test { try toUnicodeFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xea\xb7\xa4.\xf2\xa0\x85\xbc0\xed\x9c\xaa\xe0\xab\xa3"); } // [V6, V7]
9897test { try toAsciiFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xea\xb7\xa4.\xf2\xa0\x85\xbc0\xed\x9c\xaa\xe0\xab\xa3", false); } // [V6, V7]
9898test { try toAsciiFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xea\xb7\xa4.\xf2\xa0\x85\xbc0\xed\x9c\xaa\xe0\xab\xa3", true); } // [V6, V7]
40779899test { try toUnicodeFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf.\xf2\xa0\x85\xbc0\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3"); } // [V6, V7]
9900test { try toAsciiFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf.\xf2\xa0\x85\xbc0\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3", false); } // [V6, V7]
9901test { try toAsciiFail("\xe0\xa3\x9f\xe1\x82\xab\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf.\xf2\xa0\x85\xbc0\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3", true); } // [V6, V7]
40789902test { try toUnicodeFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf.\xf2\xa0\x85\xbc0\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3"); } // [V6, V7]
9903test { try toAsciiFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf.\xf2\xa0\x85\xbc0\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3", false); } // [V6, V7]
9904test { try toAsciiFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf.\xf2\xa0\x85\xbc0\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3", true); } // [V6, V7]
40799905test { try toUnicodeFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xea\xb7\xa4.\xf2\xa0\x85\xbc0\xed\x9c\xaa\xe0\xab\xa3"); } // [V6, V7]
9906test { try toAsciiFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xea\xb7\xa4.\xf2\xa0\x85\xbc0\xed\x9c\xaa\xe0\xab\xa3", false); } // [V6, V7]
9907test { try toAsciiFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xea\xb7\xa4.\xf2\xa0\x85\xbc0\xed\x9c\xaa\xe0\xab\xa3", true); } // [V6, V7]
40809908test { try toUnicodeFail("xn--i0b436pkl2g2h42a.xn--0-8le8997mulr5f"); } // [V6, V7]
9909test { try toAsciiFail("xn--i0b436pkl2g2h42a.xn--0-8le8997mulr5f", false); } // [V6, V7]
9910test { try toAsciiFail("xn--i0b436pkl2g2h42a.xn--0-8le8997mulr5f", true); } // [V6, V7]
40819911test { try toUnicodeFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3"); } // [V6, V7]
9912test { try toAsciiFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3", false); } // [V6, V7]
9913test { try toAsciiFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xe1\x84\x80\xe1\x85\xb2\xe1\x86\xaf\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xe1\x84\x92\xe1\x85\xb1\xe1\x86\xb9\xe0\xab\xa3", true); } // [V6, V7]
40829914test { try toUnicodeFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xea\xb7\xa4\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xed\x9c\xaa\xe0\xab\xa3"); } // [V6, V7]
9915test { try toAsciiFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xea\xb7\xa4\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xed\x9c\xaa\xe0\xab\xa3", false); } // [V6, V7]
9916test { try toAsciiFail("\xe0\xa3\x9f\xe2\xb4\x8b\xf0\xb6\xbf\xb8\xea\xb7\xa4\xef\xbc\x8e\xf2\xa0\x85\xbc\xf0\x9d\x9f\xa2\xed\x9c\xaa\xe0\xab\xa3", true); } // [V6, V7]
40839917test { try toUnicodeFail("xn--i0b601b6r7l2hs0a.xn--0-8le8997mulr5f"); } // [V6, V7]
9918test { try toAsciiFail("xn--i0b601b6r7l2hs0a.xn--0-8le8997mulr5f", false); } // [V6, V7]
9919test { try toAsciiFail("xn--i0b601b6r7l2hs0a.xn--0-8le8997mulr5f", true); } // [V6, V7]
40849920test { try toUnicodeFail("\xde\x84\xef\xbc\x8e\xf0\x9e\xa1\x9d\xd8\x81"); } // [V7]
9921test { try toAsciiFail("\xde\x84\xef\xbc\x8e\xf0\x9e\xa1\x9d\xd8\x81", false); } // [V7]
9922test { try toAsciiFail("\xde\x84\xef\xbc\x8e\xf0\x9e\xa1\x9d\xd8\x81", true); } // [V7]
40859923test { try toUnicodeFail("\xde\x84.\xf0\x9e\xa1\x9d\xd8\x81"); } // [V7]
9924test { try toAsciiFail("\xde\x84.\xf0\x9e\xa1\x9d\xd8\x81", false); } // [V7]
9925test { try toAsciiFail("\xde\x84.\xf0\x9e\xa1\x9d\xd8\x81", true); } // [V7]
40869926test { try toUnicodeFail("xn--lqb.xn--jfb1808v"); } // [V7]
9927test { try toAsciiFail("xn--lqb.xn--jfb1808v", false); } // [V7]
9928test { try toAsciiFail("xn--lqb.xn--jfb1808v", true); } // [V7]
40879929test { try toUnicodeFail("\xe0\xab\x8d\xe2\x82\x83.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4"); } // [V6]
9930test { try toAsciiFail("\xe0\xab\x8d\xe2\x82\x83.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4", false); } // [V6]
9931test { try toAsciiFail("\xe0\xab\x8d\xe2\x82\x83.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4", true); } // [V6]
40889932test { try toUnicodeFail("\xe0\xab\x8d3.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4"); } // [V6]
9933test { try toAsciiFail("\xe0\xab\x8d3.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4", false); } // [V6]
9934test { try toAsciiFail("\xe0\xab\x8d3.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4", true); } // [V6]
40899935test { try toUnicodeFail("xn--3-yke.xn--8-sl4et308f"); } // [V6]
9936test { try toAsciiFail("xn--3-yke.xn--8-sl4et308f", false); } // [V6]
9937test { try toAsciiFail("xn--3-yke.xn--8-sl4et308f", true); } // [V6]
40909938test { try toUnicodeFail("xn--3-yke.xn--8-ugnv982dbkwm"); } // [V6]
9939test { try toAsciiFail("xn--3-yke.xn--8-ugnv982dbkwm", false); } // [V6]
9940test { try toAsciiFail("xn--3-yke.xn--8-ugnv982dbkwm", true); } // [V6]
40919941test { try toUnicodeFail("\xe2\x84\xbb\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c"); } // [B6]
9942test { try toAsciiFail("\xe2\x84\xbb\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c", false); } // [B6]
9943test { try toAsciiFail("\xe2\x84\xbb\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c", true); } // [B6]
40929944test { try toUnicodeFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c"); } // [B6]
9945test { try toAsciiFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c", false); } // [B6]
9946test { try toAsciiFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c", true); } // [B6]
40939947test { try toUnicodeFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c"); } // [B6]
9948test { try toAsciiFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c", false); } // [B6]
9949test { try toAsciiFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c", true); } // [B6]
40949950test { try toUnicodeFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c"); } // [B6]
9951test { try toAsciiFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c", false); } // [B6]
9952test { try toAsciiFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c", true); } // [B6]
40959953test { try toUnicodeFail("xn--fax-4c9a1676t.xn--6e6h"); } // [B6]
9954test { try toAsciiFail("xn--fax-4c9a1676t.xn--6e6h", false); } // [B6]
9955test { try toAsciiFail("xn--fax-4c9a1676t.xn--6e6h", true); } // [B6]
40969956test { try toUnicodeFail("\xe2\x84\xbb\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c"); } // [B6]
9957test { try toAsciiFail("\xe2\x84\xbb\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c", false); } // [B6]
9958test { try toAsciiFail("\xe2\x84\xbb\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c", true); } // [B6]
40979959test { try toUnicodeFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c"); } // [B6]
9960test { try toAsciiFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c", false); } // [B6]
9961test { try toAsciiFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa5\x82\xf3\xa0\x86\x81\xe1\xa0\x8c", true); } // [B6]
40989962test { try toUnicodeFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c"); } // [B6]
9963test { try toAsciiFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c", false); } // [B6]
9964test { try toAsciiFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86\xe3\x80\x82\xf0\x9e\xa4\xa0\xf3\xa0\x86\x81\xe1\xa0\x8c", true); } // [B6]
40999965test { try toUnicodeFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6]
9966test { try toAsciiFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82", false); } // [B6]
9967test { try toAsciiFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82", true); } // [B6]
41009968test { try toUnicodeFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0"); } // [B6]
9969test { try toAsciiFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0", false); } // [B6]
9970test { try toAsciiFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0", true); } // [B6]
41019971test { try toUnicodeFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0"); } // [B6]
9972test { try toAsciiFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0", false); } // [B6]
9973test { try toAsciiFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0", true); } // [B6]
41029974test { try toUnicodeFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6]
9975test { try toAsciiFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82", false); } // [B6]
9976test { try toAsciiFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82", true); } // [B6]
41039977test { try toUnicodeFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6]
9978test { try toAsciiFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82", false); } // [B6]
9979test { try toAsciiFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82", true); } // [B6]
41049980test { try toUnicodeFail("\xea\xa1\x95\xe2\x89\xa0\xe1\x81\x9e\xf3\xae\xbf\xb1\xef\xbd\xa1\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xef\xbe\xa0"); } // [V7]
9981test { try toAsciiFail("\xea\xa1\x95\xe2\x89\xa0\xe1\x81\x9e\xf3\xae\xbf\xb1\xef\xbd\xa1\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xef\xbe\xa0", false); } // [V7]
9982test { try toAsciiFail("\xea\xa1\x95\xe2\x89\xa0\xe1\x81\x9e\xf3\xae\xbf\xb1\xef\xbd\xa1\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xef\xbe\xa0", true); } // [V7]
41059983test { try toUnicodeFail("\xea\xa1\x95=\xcc\xb8\xe1\x81\x9e\xf3\xae\xbf\xb1\xef\xbd\xa1\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xef\xbe\xa0"); } // [V7]
9984test { try toAsciiFail("\xea\xa1\x95=\xcc\xb8\xe1\x81\x9e\xf3\xae\xbf\xb1\xef\xbd\xa1\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xef\xbe\xa0", false); } // [V7]
9985test { try toAsciiFail("\xea\xa1\x95=\xcc\xb8\xe1\x81\x9e\xf3\xae\xbf\xb1\xef\xbd\xa1\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xef\xbe\xa0", true); } // [V7]
41069986test { try toUnicodeFail("\xea\xa1\x95\xe2\x89\xa0\xe1\x81\x9e\xf3\xae\xbf\xb1\xe3\x80\x82\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xe1\x85\xa0"); } // [V7]
9987test { try toAsciiFail("\xea\xa1\x95\xe2\x89\xa0\xe1\x81\x9e\xf3\xae\xbf\xb1\xe3\x80\x82\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xe1\x85\xa0", false); } // [V7]
9988test { try toAsciiFail("\xea\xa1\x95\xe2\x89\xa0\xe1\x81\x9e\xf3\xae\xbf\xb1\xe3\x80\x82\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xe1\x85\xa0", true); } // [V7]
41079989test { try toUnicodeFail("\xea\xa1\x95=\xcc\xb8\xe1\x81\x9e\xf3\xae\xbf\xb1\xe3\x80\x82\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xe1\x85\xa0"); } // [V7]
9990test { try toAsciiFail("\xea\xa1\x95=\xcc\xb8\xe1\x81\x9e\xf3\xae\xbf\xb1\xe3\x80\x82\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xe1\x85\xa0", false); } // [V7]
9991test { try toAsciiFail("\xea\xa1\x95=\xcc\xb8\xe1\x81\x9e\xf3\xae\xbf\xb1\xe3\x80\x82\xf0\x90\xb5\xa7\xf3\xa0\x84\xab\xe1\x85\xa0", true); } // [V7]
41089992test { try toUnicodeFail("xn--cld333gn31h0158l.xn--3g0d"); } // [V7]
9993test { try toAsciiFail("xn--cld333gn31h0158l.xn--3g0d", false); } // [V7]
9994test { try toAsciiFail("xn--cld333gn31h0158l.xn--3g0d", true); } // [V7]
41099995test { try toUnicodeFail("xn--cld333gn31h0158l.xn--psd1510k"); } // [B2, B3, V7]
9996test { try toAsciiFail("xn--cld333gn31h0158l.xn--psd1510k", false); } // [B2, B3, V7]
9997test { try toAsciiFail("xn--cld333gn31h0158l.xn--psd1510k", true); } // [B2, B3, V7]
41109998test { try toUnicodeFail("xn--cld333gn31h0158l.xn--cl7c96v"); } // [B2, B3, V7]
9999test { try toAsciiFail("xn--cld333gn31h0158l.xn--cl7c96v", false); } // [B2, B3, V7]
10000test { try toAsciiFail("xn--cld333gn31h0158l.xn--cl7c96v", true); } // [B2, B3, V7]
411110001test { try toUnicodeFail("\xe9\xb1\x8a\xe3\x80\x82\xe2\x80\x8c"); } // [C1]
10002test { try toAsciiFail("\xe9\xb1\x8a\xe3\x80\x82\xe2\x80\x8c", false); } // [C1]
10003test { try toAsciiFail("\xe9\xb1\x8a\xe3\x80\x82\xe2\x80\x8c", true); } // [A4_2]
411210004test { try toUnicodePass("xn--rt6a.", "\xe9\xb1\x8a."); }
10005test { try toAsciiFail("xn--rt6a.", false); } // [A4_2]
10006test { try toAsciiFail("xn--rt6a.", true); } // [A4_2]
411310007test { try toUnicodePass("\xe9\xb1\x8a.", "\xe9\xb1\x8a."); }
10008test { try toAsciiFail("\xe9\xb1\x8a.", false); } // [A4_2]
10009test { try toAsciiFail("\xe9\xb1\x8a.", true); } // [A4_2]
411410010test { try toUnicodeFail("xn--rt6a.xn--0ug"); } // [C1]
10011test { try toAsciiFail("xn--rt6a.xn--0ug", false); } // [C1]
10012test { try toAsciiFail("xn--rt6a.xn--0ug", true); } // [C1]
411510013test { try toUnicodeFail("8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x91\x8d\xa8"); } // [B1, V6]
10014test { try toAsciiFail("8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x91\x8d\xa8", false); } // [B1, V6]
10015test { try toAsciiFail("8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x91\x8d\xa8", true); } // [B1, V6]
411610016test { try toUnicodeFail("8\xf0\x90\xb9\xa3.\xf0\x91\x8d\xa8"); } // [B1, V6]
10017test { try toAsciiFail("8\xf0\x90\xb9\xa3.\xf0\x91\x8d\xa8", false); } // [B1, V6]
10018test { try toAsciiFail("8\xf0\x90\xb9\xa3.\xf0\x91\x8d\xa8", true); } // [B1, V6]
411710019test { try toUnicodeFail("xn--8-d26i.xn--0p1d"); } // [B1, V6]
10020test { try toAsciiFail("xn--8-d26i.xn--0p1d", false); } // [B1, V6]
10021test { try toAsciiFail("xn--8-d26i.xn--0p1d", true); } // [B1, V6]
411810022test { try toUnicodeFail("\xe2\x8f\xb9\xf0\x90\xa7\x80\xef\xbc\x8e\xf0\x90\xab\xaf"); } // [B1]
10023test { try toAsciiFail("\xe2\x8f\xb9\xf0\x90\xa7\x80\xef\xbc\x8e\xf0\x90\xab\xaf", false); } // [B1]
10024test { try toAsciiFail("\xe2\x8f\xb9\xf0\x90\xa7\x80\xef\xbc\x8e\xf0\x90\xab\xaf", true); } // [B1]
411910025test { try toUnicodeFail("\xe2\x8f\xb9\xf0\x90\xa7\x80.\xf0\x90\xab\xaf"); } // [B1]
10026test { try toAsciiFail("\xe2\x8f\xb9\xf0\x90\xa7\x80.\xf0\x90\xab\xaf", false); } // [B1]
10027test { try toAsciiFail("\xe2\x8f\xb9\xf0\x90\xa7\x80.\xf0\x90\xab\xaf", true); } // [B1]
412010028test { try toUnicodeFail("xn--qoh9161g.xn--1x9c"); } // [B1]
10029test { try toAsciiFail("xn--qoh9161g.xn--1x9c", false); } // [B1]
10030test { try toAsciiFail("xn--qoh9161g.xn--1x9c", true); } // [B1]
412110031test { try toUnicodeFail("\xf0\x9e\xa4\xba\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d"); } // [B1, C2]
10032test { try toAsciiFail("\xf0\x9e\xa4\xba\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d", false); } // [B1, C2]
10033test { try toAsciiFail("\xf0\x9e\xa4\xba\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d", true); } // [A4_2]
412210034test { try toUnicodeFail("\xf0\x9e\xa4\xba\xdf\x8c4.\xe2\x80\x8d"); } // [B1, C2]
10035test { try toAsciiFail("\xf0\x9e\xa4\xba\xdf\x8c4.\xe2\x80\x8d", false); } // [B1, C2]
10036test { try toAsciiFail("\xf0\x9e\xa4\xba\xdf\x8c4.\xe2\x80\x8d", true); } // [A4_2]
412310037test { try toUnicodeFail("\xf0\x9e\xa4\x98\xdf\x8c4.\xe2\x80\x8d"); } // [B1, C2]
10038test { try toAsciiFail("\xf0\x9e\xa4\x98\xdf\x8c4.\xe2\x80\x8d", false); } // [B1, C2]
10039test { try toAsciiFail("\xf0\x9e\xa4\x98\xdf\x8c4.\xe2\x80\x8d", true); } // [A4_2]
412410040test { try toUnicodePass("xn--4-0bd15808a.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }
10041test { try toAsciiFail("xn--4-0bd15808a.", false); } // [A4_2]
10042test { try toAsciiFail("xn--4-0bd15808a.", true); } // [A4_2]
412510043test { try toUnicodePass("\xf0\x9e\xa4\xba\xdf\x8c4.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }
10044test { try toAsciiFail("\xf0\x9e\xa4\xba\xdf\x8c4.", false); } // [A4_2]
10045test { try toAsciiFail("\xf0\x9e\xa4\xba\xdf\x8c4.", true); } // [A4_2]
412610046test { try toUnicodePass("\xf0\x9e\xa4\x98\xdf\x8c4.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }
10047test { try toAsciiFail("\xf0\x9e\xa4\x98\xdf\x8c4.", false); } // [A4_2]
10048test { try toAsciiFail("\xf0\x9e\xa4\x98\xdf\x8c4.", true); } // [A4_2]
412710049test { try toUnicodeFail("xn--4-0bd15808a.xn--1ug"); } // [B1, C2]
10050test { try toAsciiFail("xn--4-0bd15808a.xn--1ug", false); } // [B1, C2]
10051test { try toAsciiFail("xn--4-0bd15808a.xn--1ug", true); } // [B1, C2]
412810052test { try toUnicodeFail("\xf0\x9e\xa4\x98\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d"); } // [B1, C2]
10053test { try toAsciiFail("\xf0\x9e\xa4\x98\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d", false); } // [B1, C2]
10054test { try toAsciiFail("\xf0\x9e\xa4\x98\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d", true); } // [A4_2]
412910055test { try toUnicodeFail("\xe2\x92\x97\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2"); } // [B1, V3, V7]
10056test { try toAsciiFail("\xe2\x92\x97\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2", false); } // [B1, V3, V7]
10057test { try toAsciiFail("\xe2\x92\x97\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2", true); } // [B1, V3, V7]
413010058test { try toUnicodeFail("16.\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2"); } // [B1, V3, V6, V7]
10059test { try toAsciiFail("16.\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2", false); } // [B1, V3, V6, V7]
10060test { try toAsciiFail("16.\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2", true); } // [B1, V3, V6, V7]
413110061test { try toUnicodeFail("16.xn----z0d801p.xn--l0b810j"); } // [B1, V3, V6, V7]
10062test { try toAsciiFail("16.xn----z0d801p.xn--l0b810j", false); } // [B1, V3, V6, V7]
10063test { try toAsciiFail("16.xn----z0d801p.xn--l0b810j", true); } // [B1, V3, V6, V7]
413210064test { try toUnicodeFail("xn----z0d801p6kd.xn--l0b810j"); } // [B1, V3, V7]
10065test { try toAsciiFail("xn----z0d801p6kd.xn--l0b810j", false); } // [B1, V3, V7]
10066test { try toAsciiFail("xn----z0d801p6kd.xn--l0b810j", true); } // [B1, V3, V7]
413310067test { try toUnicodeFail("-\xef\xbd\xa1\xe4\x8f\x9b"); } // [V3]
10068test { try toAsciiFail("-\xef\xbd\xa1\xe4\x8f\x9b", false); } // [V3]
10069test { try toAsciiFail("-\xef\xbd\xa1\xe4\x8f\x9b", true); } // [V3]
413410070test { try toUnicodeFail("-\xe3\x80\x82\xe4\x8f\x9b"); } // [V3]
10071test { try toAsciiFail("-\xe3\x80\x82\xe4\x8f\x9b", false); } // [V3]
10072test { try toAsciiFail("-\xe3\x80\x82\xe4\x8f\x9b", true); } // [V3]
413510073test { try toUnicodeFail("-.xn--xco"); } // [V3]
10074test { try toAsciiFail("-.xn--xco", false); } // [V3]
10075test { try toAsciiFail("-.xn--xco", true); } // [V3]
413610076test { try toUnicodeFail("\xe2\x80\x8c\xf1\x92\x83\xa0\xef\xbc\x8e\xe2\x80\x8d"); } // [C1, C2, V7]
10077test { try toAsciiFail("\xe2\x80\x8c\xf1\x92\x83\xa0\xef\xbc\x8e\xe2\x80\x8d", false); } // [C1, C2, V7]
10078test { try toAsciiFail("\xe2\x80\x8c\xf1\x92\x83\xa0\xef\xbc\x8e\xe2\x80\x8d", true); } // [V7, A4_2]
413710079test { try toUnicodeFail("\xe2\x80\x8c\xf1\x92\x83\xa0.\xe2\x80\x8d"); } // [C1, C2, V7]
10080test { try toAsciiFail("\xe2\x80\x8c\xf1\x92\x83\xa0.\xe2\x80\x8d", false); } // [C1, C2, V7]
10081test { try toAsciiFail("\xe2\x80\x8c\xf1\x92\x83\xa0.\xe2\x80\x8d", true); } // [V7, A4_2]
413810082test { try toUnicodeFail("xn--dj8y."); } // [V7]
10083test { try toAsciiFail("xn--dj8y.", false); } // [V7, A4_2]
10084test { try toAsciiFail("xn--dj8y.", true); } // [V7, A4_2]
413910085test { try toUnicodeFail("xn--0ugz7551c.xn--1ug"); } // [C1, C2, V7]
10086test { try toAsciiFail("xn--0ugz7551c.xn--1ug", false); } // [C1, C2, V7]
10087test { try toAsciiFail("xn--0ugz7551c.xn--1ug", true); } // [C1, C2, V7]
414010088test { try toUnicodeFail("\xe2\x92\x88\xe2\x93\xb0\xf3\xa5\xa3\x87\xef\xbd\xa1\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe1\x82\xb5"); } // [B1, C2, V7]
10089test { try toAsciiFail("\xe2\x92\x88\xe2\x93\xb0\xf3\xa5\xa3\x87\xef\xbd\xa1\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe1\x82\xb5", false); } // [B1, C2, V7]
10090test { try toAsciiFail("\xe2\x92\x88\xe2\x93\xb0\xf3\xa5\xa3\x87\xef\xbd\xa1\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe1\x82\xb5", true); } // [B1, V7]
414110091test { try toUnicodeFail("1.\xe2\x93\xb0\xf3\xa5\xa3\x87\xe3\x80\x82\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe1\x82\xb5"); } // [B1, C2, V7]
10092test { try toAsciiFail("1.\xe2\x93\xb0\xf3\xa5\xa3\x87\xe3\x80\x82\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe1\x82\xb5", false); } // [B1, C2, V7]
10093test { try toAsciiFail("1.\xe2\x93\xb0\xf3\xa5\xa3\x87\xe3\x80\x82\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe1\x82\xb5", true); } // [B1, V7]
414210094test { try toUnicodeFail("1.\xe2\x93\xb0\xf3\xa5\xa3\x87\xe3\x80\x82\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe2\xb4\x95"); } // [B1, C2, V7]
10095test { try toAsciiFail("1.\xe2\x93\xb0\xf3\xa5\xa3\x87\xe3\x80\x82\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe2\xb4\x95", false); } // [B1, C2, V7]
10096test { try toAsciiFail("1.\xe2\x93\xb0\xf3\xa5\xa3\x87\xe3\x80\x82\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe2\xb4\x95", true); } // [B1, V7]
414310097test { try toUnicodeFail("1.xn--svh00804k.xn--dljv223ee5t2d"); } // [B1, V7]
10098test { try toAsciiFail("1.xn--svh00804k.xn--dljv223ee5t2d", false); } // [B1, V7]
10099test { try toAsciiFail("1.xn--svh00804k.xn--dljv223ee5t2d", true); } // [B1, V7]
414410100test { try toUnicodeFail("1.xn--svh00804k.xn--1ug352csp0psg45e"); } // [B1, C2, V7]
10101test { try toAsciiFail("1.xn--svh00804k.xn--1ug352csp0psg45e", false); } // [B1, C2, V7]
10102test { try toAsciiFail("1.xn--svh00804k.xn--1ug352csp0psg45e", true); } // [B1, C2, V7]
414510103test { try toUnicodeFail("\xe2\x92\x88\xe2\x93\xb0\xf3\xa5\xa3\x87\xef\xbd\xa1\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe2\xb4\x95"); } // [B1, C2, V7]
10104test { try toAsciiFail("\xe2\x92\x88\xe2\x93\xb0\xf3\xa5\xa3\x87\xef\xbd\xa1\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe2\xb4\x95", false); } // [B1, C2, V7]
10105test { try toAsciiFail("\xe2\x92\x88\xe2\x93\xb0\xf3\xa5\xa3\x87\xef\xbd\xa1\xf0\x90\xb9\xa0\xe2\x80\x8d\xf2\x97\xb7\xa6\xe2\xb4\x95", true); } // [B1, V7]
414610106test { try toUnicodeFail("xn--tsh0nz9380h.xn--dljv223ee5t2d"); } // [B1, V7]
10107test { try toAsciiFail("xn--tsh0nz9380h.xn--dljv223ee5t2d", false); } // [B1, V7]
10108test { try toAsciiFail("xn--tsh0nz9380h.xn--dljv223ee5t2d", true); } // [B1, V7]
414710109test { try toUnicodeFail("xn--tsh0nz9380h.xn--1ug352csp0psg45e"); } // [B1, C2, V7]
10110test { try toAsciiFail("xn--tsh0nz9380h.xn--1ug352csp0psg45e", false); } // [B1, C2, V7]
10111test { try toAsciiFail("xn--tsh0nz9380h.xn--1ug352csp0psg45e", true); } // [B1, C2, V7]
414810112test { try toUnicodeFail("1.xn--svh00804k.xn--tnd1990ke579c"); } // [B1, V7]
10113test { try toAsciiFail("1.xn--svh00804k.xn--tnd1990ke579c", false); } // [B1, V7]
10114test { try toAsciiFail("1.xn--svh00804k.xn--tnd1990ke579c", true); } // [B1, V7]
414910115test { try toUnicodeFail("1.xn--svh00804k.xn--tnd969erj4psgl3e"); } // [B1, C2, V7]
10116test { try toAsciiFail("1.xn--svh00804k.xn--tnd969erj4psgl3e", false); } // [B1, C2, V7]
10117test { try toAsciiFail("1.xn--svh00804k.xn--tnd969erj4psgl3e", true); } // [B1, C2, V7]
415010118test { try toUnicodeFail("xn--tsh0nz9380h.xn--tnd1990ke579c"); } // [B1, V7]
10119test { try toAsciiFail("xn--tsh0nz9380h.xn--tnd1990ke579c", false); } // [B1, V7]
10120test { try toAsciiFail("xn--tsh0nz9380h.xn--tnd1990ke579c", true); } // [B1, V7]
415110121test { try toUnicodeFail("xn--tsh0nz9380h.xn--tnd969erj4psgl3e"); } // [B1, C2, V7]
10122test { try toAsciiFail("xn--tsh0nz9380h.xn--tnd969erj4psgl3e", false); } // [B1, C2, V7]
10123test { try toAsciiFail("xn--tsh0nz9380h.xn--tnd969erj4psgl3e", true); } // [B1, C2, V7]
415210124test { try toUnicodeFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-\xc3\x9f\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad"); } // [B1, B2, B3, V6, V7]
10125test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-\xc3\x9f\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", false); } // [B1, B2, B3, V6, V7]
10126test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-\xc3\x9f\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", true); } // [B1, B2, B3, V6, V7]
415310127test { try toUnicodeFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-\xc3\x9f\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad"); } // [B1, B2, B3, V6, V7]
10128test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-\xc3\x9f\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", false); } // [B1, B2, B3, V6, V7]
10129test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-\xc3\x9f\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", true); } // [B1, B2, B3, V6, V7]
415410130test { try toUnicodeFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-SS\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad"); } // [B1, B2, B3, V6, V7]
10131test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-SS\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", false); } // [B1, B2, B3, V6, V7]
10132test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-SS\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", true); } // [B1, B2, B3, V6, V7]
415510133test { try toUnicodeFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-ss\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad"); } // [B1, B2, B3, V6, V7]
10134test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-ss\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", false); } // [B1, B2, B3, V6, V7]
10135test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-ss\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", true); } // [B1, B2, B3, V6, V7]
415610136test { try toUnicodeFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-Ss\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad"); } // [B1, B2, B3, V6, V7]
10137test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-Ss\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", false); } // [B1, B2, B3, V6, V7]
10138test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-Ss\xe3\x80\x82\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", true); } // [B1, B2, B3, V6, V7]
415710139test { try toUnicodeFail("xn---ss-21t18904a.xn--jfb197i791bi6x4c"); } // [B1, B2, B3, V6, V7]
10140test { try toAsciiFail("xn---ss-21t18904a.xn--jfb197i791bi6x4c", false); } // [B1, B2, B3, V6, V7]
10141test { try toAsciiFail("xn---ss-21t18904a.xn--jfb197i791bi6x4c", true); } // [B1, B2, B3, V6, V7]
415810142test { try toUnicodeFail("xn----qfa310pg973b.xn--jfb197i791bi6x4c"); } // [B1, B2, B3, V6, V7]
10143test { try toAsciiFail("xn----qfa310pg973b.xn--jfb197i791bi6x4c", false); } // [B1, B2, B3, V6, V7]
10144test { try toAsciiFail("xn----qfa310pg973b.xn--jfb197i791bi6x4c", true); } // [B1, B2, B3, V6, V7]
415910145test { try toUnicodeFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-SS\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad"); } // [B1, B2, B3, V6, V7]
10146test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-SS\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", false); } // [B1, B2, B3, V6, V7]
10147test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-SS\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", true); } // [B1, B2, B3, V6, V7]
416010148test { try toUnicodeFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-ss\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad"); } // [B1, B2, B3, V6, V7]
10149test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-ss\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", false); } // [B1, B2, B3, V6, V7]
10150test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-ss\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", true); } // [B1, B2, B3, V6, V7]
416110151test { try toUnicodeFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-Ss\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad"); } // [B1, B2, B3, V6, V7]
10152test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-Ss\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", false); } // [B1, B2, B3, V6, V7]
10153test { try toAsciiFail("\xf0\x9e\xa0\x8a\xe1\xa0\xae-Ss\xef\xbd\xa1\xe1\xb3\x90\xe5\x8a\xb9\xd8\x81\xf0\xb7\xa3\xad", true); } // [B1, B2, B3, V6, V7]
416210154test { try toUnicodeFail("\xf0\x91\x87\x80.\xf3\xa0\xa8\xb1"); } // [V6, V7]
10155test { try toAsciiFail("\xf0\x91\x87\x80.\xf3\xa0\xa8\xb1", false); } // [V6, V7]
10156test { try toAsciiFail("\xf0\x91\x87\x80.\xf3\xa0\xa8\xb1", true); } // [V6, V7]
416310157test { try toUnicodeFail("xn--wd1d.xn--k946e"); } // [V6, V7]
10158test { try toAsciiFail("xn--wd1d.xn--k946e", false); } // [V6, V7]
10159test { try toAsciiFail("xn--wd1d.xn--k946e", true); } // [V6, V7]
416410160test { try toUnicodeFail("\xe2\x90\x923\xef\xae\x88\xef\xbd\xa1\xf0\x9d\x9f\x98\xf0\x90\xa8\xbf\xf0\x90\xb9\x86"); } // [B1, V7]
10161test { try toAsciiFail("\xe2\x90\x923\xef\xae\x88\xef\xbd\xa1\xf0\x9d\x9f\x98\xf0\x90\xa8\xbf\xf0\x90\xb9\x86", false); } // [B1, V7]
10162test { try toAsciiFail("\xe2\x90\x923\xef\xae\x88\xef\xbd\xa1\xf0\x9d\x9f\x98\xf0\x90\xa8\xbf\xf0\x90\xb9\x86", true); } // [B1, V7]
416510163test { try toUnicodeFail("\xe2\x90\x923\xda\x88\xe3\x80\x820\xf0\x90\xa8\xbf\xf0\x90\xb9\x86"); } // [B1, V7]
10164test { try toAsciiFail("\xe2\x90\x923\xda\x88\xe3\x80\x820\xf0\x90\xa8\xbf\xf0\x90\xb9\x86", false); } // [B1, V7]
10165test { try toAsciiFail("\xe2\x90\x923\xda\x88\xe3\x80\x820\xf0\x90\xa8\xbf\xf0\x90\xb9\x86", true); } // [B1, V7]
416610166test { try toUnicodeFail("xn--3-jsc897t.xn--0-sc5iy3h"); } // [B1, V7]
10167test { try toAsciiFail("xn--3-jsc897t.xn--0-sc5iy3h", false); } // [B1, V7]
10168test { try toAsciiFail("xn--3-jsc897t.xn--0-sc5iy3h", true); } // [B1, V7]
416710169test { try toUnicodeFail("\xdd\xab\xef\xbc\x96\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3"); } // [B1, V6]
10170test { try toAsciiFail("\xdd\xab\xef\xbc\x96\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3", false); } // [B1, V6]
10171test { try toAsciiFail("\xdd\xab\xef\xbc\x96\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3", true); } // [B1, V6]
416810172test { try toUnicodeFail("\xdd\xab6\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3"); } // [B1, V6]
10173test { try toAsciiFail("\xdd\xab6\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3", false); } // [B1, V6]
10174test { try toAsciiFail("\xdd\xab6\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3", true); } // [B1, V6]
416910175test { try toUnicodeFail("xn--6-h5c06gj6c.xn--7eg"); } // [B1, V6]
10176test { try toAsciiFail("xn--6-h5c06gj6c.xn--7eg", false); } // [B1, V6]
10177test { try toAsciiFail("xn--6-h5c06gj6c.xn--7eg", true); } // [B1, V6]
417010178test { try toUnicodeFail("\xd8\x85-\xf0\xbd\xa4\x9e\xe1\x82\xa2\xe3\x80\x82\xf2\x85\xa4\xb6\xe2\x80\x8d"); } // [B1, B6, C2, V7]
10179test { try toAsciiFail("\xd8\x85-\xf0\xbd\xa4\x9e\xe1\x82\xa2\xe3\x80\x82\xf2\x85\xa4\xb6\xe2\x80\x8d", false); } // [B1, B6, C2, V7]
10180test { try toAsciiFail("\xd8\x85-\xf0\xbd\xa4\x9e\xe1\x82\xa2\xe3\x80\x82\xf2\x85\xa4\xb6\xe2\x80\x8d", true); } // [B1, V7]
417110181test { try toUnicodeFail("\xd8\x85-\xf0\xbd\xa4\x9e\xe2\xb4\x82\xe3\x80\x82\xf2\x85\xa4\xb6\xe2\x80\x8d"); } // [B1, B6, C2, V7]
10182test { try toAsciiFail("\xd8\x85-\xf0\xbd\xa4\x9e\xe2\xb4\x82\xe3\x80\x82\xf2\x85\xa4\xb6\xe2\x80\x8d", false); } // [B1, B6, C2, V7]
10183test { try toAsciiFail("\xd8\x85-\xf0\xbd\xa4\x9e\xe2\xb4\x82\xe3\x80\x82\xf2\x85\xa4\xb6\xe2\x80\x8d", true); } // [B1, V7]
417210184test { try toUnicodeFail("xn----0kc8501a5399e.xn--ss06b"); } // [B1, V7]
10185test { try toAsciiFail("xn----0kc8501a5399e.xn--ss06b", false); } // [B1, V7]
10186test { try toAsciiFail("xn----0kc8501a5399e.xn--ss06b", true); } // [B1, V7]
417310187test { try toUnicodeFail("xn----0kc8501a5399e.xn--1ugy3204f"); } // [B1, B6, C2, V7]
10188test { try toAsciiFail("xn----0kc8501a5399e.xn--1ugy3204f", false); } // [B1, B6, C2, V7]
10189test { try toAsciiFail("xn----0kc8501a5399e.xn--1ugy3204f", true); } // [B1, B6, C2, V7]
417410190test { try toUnicodeFail("xn----0kc662fc152h.xn--ss06b"); } // [B1, V7]
10191test { try toAsciiFail("xn----0kc662fc152h.xn--ss06b", false); } // [B1, V7]
10192test { try toAsciiFail("xn----0kc662fc152h.xn--ss06b", true); } // [B1, V7]
417510193test { try toUnicodeFail("xn----0kc662fc152h.xn--1ugy3204f"); } // [B1, B6, C2, V7]
10194test { try toAsciiFail("xn----0kc662fc152h.xn--1ugy3204f", false); } // [B1, B6, C2, V7]
10195test { try toAsciiFail("xn----0kc662fc152h.xn--1ugy3204f", true); } // [B1, B6, C2, V7]
417610196test { try toUnicodePass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xaf\xc3\x9f", "\xe8\x88\x8c.\xea\xa1\x885\xe2\x89\xaf\xc3\x9f"); }
417710197test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xaf\xc3\x9f", "xn--tc1a.xn--5-qfa988w745i", false); }
417810198test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xaf\xc3\x9f", "xn--tc1a.xn--5ss-3m2a5009e", true); }
......@@ -4228,14 +10248,32 @@ test { try toUnicodePass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x
422810248test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "xn--tc1a.xn--5ss-3m2a5009e", false); }
422910249test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "xn--tc1a.xn--5ss-3m2a5009e", true); }
423010250test { try toUnicodeFail("\xe0\xab\x8d8\xe2\x80\x8d\xef\xbc\x8e\xf2\xbe\x82\x88\xdd\x9c"); } // [B1, B5, B6, C2, V6, V7]
10251test { try toAsciiFail("\xe0\xab\x8d8\xe2\x80\x8d\xef\xbc\x8e\xf2\xbe\x82\x88\xdd\x9c", false); } // [B1, B5, B6, C2, V6, V7]
10252test { try toAsciiFail("\xe0\xab\x8d8\xe2\x80\x8d\xef\xbc\x8e\xf2\xbe\x82\x88\xdd\x9c", true); } // [B1, B5, B6, V6, V7]
423110253test { try toUnicodeFail("\xe0\xab\x8d8\xe2\x80\x8d.\xf2\xbe\x82\x88\xdd\x9c"); } // [B1, B5, B6, C2, V6, V7]
10254test { try toAsciiFail("\xe0\xab\x8d8\xe2\x80\x8d.\xf2\xbe\x82\x88\xdd\x9c", false); } // [B1, B5, B6, C2, V6, V7]
10255test { try toAsciiFail("\xe0\xab\x8d8\xe2\x80\x8d.\xf2\xbe\x82\x88\xdd\x9c", true); } // [B1, B5, B6, V6, V7]
423210256test { try toUnicodeFail("xn--8-yke.xn--gpb79046m"); } // [B1, B5, B6, V6, V7]
10257test { try toAsciiFail("xn--8-yke.xn--gpb79046m", false); } // [B1, B5, B6, V6, V7]
10258test { try toAsciiFail("xn--8-yke.xn--gpb79046m", true); } // [B1, B5, B6, V6, V7]
423310259test { try toUnicodeFail("xn--8-yke534n.xn--gpb79046m"); } // [B1, B5, B6, C2, V6, V7]
10260test { try toAsciiFail("xn--8-yke534n.xn--gpb79046m", false); } // [B1, B5, B6, C2, V6, V7]
10261test { try toAsciiFail("xn--8-yke534n.xn--gpb79046m", true); } // [B1, B5, B6, C2, V6, V7]
423410262test { try toUnicodeFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0\xe2\x89\xae\xf2\xb9\x93\x99\xef\xbc\x8e\xf1\x9e\x8e\xa7\xe2\x81\xb7\xf3\xa0\xaf\x99\xda\xb6"); } // [B5, B6, V7]
10263test { try toAsciiFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0\xe2\x89\xae\xf2\xb9\x93\x99\xef\xbc\x8e\xf1\x9e\x8e\xa7\xe2\x81\xb7\xf3\xa0\xaf\x99\xda\xb6", false); } // [B5, B6, V7]
10264test { try toAsciiFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0\xe2\x89\xae\xf2\xb9\x93\x99\xef\xbc\x8e\xf1\x9e\x8e\xa7\xe2\x81\xb7\xf3\xa0\xaf\x99\xda\xb6", true); } // [B5, B6, V7]
423510265test { try toUnicodeFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0<\xcc\xb8\xf2\xb9\x93\x99\xef\xbc\x8e\xf1\x9e\x8e\xa7\xe2\x81\xb7\xf3\xa0\xaf\x99\xda\xb6"); } // [B5, B6, V7]
10266test { try toAsciiFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0<\xcc\xb8\xf2\xb9\x93\x99\xef\xbc\x8e\xf1\x9e\x8e\xa7\xe2\x81\xb7\xf3\xa0\xaf\x99\xda\xb6", false); } // [B5, B6, V7]
10267test { try toAsciiFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0<\xcc\xb8\xf2\xb9\x93\x99\xef\xbc\x8e\xf1\x9e\x8e\xa7\xe2\x81\xb7\xf3\xa0\xaf\x99\xda\xb6", true); } // [B5, B6, V7]
423610268test { try toUnicodeFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0\xe2\x89\xae\xf2\xb9\x93\x99.\xf1\x9e\x8e\xa77\xf3\xa0\xaf\x99\xda\xb6"); } // [B5, B6, V7]
10269test { try toAsciiFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0\xe2\x89\xae\xf2\xb9\x93\x99.\xf1\x9e\x8e\xa77\xf3\xa0\xaf\x99\xda\xb6", false); } // [B5, B6, V7]
10270test { try toAsciiFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0\xe2\x89\xae\xf2\xb9\x93\x99.\xf1\x9e\x8e\xa77\xf3\xa0\xaf\x99\xda\xb6", true); } // [B5, B6, V7]
423710271test { try toUnicodeFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0<\xcc\xb8\xf2\xb9\x93\x99.\xf1\x9e\x8e\xa77\xf3\xa0\xaf\x99\xda\xb6"); } // [B5, B6, V7]
10272test { try toAsciiFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0<\xcc\xb8\xf2\xb9\x93\x99.\xf1\x9e\x8e\xa77\xf3\xa0\xaf\x99\xda\xb6", false); } // [B5, B6, V7]
10273test { try toAsciiFail("\xf2\xb8\xb7\x86\xe0\xa9\xb0<\xcc\xb8\xf2\xb9\x93\x99.\xf1\x9e\x8e\xa77\xf3\xa0\xaf\x99\xda\xb6", true); } // [B5, B6, V7]
423810274test { try toUnicodeFail("xn--ycc893jqh38rb6fa.xn--7-5uc53836ixt41c"); } // [B5, B6, V7]
10275test { try toAsciiFail("xn--ycc893jqh38rb6fa.xn--7-5uc53836ixt41c", false); } // [B5, B6, V7]
10276test { try toAsciiFail("xn--ycc893jqh38rb6fa.xn--7-5uc53836ixt41c", true); } // [B5, B6, V7]
423910277test { try toUnicodePass("\xf0\x9e\xa4\xaa.\xcf\x82", "\xf0\x9e\xa4\xaa.\xcf\x82"); }
424010278test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xcf\x82", "xn--ie6h.xn--3xa", false); }
424110279test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xcf\x82", "xn--ie6h.xn--4xa", true); }
......@@ -4262,14 +10300,19 @@ test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xce\xa3", "xn--ie6h.xn--4xa", false);
426210300test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xce\xa3", "xn--ie6h.xn--4xa", true); }
426310301test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xcf\x82", "xn--ilj.xn--4xa", true); }
426410302test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xcf\x82"); } // [C1]
10303test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xcf\x82", false); } // [C1]
426510304test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xcf\x82", "xn--ilj.xn--4xa", true); }
426610305test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xcf\x82"); } // [C1]
10306test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xcf\x82", false); } // [C1]
426710307test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x82", "xn--ilj.xn--4xa", true); }
426810308test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x82"); } // [C1]
10309test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x82", false); } // [C1]
426910310test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xce\xa3", "xn--ilj.xn--4xa", true); }
427010311test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xce\xa3"); } // [C1]
10312test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xce\xa3", false); } // [C1]
427110313test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x83", "xn--ilj.xn--4xa", true); }
427210314test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x83"); } // [C1]
10315test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x83", false); } // [C1]
427310316test { try toUnicodePass("xn--ilj.xn--4xa", "\xe2\xb4\x9a.\xcf\x83"); }
427410317test { try toAsciiPass("xn--ilj.xn--4xa", "xn--ilj.xn--4xa", false); }
427510318test { try toAsciiPass("xn--ilj.xn--4xa", "xn--ilj.xn--4xa", true); }
......@@ -4292,48 +10335,125 @@ test { try toUnicodePass("\xe1\x82\xba.\xcf\x83", "\xe2\xb4\x9a.\xcf\x83"); }
429210335test { try toAsciiPass("\xe1\x82\xba.\xcf\x83", "xn--ilj.xn--4xa", false); }
429310336test { try toAsciiPass("\xe1\x82\xba.\xcf\x83", "xn--ilj.xn--4xa", true); }
429410337test { try toUnicodeFail("xn--0ug262c.xn--4xa"); } // [C1]
10338test { try toAsciiFail("xn--0ug262c.xn--4xa", false); } // [C1]
10339test { try toAsciiFail("xn--0ug262c.xn--4xa", true); } // [C1]
429510340test { try toUnicodeFail("xn--0ug262c.xn--3xa"); } // [C1]
10341test { try toAsciiFail("xn--0ug262c.xn--3xa", false); } // [C1]
10342test { try toAsciiFail("xn--0ug262c.xn--3xa", true); } // [C1]
429610343test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x82", "xn--ilj.xn--4xa", true); }
429710344test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x82"); } // [C1]
10345test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x82", false); } // [C1]
429810346test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xce\xa3", "xn--ilj.xn--4xa", true); }
429910347test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xce\xa3"); } // [C1]
10348test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xce\xa3", false); } // [C1]
430010349test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x83", "xn--ilj.xn--4xa", true); }
430110350test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x83"); } // [C1]
10351test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x83", false); } // [C1]
430210352test { try toUnicodeFail("xn--ynd.xn--4xa"); } // [V7]
10353test { try toAsciiFail("xn--ynd.xn--4xa", false); } // [V7]
10354test { try toAsciiFail("xn--ynd.xn--4xa", true); } // [V7]
430310355test { try toUnicodeFail("xn--ynd.xn--3xa"); } // [V7]
10356test { try toAsciiFail("xn--ynd.xn--3xa", false); } // [V7]
10357test { try toAsciiFail("xn--ynd.xn--3xa", true); } // [V7]
430410358test { try toUnicodeFail("xn--ynd759e.xn--4xa"); } // [C1, V7]
10359test { try toAsciiFail("xn--ynd759e.xn--4xa", false); } // [C1, V7]
10360test { try toAsciiFail("xn--ynd759e.xn--4xa", true); } // [C1, V7]
430510361test { try toUnicodeFail("xn--ynd759e.xn--3xa"); } // [C1, V7]
10362test { try toAsciiFail("xn--ynd759e.xn--3xa", false); } // [C1, V7]
10363test { try toAsciiFail("xn--ynd759e.xn--3xa", true); } // [C1, V7]
430610364test { try toUnicodeFail("\xf0\x9e\xa4\x83\xef\xbc\x8e\xf0\x90\xb9\xa6"); } // [B1]
10365test { try toAsciiFail("\xf0\x9e\xa4\x83\xef\xbc\x8e\xf0\x90\xb9\xa6", false); } // [B1]
10366test { try toAsciiFail("\xf0\x9e\xa4\x83\xef\xbc\x8e\xf0\x90\xb9\xa6", true); } // [B1]
430710367test { try toUnicodeFail("\xf0\x9e\xa4\x83.\xf0\x90\xb9\xa6"); } // [B1]
10368test { try toAsciiFail("\xf0\x9e\xa4\x83.\xf0\x90\xb9\xa6", false); } // [B1]
10369test { try toAsciiFail("\xf0\x9e\xa4\x83.\xf0\x90\xb9\xa6", true); } // [B1]
430810370test { try toUnicodeFail("\xf0\x9e\xa4\xa5.\xf0\x90\xb9\xa6"); } // [B1]
10371test { try toAsciiFail("\xf0\x9e\xa4\xa5.\xf0\x90\xb9\xa6", false); } // [B1]
10372test { try toAsciiFail("\xf0\x9e\xa4\xa5.\xf0\x90\xb9\xa6", true); } // [B1]
430910373test { try toUnicodeFail("xn--de6h.xn--eo0d"); } // [B1]
10374test { try toAsciiFail("xn--de6h.xn--eo0d", false); } // [B1]
10375test { try toAsciiFail("xn--de6h.xn--eo0d", true); } // [B1]
431010376test { try toUnicodeFail("\xf0\x9e\xa4\xa5\xef\xbc\x8e\xf0\x90\xb9\xa6"); } // [B1]
10377test { try toAsciiFail("\xf0\x9e\xa4\xa5\xef\xbc\x8e\xf0\x90\xb9\xa6", false); } // [B1]
10378test { try toAsciiFail("\xf0\x9e\xa4\xa5\xef\xbc\x8e\xf0\x90\xb9\xa6", true); } // [B1]
431110379test { try toUnicodeFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xcc\x90\xea\xa5\x93\xea\xa1\x8e"); } // [C1, C2]
10380test { try toAsciiFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xcc\x90\xea\xa5\x93\xea\xa1\x8e", false); } // [C1, C2]
10381test { try toAsciiFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xcc\x90\xea\xa5\x93\xea\xa1\x8e", true); } // [V6]
431210382test { try toUnicodeFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e"); } // [C1, C2]
10383test { try toAsciiFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e", false); } // [C1, C2]
10384test { try toAsciiFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e", true); } // [V6]
431310385test { try toUnicodeFail("\xe2\x80\x8d\xe8\xb0\xb7\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e"); } // [C1, C2]
10386test { try toAsciiFail("\xe2\x80\x8d\xe8\xb0\xb7\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e", false); } // [C1, C2]
10387test { try toAsciiFail("\xe2\x80\x8d\xe8\xb0\xb7\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e", true); } // [V6]
431410388test { try toUnicodeFail("xn--6g3a.xn--0sa8175flwa"); } // [V6]
10389test { try toAsciiFail("xn--6g3a.xn--0sa8175flwa", false); } // [V6]
10390test { try toAsciiFail("xn--6g3a.xn--0sa8175flwa", true); } // [V6]
431510391test { try toUnicodeFail("xn--1ug0273b.xn--0sa359l6n7g13a"); } // [C1, C2]
10392test { try toAsciiFail("xn--1ug0273b.xn--0sa359l6n7g13a", false); } // [C1, C2]
10393test { try toAsciiFail("xn--1ug0273b.xn--0sa359l6n7g13a", true); } // [C1, C2]
431610394test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1]
10395test { try toAsciiFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\x90\xe2\x80\x8c", false); } // [B2, B3, C1]
10396test { try toAsciiFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\x90\xe2\x80\x8c", true); } // [B2, B3]
431710397test { try toUnicodeFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf\xef\xbc\x8e\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1]
10398test { try toAsciiFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf\xef\xbc\x8e\xf0\x9e\xa4\x90\xe2\x80\x8c", false); } // [B2, B3, C1]
10399test { try toAsciiFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf\xef\xbc\x8e\xf0\x9e\xa4\x90\xe2\x80\x8c", true); } // [B2, B3]
431810400test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1]
10401test { try toAsciiFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\x90\xe2\x80\x8c", false); } // [B2, B3, C1]
10402test { try toAsciiFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\x90\xe2\x80\x8c", true); } // [B2, B3]
431910403test { try toUnicodeFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1]
10404test { try toAsciiFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\x90\xe2\x80\x8c", false); } // [B2, B3, C1]
10405test { try toAsciiFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\x90\xe2\x80\x8c", true); } // [B2, B3]
432010406test { try toUnicodeFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1]
10407test { try toAsciiFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\xb2\xe2\x80\x8c", false); } // [B2, B3, C1]
10408test { try toAsciiFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\xb2\xe2\x80\x8c", true); } // [B2, B3]
432110409test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1]
10410test { try toAsciiFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\xb2\xe2\x80\x8c", false); } // [B2, B3, C1]
10411test { try toAsciiFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\xb2\xe2\x80\x8c", true); } // [B2, B3]
432210412test { try toUnicodeFail("xn----guc3592k.xn--qe6h"); } // [B2, B3]
10413test { try toAsciiFail("xn----guc3592k.xn--qe6h", false); } // [B2, B3]
10414test { try toAsciiFail("xn----guc3592k.xn--qe6h", true); } // [B2, B3]
432310415test { try toUnicodeFail("xn----guc3592k.xn--0ug7611p"); } // [B2, B3, C1]
10416test { try toAsciiFail("xn----guc3592k.xn--0ug7611p", false); } // [B2, B3, C1]
10417test { try toAsciiFail("xn----guc3592k.xn--0ug7611p", true); } // [B2, B3, C1]
432410418test { try toUnicodeFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf\xef\xbc\x8e\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1]
10419test { try toAsciiFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf\xef\xbc\x8e\xf0\x9e\xa4\xb2\xe2\x80\x8c", false); } // [B2, B3, C1]
10420test { try toAsciiFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf\xef\xbc\x8e\xf0\x9e\xa4\xb2\xe2\x80\x8c", true); } // [B2, B3]
432510421test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1]
10422test { try toAsciiFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\xb2\xe2\x80\x8c", false); } // [B2, B3, C1]
10423test { try toAsciiFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\xb2\xe2\x80\x8c", true); } // [B2, B3]
432610424test { try toUnicodeFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8"); } // [B1, V6, V7]
10425test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8", false); } // [B1, V6, V7]
10426test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8", true); } // [B1, V6, V7]
432710427test { try toUnicodeFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
10428test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", false); } // [B1, V6, V7]
10429test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", true); } // [B1, V6, V7]
432810430test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
10431test { try toAsciiFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", false); } // [B1, V6, V7]
10432test { try toAsciiFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", true); } // [B1, V6, V7]
432910433test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
10434test { try toAsciiFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", false); } // [B1, V6, V7]
10435test { try toAsciiFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", true); } // [B1, V6, V7]
433010436test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
10437test { try toAsciiFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", false); } // [B1, V6, V7]
10438test { try toAsciiFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", true); } // [B1, V6, V7]
433110439test { try toUnicodeFail("xn--5-0mb988ng603j.xn--fob7kk44dl41k"); } // [B1, V6, V7]
10440test { try toAsciiFail("xn--5-0mb988ng603j.xn--fob7kk44dl41k", false); } // [B1, V6, V7]
10441test { try toAsciiFail("xn--5-0mb988ng603j.xn--fob7kk44dl41k", true); } // [B1, V6, V7]
433210442test { try toUnicodeFail("xn--5-ymb298ng603j.xn--fob7kk44dl41k"); } // [B1, V6, V7]
10443test { try toAsciiFail("xn--5-ymb298ng603j.xn--fob7kk44dl41k", false); } // [B1, V6, V7]
10444test { try toAsciiFail("xn--5-ymb298ng603j.xn--fob7kk44dl41k", true); } // [B1, V6, V7]
433310445test { try toUnicodeFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
10446test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", false); } // [B1, V6, V7]
10447test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", true); } // [B1, V6, V7]
433410448test { try toUnicodeFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
10449test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", false); } // [B1, V6, V7]
10450test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92", true); } // [B1, V6, V7]
433510451test { try toUnicodeFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8"); } // [B1, V6, V7]
10452test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8", false); } // [B1, V6, V7]
10453test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8", true); } // [B1, V6, V7]
433610454test { try toUnicodeFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8"); } // [B1, V6, V7]
10455test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8", false); } // [B1, V6, V7]
10456test { try toAsciiFail("\xf1\x94\xb2\xb5\xef\xbc\x95\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xe1\xb3\x92\xdc\xb8", true); } // [B1, V6, V7]
433710457test { try toUnicodePass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "\xe6\xb7\xbd.\xe1\xa0\xbe"); }
433810458test { try toAsciiPass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "xn--34w.xn--x7e", false); }
433910459test { try toAsciiPass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "xn--34w.xn--x7e", true); }
......@@ -4344,236 +10464,698 @@ test { try toUnicodePass("\xe6\xb7\xbd.\xe1\xa0\xbe", "\xe6\xb7\xbd.\xe1\xa0\xbe
434410464test { try toAsciiPass("\xe6\xb7\xbd.\xe1\xa0\xbe", "xn--34w.xn--x7e", false); }
434510465test { try toAsciiPass("\xe6\xb7\xbd.\xe1\xa0\xbe", "xn--34w.xn--x7e", true); }
434610466test { try toUnicodeFail("\xf0\x90\xb9\xb4\xf0\x91\x98\xb7\xe3\x80\x82-"); } // [B1, V3]
10467test { try toAsciiFail("\xf0\x90\xb9\xb4\xf0\x91\x98\xb7\xe3\x80\x82-", false); } // [B1, V3]
10468test { try toAsciiFail("\xf0\x90\xb9\xb4\xf0\x91\x98\xb7\xe3\x80\x82-", true); } // [B1, V3]
434710469test { try toUnicodeFail("xn--so0do6k.-"); } // [B1, V3]
10470test { try toAsciiFail("xn--so0do6k.-", false); } // [B1, V3]
10471test { try toAsciiFail("xn--so0do6k.-", true); } // [B1, V3]
434810472test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8"); } // [V6, V7]
10473test { try toAsciiFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8", false); } // [V6, V7]
10474test { try toAsciiFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8", true); } // [V6, V7]
434910475test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8"); } // [V6, V7]
10476test { try toAsciiFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8", false); } // [V6, V7]
10477test { try toAsciiFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8", true); } // [V6, V7]
435010478test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8"); } // [V6, V7]
10479test { try toAsciiFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8", false); } // [V6, V7]
10480test { try toAsciiFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8", true); } // [V6, V7]
435110481test { try toUnicodeFail("xn--8di78qvw32y.xn--k80d"); } // [V6, V7]
10482test { try toAsciiFail("xn--8di78qvw32y.xn--k80d", false); } // [V6, V7]
10483test { try toAsciiFail("xn--8di78qvw32y.xn--k80d", true); } // [V6, V7]
435210484test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8"); } // [V6, V7]
10485test { try toAsciiFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8", false); } // [V6, V7]
10486test { try toAsciiFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8", true); } // [V6, V7]
435310487test { try toUnicodeFail("xn--rnd896i0j14q.xn--k80d"); } // [V6, V7]
10488test { try toAsciiFail("xn--rnd896i0j14q.xn--k80d", false); } // [V6, V7]
10489test { try toAsciiFail("xn--rnd896i0j14q.xn--k80d", true); } // [V6, V7]
435410490test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1\xc3\x9f\xe1\x82\xa3"); } // [B1, C1]
10491test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1\xc3\x9f\xe1\x82\xa3", false); } // [B1, C1]
10492test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1\xc3\x9f\xe1\x82\xa3", true); } // [B1]
435510493test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82\xc3\x9f\xe1\x82\xa3"); } // [B1, C1]
10494test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82\xc3\x9f\xe1\x82\xa3", false); } // [B1, C1]
10495test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82\xc3\x9f\xe1\x82\xa3", true); } // [B1]
435610496test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xe3\x80\x82\xc3\x9f\xe2\xb4\x83"); } // [B1, C1]
10497test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xe3\x80\x82\xc3\x9f\xe2\xb4\x83", false); } // [B1, C1]
10498test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xe3\x80\x82\xc3\x9f\xe2\xb4\x83", true); } // [B1]
435710499test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82SS\xe1\x82\xa3"); } // [B1, C1]
10500test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82SS\xe1\x82\xa3", false); } // [B1, C1]
10501test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82SS\xe1\x82\xa3", true); } // [B1]
435810502test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83"); } // [B1, C1]
10503test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83", false); } // [B1, C1]
10504test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83", true); } // [B1]
435910505test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82Ss\xe2\xb4\x83"); } // [B1, C1]
10506test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82Ss\xe2\xb4\x83", false); } // [B1, C1]
10507test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82Ss\xe2\xb4\x83", true); } // [B1]
436010508test { try toUnicodeFail("xn--ykj9323eegwf.xn--ss-151a"); } // [B1]
10509test { try toAsciiFail("xn--ykj9323eegwf.xn--ss-151a", false); } // [B1]
10510test { try toAsciiFail("xn--ykj9323eegwf.xn--ss-151a", true); } // [B1]
436110511test { try toUnicodeFail("xn--0ug332c3q0pr56g.xn--ss-151a"); } // [B1, C1]
10512test { try toAsciiFail("xn--0ug332c3q0pr56g.xn--ss-151a", false); } // [B1, C1]
10513test { try toAsciiFail("xn--0ug332c3q0pr56g.xn--ss-151a", true); } // [B1, C1]
436210514test { try toUnicodeFail("xn--0ug332c3q0pr56g.xn--zca417t"); } // [B1, C1]
10515test { try toAsciiFail("xn--0ug332c3q0pr56g.xn--zca417t", false); } // [B1, C1]
10516test { try toAsciiFail("xn--0ug332c3q0pr56g.xn--zca417t", true); } // [B1, C1]
436310517test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xef\xbd\xa1\xc3\x9f\xe2\xb4\x83"); } // [B1, C1]
10518test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xef\xbd\xa1\xc3\x9f\xe2\xb4\x83", false); } // [B1, C1]
10519test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xef\xbd\xa1\xc3\x9f\xe2\xb4\x83", true); } // [B1]
436410520test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1SS\xe1\x82\xa3"); } // [B1, C1]
10521test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1SS\xe1\x82\xa3", false); } // [B1, C1]
10522test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1SS\xe1\x82\xa3", true); } // [B1]
436510523test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83"); } // [B1, C1]
10524test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83", false); } // [B1, C1]
10525test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83", true); } // [B1]
436610526test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1Ss\xe2\xb4\x83"); } // [B1, C1]
10527test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1Ss\xe2\xb4\x83", false); } // [B1, C1]
10528test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1Ss\xe2\xb4\x83", true); } // [B1]
436710529test { try toUnicodeFail("xn--fnd1201kegrf.xn--ss-fek"); } // [B1, V7]
10530test { try toAsciiFail("xn--fnd1201kegrf.xn--ss-fek", false); } // [B1, V7]
10531test { try toAsciiFail("xn--fnd1201kegrf.xn--ss-fek", true); } // [B1, V7]
436810532test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--ss-fek"); } // [B1, C1, V7]
10533test { try toAsciiFail("xn--fnd599eyj4pr50g.xn--ss-fek", false); } // [B1, C1, V7]
10534test { try toAsciiFail("xn--fnd599eyj4pr50g.xn--ss-fek", true); } // [B1, C1, V7]
436910535test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--zca681f"); } // [B1, C1, V7]
10536test { try toAsciiFail("xn--fnd599eyj4pr50g.xn--zca681f", false); } // [B1, C1, V7]
10537test { try toAsciiFail("xn--fnd599eyj4pr50g.xn--zca681f", true); } // [B1, C1, V7]
437010538test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82\xc3\x9f\xe2\xb4\x83"); } // [B1, C1]
10539test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82\xc3\x9f\xe2\xb4\x83", false); } // [B1, C1]
10540test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82\xc3\x9f\xe2\xb4\x83", true); } // [B1]
437110541test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83"); } // [B1, C1]
10542test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83", false); } // [B1, C1]
10543test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83", true); } // [B1]
437210544test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82Ss\xe2\xb4\x83"); } // [B1, C1]
10545test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82Ss\xe2\xb4\x83", false); } // [B1, C1]
10546test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82Ss\xe2\xb4\x83", true); } // [B1]
437310547test { try toUnicodeFail("xn--fnd1201kegrf.xn--ss-151a"); } // [B1, V7]
10548test { try toAsciiFail("xn--fnd1201kegrf.xn--ss-151a", false); } // [B1, V7]
10549test { try toAsciiFail("xn--fnd1201kegrf.xn--ss-151a", true); } // [B1, V7]
437410550test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--ss-151a"); } // [B1, C1, V7]
10551test { try toAsciiFail("xn--fnd599eyj4pr50g.xn--ss-151a", false); } // [B1, C1, V7]
10552test { try toAsciiFail("xn--fnd599eyj4pr50g.xn--ss-151a", true); } // [B1, C1, V7]
437510553test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1\xc3\x9f\xe2\xb4\x83"); } // [B1, C1]
10554test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1\xc3\x9f\xe2\xb4\x83", false); } // [B1, C1]
10555test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1\xc3\x9f\xe2\xb4\x83", true); } // [B1]
437610556test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83"); } // [B1, C1]
10557test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83", false); } // [B1, C1]
10558test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83", true); } // [B1]
437710559test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1Ss\xe2\xb4\x83"); } // [B1, C1]
10560test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1Ss\xe2\xb4\x83", false); } // [B1, C1]
10561test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1Ss\xe2\xb4\x83", true); } // [B1]
437810562test { try toUnicodeFail("\xe1\x9f\xbf\xef\xbd\xa1\xf0\x9e\xac\xb3"); } // [V7]
10563test { try toAsciiFail("\xe1\x9f\xbf\xef\xbd\xa1\xf0\x9e\xac\xb3", false); } // [V7]
10564test { try toAsciiFail("\xe1\x9f\xbf\xef\xbd\xa1\xf0\x9e\xac\xb3", true); } // [V7]
437910565test { try toUnicodeFail("\xe1\x9f\xbf\xe3\x80\x82\xf0\x9e\xac\xb3"); } // [V7]
10566test { try toAsciiFail("\xe1\x9f\xbf\xe3\x80\x82\xf0\x9e\xac\xb3", false); } // [V7]
10567test { try toAsciiFail("\xe1\x9f\xbf\xe3\x80\x82\xf0\x9e\xac\xb3", true); } // [V7]
438010568test { try toUnicodeFail("xn--45e.xn--et6h"); } // [V7]
10569test { try toAsciiFail("xn--45e.xn--et6h", false); } // [V7]
10570test { try toAsciiFail("xn--45e.xn--et6h", true); } // [V7]
438110571test { try toUnicodeFail("\xd9\x92\xe2\x80\x8d\xef\xbd\xa1\xe0\xb3\x8d\xf0\x91\x9a\xb3"); } // [C2, V6]
10572test { try toAsciiFail("\xd9\x92\xe2\x80\x8d\xef\xbd\xa1\xe0\xb3\x8d\xf0\x91\x9a\xb3", false); } // [C2, V6]
10573test { try toAsciiFail("\xd9\x92\xe2\x80\x8d\xef\xbd\xa1\xe0\xb3\x8d\xf0\x91\x9a\xb3", true); } // [V6]
438210574test { try toUnicodeFail("\xd9\x92\xe2\x80\x8d\xe3\x80\x82\xe0\xb3\x8d\xf0\x91\x9a\xb3"); } // [C2, V6]
10575test { try toAsciiFail("\xd9\x92\xe2\x80\x8d\xe3\x80\x82\xe0\xb3\x8d\xf0\x91\x9a\xb3", false); } // [C2, V6]
10576test { try toAsciiFail("\xd9\x92\xe2\x80\x8d\xe3\x80\x82\xe0\xb3\x8d\xf0\x91\x9a\xb3", true); } // [V6]
438310577test { try toUnicodeFail("xn--uhb.xn--8tc4527k"); } // [V6]
10578test { try toAsciiFail("xn--uhb.xn--8tc4527k", false); } // [V6]
10579test { try toAsciiFail("xn--uhb.xn--8tc4527k", true); } // [V6]
438410580test { try toUnicodeFail("xn--uhb882k.xn--8tc4527k"); } // [C2, V6]
10581test { try toAsciiFail("xn--uhb882k.xn--8tc4527k", false); } // [C2, V6]
10582test { try toAsciiFail("xn--uhb882k.xn--8tc4527k", true); } // [C2, V6]
438510583test { try toUnicodeFail("-\xe2\x89\xa0\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa5\x83\xe2\x89\xae\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
10584test { try toAsciiFail("-\xe2\x89\xa0\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa5\x83\xe2\x89\xae\xf3\x9f\xb7\xba", false); } // [B1, B2, B3, V3, V7]
10585test { try toAsciiFail("-\xe2\x89\xa0\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa5\x83\xe2\x89\xae\xf3\x9f\xb7\xba", true); } // [B1, B2, B3, V3, V7]
438610586test { try toUnicodeFail("-=\xcc\xb8\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa5\x83<\xcc\xb8\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
10587test { try toAsciiFail("-=\xcc\xb8\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa5\x83<\xcc\xb8\xf3\x9f\xb7\xba", false); } // [B1, B2, B3, V3, V7]
10588test { try toAsciiFail("-=\xcc\xb8\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa5\x83<\xcc\xb8\xf3\x9f\xb7\xba", true); } // [B1, B2, B3, V3, V7]
438710589test { try toUnicodeFail("-\xe2\x89\xa0\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa5\x83\xe2\x89\xae\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
10590test { try toAsciiFail("-\xe2\x89\xa0\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa5\x83\xe2\x89\xae\xf3\x9f\xb7\xba", false); } // [B1, B2, B3, V3, V7]
10591test { try toAsciiFail("-\xe2\x89\xa0\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa5\x83\xe2\x89\xae\xf3\x9f\xb7\xba", true); } // [B1, B2, B3, V3, V7]
438810592test { try toUnicodeFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa5\x83<\xcc\xb8\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
10593test { try toAsciiFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa5\x83<\xcc\xb8\xf3\x9f\xb7\xba", false); } // [B1, B2, B3, V3, V7]
10594test { try toAsciiFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa5\x83<\xcc\xb8\xf3\x9f\xb7\xba", true); } // [B1, B2, B3, V3, V7]
438910595test { try toUnicodeFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa4\xa1<\xcc\xb8\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
10596test { try toAsciiFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa4\xa1<\xcc\xb8\xf3\x9f\xb7\xba", false); } // [B1, B2, B3, V3, V7]
10597test { try toAsciiFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa4\xa1<\xcc\xb8\xf3\x9f\xb7\xba", true); } // [B1, B2, B3, V3, V7]
439010598test { try toUnicodeFail("-\xe2\x89\xa0\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa4\xa1\xe2\x89\xae\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
10599test { try toAsciiFail("-\xe2\x89\xa0\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa4\xa1\xe2\x89\xae\xf3\x9f\xb7\xba", false); } // [B1, B2, B3, V3, V7]
10600test { try toAsciiFail("-\xe2\x89\xa0\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa4\xa1\xe2\x89\xae\xf3\x9f\xb7\xba", true); } // [B1, B2, B3, V3, V7]
439110601test { try toUnicodeFail("xn----g6j886c.xn--xpb049kk353abj99f"); } // [B1, B2, B3, V3, V7]
10602test { try toAsciiFail("xn----g6j886c.xn--xpb049kk353abj99f", false); } // [B1, B2, B3, V3, V7]
10603test { try toAsciiFail("xn----g6j886c.xn--xpb049kk353abj99f", true); } // [B1, B2, B3, V3, V7]
439210604test { try toUnicodeFail("-=\xcc\xb8\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa4\xa1<\xcc\xb8\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
10605test { try toAsciiFail("-=\xcc\xb8\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa4\xa1<\xcc\xb8\xf3\x9f\xb7\xba", false); } // [B1, B2, B3, V3, V7]
10606test { try toAsciiFail("-=\xcc\xb8\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa4\xa1<\xcc\xb8\xf3\x9f\xb7\xba", true); } // [B1, B2, B3, V3, V7]
439310607test { try toUnicodeFail("-\xe2\x89\xa0\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa4\xa1\xe2\x89\xae\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
10608test { try toAsciiFail("-\xe2\x89\xa0\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa4\xa1\xe2\x89\xae\xf3\x9f\xb7\xba", false); } // [B1, B2, B3, V3, V7]
10609test { try toAsciiFail("-\xe2\x89\xa0\xe1\xa0\xbb\xef\xbc\x8e\xdd\xad\xf0\x9e\xa4\xa1\xe2\x89\xae\xf3\x9f\xb7\xba", true); } // [B1, B2, B3, V3, V7]
439410610test { try toUnicodeFail("\xf3\xa0\xb0\x86\xe2\x89\xaf\xde\xb5\xf0\x90\xbb\xaa\xef\xbc\x8e\xf2\x8a\xa5\x95\xe2\x89\xae\xf0\x91\x81\x86\xe0\xa1\x8c"); } // [B1, B5, B6, V7]
10611test { try toAsciiFail("\xf3\xa0\xb0\x86\xe2\x89\xaf\xde\xb5\xf0\x90\xbb\xaa\xef\xbc\x8e\xf2\x8a\xa5\x95\xe2\x89\xae\xf0\x91\x81\x86\xe0\xa1\x8c", false); } // [B1, B5, B6, V7]
10612test { try toAsciiFail("\xf3\xa0\xb0\x86\xe2\x89\xaf\xde\xb5\xf0\x90\xbb\xaa\xef\xbc\x8e\xf2\x8a\xa5\x95\xe2\x89\xae\xf0\x91\x81\x86\xe0\xa1\x8c", true); } // [B1, B5, B6, V7]
439510613test { try toUnicodeFail("\xf3\xa0\xb0\x86>\xcc\xb8\xde\xb5\xf0\x90\xbb\xaa\xef\xbc\x8e\xf2\x8a\xa5\x95<\xcc\xb8\xf0\x91\x81\x86\xe0\xa1\x8c"); } // [B1, B5, B6, V7]
10614test { try toAsciiFail("\xf3\xa0\xb0\x86>\xcc\xb8\xde\xb5\xf0\x90\xbb\xaa\xef\xbc\x8e\xf2\x8a\xa5\x95<\xcc\xb8\xf0\x91\x81\x86\xe0\xa1\x8c", false); } // [B1, B5, B6, V7]
10615test { try toAsciiFail("\xf3\xa0\xb0\x86>\xcc\xb8\xde\xb5\xf0\x90\xbb\xaa\xef\xbc\x8e\xf2\x8a\xa5\x95<\xcc\xb8\xf0\x91\x81\x86\xe0\xa1\x8c", true); } // [B1, B5, B6, V7]
439610616test { try toUnicodeFail("\xf3\xa0\xb0\x86\xe2\x89\xaf\xde\xb5\xf0\x90\xbb\xaa.\xf2\x8a\xa5\x95\xe2\x89\xae\xf0\x91\x81\x86\xe0\xa1\x8c"); } // [B1, B5, B6, V7]
10617test { try toAsciiFail("\xf3\xa0\xb0\x86\xe2\x89\xaf\xde\xb5\xf0\x90\xbb\xaa.\xf2\x8a\xa5\x95\xe2\x89\xae\xf0\x91\x81\x86\xe0\xa1\x8c", false); } // [B1, B5, B6, V7]
10618test { try toAsciiFail("\xf3\xa0\xb0\x86\xe2\x89\xaf\xde\xb5\xf0\x90\xbb\xaa.\xf2\x8a\xa5\x95\xe2\x89\xae\xf0\x91\x81\x86\xe0\xa1\x8c", true); } // [B1, B5, B6, V7]
439710619test { try toUnicodeFail("\xf3\xa0\xb0\x86>\xcc\xb8\xde\xb5\xf0\x90\xbb\xaa.\xf2\x8a\xa5\x95<\xcc\xb8\xf0\x91\x81\x86\xe0\xa1\x8c"); } // [B1, B5, B6, V7]
10620test { try toAsciiFail("\xf3\xa0\xb0\x86>\xcc\xb8\xde\xb5\xf0\x90\xbb\xaa.\xf2\x8a\xa5\x95<\xcc\xb8\xf0\x91\x81\x86\xe0\xa1\x8c", false); } // [B1, B5, B6, V7]
10621test { try toAsciiFail("\xf3\xa0\xb0\x86>\xcc\xb8\xde\xb5\xf0\x90\xbb\xaa.\xf2\x8a\xa5\x95<\xcc\xb8\xf0\x91\x81\x86\xe0\xa1\x8c", true); } // [B1, B5, B6, V7]
439810622test { try toUnicodeFail("xn--zrb797kdm1oes34i.xn--bwb394k8k2o25n6d"); } // [B1, B5, B6, V7]
10623test { try toAsciiFail("xn--zrb797kdm1oes34i.xn--bwb394k8k2o25n6d", false); } // [B1, B5, B6, V7]
10624test { try toAsciiFail("xn--zrb797kdm1oes34i.xn--bwb394k8k2o25n6d", true); } // [B1, B5, B6, V7]
439910625test { try toUnicodeFail("\xe2\x89\xa0\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9"); } // [B1, V7]
10626test { try toAsciiFail("\xe2\x89\xa0\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9", false); } // [B1, V7]
10627test { try toAsciiFail("\xe2\x89\xa0\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9", true); } // [B1, V7]
440010628test { try toUnicodeFail("=\xcc\xb8\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9"); } // [B1, V7]
10629test { try toAsciiFail("=\xcc\xb8\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9", false); } // [B1, V7]
10630test { try toAsciiFail("=\xcc\xb8\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9", true); } // [B1, V7]
440110631test { try toUnicodeFail("xn--1ch22084l.xn----qkc07co6n"); } // [B1, V7]
10632test { try toAsciiFail("xn--1ch22084l.xn----qkc07co6n", false); } // [B1, V7]
10633test { try toAsciiFail("xn--1ch22084l.xn----qkc07co6n", true); } // [B1, V7]
440210634test { try toUnicodeFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3\xe2\x89\xa0\xef\xbd\xa1\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4"); } // [B1, V6, V7]
10635test { try toAsciiFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3\xe2\x89\xa0\xef\xbd\xa1\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4", false); } // [B1, V6, V7]
10636test { try toAsciiFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3\xe2\x89\xa0\xef\xbd\xa1\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4", true); } // [B1, V6, V7]
440310637test { try toUnicodeFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3=\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4"); } // [B1, V6, V7]
10638test { try toAsciiFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3=\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4", false); } // [B1, V6, V7]
10639test { try toAsciiFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3=\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4", true); } // [B1, V6, V7]
440410640test { try toUnicodeFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3\xe2\x89\xa0\xe3\x80\x82\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4"); } // [B1, V6, V7]
10641test { try toAsciiFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3\xe2\x89\xa0\xe3\x80\x82\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4", false); } // [B1, V6, V7]
10642test { try toAsciiFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3\xe2\x89\xa0\xe3\x80\x82\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4", true); } // [B1, V6, V7]
440510643test { try toUnicodeFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3=\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4"); } // [B1, V6, V7]
10644test { try toAsciiFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3=\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4", false); } // [B1, V6, V7]
10645test { try toAsciiFail("\xe1\x9f\x9d\xf3\xa0\x81\xa3=\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbc\xf0\x90\x8b\xa4", true); } // [B1, V6, V7]
440610646test { try toUnicodeFail("xn--54e694cn389z.xn--787ct8r"); } // [B1, V6, V7]
10647test { try toAsciiFail("xn--54e694cn389z.xn--787ct8r", false); } // [B1, V6, V7]
10648test { try toAsciiFail("xn--54e694cn389z.xn--787ct8r", true); } // [B1, V6, V7]
440710649test { try toUnicodeFail("\xc3\x9f\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xae\xc3\x9f"); } // [V6, V7]
10650test { try toAsciiFail("\xc3\x9f\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xae\xc3\x9f", false); } // [V6, V7]
10651test { try toAsciiFail("\xc3\x9f\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xae\xc3\x9f", true); } // [V6, V7]
440810652test { try toUnicodeFail("\xc3\x9f\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xae\xc3\x9f"); } // [V6, V7]
10653test { try toAsciiFail("\xc3\x9f\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xae\xc3\x9f", false); } // [V6, V7]
10654test { try toAsciiFail("\xc3\x9f\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xae\xc3\x9f", true); } // [V6, V7]
440910655test { try toUnicodeFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS"); } // [V6, V7]
10656test { try toAsciiFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS", false); } // [V6, V7]
10657test { try toAsciiFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS", true); } // [V6, V7]
441010658test { try toUnicodeFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess"); } // [V6, V7]
10659test { try toAsciiFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess", false); } // [V6, V7]
10660test { try toAsciiFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess", true); } // [V6, V7]
441110661test { try toUnicodeFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs"); } // [V6, V7]
10662test { try toAsciiFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs", false); } // [V6, V7]
10663test { try toAsciiFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs", true); } // [V6, V7]
441210664test { try toUnicodeFail("xn--ss-jl59biy67d.xn--ss-4d11aw87d"); } // [V6, V7]
10665test { try toAsciiFail("xn--ss-jl59biy67d.xn--ss-4d11aw87d", false); } // [V6, V7]
10666test { try toAsciiFail("xn--ss-jl59biy67d.xn--ss-4d11aw87d", true); } // [V6, V7]
441310667test { try toUnicodeFail("xn--zca20040bgrkh.xn--zca3653v86qa"); } // [V6, V7]
10668test { try toAsciiFail("xn--zca20040bgrkh.xn--zca3653v86qa", false); } // [V6, V7]
10669test { try toAsciiFail("xn--zca20040bgrkh.xn--zca3653v86qa", true); } // [V6, V7]
441410670test { try toUnicodeFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS"); } // [V6, V7]
10671test { try toAsciiFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS", false); } // [V6, V7]
10672test { try toAsciiFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS", true); } // [V6, V7]
441510673test { try toUnicodeFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess"); } // [V6, V7]
10674test { try toAsciiFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess", false); } // [V6, V7]
10675test { try toAsciiFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess", true); } // [V6, V7]
441610676test { try toUnicodeFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs"); } // [V6, V7]
10677test { try toAsciiFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs", false); } // [V6, V7]
10678test { try toAsciiFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs", true); } // [V6, V7]
441710679test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xe2\x80\x8c"); } // [C1, C2]
10680test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xe2\x80\x8c", false); } // [C1, C2]
10681test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xe2\x80\x8c", true); } // [A4_1, A4_2]
441810682test { try toUnicodeFail("xn--1ug.xn--0ug"); } // [C1, C2]
10683test { try toAsciiFail("xn--1ug.xn--0ug", false); } // [C1, C2]
10684test { try toAsciiFail("xn--1ug.xn--0ug", true); } // [C1, C2]
441910685test { try toUnicodeFail("\xd2\x83\xf0\x90\xad\x9e\xe2\x80\x8d.\xe1\x9e\xb9\xf0\x9e\xaf\x8c\xf2\x9f\xa9\x9a"); } // [B1, C2, V6, V7]
10686test { try toAsciiFail("\xd2\x83\xf0\x90\xad\x9e\xe2\x80\x8d.\xe1\x9e\xb9\xf0\x9e\xaf\x8c\xf2\x9f\xa9\x9a", false); } // [B1, C2, V6, V7]
10687test { try toAsciiFail("\xd2\x83\xf0\x90\xad\x9e\xe2\x80\x8d.\xe1\x9e\xb9\xf0\x9e\xaf\x8c\xf2\x9f\xa9\x9a", true); } // [B1, V6, V7]
442010688test { try toUnicodeFail("xn--m3a6965k.xn--43e8670vmd79b"); } // [B1, V6, V7]
10689test { try toAsciiFail("xn--m3a6965k.xn--43e8670vmd79b", false); } // [B1, V6, V7]
10690test { try toAsciiFail("xn--m3a6965k.xn--43e8670vmd79b", true); } // [B1, V6, V7]
442110691test { try toUnicodeFail("xn--m3a412lrr0o.xn--43e8670vmd79b"); } // [B1, C2, V6, V7]
10692test { try toAsciiFail("xn--m3a412lrr0o.xn--43e8670vmd79b", false); } // [B1, C2, V6, V7]
10693test { try toAsciiFail("xn--m3a412lrr0o.xn--43e8670vmd79b", true); } // [B1, C2, V6, V7]
442210694test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xa0\xa8\xe2\x80\x8c\xe4\xb8\xb4\xe3\x80\x82\xea\xa1\xa2\xf2\x84\xb7\x9e\xe2\xb6\x8f\xf0\x90\xb9\xa3"); } // [B1, B5, B6, C1, V7]
10695test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xa0\xa8\xe2\x80\x8c\xe4\xb8\xb4\xe3\x80\x82\xea\xa1\xa2\xf2\x84\xb7\x9e\xe2\xb6\x8f\xf0\x90\xb9\xa3", false); } // [B1, B5, B6, C1, V7]
10696test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xa0\xa8\xe2\x80\x8c\xe4\xb8\xb4\xe3\x80\x82\xea\xa1\xa2\xf2\x84\xb7\x9e\xe2\xb6\x8f\xf0\x90\xb9\xa3", true); } // [B2, B3, B5, B6, V7]
442310697test { try toUnicodeFail("xn--miq9646b.xn--uojv340bk71c99u9f"); } // [B2, B3, B5, B6, V7]
10698test { try toAsciiFail("xn--miq9646b.xn--uojv340bk71c99u9f", false); } // [B2, B3, B5, B6, V7]
10699test { try toAsciiFail("xn--miq9646b.xn--uojv340bk71c99u9f", true); } // [B2, B3, B5, B6, V7]
442410700test { try toUnicodeFail("xn--0uga2656aop9k.xn--uojv340bk71c99u9f"); } // [B1, B5, B6, C1, V7]
10701test { try toAsciiFail("xn--0uga2656aop9k.xn--uojv340bk71c99u9f", false); } // [B1, B5, B6, C1, V7]
10702test { try toAsciiFail("xn--0uga2656aop9k.xn--uojv340bk71c99u9f", true); } // [B1, B5, B6, C1, V7]
442510703test { try toUnicodeFail("\xf3\xa0\x91\x98\xef\xbc\x8e\xf3\xa0\x84\xae"); } // [V7]
10704test { try toAsciiFail("\xf3\xa0\x91\x98\xef\xbc\x8e\xf3\xa0\x84\xae", false); } // [V7, A4_2]
10705test { try toAsciiFail("\xf3\xa0\x91\x98\xef\xbc\x8e\xf3\xa0\x84\xae", true); } // [V7, A4_2]
442610706test { try toUnicodeFail("\xf3\xa0\x91\x98.\xf3\xa0\x84\xae"); } // [V7]
10707test { try toAsciiFail("\xf3\xa0\x91\x98.\xf3\xa0\x84\xae", false); } // [V7, A4_2]
10708test { try toAsciiFail("\xf3\xa0\x91\x98.\xf3\xa0\x84\xae", true); } // [V7, A4_2]
442710709test { try toUnicodeFail("xn--s136e."); } // [V7]
10710test { try toAsciiFail("xn--s136e.", false); } // [V7, A4_2]
10711test { try toAsciiFail("xn--s136e.", true); } // [V7, A4_2]
442810712test { try toUnicodeFail("\xf0\x90\xab\x84\xe0\xb5\x8d\xef\xbc\x8e\xea\xab\xb6"); } // [B1, V6]
10713test { try toAsciiFail("\xf0\x90\xab\x84\xe0\xb5\x8d\xef\xbc\x8e\xea\xab\xb6", false); } // [B1, V6]
10714test { try toAsciiFail("\xf0\x90\xab\x84\xe0\xb5\x8d\xef\xbc\x8e\xea\xab\xb6", true); } // [B1, V6]
442910715test { try toUnicodeFail("\xf0\x90\xab\x84\xe0\xb5\x8d.\xea\xab\xb6"); } // [B1, V6]
10716test { try toAsciiFail("\xf0\x90\xab\x84\xe0\xb5\x8d.\xea\xab\xb6", false); } // [B1, V6]
10717test { try toAsciiFail("\xf0\x90\xab\x84\xe0\xb5\x8d.\xea\xab\xb6", true); } // [B1, V6]
443010718test { try toUnicodeFail("xn--wxc7880k.xn--2v9a"); } // [B1, V6]
10719test { try toAsciiFail("xn--wxc7880k.xn--2v9a", false); } // [B1, V6]
10720test { try toAsciiFail("xn--wxc7880k.xn--2v9a", true); } // [B1, V6]
443110721test { try toUnicodeFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x82\xe2\x92\x9b\xf3\xa0\xa8\x87"); } // [V6, V7]
10722test { try toAsciiFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x82\xe2\x92\x9b\xf3\xa0\xa8\x87", false); } // [V6, V7]
10723test { try toAsciiFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x82\xe2\x92\x9b\xf3\xa0\xa8\x87", true); } // [V6, V7]
443210724test { try toUnicodeFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xb0\xe3\x80\x82\xe2\x92\x9b\xf3\xa0\xa8\x87"); } // [V6, V7]
10725test { try toAsciiFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xb0\xe3\x80\x82\xe2\x92\x9b\xf3\xa0\xa8\x87", false); } // [V6, V7]
10726test { try toAsciiFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xb0\xe3\x80\x82\xe2\x92\x9b\xf3\xa0\xa8\x87", true); } // [V6, V7]
443310727test { try toUnicodeFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x8220.\xf3\xa0\xa8\x87"); } // [V6, V7]
10728test { try toAsciiFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x8220.\xf3\xa0\xa8\x87", false); } // [V6, V7]
10729test { try toAsciiFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x8220.\xf3\xa0\xa8\x87", true); } // [V6, V7]
443410730test { try toUnicodeFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xb0\xe3\x80\x8220.\xf3\xa0\xa8\x87"); } // [V6, V7]
10731test { try toAsciiFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xb0\xe3\x80\x8220.\xf3\xa0\xa8\x87", false); } // [V6, V7]
10732test { try toAsciiFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xe1\x84\x86\xe1\x85\xa7\xe1\x86\xb0\xe3\x80\x8220.\xf3\xa0\xa8\x87", true); } // [V6, V7]
443510733test { try toUnicodeFail("xn--ym9av13acp85w.20.xn--d846e"); } // [V6, V7]
10734test { try toAsciiFail("xn--ym9av13acp85w.20.xn--d846e", false); } // [V6, V7]
10735test { try toAsciiFail("xn--ym9av13acp85w.20.xn--d846e", true); } // [V6, V7]
443610736test { try toUnicodeFail("xn--ym9av13acp85w.xn--dth22121k"); } // [V6, V7]
10737test { try toAsciiFail("xn--ym9av13acp85w.xn--dth22121k", false); } // [V6, V7]
10738test { try toAsciiFail("xn--ym9av13acp85w.xn--dth22121k", true); } // [V6, V7]
443710739test { try toUnicodeFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a"); } // [B4, B6, V7]
10740test { try toAsciiFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a", false); } // [B4, B6, V7]
10741test { try toAsciiFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a", true); } // [B4, B6, V7]
443810742test { try toUnicodeFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a"); } // [B4, B6, V7]
10743test { try toAsciiFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a", false); } // [B4, B6, V7]
10744test { try toAsciiFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a", true); } // [B4, B6, V7]
443910745test { try toUnicodeFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33."); } // [B4, B6, V7]
10746test { try toAsciiFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33.", false); } // [B4, B6, V7, A4_2]
10747test { try toAsciiFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33.", true); } // [B4, B6, V7, A4_2]
444010748test { try toUnicodeFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33."); } // [B4, B6, V7]
10749test { try toAsciiFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33.", false); } // [B4, B6, V7, A4_2]
10750test { try toAsciiFail("\xe1\x82\xa5\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33.", true); } // [B4, B6, V7, A4_2]
444110751test { try toUnicodeFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33."); } // [B4, B6, V7]
10752test { try toAsciiFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33.", false); } // [B4, B6, V7, A4_2]
10753test { try toAsciiFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33.", true); } // [B4, B6, V7, A4_2]
444210754test { try toUnicodeFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33."); } // [B4, B6, V7]
10755test { try toAsciiFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33.", false); } // [B4, B6, V7, A4_2]
10756test { try toAsciiFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb33.", true); } // [B4, B6, V7, A4_2]
444310757test { try toUnicodeFail("xn--wkj8016bne45io02g.xn--3-55c6803r."); } // [B4, B6, V7]
10758test { try toAsciiFail("xn--wkj8016bne45io02g.xn--3-55c6803r.", false); } // [B4, B6, V7, A4_2]
10759test { try toAsciiFail("xn--wkj8016bne45io02g.xn--3-55c6803r.", true); } // [B4, B6, V7, A4_2]
444410760test { try toUnicodeFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a"); } // [B4, B6, V7]
10761test { try toAsciiFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a", false); } // [B4, B6, V7]
10762test { try toAsciiFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xe1\x84\x85\xe1\x85\xb4\xe1\x86\xad\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a", true); } // [B4, B6, V7]
444510763test { try toUnicodeFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a"); } // [B4, B6, V7]
10764test { try toAsciiFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a", false); } // [B4, B6, V7]
10765test { try toAsciiFail("\xe2\xb4\x85\xf3\xb2\xac\xb9\xeb\xa6\x96\xf3\xa0\xb6\x9a.\xdd\xb7\xf0\x90\xb9\xb3\xe2\x92\x8a", true); } // [B4, B6, V7]
444610766test { try toUnicodeFail("xn--wkj8016bne45io02g.xn--7pb000mwm4n"); } // [B4, B6, V7]
10767test { try toAsciiFail("xn--wkj8016bne45io02g.xn--7pb000mwm4n", false); } // [B4, B6, V7]
10768test { try toAsciiFail("xn--wkj8016bne45io02g.xn--7pb000mwm4n", true); } // [B4, B6, V7]
444710769test { try toUnicodeFail("xn--dnd2167fnet0io02g.xn--3-55c6803r."); } // [B4, B6, V7]
10770test { try toAsciiFail("xn--dnd2167fnet0io02g.xn--3-55c6803r.", false); } // [B4, B6, V7, A4_2]
10771test { try toAsciiFail("xn--dnd2167fnet0io02g.xn--3-55c6803r.", true); } // [B4, B6, V7, A4_2]
444810772test { try toUnicodeFail("xn--dnd2167fnet0io02g.xn--7pb000mwm4n"); } // [B4, B6, V7]
10773test { try toAsciiFail("xn--dnd2167fnet0io02g.xn--7pb000mwm4n", false); } // [B4, B6, V7]
10774test { try toAsciiFail("xn--dnd2167fnet0io02g.xn--7pb000mwm4n", true); } // [B4, B6, V7]
444910775test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xef\xb8\x92"); } // [C1, V7]
10776test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xef\xb8\x92", false); } // [C1, V7]
10777test { try toAsciiFail("\xe2\x80\x8c\xef\xbd\xa1\xef\xb8\x92", true); } // [V7, A4_2]
445010778test { 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]
10780test { try toAsciiFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82", true); } // [A4_2]
445110781test { try toUnicodeFail(".."); } // [X4_2]
10782test { try toAsciiFail("..", false); } // [A4_2]
10783test { try toAsciiFail("..", true); } // [A4_2]
445210784test { try toUnicodeFail("xn--0ug.."); } // [C1, X4_2]
10785test { try toAsciiFail("xn--0ug..", false); } // [C1, A4_2]
10786test { try toAsciiFail("xn--0ug..", true); } // [C1, A4_2]
445310787test { try toUnicodeFail(".xn--y86c"); } // [V7, X4_2]
10788test { try toAsciiFail(".xn--y86c", false); } // [V7, A4_2]
10789test { try toAsciiFail(".xn--y86c", true); } // [V7, A4_2]
445410790test { try toUnicodeFail("xn--0ug.xn--y86c"); } // [C1, V7]
10791test { try toAsciiFail("xn--0ug.xn--y86c", false); } // [C1, V7]
10792test { try toAsciiFail("xn--0ug.xn--y86c", true); } // [C1, V7]
445510793test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad\xef\xbc\x8e\xe2\x82\x84"); } // [B1]
10794test { try toAsciiFail("\xe2\x89\xaf\xdd\xad\xef\xbc\x8e\xe2\x82\x84", false); } // [B1]
10795test { try toAsciiFail("\xe2\x89\xaf\xdd\xad\xef\xbc\x8e\xe2\x82\x84", true); } // [B1]
445610796test { try toUnicodeFail(">\xcc\xb8\xdd\xad\xef\xbc\x8e\xe2\x82\x84"); } // [B1]
10797test { try toAsciiFail(">\xcc\xb8\xdd\xad\xef\xbc\x8e\xe2\x82\x84", false); } // [B1]
10798test { try toAsciiFail(">\xcc\xb8\xdd\xad\xef\xbc\x8e\xe2\x82\x84", true); } // [B1]
445710799test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad.e"); } // [B1]
10800test { try toAsciiFail("\xe2\x89\xaf\xdd\xad.e", false); } // [B1]
10801test { try toAsciiFail("\xe2\x89\xaf\xdd\xad.e", true); } // [B1]
445810802test { try toUnicodeFail(">\xcc\xb8\xdd\xad.e"); } // [B1]
10803test { try toAsciiFail(">\xcc\xb8\xdd\xad.e", false); } // [B1]
10804test { try toAsciiFail(">\xcc\xb8\xdd\xad.e", true); } // [B1]
445910805test { try toUnicodeFail(">\xcc\xb8\xdd\xad.E"); } // [B1]
10806test { try toAsciiFail(">\xcc\xb8\xdd\xad.E", false); } // [B1]
10807test { try toAsciiFail(">\xcc\xb8\xdd\xad.E", true); } // [B1]
446010808test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad.E"); } // [B1]
10809test { try toAsciiFail("\xe2\x89\xaf\xdd\xad.E", false); } // [B1]
10810test { try toAsciiFail("\xe2\x89\xaf\xdd\xad.E", true); } // [B1]
446110811test { try toUnicodeFail("xn--xpb149k.e"); } // [B1]
10812test { try toAsciiFail("xn--xpb149k.e", false); } // [B1]
10813test { try toAsciiFail("xn--xpb149k.e", true); } // [B1]
446210814test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.\xc3\x9f-\xe2\x80\x8c-"); } // [C1, V3]
10815test { try toAsciiFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.\xc3\x9f-\xe2\x80\x8c-", false); } // [C1, V3]
10816test { try toAsciiFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.\xc3\x9f-\xe2\x80\x8c-", true); } // [V2, V3]
446310817test { try toUnicodeFail("\xe1\xa1\xb2-3.\xc3\x9f-\xe2\x80\x8c-"); } // [C1, V3]
10818test { try toAsciiFail("\xe1\xa1\xb2-3.\xc3\x9f-\xe2\x80\x8c-", false); } // [C1, V3]
10819test { try toAsciiFail("\xe1\xa1\xb2-3.\xc3\x9f-\xe2\x80\x8c-", true); } // [V2, V3]
446410820test { try toUnicodeFail("\xe1\xa1\xb2-3.SS-\xe2\x80\x8c-"); } // [C1, V3]
10821test { try toAsciiFail("\xe1\xa1\xb2-3.SS-\xe2\x80\x8c-", false); } // [C1, V3]
10822test { try toAsciiFail("\xe1\xa1\xb2-3.SS-\xe2\x80\x8c-", true); } // [V2, V3]
446510823test { try toUnicodeFail("\xe1\xa1\xb2-3.ss-\xe2\x80\x8c-"); } // [C1, V3]
10824test { try toAsciiFail("\xe1\xa1\xb2-3.ss-\xe2\x80\x8c-", false); } // [C1, V3]
10825test { try toAsciiFail("\xe1\xa1\xb2-3.ss-\xe2\x80\x8c-", true); } // [V2, V3]
446610826test { try toUnicodeFail("\xe1\xa1\xb2-3.Ss-\xe2\x80\x8c-"); } // [C1, V3]
10827test { try toAsciiFail("\xe1\xa1\xb2-3.Ss-\xe2\x80\x8c-", false); } // [C1, V3]
10828test { try toAsciiFail("\xe1\xa1\xb2-3.Ss-\xe2\x80\x8c-", true); } // [V2, V3]
446710829test { try toUnicodeFail("xn---3-p9o.ss--"); } // [V2, V3]
10830test { try toAsciiFail("xn---3-p9o.ss--", false); } // [V2, V3]
10831test { try toAsciiFail("xn---3-p9o.ss--", true); } // [V2, V3]
446810832test { try toUnicodeFail("xn---3-p9o.xn--ss---276a"); } // [C1, V3]
10833test { try toAsciiFail("xn---3-p9o.xn--ss---276a", false); } // [C1, V3]
10834test { try toAsciiFail("xn---3-p9o.xn--ss---276a", true); } // [C1, V3]
446910835test { try toUnicodeFail("xn---3-p9o.xn-----fia9303a"); } // [C1, V3]
10836test { try toAsciiFail("xn---3-p9o.xn-----fia9303a", false); } // [C1, V3]
10837test { try toAsciiFail("xn---3-p9o.xn-----fia9303a", true); } // [C1, V3]
447010838test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.SS-\xe2\x80\x8c-"); } // [C1, V3]
10839test { try toAsciiFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.SS-\xe2\x80\x8c-", false); } // [C1, V3]
10840test { try toAsciiFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.SS-\xe2\x80\x8c-", true); } // [V2, V3]
447110841test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.ss-\xe2\x80\x8c-"); } // [C1, V3]
10842test { try toAsciiFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.ss-\xe2\x80\x8c-", false); } // [C1, V3]
10843test { try toAsciiFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.ss-\xe2\x80\x8c-", true); } // [V2, V3]
447210844test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.Ss-\xe2\x80\x8c-"); } // [C1, V3]
10845test { try toAsciiFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.Ss-\xe2\x80\x8c-", false); } // [C1, V3]
10846test { try toAsciiFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.Ss-\xe2\x80\x8c-", true); } // [V2, V3]
447310847test { try toUnicodeFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x80"); } // [B2, B3, V7]
10848test { try toAsciiFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x80", false); } // [B2, B3, V7]
10849test { try toAsciiFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x80", true); } // [B2, B3, V7]
447410850test { try toUnicodeFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x80"); } // [B2, B3, V7]
10851test { try toAsciiFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x80", false); } // [B2, B3, V7]
10852test { try toAsciiFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x80", true); } // [B2, B3, V7]
447510853test { try toUnicodeFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x8f"); } // [B2, B3, V7]
10854test { try toAsciiFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x8f", false); } // [B2, B3, V7]
10855test { try toAsciiFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x8f", true); } // [B2, B3, V7]
447610856test { try toUnicodeFail("xn--4-tnc6ck183523b.xn--s5a"); } // [B2, B3, V7]
10857test { try toAsciiFail("xn--4-tnc6ck183523b.xn--s5a", false); } // [B2, B3, V7]
10858test { try toAsciiFail("xn--4-tnc6ck183523b.xn--s5a", true); } // [B2, B3, V7]
447710859test { try toUnicodeFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x8f"); } // [B2, B3, V7]
10860test { try toAsciiFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x8f", false); } // [B2, B3, V7]
10861test { try toAsciiFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x8f", true); } // [B2, B3, V7]
447810862test { try toUnicodeFail("xn--4-tnc6ck183523b.xn--d5a"); } // [B2, B3, V7]
10863test { try toAsciiFail("xn--4-tnc6ck183523b.xn--d5a", false); } // [B2, B3, V7]
10864test { try toAsciiFail("xn--4-tnc6ck183523b.xn--d5a", true); } // [B2, B3, V7]
447910865test { try toUnicodeFail("-.\xd8\x82\xd8\xa2\xf0\x91\x86\xbe\xf0\x9f\x90\xb9"); } // [B1, V3, V7]
10866test { try toAsciiFail("-.\xd8\x82\xd8\xa2\xf0\x91\x86\xbe\xf0\x9f\x90\xb9", false); } // [B1, V3, V7]
10867test { try toAsciiFail("-.\xd8\x82\xd8\xa2\xf0\x91\x86\xbe\xf0\x9f\x90\xb9", true); } // [B1, V3, V7]
448010868test { try toUnicodeFail("-.\xd8\x82\xd8\xa7\xd9\x93\xf0\x91\x86\xbe\xf0\x9f\x90\xb9"); } // [B1, V3, V7]
10869test { try toAsciiFail("-.\xd8\x82\xd8\xa7\xd9\x93\xf0\x91\x86\xbe\xf0\x9f\x90\xb9", false); } // [B1, V3, V7]
10870test { try toAsciiFail("-.\xd8\x82\xd8\xa7\xd9\x93\xf0\x91\x86\xbe\xf0\x9f\x90\xb9", true); } // [B1, V3, V7]
448110871test { try toUnicodeFail("-.xn--kfb8dy983hgl7g"); } // [B1, V3, V7]
10872test { try toAsciiFail("-.xn--kfb8dy983hgl7g", false); } // [B1, V3, V7]
10873test { try toAsciiFail("-.xn--kfb8dy983hgl7g", true); } // [B1, V3, V7]
448210874test { try toUnicodeFail("\xf3\x99\xb6\x9c\xe1\xa2\x98\xe3\x80\x82\xe1\xa9\xbf\xe2\xba\xa2"); } // [V6, V7]
10875test { try toAsciiFail("\xf3\x99\xb6\x9c\xe1\xa2\x98\xe3\x80\x82\xe1\xa9\xbf\xe2\xba\xa2", false); } // [V6, V7]
10876test { try toAsciiFail("\xf3\x99\xb6\x9c\xe1\xa2\x98\xe3\x80\x82\xe1\xa9\xbf\xe2\xba\xa2", true); } // [V6, V7]
448310877test { try toUnicodeFail("xn--ibf35138o.xn--fpfz94g"); } // [V6, V7]
10878test { try toAsciiFail("xn--ibf35138o.xn--fpfz94g", false); } // [V6, V7]
10879test { try toAsciiFail("xn--ibf35138o.xn--fpfz94g", true); } // [V6, V7]
448410880test { try toUnicodeFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10881test { try toAsciiFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10882test { try toAsciiFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
448510883test { try toUnicodeFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10884test { try toAsciiFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10885test { try toAsciiFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
448610886test { try toUnicodeFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10887test { try toAsciiFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10888test { try toAsciiFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
448710889test { try toUnicodeFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10890test { try toAsciiFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10891test { try toAsciiFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe1\x82\xab\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
448810892test { try toUnicodeFail("=\xcc\xb8\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10893test { try toAsciiFail("=\xcc\xb8\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10894test { try toAsciiFail("=\xcc\xb8\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
448910895test { try toUnicodeFail("\xe2\x89\xa0\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10896test { try toAsciiFail("\xe2\x89\xa0\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10897test { try toAsciiFail("\xe2\x89\xa0\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
449010898test { try toUnicodeFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10899test { try toAsciiFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10900test { try toAsciiFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
449110901test { try toUnicodeFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10902test { try toAsciiFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10903test { try toAsciiFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xe3\x80\x82?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
449210904test { try toUnicodeFail("xn--66e353ce0ilb.xn--?-7fb34t0u7s"); } // [B1, U1]
10905test { try toAsciiFail("xn--66e353ce0ilb.xn--?-7fb34t0u7s", false); } // [B1, U1]
10906test { try toAsciiFail("xn--66e353ce0ilb.xn--?-7fb34t0u7s", true); } // [B1, U1]
449310907test { try toUnicodeFail("=\xcc\xb8\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10908test { try toAsciiFail("=\xcc\xb8\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10909test { try toAsciiFail("=\xcc\xb8\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
449410910test { try toUnicodeFail("\xe2\x89\xa0\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10911test { try toAsciiFail("\xe2\x89\xa0\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10912test { try toAsciiFail("\xe2\x89\xa0\xe2\xb4\x97\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
449510913test { try toUnicodeFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10914test { try toAsciiFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10915test { try toAsciiFail("\xe2\x89\xa0\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
449610916test { try toUnicodeFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10917test { try toAsciiFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10918test { try toAsciiFail("=\xcc\xb8\xe1\x82\xb7\xe1\xa0\xa4\xe2\xb4\x8b\xef\xbd\xa1?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
449710919test { try toUnicodeFail("xn--vnd619as6ig6k.xn--?-7fb34t0u7s"); } // [B1, V7, U1]
10920test { try toAsciiFail("xn--vnd619as6ig6k.xn--?-7fb34t0u7s", false); } // [B1, V7, U1]
10921test { try toAsciiFail("xn--vnd619as6ig6k.xn--?-7fb34t0u7s", true); } // [B1, V7, U1]
449810922test { try toUnicodeFail("xn--jndx718cnnl.xn--?-7fb34t0u7s"); } // [B1, V7, U1]
10923test { try toAsciiFail("xn--jndx718cnnl.xn--?-7fb34t0u7s", false); } // [B1, V7, U1]
10924test { try toAsciiFail("xn--jndx718cnnl.xn--?-7fb34t0u7s", true); } // [B1, V7, U1]
449910925test { try toUnicodeFail("xn--vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
10926test { try toAsciiFail("xn--vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, V7, U1]
10927test { try toAsciiFail("xn--vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, V7, U1]
450010928test { try toUnicodeFail("XN--VND619AS6IG6K.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
10929test { try toAsciiFail("XN--VND619AS6IG6K.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, V7, U1]
10930test { try toAsciiFail("XN--VND619AS6IG6K.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, V7, U1]
450110931test { try toUnicodeFail("Xn--Vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
10932test { try toAsciiFail("Xn--Vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, V7, U1]
10933test { try toAsciiFail("Xn--Vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, V7, U1]
450210934test { try toUnicodeFail("xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10935test { try toAsciiFail("xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10936test { try toAsciiFail("xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
450310937test { try toUnicodeFail("XN--66E353CE0ILB.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10938test { try toAsciiFail("XN--66E353CE0ILB.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10939test { try toAsciiFail("XN--66E353CE0ILB.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
450410940test { try toUnicodeFail("Xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
10941test { try toAsciiFail("Xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, U1]
10942test { try toAsciiFail("Xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, U1]
450510943test { try toUnicodeFail("xn--jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
10944test { try toAsciiFail("xn--jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, V7, U1]
10945test { try toAsciiFail("xn--jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, V7, U1]
450610946test { try toUnicodeFail("XN--JNDX718CNNL.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
10947test { try toAsciiFail("XN--JNDX718CNNL.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, V7, U1]
10948test { try toAsciiFail("XN--JNDX718CNNL.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, V7, U1]
450710949test { try toUnicodeFail("Xn--Jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
10950test { try toAsciiFail("Xn--Jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", false); } // [B1, V7, U1]
10951test { try toAsciiFail("Xn--Jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4", true); } // [B1, V7, U1]
450810952test { try toUnicodeFail("\xd9\xa7.\xf0\x90\xa5\xa8"); } // [B1, V7]
10953test { try toAsciiFail("\xd9\xa7.\xf0\x90\xa5\xa8", false); } // [B1, V7]
10954test { try toAsciiFail("\xd9\xa7.\xf0\x90\xa5\xa8", true); } // [B1, V7]
450910955test { try toUnicodeFail("xn--gib.xn--vm9c"); } // [B1, V7]
10956test { try toAsciiFail("xn--gib.xn--vm9c", false); } // [B1, V7]
10957test { try toAsciiFail("xn--gib.xn--vm9c", true); } // [B1, V7]
451010958test { try toUnicodeFail("\xea\xa7\x80\xf0\x9d\x9f\xaf\xef\xbd\xa1\xe2\x80\x8d\xf1\xbc\x91\xa5\xf0\x90\xb9\xaa\xe1\xaf\xb3"); } // [B1, C2, V6, V7]
10959test { try toAsciiFail("\xea\xa7\x80\xf0\x9d\x9f\xaf\xef\xbd\xa1\xe2\x80\x8d\xf1\xbc\x91\xa5\xf0\x90\xb9\xaa\xe1\xaf\xb3", false); } // [B1, C2, V6, V7]
10960test { try toAsciiFail("\xea\xa7\x80\xf0\x9d\x9f\xaf\xef\xbd\xa1\xe2\x80\x8d\xf1\xbc\x91\xa5\xf0\x90\xb9\xaa\xe1\xaf\xb3", true); } // [B5, V6, V7]
451110961test { try toUnicodeFail("\xea\xa7\x803\xe3\x80\x82\xe2\x80\x8d\xf1\xbc\x91\xa5\xf0\x90\xb9\xaa\xe1\xaf\xb3"); } // [B1, C2, V6, V7]
10962test { try toAsciiFail("\xea\xa7\x803\xe3\x80\x82\xe2\x80\x8d\xf1\xbc\x91\xa5\xf0\x90\xb9\xaa\xe1\xaf\xb3", false); } // [B1, C2, V6, V7]
10963test { try toAsciiFail("\xea\xa7\x803\xe3\x80\x82\xe2\x80\x8d\xf1\xbc\x91\xa5\xf0\x90\xb9\xaa\xe1\xaf\xb3", true); } // [B5, V6, V7]
451210964test { try toUnicodeFail("xn--3-5z4e.xn--1zfz754hncv8b"); } // [B5, V6, V7]
10965test { try toAsciiFail("xn--3-5z4e.xn--1zfz754hncv8b", false); } // [B5, V6, V7]
10966test { try toAsciiFail("xn--3-5z4e.xn--1zfz754hncv8b", true); } // [B5, V6, V7]
451310967test { try toUnicodeFail("xn--3-5z4e.xn--1zf96ony8ygd68c"); } // [B1, C2, V6, V7]
10968test { try toAsciiFail("xn--3-5z4e.xn--1zf96ony8ygd68c", false); } // [B1, C2, V6, V7]
10969test { try toAsciiFail("xn--3-5z4e.xn--1zf96ony8ygd68c", true); } // [B1, C2, V6, V7]
451410970test { try toUnicodeFail("\xf2\xa3\x95\x844\xf1\xa0\x96\xbd.\xe2\x89\xaf\xd9\xa4\xf0\x91\x80\xbe\xf3\xa0\xb8\x8c"); } // [B1, V7]
10971test { try toAsciiFail("\xf2\xa3\x95\x844\xf1\xa0\x96\xbd.\xe2\x89\xaf\xd9\xa4\xf0\x91\x80\xbe\xf3\xa0\xb8\x8c", false); } // [B1, V7]
10972test { try toAsciiFail("\xf2\xa3\x95\x844\xf1\xa0\x96\xbd.\xe2\x89\xaf\xd9\xa4\xf0\x91\x80\xbe\xf3\xa0\xb8\x8c", true); } // [B1, V7]
451510973test { try toUnicodeFail("\xf2\xa3\x95\x844\xf1\xa0\x96\xbd.>\xcc\xb8\xd9\xa4\xf0\x91\x80\xbe\xf3\xa0\xb8\x8c"); } // [B1, V7]
10974test { try toAsciiFail("\xf2\xa3\x95\x844\xf1\xa0\x96\xbd.>\xcc\xb8\xd9\xa4\xf0\x91\x80\xbe\xf3\xa0\xb8\x8c", false); } // [B1, V7]
10975test { try toAsciiFail("\xf2\xa3\x95\x844\xf1\xa0\x96\xbd.>\xcc\xb8\xd9\xa4\xf0\x91\x80\xbe\xf3\xa0\xb8\x8c", true); } // [B1, V7]
451610976test { try toUnicodeFail("xn--4-fg85dl688i.xn--dib174li86ntdy0i"); } // [B1, V7]
10977test { try toAsciiFail("xn--4-fg85dl688i.xn--dib174li86ntdy0i", false); } // [B1, V7]
10978test { try toAsciiFail("xn--4-fg85dl688i.xn--dib174li86ntdy0i", true); } // [B1, V7]
451710979test { try toUnicodeFail("\xf2\x97\x86\xa7\xf0\x9d\x9f\xaf\xe3\x80\x82\xe2\x92\x88\xe1\xa9\xb6\xf0\x9d\x9f\x9a\xf2\xa0\x98\x8c"); } // [V7]
10980test { try toAsciiFail("\xf2\x97\x86\xa7\xf0\x9d\x9f\xaf\xe3\x80\x82\xe2\x92\x88\xe1\xa9\xb6\xf0\x9d\x9f\x9a\xf2\xa0\x98\x8c", false); } // [V7]
10981test { try toAsciiFail("\xf2\x97\x86\xa7\xf0\x9d\x9f\xaf\xe3\x80\x82\xe2\x92\x88\xe1\xa9\xb6\xf0\x9d\x9f\x9a\xf2\xa0\x98\x8c", true); } // [V7]
451810982test { try toUnicodeFail("\xf2\x97\x86\xa73\xe3\x80\x821.\xe1\xa9\xb62\xf2\xa0\x98\x8c"); } // [V6, V7]
10983test { try toAsciiFail("\xf2\x97\x86\xa73\xe3\x80\x821.\xe1\xa9\xb62\xf2\xa0\x98\x8c", false); } // [V6, V7]
10984test { try toAsciiFail("\xf2\x97\x86\xa73\xe3\x80\x821.\xe1\xa9\xb62\xf2\xa0\x98\x8c", true); } // [V6, V7]
451910985test { try toUnicodeFail("xn--3-rj42h.1.xn--2-13k96240l"); } // [V6, V7]
10986test { try toAsciiFail("xn--3-rj42h.1.xn--2-13k96240l", false); } // [V6, V7]
10987test { try toAsciiFail("xn--3-rj42h.1.xn--2-13k96240l", true); } // [V6, V7]
452010988test { try toUnicodeFail("xn--3-rj42h.xn--2-13k746cq465x"); } // [V7]
10989test { try toAsciiFail("xn--3-rj42h.xn--2-13k746cq465x", false); } // [V7]
10990test { try toAsciiFail("xn--3-rj42h.xn--2-13k746cq465x", true); } // [V7]
452110991test { try toUnicodeFail("\xe2\x80\x8d\xe2\x82\x85\xe2\x92\x88\xe3\x80\x82\xe2\x89\xaf\xf0\x9d\x9f\xb4\xe2\x80\x8d"); } // [C2, V7]
10992test { try toAsciiFail("\xe2\x80\x8d\xe2\x82\x85\xe2\x92\x88\xe3\x80\x82\xe2\x89\xaf\xf0\x9d\x9f\xb4\xe2\x80\x8d", false); } // [C2, V7]
10993test { try toAsciiFail("\xe2\x80\x8d\xe2\x82\x85\xe2\x92\x88\xe3\x80\x82\xe2\x89\xaf\xf0\x9d\x9f\xb4\xe2\x80\x8d", true); } // [V7]
452210994test { try toUnicodeFail("\xe2\x80\x8d\xe2\x82\x85\xe2\x92\x88\xe3\x80\x82>\xcc\xb8\xf0\x9d\x9f\xb4\xe2\x80\x8d"); } // [C2, V7]
10995test { try toAsciiFail("\xe2\x80\x8d\xe2\x82\x85\xe2\x92\x88\xe3\x80\x82>\xcc\xb8\xf0\x9d\x9f\xb4\xe2\x80\x8d", false); } // [C2, V7]
10996test { try toAsciiFail("\xe2\x80\x8d\xe2\x82\x85\xe2\x92\x88\xe3\x80\x82>\xcc\xb8\xf0\x9d\x9f\xb4\xe2\x80\x8d", true); } // [V7]
452310997test { try toUnicodeFail("\xe2\x80\x8d51.\xe3\x80\x82\xe2\x89\xaf8\xe2\x80\x8d"); } // [C2, X4_2]
10998test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82\xe2\x89\xaf8\xe2\x80\x8d", false); } // [C2, A4_2]
10999test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82\xe2\x89\xaf8\xe2\x80\x8d", true); } // [A4_2]
452411000test { 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]
11002test { try toAsciiFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d", true); } // [A4_2]
452511003test { try toUnicodeFail("51..xn--8-ogo"); } // [X4_2]
11004test { try toAsciiFail("51..xn--8-ogo", false); } // [A4_2]
11005test { try toAsciiFail("51..xn--8-ogo", true); } // [A4_2]
452611006test { try toUnicodeFail("xn--51-l1t..xn--8-ugn00i"); } // [C2, X4_2]
11007test { try toAsciiFail("xn--51-l1t..xn--8-ugn00i", false); } // [C2, A4_2]
11008test { try toAsciiFail("xn--51-l1t..xn--8-ugn00i", true); } // [C2, A4_2]
452711009test { try toUnicodeFail("xn--5-ecp.xn--8-ogo"); } // [V7]
11010test { try toAsciiFail("xn--5-ecp.xn--8-ogo", false); } // [V7]
11011test { try toAsciiFail("xn--5-ecp.xn--8-ogo", true); } // [V7]
452811012test { try toUnicodeFail("xn--5-tgnz5r.xn--8-ugn00i"); } // [C2, V7]
11013test { try toAsciiFail("xn--5-tgnz5r.xn--8-ugn00i", false); } // [C2, V7]
11014test { try toAsciiFail("xn--5-tgnz5r.xn--8-ugn00i", true); } // [C2, V7]
452911015test { try toUnicodeFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86\xef\xbc\x8e\xf2\xaa\x98\x99\xdc\xaf\xe2\x89\xa0\xe2\x80\x8c"); } // [B5, B6, C1, V7]
11016test { try toAsciiFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86\xef\xbc\x8e\xf2\xaa\x98\x99\xdc\xaf\xe2\x89\xa0\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
11017test { try toAsciiFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86\xef\xbc\x8e\xf2\xaa\x98\x99\xdc\xaf\xe2\x89\xa0\xe2\x80\x8c", true); } // [B5, B6, V7]
453011018test { try toUnicodeFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86\xef\xbc\x8e\xf2\xaa\x98\x99\xdc\xaf=\xcc\xb8\xe2\x80\x8c"); } // [B5, B6, C1, V7]
11019test { try toAsciiFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86\xef\xbc\x8e\xf2\xaa\x98\x99\xdc\xaf=\xcc\xb8\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
11020test { try toAsciiFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86\xef\xbc\x8e\xf2\xaa\x98\x99\xdc\xaf=\xcc\xb8\xe2\x80\x8c", true); } // [B5, B6, V7]
453111021test { try toUnicodeFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86.\xf2\xaa\x98\x99\xdc\xaf\xe2\x89\xa0\xe2\x80\x8c"); } // [B5, B6, C1, V7]
11022test { try toAsciiFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86.\xf2\xaa\x98\x99\xdc\xaf\xe2\x89\xa0\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
11023test { try toAsciiFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86.\xf2\xaa\x98\x99\xdc\xaf\xe2\x89\xa0\xe2\x80\x8c", true); } // [B5, B6, V7]
453211024test { try toUnicodeFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86.\xf2\xaa\x98\x99\xdc\xaf=\xcc\xb8\xe2\x80\x8c"); } // [B5, B6, C1, V7]
11025test { try toAsciiFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86.\xf2\xaa\x98\x99\xdc\xaf=\xcc\xb8\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
11026test { try toAsciiFail("\xea\xa1\xb0\xda\x97\xe1\x82\x86.\xf2\xaa\x98\x99\xdc\xaf=\xcc\xb8\xe2\x80\x8c", true); } // [B5, B6, V7]
453311027test { try toUnicodeFail("xn--tjb002cn51k.xn--5nb630lbj91q"); } // [B5, B6, V7]
11028test { try toAsciiFail("xn--tjb002cn51k.xn--5nb630lbj91q", false); } // [B5, B6, V7]
11029test { try toAsciiFail("xn--tjb002cn51k.xn--5nb630lbj91q", true); } // [B5, B6, V7]
453411030test { try toUnicodeFail("xn--tjb002cn51k.xn--5nb448jcubcz547b"); } // [B5, B6, C1, V7]
11031test { try toAsciiFail("xn--tjb002cn51k.xn--5nb448jcubcz547b", false); } // [B5, B6, C1, V7]
11032test { try toAsciiFail("xn--tjb002cn51k.xn--5nb448jcubcz547b", true); } // [B5, B6, C1, V7]
453511033test { try toUnicodeFail("\xf0\x91\x84\xb1\xef\xbd\xa1\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5"); } // [B1, B5, B6, V6, V7]
11034test { try toAsciiFail("\xf0\x91\x84\xb1\xef\xbd\xa1\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5", false); } // [B1, B5, B6, V6, V7]
11035test { try toAsciiFail("\xf0\x91\x84\xb1\xef\xbd\xa1\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5", true); } // [B1, B5, B6, V6, V7]
453611036test { try toUnicodeFail("\xf0\x91\x84\xb1\xe3\x80\x82\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5"); } // [B1, B5, B6, V6, V7]
11037test { try toAsciiFail("\xf0\x91\x84\xb1\xe3\x80\x82\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5", false); } // [B1, B5, B6, V6, V7]
11038test { try toAsciiFail("\xf0\x91\x84\xb1\xe3\x80\x82\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5", true); } // [B1, B5, B6, V6, V7]
453711039test { try toUnicodeFail("xn--t80d.xn--to0d14792b"); } // [B1, B5, B6, V6, V7]
11040test { try toAsciiFail("xn--t80d.xn--to0d14792b", false); } // [B1, B5, B6, V6, V7]
11041test { try toAsciiFail("xn--t80d.xn--to0d14792b", true); } // [B1, B5, B6, V6, V7]
453811042test { try toUnicodeFail("\xf0\x9d\x9f\xa5\xd8\x80\xe3\x80\x82\xdc\xbd"); } // [B1, V6, V7]
11043test { try toAsciiFail("\xf0\x9d\x9f\xa5\xd8\x80\xe3\x80\x82\xdc\xbd", false); } // [B1, V6, V7]
11044test { try toAsciiFail("\xf0\x9d\x9f\xa5\xd8\x80\xe3\x80\x82\xdc\xbd", true); } // [B1, V6, V7]
453911045test { try toUnicodeFail("3\xd8\x80\xe3\x80\x82\xdc\xbd"); } // [B1, V6, V7]
11046test { try toAsciiFail("3\xd8\x80\xe3\x80\x82\xdc\xbd", false); } // [B1, V6, V7]
11047test { try toAsciiFail("3\xd8\x80\xe3\x80\x82\xdc\xbd", true); } // [B1, V6, V7]
454011048test { try toUnicodeFail("xn--3-rkc.xn--kob"); } // [B1, V6, V7]
11049test { try toAsciiFail("xn--3-rkc.xn--kob", false); } // [B1, V6, V7]
11050test { try toAsciiFail("xn--3-rkc.xn--kob", true); } // [B1, V6, V7]
454111051test { try toUnicodeFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xea\xb8\xb7"); } // [B2, B3]
11052test { try toAsciiFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xea\xb8\xb7", false); } // [B2, B3]
11053test { try toAsciiFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xea\xb8\xb7", true); } // [B2, B3]
454211054test { try toUnicodeFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xe1\x84\x80\xe1\x85\xb5\xe1\x86\xae"); } // [B2, B3]
11055test { try toAsciiFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xe1\x84\x80\xe1\x85\xb5\xe1\x86\xae", false); } // [B2, B3]
11056test { try toAsciiFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xe1\x84\x80\xe1\x85\xb5\xe1\x86\xae", true); } // [B2, B3]
454311057test { try toUnicodeFail("xn--2gb8gu829f.xn--xpb0156f"); } // [B2, B3]
11058test { try toAsciiFail("xn--2gb8gu829f.xn--xpb0156f", false); } // [B2, B3]
11059test { try toAsciiFail("xn--2gb8gu829f.xn--xpb0156f", true); } // [B2, B3]
454411060test { try toUnicodeFail("\xef\xb8\x92\xe2\x86\x83\xe2\xb7\xa7\xf2\xbe\x80\x83\xef\xbc\x8e\xe1\x82\xb7\xf0\x90\xa3\x9e"); } // [B1, B5, B6, V7]
11061test { try toAsciiFail("\xef\xb8\x92\xe2\x86\x83\xe2\xb7\xa7\xf2\xbe\x80\x83\xef\xbc\x8e\xe1\x82\xb7\xf0\x90\xa3\x9e", false); } // [B1, B5, B6, V7]
11062test { try toAsciiFail("\xef\xb8\x92\xe2\x86\x83\xe2\xb7\xa7\xf2\xbe\x80\x83\xef\xbc\x8e\xe1\x82\xb7\xf0\x90\xa3\x9e", true); } // [B1, B5, B6, V7]
454511063test { try toUnicodeFail("\xe3\x80\x82\xe2\x86\x83\xe2\xb7\xa7\xf2\xbe\x80\x83.\xe1\x82\xb7\xf0\x90\xa3\x9e"); } // [B5, B6, V7, X4_2]
11064test { try toAsciiFail("\xe3\x80\x82\xe2\x86\x83\xe2\xb7\xa7\xf2\xbe\x80\x83.\xe1\x82\xb7\xf0\x90\xa3\x9e", false); } // [B5, B6, V7, A4_2]
11065test { try toAsciiFail("\xe3\x80\x82\xe2\x86\x83\xe2\xb7\xa7\xf2\xbe\x80\x83.\xe1\x82\xb7\xf0\x90\xa3\x9e", true); } // [B5, B6, V7, A4_2]
454611066test { try toUnicodeFail("\xe3\x80\x82\xe2\x86\x84\xe2\xb7\xa7\xf2\xbe\x80\x83.\xe2\xb4\x97\xf0\x90\xa3\x9e"); } // [B5, B6, V7, X4_2]
11067test { try toAsciiFail("\xe3\x80\x82\xe2\x86\x84\xe2\xb7\xa7\xf2\xbe\x80\x83.\xe2\xb4\x97\xf0\x90\xa3\x9e", false); } // [B5, B6, V7, A4_2]
11068test { try toAsciiFail("\xe3\x80\x82\xe2\x86\x84\xe2\xb7\xa7\xf2\xbe\x80\x83.\xe2\xb4\x97\xf0\x90\xa3\x9e", true); } // [B5, B6, V7, A4_2]
454711069test { try toUnicodeFail(".xn--r5gy00cll06u.xn--flj4541e"); } // [B5, B6, V7, X4_2]
11070test { try toAsciiFail(".xn--r5gy00cll06u.xn--flj4541e", false); } // [B5, B6, V7, A4_2]
11071test { try toAsciiFail(".xn--r5gy00cll06u.xn--flj4541e", true); } // [B5, B6, V7, A4_2]
454811072test { try toUnicodeFail("\xef\xb8\x92\xe2\x86\x84\xe2\xb7\xa7\xf2\xbe\x80\x83\xef\xbc\x8e\xe2\xb4\x97\xf0\x90\xa3\x9e"); } // [B1, B5, B6, V7]
11073test { try toAsciiFail("\xef\xb8\x92\xe2\x86\x84\xe2\xb7\xa7\xf2\xbe\x80\x83\xef\xbc\x8e\xe2\xb4\x97\xf0\x90\xa3\x9e", false); } // [B1, B5, B6, V7]
11074test { try toAsciiFail("\xef\xb8\x92\xe2\x86\x84\xe2\xb7\xa7\xf2\xbe\x80\x83\xef\xbc\x8e\xe2\xb4\x97\xf0\x90\xa3\x9e", true); } // [B1, B5, B6, V7]
454911075test { try toUnicodeFail("xn--r5gy00c056n0226g.xn--flj4541e"); } // [B1, B5, B6, V7]
11076test { try toAsciiFail("xn--r5gy00c056n0226g.xn--flj4541e", false); } // [B1, B5, B6, V7]
11077test { try toAsciiFail("xn--r5gy00c056n0226g.xn--flj4541e", true); } // [B1, B5, B6, V7]
455011078test { try toUnicodeFail(".xn--q5g000cll06u.xn--vnd8618j"); } // [B5, B6, V7, X4_2]
11079test { try toAsciiFail(".xn--q5g000cll06u.xn--vnd8618j", false); } // [B5, B6, V7, A4_2]
11080test { try toAsciiFail(".xn--q5g000cll06u.xn--vnd8618j", true); } // [B5, B6, V7, A4_2]
455111081test { try toUnicodeFail("xn--q5g000c056n0226g.xn--vnd8618j"); } // [B1, B5, B6, V7]
11082test { try toAsciiFail("xn--q5g000c056n0226g.xn--vnd8618j", false); } // [B1, B5, B6, V7]
11083test { try toAsciiFail("xn--q5g000c056n0226g.xn--vnd8618j", true); } // [B1, B5, B6, V7]
455211084test { try toUnicodeFail("\xd8\x80.\xd6\xb1"); } // [B1, V6, V7]
11085test { try toAsciiFail("\xd8\x80.\xd6\xb1", false); } // [B1, V6, V7]
11086test { try toAsciiFail("\xd8\x80.\xd6\xb1", true); } // [B1, V6, V7]
455311087test { try toUnicodeFail("xn--ifb.xn--8cb"); } // [B1, V6, V7]
11088test { try toAsciiFail("xn--ifb.xn--8cb", false); } // [B1, V6, V7]
11089test { try toAsciiFail("xn--ifb.xn--8cb", true); } // [B1, V6, V7]
455411090test { try toUnicodeFail("\xcf\x82\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
11091test { try toAsciiFail("\xcf\x82\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd", false); } // [B1, B6]
11092test { try toAsciiFail("\xcf\x82\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd", true); } // [B1, B6]
455511093test { try toUnicodeFail("\xcf\x82>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
11094test { try toAsciiFail("\xcf\x82>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd", false); } // [B1, B6]
11095test { try toAsciiFail("\xcf\x82>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd", true); } // [B1, B6]
455611096test { try toUnicodeFail("\xcf\x82\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
11097test { try toAsciiFail("\xcf\x82\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd", false); } // [B1, B6]
11098test { try toAsciiFail("\xcf\x82\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd", true); } // [B1, B6]
455711099test { try toUnicodeFail("\xcf\x82>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
11100test { try toAsciiFail("\xcf\x82>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd", false); } // [B1, B6]
11101test { try toAsciiFail("\xcf\x82>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd", true); } // [B1, B6]
455811102test { try toUnicodeFail("\xce\xa3>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
11103test { try toAsciiFail("\xce\xa3>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd", false); } // [B1, B6]
11104test { try toAsciiFail("\xce\xa3>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd", true); } // [B1, B6]
455911105test { try toUnicodeFail("\xce\xa3\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
11106test { try toAsciiFail("\xce\xa3\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd", false); } // [B1, B6]
11107test { try toAsciiFail("\xce\xa3\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd", true); } // [B1, B6]
456011108test { try toUnicodeFail("\xcf\x83\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
11109test { try toAsciiFail("\xcf\x83\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd", false); } // [B1, B6]
11110test { try toAsciiFail("\xcf\x83\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd", true); } // [B1, B6]
456111111test { try toUnicodeFail("\xcf\x83>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
11112test { try toAsciiFail("\xcf\x83>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd", false); } // [B1, B6]
11113test { try toAsciiFail("\xcf\x83>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd", true); } // [B1, B6]
456211114test { try toUnicodeFail("xn--4xa818m.xn--1o0d"); } // [B1, B6]
11115test { try toAsciiFail("xn--4xa818m.xn--1o0d", false); } // [B1, B6]
11116test { try toAsciiFail("xn--4xa818m.xn--1o0d", true); } // [B1, B6]
456311117test { try toUnicodeFail("xn--3xa028m.xn--1o0d"); } // [B1, B6]
11118test { try toAsciiFail("xn--3xa028m.xn--1o0d", false); } // [B1, B6]
11119test { try toAsciiFail("xn--3xa028m.xn--1o0d", true); } // [B1, B6]
456411120test { try toUnicodeFail("\xce\xa3>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
11121test { try toAsciiFail("\xce\xa3>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd", false); } // [B1, B6]
11122test { try toAsciiFail("\xce\xa3>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd", true); } // [B1, B6]
456511123test { try toUnicodeFail("\xce\xa3\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
11124test { try toAsciiFail("\xce\xa3\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd", false); } // [B1, B6]
11125test { try toAsciiFail("\xce\xa3\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd", true); } // [B1, B6]
456611126test { try toUnicodeFail("\xcf\x83\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
11127test { try toAsciiFail("\xcf\x83\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd", false); } // [B1, B6]
11128test { try toAsciiFail("\xcf\x83\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd", true); } // [B1, B6]
456711129test { try toUnicodeFail("\xcf\x83>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
11130test { try toAsciiFail("\xcf\x83>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd", false); } // [B1, B6]
11131test { try toAsciiFail("\xcf\x83>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd", true); } // [B1, B6]
456811132test { try toUnicodeFail("\xe1\x9f\x92\xe2\x80\x8d\xdd\x9f\xe3\x80\x82\xf0\x90\xb9\xb6"); } // [B1, V6]
11133test { try toAsciiFail("\xe1\x9f\x92\xe2\x80\x8d\xdd\x9f\xe3\x80\x82\xf0\x90\xb9\xb6", false); } // [B1, V6]
11134test { try toAsciiFail("\xe1\x9f\x92\xe2\x80\x8d\xdd\x9f\xe3\x80\x82\xf0\x90\xb9\xb6", true); } // [B1, V6]
456911135test { try toUnicodeFail("xn--jpb535f.xn--uo0d"); } // [B1, V6]
11136test { try toAsciiFail("xn--jpb535f.xn--uo0d", false); } // [B1, V6]
11137test { try toAsciiFail("xn--jpb535f.xn--uo0d", true); } // [B1, V6]
457011138test { try toUnicodeFail("xn--jpb535fv9f.xn--uo0d"); } // [B1, V6]
11139test { try toAsciiFail("xn--jpb535fv9f.xn--uo0d", false); } // [B1, V6]
11140test { try toAsciiFail("xn--jpb535fv9f.xn--uo0d", true); } // [B1, V6]
457111141test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.\xe2\x89\xae"); } // [V7]
11142test { try toAsciiFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.\xe2\x89\xae", false); } // [V7]
11143test { try toAsciiFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.\xe2\x89\xae", true); } // [V7]
457211144test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.<\xcc\xb8"); } // [V7]
11145test { try toAsciiFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.<\xcc\xb8", false); } // [V7]
11146test { try toAsciiFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.<\xcc\xb8", true); } // [V7]
457311147test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.<\xcc\xb8"); } // [V7]
11148test { try toAsciiFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.<\xcc\xb8", false); } // [V7]
11149test { try toAsciiFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.<\xcc\xb8", true); } // [V7]
457411150test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.\xe2\x89\xae"); } // [V7]
11151test { try toAsciiFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.\xe2\x89\xae", false); } // [V7]
11152test { try toAsciiFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.\xe2\x89\xae", true); } // [V7]
457511153test { try toUnicodeFail("xn--nbc229o4y27dgskb.xn--gdh"); } // [V7]
11154test { try toAsciiFail("xn--nbc229o4y27dgskb.xn--gdh", false); } // [V7]
11155test { try toAsciiFail("xn--nbc229o4y27dgskb.xn--gdh", true); } // [V7]
457611156test { try toUnicodeFail("xn--nbc493aro75ggskb.xn--gdh"); } // [V7]
11157test { try toAsciiFail("xn--nbc493aro75ggskb.xn--gdh", false); } // [V7]
11158test { try toAsciiFail("xn--nbc493aro75ggskb.xn--gdh", true); } // [V7]
457711159test { try toUnicodePass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "\xea\xa1\xa0.\xdb\xb2"); }
457811160test { try toAsciiPass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "xn--5c9a.xn--fmb", false); }
457911161test { try toAsciiPass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "xn--5c9a.xn--fmb", true); }
......@@ -4584,88 +11166,224 @@ test { try toUnicodePass("xn--5c9a.xn--fmb", "\xea\xa1\xa0.\xdb\xb2"); }
458411166test { try toAsciiPass("xn--5c9a.xn--fmb", "xn--5c9a.xn--fmb", false); }
458511167test { try toAsciiPass("xn--5c9a.xn--fmb", "xn--5c9a.xn--fmb", true); }
458611168test { try toUnicodeFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xef\xbd\xa1\xea\xa1\xac\xf0\x9f\x84\x84"); } // [B1, B6, V7, U1]
11169test { try toAsciiFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xef\xbd\xa1\xea\xa1\xac\xf0\x9f\x84\x84", false); } // [B1, B6, V7, U1]
11170test { try toAsciiFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xef\xbd\xa1\xea\xa1\xac\xf0\x9f\x84\x84", true); } // [B1, B6, V7, U1]
458711171test { try toUnicodeFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xe3\x80\x82\xea\xa1\xac3,"); } // [B1, B6, V7, U1]
11172test { try toAsciiFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xe3\x80\x82\xea\xa1\xac3,", false); } // [B1, B6, V7, U1]
11173test { try toAsciiFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xe3\x80\x82\xea\xa1\xac3,", true); } // [B1, B6, V7, U1]
458811174test { try toUnicodeFail("xn--bo0d0203l.xn--3,-yj9h"); } // [B1, B6, V7, U1]
11175test { try toAsciiFail("xn--bo0d0203l.xn--3,-yj9h", false); } // [B1, B6, V7, U1]
11176test { try toAsciiFail("xn--bo0d0203l.xn--3,-yj9h", true); } // [B1, B6, V7, U1]
458911177test { try toUnicodeFail("xn--bo0d0203l.xn--id9a4443d"); } // [B1, V7]
11178test { try toAsciiFail("xn--bo0d0203l.xn--id9a4443d", false); } // [B1, V7]
11179test { try toAsciiFail("xn--bo0d0203l.xn--id9a4443d", true); } // [B1, V7]
459011180test { try toUnicodeFail("-\xe0\xb1\x8d\xf0\x9e\xbe\x80\xf0\x91\xb2\x93\xef\xbd\xa1\xe2\x80\x8d\xe0\xb5\x8d"); } // [B1, C2, V3, V7]
11181test { try toAsciiFail("-\xe0\xb1\x8d\xf0\x9e\xbe\x80\xf0\x91\xb2\x93\xef\xbd\xa1\xe2\x80\x8d\xe0\xb5\x8d", false); } // [B1, C2, V3, V7]
11182test { try toAsciiFail("-\xe0\xb1\x8d\xf0\x9e\xbe\x80\xf0\x91\xb2\x93\xef\xbd\xa1\xe2\x80\x8d\xe0\xb5\x8d", true); } // [B1, V3, V6, V7]
459111183test { try toUnicodeFail("-\xe0\xb1\x8d\xf0\x9e\xbe\x80\xf0\x91\xb2\x93\xe3\x80\x82\xe2\x80\x8d\xe0\xb5\x8d"); } // [B1, C2, V3, V7]
11184test { try toAsciiFail("-\xe0\xb1\x8d\xf0\x9e\xbe\x80\xf0\x91\xb2\x93\xe3\x80\x82\xe2\x80\x8d\xe0\xb5\x8d", false); } // [B1, C2, V3, V7]
11185test { try toAsciiFail("-\xe0\xb1\x8d\xf0\x9e\xbe\x80\xf0\x91\xb2\x93\xe3\x80\x82\xe2\x80\x8d\xe0\xb5\x8d", true); } // [B1, V3, V6, V7]
459211186test { try toUnicodeFail("xn----x6e0220sclug.xn--wxc"); } // [B1, V3, V6, V7]
11187test { try toAsciiFail("xn----x6e0220sclug.xn--wxc", false); } // [B1, V3, V6, V7]
11188test { try toAsciiFail("xn----x6e0220sclug.xn--wxc", true); } // [B1, V3, V6, V7]
459311189test { try toUnicodeFail("xn----x6e0220sclug.xn--wxc317g"); } // [B1, C2, V3, V7]
11190test { try toAsciiFail("xn----x6e0220sclug.xn--wxc317g", false); } // [B1, C2, V3, V7]
11191test { try toAsciiFail("xn----x6e0220sclug.xn--wxc317g", true); } // [B1, C2, V3, V7]
459411192test { try toUnicodeFail("\xea\x99\xbd\xe2\x80\x8c\xf0\xaf\xa7\xb5\xf0\x9f\x84\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81"); } // [C1, V6, U1]
11193test { try toAsciiFail("\xea\x99\xbd\xe2\x80\x8c\xf0\xaf\xa7\xb5\xf0\x9f\x84\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81", false); } // [C1, V6, U1]
11194test { try toAsciiFail("\xea\x99\xbd\xe2\x80\x8c\xf0\xaf\xa7\xb5\xf0\x9f\x84\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81", true); } // [V6, U1]
459511195test { try toUnicodeFail("\xea\x99\xbd\xe2\x80\x8c\xe9\x9c\xa3\xf0\x9f\x84\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81"); } // [C1, V6, U1]
11196test { try toAsciiFail("\xea\x99\xbd\xe2\x80\x8c\xe9\x9c\xa3\xf0\x9f\x84\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81", false); } // [C1, V6, U1]
11197test { try toAsciiFail("\xea\x99\xbd\xe2\x80\x8c\xe9\x9c\xa3\xf0\x9f\x84\x86\xef\xbd\xa1\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81", true); } // [V6, U1]
459611198test { try toUnicodeFail("\xea\x99\xbd\xe2\x80\x8c\xe9\x9c\xa35,\xe3\x80\x82\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81"); } // [C1, V6, U1]
11199test { try toAsciiFail("\xea\x99\xbd\xe2\x80\x8c\xe9\x9c\xa35,\xe3\x80\x82\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81", false); } // [C1, V6, U1]
11200test { try toAsciiFail("\xea\x99\xbd\xe2\x80\x8c\xe9\x9c\xa35,\xe3\x80\x82\xe2\x80\x8c\xf0\x91\x81\x82\xe1\xac\x81", true); } // [V6, U1]
459711201test { try toUnicodeFail("xn--5,-op8g373c.xn--4sf0725i"); } // [V6, U1]
11202test { try toAsciiFail("xn--5,-op8g373c.xn--4sf0725i", false); } // [V6, U1]
11203test { try toAsciiFail("xn--5,-op8g373c.xn--4sf0725i", true); } // [V6, U1]
459811204test { try toUnicodeFail("xn--5,-i1tz135dnbqa.xn--4sf36u6u4w"); } // [C1, V6, U1]
11205test { try toAsciiFail("xn--5,-i1tz135dnbqa.xn--4sf36u6u4w", false); } // [C1, V6, U1]
11206test { try toAsciiFail("xn--5,-i1tz135dnbqa.xn--4sf36u6u4w", true); } // [C1, V6, U1]
459911207test { try toUnicodeFail("xn--2q5a751a653w.xn--4sf0725i"); } // [V6, V7]
11208test { try toAsciiFail("xn--2q5a751a653w.xn--4sf0725i", false); } // [V6, V7]
11209test { try toAsciiFail("xn--2q5a751a653w.xn--4sf0725i", true); } // [V6, V7]
460011210test { try toUnicodeFail("xn--0ug4208b2vjuk63a.xn--4sf36u6u4w"); } // [C1, V6, V7]
11211test { try toAsciiFail("xn--0ug4208b2vjuk63a.xn--4sf36u6u4w", false); } // [C1, V6, V7]
11212test { try toAsciiFail("xn--0ug4208b2vjuk63a.xn--4sf36u6u4w", true); } // [C1, V6, V7]
460111213test { try toUnicodeFail("\xe5\x85\x8e\xef\xbd\xa1\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf"); } // [V7]
11214test { try toAsciiFail("\xe5\x85\x8e\xef\xbd\xa1\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf", false); } // [V7]
11215test { try toAsciiFail("\xe5\x85\x8e\xef\xbd\xa1\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf", true); } // [V7]
460211216test { try toUnicodeFail("\xe5\x85\x8e\xe3\x80\x82\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf"); } // [V7]
11217test { try toAsciiFail("\xe5\x85\x8e\xe3\x80\x82\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf", false); } // [V7]
11218test { try toAsciiFail("\xe5\x85\x8e\xe3\x80\x82\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf", true); } // [V7]
460311219test { try toUnicodeFail("xn--b5q.xn--v7e6041kqqd4m251b"); } // [V7]
11220test { try toAsciiFail("xn--b5q.xn--v7e6041kqqd4m251b", false); } // [V7]
11221test { try toAsciiFail("xn--b5q.xn--v7e6041kqqd4m251b", true); } // [V7]
460411222test { try toAsciiPass("\xf0\x9d\x9f\x99\xef\xbd\xa1\xe2\x80\x8d\xf0\x9d\x9f\xb8\xe2\x80\x8d\xe2\x81\xb7", "1.27", true); }
460511223test { try toUnicodeFail("\xf0\x9d\x9f\x99\xef\xbd\xa1\xe2\x80\x8d\xf0\x9d\x9f\xb8\xe2\x80\x8d\xe2\x81\xb7"); } // [C2]
11224test { try toAsciiFail("\xf0\x9d\x9f\x99\xef\xbd\xa1\xe2\x80\x8d\xf0\x9d\x9f\xb8\xe2\x80\x8d\xe2\x81\xb7", false); } // [C2]
460611225test { try toAsciiPass("1\xe3\x80\x82\xe2\x80\x8d2\xe2\x80\x8d7", "1.27", true); }
460711226test { try toUnicodeFail("1\xe3\x80\x82\xe2\x80\x8d2\xe2\x80\x8d7"); } // [C2]
11227test { try toAsciiFail("1\xe3\x80\x82\xe2\x80\x8d2\xe2\x80\x8d7", false); } // [C2]
460811228test { try toUnicodePass("1.2h", "1.2h"); }
460911229test { try toAsciiPass("1.2h", "1.2h", false); }
461011230test { try toAsciiPass("1.2h", "1.2h", true); }
461111231test { try toUnicodeFail("1.xn--27-l1tb"); } // [C2]
11232test { try toAsciiFail("1.xn--27-l1tb", false); } // [C2]
11233test { try toAsciiFail("1.xn--27-l1tb", true); } // [C2]
461211234test { try toUnicodeFail("\xe1\xa1\xa8-\xef\xbd\xa1\xf3\xa0\xbb\x8b\xf0\x9d\x9f\xb7"); } // [V3, V7]
11235test { try toAsciiFail("\xe1\xa1\xa8-\xef\xbd\xa1\xf3\xa0\xbb\x8b\xf0\x9d\x9f\xb7", false); } // [V3, V7]
11236test { try toAsciiFail("\xe1\xa1\xa8-\xef\xbd\xa1\xf3\xa0\xbb\x8b\xf0\x9d\x9f\xb7", true); } // [V3, V7]
461311237test { try toUnicodeFail("\xe1\xa1\xa8-\xe3\x80\x82\xf3\xa0\xbb\x8b1"); } // [V3, V7]
11238test { try toAsciiFail("\xe1\xa1\xa8-\xe3\x80\x82\xf3\xa0\xbb\x8b1", false); } // [V3, V7]
11239test { try toAsciiFail("\xe1\xa1\xa8-\xe3\x80\x82\xf3\xa0\xbb\x8b1", true); } // [V3, V7]
461411240test { try toUnicodeFail("xn----z8j.xn--1-5671m"); } // [V3, V7]
11241test { try toAsciiFail("xn----z8j.xn--1-5671m", false); } // [V3, V7]
11242test { try toAsciiFail("xn----z8j.xn--1-5671m", true); } // [V3, V7]
461511243test { try toUnicodeFail("\xf0\x91\xb0\xbb\xf1\xb5\x80\x90\xf0\x90\xab\x9a\xef\xbc\x8e\xd9\xa8\xe2\x81\xb9"); } // [B1, V6, V7]
11244test { try toAsciiFail("\xf0\x91\xb0\xbb\xf1\xb5\x80\x90\xf0\x90\xab\x9a\xef\xbc\x8e\xd9\xa8\xe2\x81\xb9", false); } // [B1, V6, V7]
11245test { try toAsciiFail("\xf0\x91\xb0\xbb\xf1\xb5\x80\x90\xf0\x90\xab\x9a\xef\xbc\x8e\xd9\xa8\xe2\x81\xb9", true); } // [B1, V6, V7]
461611246test { try toUnicodeFail("\xf0\x91\xb0\xbb\xf1\xb5\x80\x90\xf0\x90\xab\x9a.\xd9\xa89"); } // [B1, V6, V7]
11247test { try toAsciiFail("\xf0\x91\xb0\xbb\xf1\xb5\x80\x90\xf0\x90\xab\x9a.\xd9\xa89", false); } // [B1, V6, V7]
11248test { try toAsciiFail("\xf0\x91\xb0\xbb\xf1\xb5\x80\x90\xf0\x90\xab\x9a.\xd9\xa89", true); } // [B1, V6, V7]
461711249test { try toUnicodeFail("xn--gx9cr01aul57i.xn--9-oqc"); } // [B1, V6, V7]
11250test { try toAsciiFail("xn--gx9cr01aul57i.xn--9-oqc", false); } // [B1, V6, V7]
11251test { try toAsciiFail("xn--gx9cr01aul57i.xn--9-oqc", true); } // [B1, V6, V7]
461811252test { try toUnicodeFail("\xe1\x82\xbc\xf2\x88\xb7\xad\xe0\xbe\x80\xe2\xbe\x87\xe3\x80\x82\xe1\x82\xaf\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c"); } // [C1, V7]
11253test { try toAsciiFail("\xe1\x82\xbc\xf2\x88\xb7\xad\xe0\xbe\x80\xe2\xbe\x87\xe3\x80\x82\xe1\x82\xaf\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c", false); } // [C1, V7]
11254test { try toAsciiFail("\xe1\x82\xbc\xf2\x88\xb7\xad\xe0\xbe\x80\xe2\xbe\x87\xe3\x80\x82\xe1\x82\xaf\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c", true); } // [V7]
461911255test { try toUnicodeFail("\xe1\x82\xbc\xf2\x88\xb7\xad\xe0\xbe\x80\xe8\x88\x9b\xe3\x80\x82\xe1\x82\xaf\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c"); } // [C1, V7]
11256test { try toAsciiFail("\xe1\x82\xbc\xf2\x88\xb7\xad\xe0\xbe\x80\xe8\x88\x9b\xe3\x80\x82\xe1\x82\xaf\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c", false); } // [C1, V7]
11257test { try toAsciiFail("\xe1\x82\xbc\xf2\x88\xb7\xad\xe0\xbe\x80\xe8\x88\x9b\xe3\x80\x82\xe1\x82\xaf\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c", true); } // [V7]
462011258test { try toUnicodeFail("\xe2\xb4\x9c\xf2\x88\xb7\xad\xe0\xbe\x80\xe8\x88\x9b\xe3\x80\x82\xe2\xb4\x8f\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c"); } // [C1, V7]
11259test { try toAsciiFail("\xe2\xb4\x9c\xf2\x88\xb7\xad\xe0\xbe\x80\xe8\x88\x9b\xe3\x80\x82\xe2\xb4\x8f\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c", false); } // [C1, V7]
11260test { try toAsciiFail("\xe2\xb4\x9c\xf2\x88\xb7\xad\xe0\xbe\x80\xe8\x88\x9b\xe3\x80\x82\xe2\xb4\x8f\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c", true); } // [V7]
462111261test { try toUnicodeFail("xn--zed372mdj2do3v4h.xn--e5h11w"); } // [V7]
11262test { try toAsciiFail("xn--zed372mdj2do3v4h.xn--e5h11w", false); } // [V7]
11263test { try toAsciiFail("xn--zed372mdj2do3v4h.xn--e5h11w", true); } // [V7]
462211264test { try toUnicodeFail("xn--zed372mdj2do3v4h.xn--0uga678bgyh"); } // [C1, V7]
11265test { try toAsciiFail("xn--zed372mdj2do3v4h.xn--0uga678bgyh", false); } // [C1, V7]
11266test { try toAsciiFail("xn--zed372mdj2do3v4h.xn--0uga678bgyh", true); } // [C1, V7]
462311267test { try toUnicodeFail("\xe2\xb4\x9c\xf2\x88\xb7\xad\xe0\xbe\x80\xe2\xbe\x87\xe3\x80\x82\xe2\xb4\x8f\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c"); } // [C1, V7]
11268test { try toAsciiFail("\xe2\xb4\x9c\xf2\x88\xb7\xad\xe0\xbe\x80\xe2\xbe\x87\xe3\x80\x82\xe2\xb4\x8f\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c", false); } // [C1, V7]
11269test { try toAsciiFail("\xe2\xb4\x9c\xf2\x88\xb7\xad\xe0\xbe\x80\xe2\xbe\x87\xe3\x80\x82\xe2\xb4\x8f\xe2\x99\x80\xe2\x80\x8c\xe2\x80\x8c", true); } // [V7]
462411270test { try toUnicodeFail("xn--zed54dz10wo343g.xn--nnd651i"); } // [V7]
11271test { try toAsciiFail("xn--zed54dz10wo343g.xn--nnd651i", false); } // [V7]
11272test { try toAsciiFail("xn--zed54dz10wo343g.xn--nnd651i", true); } // [V7]
462511273test { try toUnicodeFail("xn--zed54dz10wo343g.xn--nnd089ea464d"); } // [C1, V7]
11274test { try toAsciiFail("xn--zed54dz10wo343g.xn--nnd089ea464d", false); } // [C1, V7]
11275test { try toAsciiFail("xn--zed54dz10wo343g.xn--nnd089ea464d", true); } // [C1, V7]
462611276test { try toUnicodeFail("\xf0\x91\x81\x86\xf0\x9d\x9f\xb0.\xe2\x80\x8d"); } // [C2, V6]
11277test { try toAsciiFail("\xf0\x91\x81\x86\xf0\x9d\x9f\xb0.\xe2\x80\x8d", false); } // [C2, V6]
11278test { try toAsciiFail("\xf0\x91\x81\x86\xf0\x9d\x9f\xb0.\xe2\x80\x8d", true); } // [V6, A4_2]
462711279test { try toUnicodeFail("\xf0\x91\x81\x864.\xe2\x80\x8d"); } // [C2, V6]
11280test { try toAsciiFail("\xf0\x91\x81\x864.\xe2\x80\x8d", false); } // [C2, V6]
11281test { try toAsciiFail("\xf0\x91\x81\x864.\xe2\x80\x8d", true); } // [V6, A4_2]
462811282test { try toUnicodeFail("xn--4-xu7i."); } // [V6]
11283test { try toAsciiFail("xn--4-xu7i.", false); } // [V6, A4_2]
11284test { try toAsciiFail("xn--4-xu7i.", true); } // [V6, A4_2]
462911285test { try toUnicodeFail("xn--4-xu7i.xn--1ug"); } // [C2, V6]
11286test { try toAsciiFail("xn--4-xu7i.xn--1ug", false); } // [C2, V6]
11287test { try toAsciiFail("xn--4-xu7i.xn--1ug", true); } // [C2, V6]
463011288test { try toUnicodeFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc"); } // [C1, V6, V7]
11289test { try toAsciiFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc", false); } // [C1, V6, V7]
11290test { try toAsciiFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc", true); } // [V6, V7]
463111291test { try toUnicodeFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab"); } // [C1, V6, V7]
11292test { try toAsciiFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab", false); } // [C1, V6, V7]
11293test { try toAsciiFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab", true); } // [V6, V7]
463211294test { try toUnicodeFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc"); } // [C1, V6, V7]
11295test { try toAsciiFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc", false); } // [C1, V6, V7]
11296test { try toAsciiFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc", true); } // [V6, V7]
463311297test { try toUnicodeFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab"); } // [C1, V6, V7]
11298test { try toAsciiFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab", false); } // [C1, V6, V7]
11299test { try toAsciiFail("\xf1\xae\xb4\x98\xe1\x82\xbe\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab", true); } // [V6, V7]
463411300test { try toUnicodeFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab"); } // [C1, V6, V7]
11301test { try toAsciiFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab", false); } // [C1, V6, V7]
11302test { try toAsciiFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab", true); } // [V6, V7]
463511303test { try toUnicodeFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc"); } // [C1, V6, V7]
11304test { try toAsciiFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc", false); } // [C1, V6, V7]
11305test { try toAsciiFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xe3\x80\x82\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc", true); } // [V6, V7]
463611306test { try toUnicodeFail("xn--mlju35u7qx2f.xn--et3bn23n"); } // [V6, V7]
11307test { try toAsciiFail("xn--mlju35u7qx2f.xn--et3bn23n", false); } // [V6, V7]
11308test { try toAsciiFail("xn--mlju35u7qx2f.xn--et3bn23n", true); } // [V6, V7]
463711309test { try toUnicodeFail("xn--mlju35u7qx2f.xn--0ugb6122js83c"); } // [C1, V6, V7]
11310test { try toAsciiFail("xn--mlju35u7qx2f.xn--0ugb6122js83c", false); } // [C1, V6, V7]
11311test { try toAsciiFail("xn--mlju35u7qx2f.xn--0ugb6122js83c", true); } // [C1, V6, V7]
463811312test { try toUnicodeFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab"); } // [C1, V6, V7]
11313test { try toAsciiFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab", false); } // [C1, V6, V7]
11314test { try toAsciiFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xe1\x84\x87\xe1\x85\xb0\xe1\x86\xab", true); } // [V6, V7]
463911315test { try toUnicodeFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc"); } // [C1, V6, V7]
11316test { try toAsciiFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc", false); } // [C1, V6, V7]
11317test { try toAsciiFail("\xf1\xae\xb4\x98\xe2\xb4\x9e\xe7\x99\x80\xef\xbd\xa1\xf0\x91\x98\xbf\xe2\x80\x8d\xe2\x80\x8c\xeb\xb6\xbc", true); } // [V6, V7]
464011318test { try toUnicodeFail("xn--2nd6803c7q37d.xn--et3bn23n"); } // [V6, V7]
11319test { try toAsciiFail("xn--2nd6803c7q37d.xn--et3bn23n", false); } // [V6, V7]
11320test { try toAsciiFail("xn--2nd6803c7q37d.xn--et3bn23n", true); } // [V6, V7]
464111321test { try toUnicodeFail("xn--2nd6803c7q37d.xn--0ugb6122js83c"); } // [C1, V6, V7]
11322test { try toAsciiFail("xn--2nd6803c7q37d.xn--0ugb6122js83c", false); } // [C1, V6, V7]
11323test { try toAsciiFail("xn--2nd6803c7q37d.xn--0ugb6122js83c", true); } // [C1, V6, V7]
464211324test { try toUnicodeFail("\xf3\x9a\x80\x85-\xe0\xaf\x8d\xe3\x80\x82\xda\xb9"); } // [B6, V7]
11325test { try toAsciiFail("\xf3\x9a\x80\x85-\xe0\xaf\x8d\xe3\x80\x82\xda\xb9", false); } // [B6, V7]
11326test { try toAsciiFail("\xf3\x9a\x80\x85-\xe0\xaf\x8d\xe3\x80\x82\xda\xb9", true); } // [B6, V7]
464311327test { try toUnicodeFail("xn----mze84808x.xn--skb"); } // [B6, V7]
11328test { try toAsciiFail("xn----mze84808x.xn--skb", false); } // [B6, V7]
11329test { try toAsciiFail("xn----mze84808x.xn--skb", true); } // [B6, V7]
464411330test { try toUnicodeFail("\xe1\xa1\x83\xf0\x9d\x9f\xa7\xe2\x89\xaf\xe1\xa0\xa3\xef\xbc\x8e\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab"); } // [V7]
11331test { try toAsciiFail("\xe1\xa1\x83\xf0\x9d\x9f\xa7\xe2\x89\xaf\xe1\xa0\xa3\xef\xbc\x8e\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab", false); } // [V7]
11332test { try toAsciiFail("\xe1\xa1\x83\xf0\x9d\x9f\xa7\xe2\x89\xaf\xe1\xa0\xa3\xef\xbc\x8e\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab", true); } // [V7]
464511333test { try toUnicodeFail("\xe1\xa1\x83\xf0\x9d\x9f\xa7>\xcc\xb8\xe1\xa0\xa3\xef\xbc\x8e\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab"); } // [V7]
11334test { try toAsciiFail("\xe1\xa1\x83\xf0\x9d\x9f\xa7>\xcc\xb8\xe1\xa0\xa3\xef\xbc\x8e\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab", false); } // [V7]
11335test { try toAsciiFail("\xe1\xa1\x83\xf0\x9d\x9f\xa7>\xcc\xb8\xe1\xa0\xa3\xef\xbc\x8e\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab", true); } // [V7]
464611336test { try toUnicodeFail("\xe1\xa1\x835\xe2\x89\xaf\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab"); } // [V7]
11337test { try toAsciiFail("\xe1\xa1\x835\xe2\x89\xaf\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab", false); } // [V7]
11338test { try toAsciiFail("\xe1\xa1\x835\xe2\x89\xaf\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab", true); } // [V7]
464711339test { try toUnicodeFail("\xe1\xa1\x835>\xcc\xb8\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab"); } // [V7]
11340test { try toAsciiFail("\xe1\xa1\x835>\xcc\xb8\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab", false); } // [V7]
11341test { try toAsciiFail("\xe1\xa1\x835>\xcc\xb8\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab", true); } // [V7]
464811342test { try toUnicodeFail("xn--5-24jyf768b.xn--lqw213ime95g"); } // [V7]
11343test { try toAsciiFail("xn--5-24jyf768b.xn--lqw213ime95g", false); } // [V7]
11344test { try toAsciiFail("xn--5-24jyf768b.xn--lqw213ime95g", true); } // [V7]
464911345test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbd\xb6"); } // [B1, V6]
11346test { try toAsciiFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbd\xb6", false); } // [B1, V6]
11347test { try toAsciiFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbd\xb6", true); } // [B1, V6]
465011348test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbe\xb2\xe0\xbe\x80"); } // [B1, V6]
11349test { try toAsciiFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbe\xb2\xe0\xbe\x80", false); } // [B1, V6]
11350test { try toAsciiFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbe\xb2\xe0\xbe\x80", true); } // [B1, V6]
465111351test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87.\xe0\xbe\xb2\xe0\xbe\x80"); } // [B1, V6]
11352test { try toAsciiFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87.\xe0\xbe\xb2\xe0\xbe\x80", false); } // [B1, V6]
11353test { try toAsciiFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87.\xe0\xbe\xb2\xe0\xbe\x80", true); } // [B1, V6]
465211354test { try toUnicodeFail("xn--ko0d8295a.xn--zed3h"); } // [B1, V6]
11355test { try toAsciiFail("xn--ko0d8295a.xn--zed3h", false); } // [B1, V6]
11356test { try toAsciiFail("xn--ko0d8295a.xn--zed3h", true); } // [B1, V6]
465311357test { try toUnicodeFail("-\xf0\x91\x88\xb6\xe2\x92\x8f\xef\xbc\x8e\xe2\x92\x8e\xf0\xb0\x9b\xa2\xf3\xa0\x8e\xad"); } // [V3, V7]
11358test { try toAsciiFail("-\xf0\x91\x88\xb6\xe2\x92\x8f\xef\xbc\x8e\xe2\x92\x8e\xf0\xb0\x9b\xa2\xf3\xa0\x8e\xad", false); } // [V3, V7]
11359test { try toAsciiFail("-\xf0\x91\x88\xb6\xe2\x92\x8f\xef\xbc\x8e\xe2\x92\x8e\xf0\xb0\x9b\xa2\xf3\xa0\x8e\xad", true); } // [V3, V7]
465411360test { try toUnicodeFail("-\xf0\x91\x88\xb68..7.\xf0\xb0\x9b\xa2\xf3\xa0\x8e\xad"); } // [V3, V7, X4_2]
11361test { try toAsciiFail("-\xf0\x91\x88\xb68..7.\xf0\xb0\x9b\xa2\xf3\xa0\x8e\xad", false); } // [V3, V7, A4_2]
11362test { try toAsciiFail("-\xf0\x91\x88\xb68..7.\xf0\xb0\x9b\xa2\xf3\xa0\x8e\xad", true); } // [V3, V7, A4_2]
465511363test { try toUnicodeFail("xn---8-bv5o..7.xn--c35nf1622b"); } // [V3, V7, X4_2]
11364test { try toAsciiFail("xn---8-bv5o..7.xn--c35nf1622b", false); } // [V3, V7, A4_2]
11365test { try toAsciiFail("xn---8-bv5o..7.xn--c35nf1622b", true); } // [V3, V7, A4_2]
465611366test { try toUnicodeFail("xn----scp6252h.xn--zshy411yzpx2d"); } // [V3, V7]
11367test { try toAsciiFail("xn----scp6252h.xn--zshy411yzpx2d", false); } // [V3, V7]
11368test { try toAsciiFail("xn----scp6252h.xn--zshy411yzpx2d", true); } // [V3, V7]
465711369test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }
465811370test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae"); } // [C1, C2]
11371test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae", false); } // [C1, C2]
465911372test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }
466011373test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8"); } // [C1, C2]
11374test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", false); } // [C1, C2]
466111375test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }
466211376test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae"); } // [C1, C2]
11377test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", false); } // [C1, C2]
466311378test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }
466411379test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8"); } // [C1, C2]
11380test { try toAsciiFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", false); } // [C1, C2]
466511381test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }
466611382test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8"); } // [C1, C2]
11383test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", false); } // [C1, C2]
466711384test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }
466811385test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae"); } // [C1, C2]
11386test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", false); } // [C1, C2]
466911387test { try toUnicodePass("xn--skjy82u.xn--gdh", "\xe2\xb4\x81\xe7\x95\x9d.\xe2\x89\xae"); }
467011388test { try toAsciiPass("xn--skjy82u.xn--gdh", "xn--skjy82u.xn--gdh", false); }
467111389test { try toAsciiPass("xn--skjy82u.xn--gdh", "xn--skjy82u.xn--gdh", true); }
......@@ -4682,163 +11400,473 @@ test { try toUnicodePass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "\xe2\xb4\x81\
468211400test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", false); }
468311401test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }
468411402test { try toUnicodeFail("xn--0ugc160hb36e.xn--gdh"); } // [C1, C2]
11403test { try toAsciiFail("xn--0ugc160hb36e.xn--gdh", false); } // [C1, C2]
11404test { try toAsciiFail("xn--0ugc160hb36e.xn--gdh", true); } // [C1, C2]
468511405test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }
468611406test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8"); } // [C1, C2]
11407test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", false); } // [C1, C2]
468711408test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }
468811409test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae"); } // [C1, C2]
11410test { try toAsciiFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae", false); } // [C1, C2]
468911411test { try toUnicodeFail("xn--8md0962c.xn--gdh"); } // [V7]
11412test { try toAsciiFail("xn--8md0962c.xn--gdh", false); } // [V7]
11413test { try toAsciiFail("xn--8md0962c.xn--gdh", true); } // [V7]
469011414test { try toUnicodeFail("xn--8md700fea3748f.xn--gdh"); } // [C1, C2, V7]
11415test { try toAsciiFail("xn--8md700fea3748f.xn--gdh", false); } // [C1, C2, V7]
11416test { try toAsciiFail("xn--8md700fea3748f.xn--gdh", true); } // [C1, C2, V7]
469111417test { try toUnicodeFail("\xe6\xad\xb7\xef\xbd\xa1\xf0\x90\xb9\xbb\xe2\x89\xaf\xf3\xb3\x9b\xbd\xe2\x80\x8d"); } // [B1, C2, V7]
11418test { try toAsciiFail("\xe6\xad\xb7\xef\xbd\xa1\xf0\x90\xb9\xbb\xe2\x89\xaf\xf3\xb3\x9b\xbd\xe2\x80\x8d", false); } // [B1, C2, V7]
11419test { try toAsciiFail("\xe6\xad\xb7\xef\xbd\xa1\xf0\x90\xb9\xbb\xe2\x89\xaf\xf3\xb3\x9b\xbd\xe2\x80\x8d", true); } // [B1, V7]
469211420test { try toUnicodeFail("\xe6\xad\xb7\xef\xbd\xa1\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d"); } // [B1, C2, V7]
11421test { try toAsciiFail("\xe6\xad\xb7\xef\xbd\xa1\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d", false); } // [B1, C2, V7]
11422test { try toAsciiFail("\xe6\xad\xb7\xef\xbd\xa1\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d", true); } // [B1, V7]
469311423test { try toUnicodeFail("\xe6\xad\xb7\xe3\x80\x82\xf0\x90\xb9\xbb\xe2\x89\xaf\xf3\xb3\x9b\xbd\xe2\x80\x8d"); } // [B1, C2, V7]
11424test { try toAsciiFail("\xe6\xad\xb7\xe3\x80\x82\xf0\x90\xb9\xbb\xe2\x89\xaf\xf3\xb3\x9b\xbd\xe2\x80\x8d", false); } // [B1, C2, V7]
11425test { try toAsciiFail("\xe6\xad\xb7\xe3\x80\x82\xf0\x90\xb9\xbb\xe2\x89\xaf\xf3\xb3\x9b\xbd\xe2\x80\x8d", true); } // [B1, V7]
469411426test { try toUnicodeFail("\xe6\xad\xb7\xe3\x80\x82\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d"); } // [B1, C2, V7]
11427test { try toAsciiFail("\xe6\xad\xb7\xe3\x80\x82\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d", false); } // [B1, C2, V7]
11428test { try toAsciiFail("\xe6\xad\xb7\xe3\x80\x82\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d", true); } // [B1, V7]
469511429test { try toUnicodeFail("xn--nmw.xn--hdh7804gdms2h"); } // [B1, V7]
11430test { try toAsciiFail("xn--nmw.xn--hdh7804gdms2h", false); } // [B1, V7]
11431test { try toAsciiFail("xn--nmw.xn--hdh7804gdms2h", true); } // [B1, V7]
469611432test { try toUnicodeFail("xn--nmw.xn--1ugx6gs128a1134j"); } // [B1, C2, V7]
11433test { try toAsciiFail("xn--nmw.xn--1ugx6gs128a1134j", false); } // [B1, C2, V7]
11434test { try toAsciiFail("xn--nmw.xn--1ugx6gs128a1134j", true); } // [B1, C2, V7]
469711435test { try toUnicodeFail("\xe0\xbb\x8b\xe2\x80\x8d\xef\xbc\x8e\xe9\x8e\x81\xf3\xa0\xb0\x91"); } // [C2, V6, V7]
11436test { try toAsciiFail("\xe0\xbb\x8b\xe2\x80\x8d\xef\xbc\x8e\xe9\x8e\x81\xf3\xa0\xb0\x91", false); } // [C2, V6, V7]
11437test { try toAsciiFail("\xe0\xbb\x8b\xe2\x80\x8d\xef\xbc\x8e\xe9\x8e\x81\xf3\xa0\xb0\x91", true); } // [V6, V7]
469811438test { try toUnicodeFail("\xe0\xbb\x8b\xe2\x80\x8d.\xe9\x8e\x81\xf3\xa0\xb0\x91"); } // [C2, V6, V7]
11439test { try toAsciiFail("\xe0\xbb\x8b\xe2\x80\x8d.\xe9\x8e\x81\xf3\xa0\xb0\x91", false); } // [C2, V6, V7]
11440test { try toAsciiFail("\xe0\xbb\x8b\xe2\x80\x8d.\xe9\x8e\x81\xf3\xa0\xb0\x91", true); } // [V6, V7]
469911441test { try toUnicodeFail("xn--t8c.xn--iz4a43209d"); } // [V6, V7]
11442test { try toAsciiFail("xn--t8c.xn--iz4a43209d", false); } // [V6, V7]
11443test { try toAsciiFail("xn--t8c.xn--iz4a43209d", true); } // [V6, V7]
470011444test { try toUnicodeFail("xn--t8c059f.xn--iz4a43209d"); } // [C2, V6, V7]
11445test { try toAsciiFail("xn--t8c059f.xn--iz4a43209d", false); } // [C2, V6, V7]
11446test { try toAsciiFail("xn--t8c059f.xn--iz4a43209d", true); } // [C2, V6, V7]
470111447test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb6\x83"); } // [B1, B5, B6, C1, C2]
11448test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb6\x83", false); } // [B1, B5, B6, C1, C2]
11449test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb6\x83", true); } // [B5, B6]
470211450test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb6\x83"); } // [B1, B5, B6, C1, C2]
11451test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb6\x83", false); } // [B1, B5, B6, C1, C2]
11452test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb6\x83", true); } // [B5, B6]
470311453test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\xa2\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb6\x83"); } // [B1, B5, B6, C1, C2]
11454test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\xa2\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb6\x83", false); } // [B1, B5, B6, C1, C2]
11455test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\xa2\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb6\x83", true); } // [B5, B6]
470411456test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb5\xa3"); } // [B1, B5, B6, C1, C2]
11457test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb5\xa3", false); } // [B1, B5, B6, C1, C2]
11458test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xe3\x80\x82\xf0\xb1\x98\x85\xf0\x90\xb5\xa3", true); } // [B5, B6]
470511459test { try toUnicodeFail("xn--9d6h.xn--wh0dj799f"); } // [B5, B6]
11460test { try toAsciiFail("xn--9d6h.xn--wh0dj799f", false); } // [B5, B6]
11461test { try toAsciiFail("xn--9d6h.xn--wh0dj799f", true); } // [B5, B6]
470611462test { try toUnicodeFail("xn--0ugb45126a.xn--wh0dj799f"); } // [B1, B5, B6, C1, C2]
11463test { try toAsciiFail("xn--0ugb45126a.xn--wh0dj799f", false); } // [B1, B5, B6, C1, C2]
11464test { try toAsciiFail("xn--0ugb45126a.xn--wh0dj799f", true); } // [B1, B5, B6, C1, C2]
470711465test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\xa2\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb6\x83"); } // [B1, B5, B6, C1, C2]
11466test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\xa2\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb6\x83", false); } // [B1, B5, B6, C1, C2]
11467test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\xa2\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb6\x83", true); } // [B5, B6]
470811468test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb5\xa3"); } // [B1, B5, B6, C1, C2]
11469test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb5\xa3", false); } // [B1, B5, B6, C1, C2]
11470test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf0\x9e\xa4\x80\xef\xbd\xa1\xf0\xb1\x98\x85\xf0\x90\xb5\xa3", true); } // [B5, B6]
470911471test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xcf\x82\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B3, B5, B6, V3, V7]
11472test { try toAsciiFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xcf\x82\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0", false); } // [B3, B5, B6, V3, V7]
11473test { try toAsciiFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xcf\x82\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0", true); } // [B3, B5, B6, V3, V7]
471011474test { try toUnicodeFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xcf\x82\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B3, B5, B6, V3, V7]
11475test { try toAsciiFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xcf\x82\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8", false); } // [B3, B5, B6, V3, V7]
11476test { try toAsciiFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xcf\x82\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8", true); } // [B3, B5, B6, V3, V7]
471111477test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x826.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3]
11478test { try toAsciiFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x826.\xf0\x90\xb9\xa6\xe2\x89\xa0", false); } // [B1, B3, V3]
11479test { try toAsciiFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x826.\xf0\x90\xb9\xa6\xe2\x89\xa0", true); } // [B1, B3, V3]
471211480test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xcf\x826.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3]
11481test { try toAsciiFail("\xd8\xa8=\xcc\xb89-.\xcf\x826.\xf0\x90\xb9\xa6=\xcc\xb8", false); } // [B1, B3, V3]
11482test { try toAsciiFail("\xd8\xa8=\xcc\xb89-.\xcf\x826.\xf0\x90\xb9\xa6=\xcc\xb8", true); } // [B1, B3, V3]
471311483test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xce\xa36.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3]
11484test { try toAsciiFail("\xd8\xa8=\xcc\xb89-.\xce\xa36.\xf0\x90\xb9\xa6=\xcc\xb8", false); } // [B1, B3, V3]
11485test { try toAsciiFail("\xd8\xa8=\xcc\xb89-.\xce\xa36.\xf0\x90\xb9\xa6=\xcc\xb8", true); } // [B1, B3, V3]
471411486test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xce\xa36.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3]
11487test { try toAsciiFail("\xd8\xa8\xe2\x89\xa09-.\xce\xa36.\xf0\x90\xb9\xa6\xe2\x89\xa0", false); } // [B1, B3, V3]
11488test { try toAsciiFail("\xd8\xa8\xe2\x89\xa09-.\xce\xa36.\xf0\x90\xb9\xa6\xe2\x89\xa0", true); } // [B1, B3, V3]
471511489test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x836.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3]
11490test { try toAsciiFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x836.\xf0\x90\xb9\xa6\xe2\x89\xa0", false); } // [B1, B3, V3]
11491test { try toAsciiFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x836.\xf0\x90\xb9\xa6\xe2\x89\xa0", true); } // [B1, B3, V3]
471611492test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xcf\x836.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3]
11493test { try toAsciiFail("\xd8\xa8=\xcc\xb89-.\xcf\x836.\xf0\x90\xb9\xa6=\xcc\xb8", false); } // [B1, B3, V3]
11494test { try toAsciiFail("\xd8\xa8=\xcc\xb89-.\xcf\x836.\xf0\x90\xb9\xa6=\xcc\xb8", true); } // [B1, B3, V3]
471711495test { try toUnicodeFail("xn--9--etd0100a.xn--6-zmb.xn--1ch8704g"); } // [B1, B3, V3]
11496test { try toAsciiFail("xn--9--etd0100a.xn--6-zmb.xn--1ch8704g", false); } // [B1, B3, V3]
11497test { try toAsciiFail("xn--9--etd0100a.xn--6-zmb.xn--1ch8704g", true); } // [B1, B3, V3]
471811498test { try toUnicodeFail("xn--9--etd0100a.xn--6-xmb.xn--1ch8704g"); } // [B1, B3, V3]
11499test { try toAsciiFail("xn--9--etd0100a.xn--6-xmb.xn--1ch8704g", false); } // [B1, B3, V3]
11500test { try toAsciiFail("xn--9--etd0100a.xn--6-xmb.xn--1ch8704g", true); } // [B1, B3, V3]
471911501test { try toUnicodeFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xce\xa3\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B3, B5, B6, V3, V7]
11502test { try toAsciiFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xce\xa3\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8", false); } // [B3, B5, B6, V3, V7]
11503test { try toAsciiFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xce\xa3\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8", true); } // [B3, B5, B6, V3, V7]
472011504test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xce\xa3\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B3, B5, B6, V3, V7]
11505test { try toAsciiFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xce\xa3\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0", false); } // [B3, B5, B6, V3, V7]
11506test { try toAsciiFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xce\xa3\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0", true); } // [B3, B5, B6, V3, V7]
472111507test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xcf\x83\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B3, B5, B6, V3, V7]
11508test { try toAsciiFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xcf\x83\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0", false); } // [B3, B5, B6, V3, V7]
11509test { try toAsciiFail("\xd8\xa8\xe2\x89\xa0\xf0\x9d\x9f\xab-.\xcf\x83\xe2\x92\x8d\xf0\x90\xb9\xa6\xe2\x89\xa0", true); } // [B3, B5, B6, V3, V7]
472211510test { try toUnicodeFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xcf\x83\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B3, B5, B6, V3, V7]
11511test { try toAsciiFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xcf\x83\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8", false); } // [B3, B5, B6, V3, V7]
11512test { try toAsciiFail("\xd8\xa8=\xcc\xb8\xf0\x9d\x9f\xab-.\xcf\x83\xe2\x92\x8d\xf0\x90\xb9\xa6=\xcc\xb8", true); } // [B3, B5, B6, V3, V7]
472311513test { try toUnicodeFail("xn--9--etd0100a.xn--4xa887mzpbzz04b"); } // [B3, B5, B6, V3, V7]
11514test { try toAsciiFail("xn--9--etd0100a.xn--4xa887mzpbzz04b", false); } // [B3, B5, B6, V3, V7]
11515test { try toAsciiFail("xn--9--etd0100a.xn--4xa887mzpbzz04b", true); } // [B3, B5, B6, V3, V7]
472411516test { try toUnicodeFail("xn--9--etd0100a.xn--3xa097mzpbzz04b"); } // [B3, B5, B6, V3, V7]
11517test { try toAsciiFail("xn--9--etd0100a.xn--3xa097mzpbzz04b", false); } // [B3, B5, B6, V3, V7]
11518test { try toAsciiFail("xn--9--etd0100a.xn--3xa097mzpbzz04b", true); } // [B3, B5, B6, V3, V7]
472511519test { try toUnicodeFail("\xf2\x89\x9b\xb4.-\xe1\xa1\xa2\xd6\x92\xf0\x9d\xa8\xa0"); } // [V3, V7]
11520test { try toAsciiFail("\xf2\x89\x9b\xb4.-\xe1\xa1\xa2\xd6\x92\xf0\x9d\xa8\xa0", false); } // [V3, V7]
11521test { try toAsciiFail("\xf2\x89\x9b\xb4.-\xe1\xa1\xa2\xd6\x92\xf0\x9d\xa8\xa0", true); } // [V3, V7]
472611522test { try toUnicodeFail("xn--ep37b.xn----hec165lho83b"); } // [V3, V7]
11523test { try toAsciiFail("xn--ep37b.xn----hec165lho83b", false); } // [V3, V7]
11524test { try toAsciiFail("xn--ep37b.xn----hec165lho83b", true); } // [V3, V7]
472711525test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88\xc3\x9f\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7]
11526test { try toAsciiFail("\xdb\x8b\xe2\x92\x88\xc3\x9f\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", false); } // [B2, B3, B6, V3, V7]
11527test { try toAsciiFail("\xdb\x8b\xe2\x92\x88\xc3\x9f\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", true); } // [B2, B3, B6, V3, V7]
472811528test { try toUnicodeFail("\xdb\x8b1.\xc3\x9f\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7]
11529test { try toAsciiFail("\xdb\x8b1.\xc3\x9f\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", false); } // [B6, V3, V7]
11530test { try toAsciiFail("\xdb\x8b1.\xc3\x9f\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", true); } // [B6, V3, V7]
472911531test { try toUnicodeFail("\xdb\x8b1.SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7]
11532test { try toAsciiFail("\xdb\x8b1.SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", false); } // [B6, V3, V7]
11533test { try toAsciiFail("\xdb\x8b1.SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", true); } // [B6, V3, V7]
473011534test { try toUnicodeFail("\xdb\x8b1.ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7]
11535test { try toAsciiFail("\xdb\x8b1.ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", false); } // [B6, V3, V7]
11536test { try toAsciiFail("\xdb\x8b1.ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", true); } // [B6, V3, V7]
473111537test { try toUnicodeFail("\xdb\x8b1.Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7]
11538test { try toAsciiFail("\xdb\x8b1.Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", false); } // [B6, V3, V7]
11539test { try toAsciiFail("\xdb\x8b1.Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", true); } // [B6, V3, V7]
473211540test { try toUnicodeFail("xn--1-cwc.ss.xn----q001f"); } // [B6, V3, V7]
11541test { try toAsciiFail("xn--1-cwc.ss.xn----q001f", false); } // [B6, V3, V7]
11542test { try toAsciiFail("xn--1-cwc.ss.xn----q001f", true); } // [B6, V3, V7]
473311543test { try toUnicodeFail("xn--1-cwc.xn--zca.xn----q001f"); } // [B6, V3, V7]
11544test { try toAsciiFail("xn--1-cwc.xn--zca.xn----q001f", false); } // [B6, V3, V7]
11545test { try toAsciiFail("xn--1-cwc.xn--zca.xn----q001f", true); } // [B6, V3, V7]
473411546test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7]
11547test { try toAsciiFail("\xdb\x8b\xe2\x92\x88SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", false); } // [B2, B3, B6, V3, V7]
11548test { try toAsciiFail("\xdb\x8b\xe2\x92\x88SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", true); } // [B2, B3, B6, V3, V7]
473511549test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7]
11550test { try toAsciiFail("\xdb\x8b\xe2\x92\x88ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", false); } // [B2, B3, B6, V3, V7]
11551test { try toAsciiFail("\xdb\x8b\xe2\x92\x88ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", true); } // [B2, B3, B6, V3, V7]
473611552test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7]
11553test { try toAsciiFail("\xdb\x8b\xe2\x92\x88Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", false); } // [B2, B3, B6, V3, V7]
11554test { try toAsciiFail("\xdb\x8b\xe2\x92\x88Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-", true); } // [B2, B3, B6, V3, V7]
473711555test { try toUnicodeFail("xn--ss-d7d6651a.xn----q001f"); } // [B2, B3, B6, V3, V7]
11556test { try toAsciiFail("xn--ss-d7d6651a.xn----q001f", false); } // [B2, B3, B6, V3, V7]
11557test { try toAsciiFail("xn--ss-d7d6651a.xn----q001f", true); } // [B2, B3, B6, V3, V7]
473811558test { try toUnicodeFail("xn--zca541ato3a.xn----q001f"); } // [B2, B3, B6, V3, V7]
11559test { try toAsciiFail("xn--zca541ato3a.xn----q001f", false); } // [B2, B3, B6, V3, V7]
11560test { try toAsciiFail("xn--zca541ato3a.xn----q001f", true); } // [B2, B3, B6, V3, V7]
473911561test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7]
11562test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d", false); } // [C2, V6, V7]
11563test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d", true); } // [V6, V7]
474011564test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7]
11565test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d", false); } // [C2, V6, V7]
11566test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d", true); } // [V6, V7]
474111567test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
11568test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d", false); } // [C2, V6, V7]
11569test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d", true); } // [V6, V7]
474211570test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7]
11571test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d", false); } // [C2, V6, V7]
11572test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d", true); } // [V6, V7]
474311573test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
11574test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d", false); } // [C2, V6, V7]
11575test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d", true); } // [V6, V7]
474411576test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
11577test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d", false); } // [C2, V6, V7]
11578test { try toAsciiFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d", true); } // [V6, V7]
474511579test { try toUnicodeFail("xn--nu4s.xn--4xa153j7im"); } // [V6, V7]
11580test { try toAsciiFail("xn--nu4s.xn--4xa153j7im", false); } // [V6, V7]
11581test { try toAsciiFail("xn--nu4s.xn--4xa153j7im", true); } // [V6, V7]
474611582test { try toUnicodeFail("xn--nu4s.xn--4xa153jk8cs1q"); } // [C2, V6, V7]
11583test { try toAsciiFail("xn--nu4s.xn--4xa153jk8cs1q", false); } // [C2, V6, V7]
11584test { try toAsciiFail("xn--nu4s.xn--4xa153jk8cs1q", true); } // [C2, V6, V7]
474711585test { try toUnicodeFail("xn--nu4s.xn--3xa353jk8cs1q"); } // [C2, V6, V7]
11586test { try toAsciiFail("xn--nu4s.xn--3xa353jk8cs1q", false); } // [C2, V6, V7]
11587test { try toAsciiFail("xn--nu4s.xn--3xa353jk8cs1q", true); } // [C2, V6, V7]
474811588test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
11589test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d", false); } // [C2, V6, V7]
11590test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d", true); } // [V6, V7]
474911591test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7]
11592test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d", false); } // [C2, V6, V7]
11593test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d", true); } // [V6, V7]
475011594test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
11595test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d", false); } // [C2, V6, V7]
11596test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d", true); } // [V6, V7]
475111597test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
11598test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d", false); } // [C2, V6, V7]
11599test { try toAsciiFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d", true); } // [V6, V7]
475211600test { try toUnicodeFail("xn--nu4s.xn--4xa217dxri"); } // [V6, V7]
11601test { try toAsciiFail("xn--nu4s.xn--4xa217dxri", false); } // [V6, V7]
11602test { try toAsciiFail("xn--nu4s.xn--4xa217dxri", true); } // [V6, V7]
475311603test { try toUnicodeFail("xn--nu4s.xn--4xa217dxriome"); } // [C2, V6, V7]
11604test { try toAsciiFail("xn--nu4s.xn--4xa217dxriome", false); } // [C2, V6, V7]
11605test { try toAsciiFail("xn--nu4s.xn--4xa217dxriome", true); } // [C2, V6, V7]
475411606test { try toUnicodeFail("xn--nu4s.xn--3xa417dxriome"); } // [C2, V6, V7]
11607test { try toAsciiFail("xn--nu4s.xn--3xa417dxriome", false); } // [C2, V6, V7]
11608test { try toAsciiFail("xn--nu4s.xn--3xa417dxriome", true); } // [C2, V6, V7]
475511609test { try toUnicodeFail("\xe2\xbe\x86\xe0\xa3\xa2.\xf0\x9d\x88\xb4"); } // [B1, B5, B6, V7]
11610test { try toAsciiFail("\xe2\xbe\x86\xe0\xa3\xa2.\xf0\x9d\x88\xb4", false); } // [B1, B5, B6, V7]
11611test { try toAsciiFail("\xe2\xbe\x86\xe0\xa3\xa2.\xf0\x9d\x88\xb4", true); } // [B1, B5, B6, V7]
475611612test { try toUnicodeFail("\xe8\x88\x8c\xe0\xa3\xa2.\xf0\x9d\x88\xb4"); } // [B1, B5, B6, V7]
11613test { try toAsciiFail("\xe8\x88\x8c\xe0\xa3\xa2.\xf0\x9d\x88\xb4", false); } // [B1, B5, B6, V7]
11614test { try toAsciiFail("\xe8\x88\x8c\xe0\xa3\xa2.\xf0\x9d\x88\xb4", true); } // [B1, B5, B6, V7]
475711615test { try toUnicodeFail("xn--l0b9413d.xn--kl1h"); } // [B1, B5, B6, V7]
11616test { try toAsciiFail("xn--l0b9413d.xn--kl1h", false); } // [B1, B5, B6, V7]
11617test { try toAsciiFail("xn--l0b9413d.xn--kl1h", true); } // [B1, B5, B6, V7]
475811618test { try toUnicodeFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa0\xe2\x92\x88"); } // [B1, V7]
11619test { try toAsciiFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa0\xe2\x92\x88", false); } // [B1, V7]
11620test { try toAsciiFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa0\xe2\x92\x88", true); } // [B1, V7]
475911621test { try toUnicodeFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa01."); } // [B1]
11622test { try toAsciiFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa01.", false); } // [B1, A4_2]
11623test { try toAsciiFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa01.", true); } // [B1, A4_2]
476011624test { try toUnicodeFail("xn--53ix188et88b.xn--1-h6r."); } // [B1]
11625test { try toAsciiFail("xn--53ix188et88b.xn--1-h6r.", false); } // [B1, A4_2]
11626test { try toAsciiFail("xn--53ix188et88b.xn--1-h6r.", true); } // [B1, A4_2]
476111627test { try toUnicodeFail("xn--53ix188et88b.xn--tsh52w"); } // [B1, V7]
11628test { try toAsciiFail("xn--53ix188et88b.xn--tsh52w", false); } // [B1, V7]
11629test { try toAsciiFail("xn--53ix188et88b.xn--tsh52w", true); } // [B1, V7]
476211630test { try toUnicodeFail("\xe2\x92\x88\xe2\x80\x8c\xea\xab\xac\xef\xb8\x92\xef\xbc\x8e\xe0\xab\x8d"); } // [C1, V6, V7]
11631test { try toAsciiFail("\xe2\x92\x88\xe2\x80\x8c\xea\xab\xac\xef\xb8\x92\xef\xbc\x8e\xe0\xab\x8d", false); } // [C1, V6, V7]
11632test { try toAsciiFail("\xe2\x92\x88\xe2\x80\x8c\xea\xab\xac\xef\xb8\x92\xef\xbc\x8e\xe0\xab\x8d", true); } // [V6, V7]
476311633test { try toUnicodeFail("1.\xe2\x80\x8c\xea\xab\xac\xe3\x80\x82.\xe0\xab\x8d"); } // [C1, V6, X4_2]
11634test { try toAsciiFail("1.\xe2\x80\x8c\xea\xab\xac\xe3\x80\x82.\xe0\xab\x8d", false); } // [C1, V6, A4_2]
11635test { try toAsciiFail("1.\xe2\x80\x8c\xea\xab\xac\xe3\x80\x82.\xe0\xab\x8d", true); } // [V6, A4_2]
476411636test { try toUnicodeFail("1.xn--sv9a..xn--mfc"); } // [V6, X4_2]
11637test { try toAsciiFail("1.xn--sv9a..xn--mfc", false); } // [V6, A4_2]
11638test { try toAsciiFail("1.xn--sv9a..xn--mfc", true); } // [V6, A4_2]
476511639test { try toUnicodeFail("1.xn--0ug7185c..xn--mfc"); } // [C1, V6, X4_2]
11640test { try toAsciiFail("1.xn--0ug7185c..xn--mfc", false); } // [C1, V6, A4_2]
11641test { try toAsciiFail("1.xn--0ug7185c..xn--mfc", true); } // [C1, V6, A4_2]
476611642test { try toUnicodeFail("xn--tsh0720cse8b.xn--mfc"); } // [V6, V7]
11643test { try toAsciiFail("xn--tsh0720cse8b.xn--mfc", false); } // [V6, V7]
11644test { try toAsciiFail("xn--tsh0720cse8b.xn--mfc", true); } // [V6, V7]
476711645test { try toUnicodeFail("xn--0ug78o720myr1c.xn--mfc"); } // [C1, V6, V7]
11646test { try toAsciiFail("xn--0ug78o720myr1c.xn--mfc", false); } // [C1, V6, V7]
11647test { try toAsciiFail("xn--0ug78o720myr1c.xn--mfc", true); } // [C1, V6, V7]
476811648test { try toUnicodeFail("\xe0\xb1\x86\xe3\x80\x82\xe4\xb0\x80\xd9\xa8\xf0\x9e\xad\x85\xf3\xa0\x85\xbc"); } // [B1, B5, B6, V6, V7]
11649test { try toAsciiFail("\xe0\xb1\x86\xe3\x80\x82\xe4\xb0\x80\xd9\xa8\xf0\x9e\xad\x85\xf3\xa0\x85\xbc", false); } // [B1, B5, B6, V6, V7]
11650test { try toAsciiFail("\xe0\xb1\x86\xe3\x80\x82\xe4\xb0\x80\xd9\xa8\xf0\x9e\xad\x85\xf3\xa0\x85\xbc", true); } // [B1, B5, B6, V6, V7]
476911651test { try toUnicodeFail("xn--eqc.xn--hib5476aim6t"); } // [B1, B5, B6, V6, V7]
11652test { try toAsciiFail("xn--eqc.xn--hib5476aim6t", false); } // [B1, B5, B6, V6, V7]
11653test { try toAsciiFail("xn--eqc.xn--hib5476aim6t", true); } // [B1, B5, B6, V6, V7]
477011654test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7]
11655test { try toAsciiFail("\xc3\x9f\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc", false); } // [C2, V6, V7]
11656test { try toAsciiFail("\xc3\x9f\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc", true); } // [V6, V7]
477111657test { try toUnicodeFail("SS\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7]
11658test { try toAsciiFail("SS\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc", false); } // [C2, V6, V7]
11659test { try toAsciiFail("SS\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc", true); } // [V6, V7]
477211660test { try toUnicodeFail("ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7]
11661test { try toAsciiFail("ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc", false); } // [C2, V6, V7]
11662test { try toAsciiFail("ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc", true); } // [V6, V7]
477311663test { try toUnicodeFail("Ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7]
11664test { try toAsciiFail("Ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc", false); } // [C2, V6, V7]
11665test { try toAsciiFail("Ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc", true); } // [V6, V7]
477411666test { try toUnicodeFail("ss.xn--0zf22107b"); } // [V6, V7]
11667test { try toAsciiFail("ss.xn--0zf22107b", false); } // [V6, V7]
11668test { try toAsciiFail("ss.xn--0zf22107b", true); } // [V6, V7]
477511669test { try toUnicodeFail("xn--ss-n1t.xn--0zf22107b"); } // [C2, V6, V7]
11670test { try toAsciiFail("xn--ss-n1t.xn--0zf22107b", false); } // [C2, V6, V7]
11671test { try toAsciiFail("xn--ss-n1t.xn--0zf22107b", true); } // [C2, V6, V7]
477611672test { try toUnicodeFail("xn--zca870n.xn--0zf22107b"); } // [C2, V6, V7]
11673test { try toAsciiFail("xn--zca870n.xn--0zf22107b", false); } // [C2, V6, V7]
11674test { try toAsciiFail("xn--zca870n.xn--0zf22107b", true); } // [C2, V6, V7]
477711675test { try toUnicodeFail("\xf0\x91\x93\x82\xe2\x80\x8c\xe2\x89\xae.\xe2\x89\xae"); } // [V6]
11676test { try toAsciiFail("\xf0\x91\x93\x82\xe2\x80\x8c\xe2\x89\xae.\xe2\x89\xae", false); } // [V6]
11677test { try toAsciiFail("\xf0\x91\x93\x82\xe2\x80\x8c\xe2\x89\xae.\xe2\x89\xae", true); } // [V6]
477811678test { try toUnicodeFail("\xf0\x91\x93\x82\xe2\x80\x8c<\xcc\xb8.<\xcc\xb8"); } // [V6]
11679test { try toAsciiFail("\xf0\x91\x93\x82\xe2\x80\x8c<\xcc\xb8.<\xcc\xb8", false); } // [V6]
11680test { try toAsciiFail("\xf0\x91\x93\x82\xe2\x80\x8c<\xcc\xb8.<\xcc\xb8", true); } // [V6]
477911681test { try toUnicodeFail("xn--gdhz656g.xn--gdh"); } // [V6]
11682test { try toAsciiFail("xn--gdhz656g.xn--gdh", false); } // [V6]
11683test { try toAsciiFail("xn--gdhz656g.xn--gdh", true); } // [V6]
478011684test { try toUnicodeFail("xn--0ugy6glz29a.xn--gdh"); } // [V6]
11685test { try toAsciiFail("xn--0ugy6glz29a.xn--gdh", false); } // [V6]
11686test { try toAsciiFail("xn--0ugy6glz29a.xn--gdh", true); } // [V6]
478111687test { try toUnicodePass("\xf0\x9f\x95\xbc\xef\xbc\x8e\xef\xbe\xa0", "\xf0\x9f\x95\xbc."); }
11688test { try toAsciiFail("\xf0\x9f\x95\xbc\xef\xbc\x8e\xef\xbe\xa0", false); } // [A4_2]
11689test { try toAsciiFail("\xf0\x9f\x95\xbc\xef\xbc\x8e\xef\xbe\xa0", true); } // [A4_2]
478211690test { try toUnicodePass("\xf0\x9f\x95\xbc.\xe1\x85\xa0", "\xf0\x9f\x95\xbc."); }
11691test { try toAsciiFail("\xf0\x9f\x95\xbc.\xe1\x85\xa0", false); } // [A4_2]
11692test { try toAsciiFail("\xf0\x9f\x95\xbc.\xe1\x85\xa0", true); } // [A4_2]
478311693test { try toUnicodePass("xn--my8h.", "\xf0\x9f\x95\xbc."); }
11694test { try toAsciiFail("xn--my8h.", false); } // [A4_2]
11695test { try toAsciiFail("xn--my8h.", true); } // [A4_2]
478411696test { try toUnicodePass("\xf0\x9f\x95\xbc.", "\xf0\x9f\x95\xbc."); }
11697test { try toAsciiFail("\xf0\x9f\x95\xbc.", false); } // [A4_2]
11698test { try toAsciiFail("\xf0\x9f\x95\xbc.", true); } // [A4_2]
478511699test { try toUnicodeFail("xn--my8h.xn--psd"); } // [V7]
11700test { try toAsciiFail("xn--my8h.xn--psd", false); } // [V7]
11701test { try toAsciiFail("xn--my8h.xn--psd", true); } // [V7]
478611702test { try toUnicodeFail("xn--my8h.xn--cl7c"); } // [V7]
11703test { try toAsciiFail("xn--my8h.xn--cl7c", false); } // [V7]
11704test { try toAsciiFail("xn--my8h.xn--cl7c", true); } // [V7]
478711705test { try toUnicodeFail("\xe1\xa1\x94\xef\xb6\x82\xe3\x80\x82\xf1\xb7\x98\x8e"); } // [B5, B6, V7]
11706test { try toAsciiFail("\xe1\xa1\x94\xef\xb6\x82\xe3\x80\x82\xf1\xb7\x98\x8e", false); } // [B5, B6, V7]
11707test { try toAsciiFail("\xe1\xa1\x94\xef\xb6\x82\xe3\x80\x82\xf1\xb7\x98\x8e", true); } // [B5, B6, V7]
478811708test { try toUnicodeFail("\xe1\xa1\x94\xd9\x84\xd8\xad\xd9\x89\xe3\x80\x82\xf1\xb7\x98\x8e"); } // [B5, B6, V7]
11709test { try toAsciiFail("\xe1\xa1\x94\xd9\x84\xd8\xad\xd9\x89\xe3\x80\x82\xf1\xb7\x98\x8e", false); } // [B5, B6, V7]
11710test { try toAsciiFail("\xe1\xa1\x94\xd9\x84\xd8\xad\xd9\x89\xe3\x80\x82\xf1\xb7\x98\x8e", true); } // [B5, B6, V7]
478911711test { try toUnicodeFail("xn--sgb9bq785p.xn--bc31b"); } // [B5, B6, V7]
11712test { try toAsciiFail("xn--sgb9bq785p.xn--bc31b", false); } // [B5, B6, V7]
11713test { try toAsciiFail("xn--sgb9bq785p.xn--bc31b", true); } // [B5, B6, V7]
479011714test { try toUnicodeFail("\xe7\x88\x95\xf2\xb3\x99\x91\xef\xbc\x8e\xf0\x9d\x9f\xb0\xe6\xb0\x97"); } // [V7]
11715test { try toAsciiFail("\xe7\x88\x95\xf2\xb3\x99\x91\xef\xbc\x8e\xf0\x9d\x9f\xb0\xe6\xb0\x97", false); } // [V7]
11716test { try toAsciiFail("\xe7\x88\x95\xf2\xb3\x99\x91\xef\xbc\x8e\xf0\x9d\x9f\xb0\xe6\xb0\x97", true); } // [V7]
479111717test { try toUnicodeFail("\xe7\x88\x95\xf2\xb3\x99\x91.4\xe6\xb0\x97"); } // [V7]
11718test { try toAsciiFail("\xe7\x88\x95\xf2\xb3\x99\x91.4\xe6\xb0\x97", false); } // [V7]
11719test { try toAsciiFail("\xe7\x88\x95\xf2\xb3\x99\x91.4\xe6\xb0\x97", true); } // [V7]
479211720test { try toUnicodeFail("xn--1zxq3199c.xn--4-678b"); } // [V7]
11721test { try toAsciiFail("xn--1zxq3199c.xn--4-678b", false); } // [V7]
11722test { try toAsciiFail("xn--1zxq3199c.xn--4-678b", true); } // [V7]
479311723test { try toUnicodeFail("\xe2\x92\x8b\xf0\x91\x8d\x8d\xe1\x82\xbd-\xef\xbc\x8e\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5"); } // [B1, V3, V7]
11724test { try toAsciiFail("\xe2\x92\x8b\xf0\x91\x8d\x8d\xe1\x82\xbd-\xef\xbc\x8e\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5", false); } // [B1, V3, V7]
11725test { try toAsciiFail("\xe2\x92\x8b\xf0\x91\x8d\x8d\xe1\x82\xbd-\xef\xbc\x8e\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5", true); } // [B1, V3, V7]
479411726test { try toUnicodeFail("4.\xf0\x91\x8d\x8d\xe1\x82\xbd-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5"); } // [B1, B6, V3, V6, V7]
11727test { try toAsciiFail("4.\xf0\x91\x8d\x8d\xe1\x82\xbd-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5", false); } // [B1, B6, V3, V6, V7]
11728test { try toAsciiFail("4.\xf0\x91\x8d\x8d\xe1\x82\xbd-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5", true); } // [B1, B6, V3, V6, V7]
479511729test { try toUnicodeFail("4.\xf0\x91\x8d\x8d\xe2\xb4\x9d-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5"); } // [B1, B6, V3, V6, V7]
11730test { try toAsciiFail("4.\xf0\x91\x8d\x8d\xe2\xb4\x9d-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5", false); } // [B1, B6, V3, V6, V7]
11731test { try toAsciiFail("4.\xf0\x91\x8d\x8d\xe2\xb4\x9d-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5", true); } // [B1, B6, V3, V6, V7]
479611732test { try toUnicodeFail("4.xn----wwsx259f.xn--ddb152b7y23b"); } // [B1, B6, V3, V6, V7]
11733test { try toAsciiFail("4.xn----wwsx259f.xn--ddb152b7y23b", false); } // [B1, B6, V3, V6, V7]
11734test { try toAsciiFail("4.xn----wwsx259f.xn--ddb152b7y23b", true); } // [B1, B6, V3, V6, V7]
479711735test { try toUnicodeFail("\xe2\x92\x8b\xf0\x91\x8d\x8d\xe2\xb4\x9d-\xef\xbc\x8e\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5"); } // [B1, V3, V7]
11736test { try toAsciiFail("\xe2\x92\x8b\xf0\x91\x8d\x8d\xe2\xb4\x9d-\xef\xbc\x8e\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5", false); } // [B1, V3, V7]
11737test { try toAsciiFail("\xe2\x92\x8b\xf0\x91\x8d\x8d\xe2\xb4\x9d-\xef\xbc\x8e\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5", true); } // [B1, V3, V7]
479811738test { try toUnicodeFail("xn----jcp487avl3w.xn--ddb152b7y23b"); } // [B1, V3, V7]
11739test { try toAsciiFail("xn----jcp487avl3w.xn--ddb152b7y23b", false); } // [B1, V3, V7]
11740test { try toAsciiFail("xn----jcp487avl3w.xn--ddb152b7y23b", true); } // [B1, V3, V7]
479911741test { try toUnicodeFail("4.xn----t1g9869q.xn--ddb152b7y23b"); } // [B1, B6, V3, V6, V7]
11742test { try toAsciiFail("4.xn----t1g9869q.xn--ddb152b7y23b", false); } // [B1, B6, V3, V6, V7]
11743test { try toAsciiFail("4.xn----t1g9869q.xn--ddb152b7y23b", true); } // [B1, B6, V3, V6, V7]
480011744test { try toUnicodeFail("xn----t1g323mnk9t.xn--ddb152b7y23b"); } // [B1, V3, V7]
11745test { try toAsciiFail("xn----t1g323mnk9t.xn--ddb152b7y23b", false); } // [B1, V3, V7]
11746test { try toAsciiFail("xn----t1g323mnk9t.xn--ddb152b7y23b", true); } // [B1, V3, V7]
480111747test { try toUnicodeFail("\xf3\x9e\x9d\x83\xe3\x80\x82\xf2\x91\x86\x83\xf1\x89\xa2\x97--"); } // [V2, V3, V7]
11748test { try toAsciiFail("\xf3\x9e\x9d\x83\xe3\x80\x82\xf2\x91\x86\x83\xf1\x89\xa2\x97--", false); } // [V2, V3, V7]
11749test { try toAsciiFail("\xf3\x9e\x9d\x83\xe3\x80\x82\xf2\x91\x86\x83\xf1\x89\xa2\x97--", true); } // [V2, V3, V7]
480211750test { try toUnicodeFail("xn--2y75e.xn-----1l15eer88n"); } // [V2, V3, V7]
11751test { try toAsciiFail("xn--2y75e.xn-----1l15eer88n", false); } // [V2, V3, V7]
11752test { try toAsciiFail("xn--2y75e.xn-----1l15eer88n", true); } // [V2, V3, V7]
480311753test { try toUnicodeFail("\xe2\x80\x8d\xdf\x9f\xef\xbd\xa1\xe2\x80\x8c\xea\xaf\xad"); } // [B1, C1, C2]
11754test { try toAsciiFail("\xe2\x80\x8d\xdf\x9f\xef\xbd\xa1\xe2\x80\x8c\xea\xaf\xad", false); } // [B1, C1, C2]
11755test { try toAsciiFail("\xe2\x80\x8d\xdf\x9f\xef\xbd\xa1\xe2\x80\x8c\xea\xaf\xad", true); } // [B1, V6]
480411756test { try toUnicodeFail("\xe2\x80\x8d\xdf\x9f\xe3\x80\x82\xe2\x80\x8c\xea\xaf\xad"); } // [B1, C1, C2]
11757test { try toAsciiFail("\xe2\x80\x8d\xdf\x9f\xe3\x80\x82\xe2\x80\x8c\xea\xaf\xad", false); } // [B1, C1, C2]
11758test { try toAsciiFail("\xe2\x80\x8d\xdf\x9f\xe3\x80\x82\xe2\x80\x8c\xea\xaf\xad", true); } // [B1, V6]
480511759test { try toUnicodeFail("xn--6sb.xn--429a"); } // [B1, V6]
11760test { try toAsciiFail("xn--6sb.xn--429a", false); } // [B1, V6]
11761test { try toAsciiFail("xn--6sb.xn--429a", true); } // [B1, V6]
480611762test { try toUnicodeFail("xn--6sb394j.xn--0ug1126c"); } // [B1, C1, C2]
11763test { try toAsciiFail("xn--6sb394j.xn--0ug1126c", false); } // [B1, C1, C2]
11764test { try toAsciiFail("xn--6sb394j.xn--0ug1126c", true); } // [B1, C1, C2]
480711765test { try toUnicodeFail("\xf0\x9e\xae\xbd\xdf\xbf\xe0\xa1\x8e\xef\xbd\xa1\xe1\xa2\x8d\xf2\x9d\xb9\x81\xf0\x90\xab\x98"); } // [B5, B6, V7]
11766test { try toAsciiFail("\xf0\x9e\xae\xbd\xdf\xbf\xe0\xa1\x8e\xef\xbd\xa1\xe1\xa2\x8d\xf2\x9d\xb9\x81\xf0\x90\xab\x98", false); } // [B5, B6, V7]
11767test { try toAsciiFail("\xf0\x9e\xae\xbd\xdf\xbf\xe0\xa1\x8e\xef\xbd\xa1\xe1\xa2\x8d\xf2\x9d\xb9\x81\xf0\x90\xab\x98", true); } // [B5, B6, V7]
480811768test { try toUnicodeFail("\xf0\x9e\xae\xbd\xdf\xbf\xe0\xa1\x8e\xe3\x80\x82\xe1\xa2\x8d\xf2\x9d\xb9\x81\xf0\x90\xab\x98"); } // [B5, B6, V7]
11769test { try toAsciiFail("\xf0\x9e\xae\xbd\xdf\xbf\xe0\xa1\x8e\xe3\x80\x82\xe1\xa2\x8d\xf2\x9d\xb9\x81\xf0\x90\xab\x98", false); } // [B5, B6, V7]
11770test { try toAsciiFail("\xf0\x9e\xae\xbd\xdf\xbf\xe0\xa1\x8e\xe3\x80\x82\xe1\xa2\x8d\xf2\x9d\xb9\x81\xf0\x90\xab\x98", true); } // [B5, B6, V7]
480911771test { try toUnicodeFail("xn--3tb2nz468k.xn--69e8615j5rn5d"); } // [B5, B6, V7]
11772test { try toAsciiFail("xn--3tb2nz468k.xn--69e8615j5rn5d", false); } // [B5, B6, V7]
11773test { try toAsciiFail("xn--3tb2nz468k.xn--69e8615j5rn5d", true); } // [B5, B6, V7]
481011774test { try toUnicodeFail("\xdb\xad\xf0\x9e\xba\x8c\xf0\x91\x84\x9a\xe1\x9c\x94.\xea\xa1\x9e\xe0\xa2\xb7"); } // [B1, B5, B6, V6]
11775test { try toAsciiFail("\xdb\xad\xf0\x9e\xba\x8c\xf0\x91\x84\x9a\xe1\x9c\x94.\xea\xa1\x9e\xe0\xa2\xb7", false); } // [B1, B5, B6, V6]
11776test { try toAsciiFail("\xdb\xad\xf0\x9e\xba\x8c\xf0\x91\x84\x9a\xe1\x9c\x94.\xea\xa1\x9e\xe0\xa2\xb7", true); } // [B1, B5, B6, V6]
481111777test { try toUnicodeFail("\xdb\xad\xd9\x85\xf0\x91\x84\x9a\xe1\x9c\x94.\xea\xa1\x9e\xe0\xa2\xb7"); } // [B1, B5, B6, V6]
11778test { try toAsciiFail("\xdb\xad\xd9\x85\xf0\x91\x84\x9a\xe1\x9c\x94.\xea\xa1\x9e\xe0\xa2\xb7", false); } // [B1, B5, B6, V6]
11779test { try toAsciiFail("\xdb\xad\xd9\x85\xf0\x91\x84\x9a\xe1\x9c\x94.\xea\xa1\x9e\xe0\xa2\xb7", true); } // [B1, B5, B6, V6]
481211780test { try toUnicodeFail("xn--hhb94ag41b739u.xn--dzb5582f"); } // [B1, B5, B6, V6]
11781test { try toAsciiFail("xn--hhb94ag41b739u.xn--dzb5582f", false); } // [B1, B5, B6, V6]
11782test { try toAsciiFail("xn--hhb94ag41b739u.xn--dzb5582f", true); } // [B1, B5, B6, V6]
481311783test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x82\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11784test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x82\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11785test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x82\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
481411786test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x82\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11787test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x82\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11788test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x82\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
481511789test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x82\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11790test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x82\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11791test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x82\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
481611792test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x82\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11793test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x82\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11794test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x82\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
481711795test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xce\xa3"); } // [B5, B6, V7]
11796test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xce\xa3", false); } // [B5, B6, V7]
11797test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xce\xa3", true); } // [B5, B6, V7]
481811798test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xce\xa3"); } // [B5, B6, V7]
11799test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xce\xa3", false); } // [B5, B6, V7]
11800test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xce\xa3", true); } // [B5, B6, V7]
481911801test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x83"); } // [B5, B6, V7]
11802test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x83", false); } // [B5, B6, V7]
11803test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x83", true); } // [B5, B6, V7]
482011804test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x83"); } // [B5, B6, V7]
11805test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x83", false); } // [B5, B6, V7]
11806test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x83", true); } // [B5, B6, V7]
482111807test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x83"); } // [B5, B6, V7]
11808test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x83", false); } // [B5, B6, V7]
11809test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x83", true); } // [B5, B6, V7]
482211810test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x83"); } // [B5, B6, V7]
11811test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x83", false); } // [B5, B6, V7]
11812test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x83", true); } // [B5, B6, V7]
482311813test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--4xaa21q"); } // [B5, B6, V7]
11814test { try toAsciiFail("xn--3sb7483hoyvbbe76g.xn--4xaa21q", false); } // [B5, B6, V7]
11815test { try toAsciiFail("xn--3sb7483hoyvbbe76g.xn--4xaa21q", true); } // [B5, B6, V7]
482411816test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11817test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11818test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
482511819test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11820test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11821test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xce\xa3\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
482611822test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11823test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11824test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
482711825test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11826test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11827test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xe3\x80\x82\xcf\x83\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
482811828test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--3xab31q"); } // [B5, B6, V7]
11829test { try toAsciiFail("xn--3sb7483hoyvbbe76g.xn--3xab31q", false); } // [B5, B6, V7]
11830test { try toAsciiFail("xn--3sb7483hoyvbbe76g.xn--3xab31q", true); } // [B5, B6, V7]
482911831test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--3xaa51q"); } // [B5, B6, V7]
11832test { try toAsciiFail("xn--3sb7483hoyvbbe76g.xn--3xaa51q", false); } // [B5, B6, V7]
11833test { try toAsciiFail("xn--3sb7483hoyvbbe76g.xn--3xaa51q", true); } // [B5, B6, V7]
483011834test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xce\xa3"); } // [B5, B6, V7]
11835test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xce\xa3", false); } // [B5, B6, V7]
11836test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xce\xa3", true); } // [B5, B6, V7]
483111837test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xce\xa3"); } // [B5, B6, V7]
11838test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xce\xa3", false); } // [B5, B6, V7]
11839test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xce\xa3", true); } // [B5, B6, V7]
483211840test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x83"); } // [B5, B6, V7]
11841test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x83", false); } // [B5, B6, V7]
11842test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x83", true); } // [B5, B6, V7]
483311843test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x83"); } // [B5, B6, V7]
11844test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x83", false); } // [B5, B6, V7]
11845test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x83", true); } // [B5, B6, V7]
483411846test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x83"); } // [B5, B6, V7]
11847test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x83", false); } // [B5, B6, V7]
11848test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x83", true); } // [B5, B6, V7]
483511849test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x83"); } // [B5, B6, V7]
11850test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x83", false); } // [B5, B6, V7]
11851test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x83", true); } // [B5, B6, V7]
483611852test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11853test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11854test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
483711855test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11856test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11857test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xce\xa3\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
483811858test { try toUnicodeFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11859test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11860test { try toAsciiFail("\xf1\xbb\x82\xb5\xed\x82\x83\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
483911861test { try toUnicodeFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x82"); } // [B5, B6, V7]
11862test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x82", false); } // [B5, B6, V7]
11863test { try toAsciiFail("\xf1\xbb\x82\xb5\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xbe\xf0\x91\x98\xb6\xdf\x9c\xef\xbd\xa1\xcf\x83\xd8\xbc\xcf\x82", true); } // [B5, B6, V7]
484011864test { try toUnicodeFail("\xe8\x94\xb0\xe3\x80\x82\xf3\xa0\x81\xb9\xe0\xa3\x9d-\xf0\x91\x88\xb5"); } // [V7]
11865test { try toAsciiFail("\xe8\x94\xb0\xe3\x80\x82\xf3\xa0\x81\xb9\xe0\xa3\x9d-\xf0\x91\x88\xb5", false); } // [V7]
11866test { try toAsciiFail("\xe8\x94\xb0\xe3\x80\x82\xf3\xa0\x81\xb9\xe0\xa3\x9d-\xf0\x91\x88\xb5", true); } // [V7]
484111867test { try toUnicodeFail("xn--sz1a.xn----mrd9984r3dl0i"); } // [V7]
11868test { try toAsciiFail("xn--sz1a.xn----mrd9984r3dl0i", false); } // [V7]
11869test { try toAsciiFail("xn--sz1a.xn----mrd9984r3dl0i", true); } // [V7]
484211870test { try toUnicodePass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "\xcf\x82\xe2\xb4\xa5.\xdd\x9a"); }
484311871test { try toAsciiPass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "xn--3xa403s.xn--epb", false); }
484411872test { try toAsciiPass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "xn--4xa203s.xn--epb", true); }
......@@ -4873,28 +11901,56 @@ test { try toUnicodePass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "\xcf\x82\xe2\xb4\xa5.
487311901test { try toAsciiPass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "xn--3xa403s.xn--epb", false); }
487411902test { try toAsciiPass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "xn--4xa203s.xn--epb", true); }
487511903test { try toUnicodeFail("xn--4xa477d.xn--epb"); } // [V7]
11904test { try toAsciiFail("xn--4xa477d.xn--epb", false); } // [V7]
11905test { try toAsciiFail("xn--4xa477d.xn--epb", true); } // [V7]
487611906test { try toUnicodeFail("xn--3xa677d.xn--epb"); } // [V7]
11907test { try toAsciiFail("xn--3xa677d.xn--epb", false); } // [V7]
11908test { try toAsciiFail("xn--3xa677d.xn--epb", true); } // [V7]
487711909test { try toUnicodeFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2"); } // [B1, V6, V7]
11910test { try toAsciiFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2", false); } // [B1, V6, V7]
11911test { try toAsciiFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2", true); } // [B1, V6, V7]
487811912test { try toUnicodeFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93.\xe1\xad\xb2"); } // [B1, V6, V7]
11913test { try toAsciiFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93.\xe1\xad\xb2", false); } // [B1, V6, V7]
11914test { try toAsciiFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93.\xe1\xad\xb2", true); } // [B1, V6, V7]
487911915test { try toUnicodeFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93.\xe1\xad\xb2"); } // [B1, V6, V7]
11916test { try toAsciiFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93.\xe1\xad\xb2", false); } // [B1, V6, V7]
11917test { try toAsciiFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93.\xe1\xad\xb2", true); } // [B1, V6, V7]
488011918test { try toUnicodeFail("xn--lqc478nlr02a.xn--dwf"); } // [B1, V6, V7]
11919test { try toAsciiFail("xn--lqc478nlr02a.xn--dwf", false); } // [B1, V6, V7]
11920test { try toAsciiFail("xn--lqc478nlr02a.xn--dwf", true); } // [B1, V6, V7]
488111921test { try toUnicodeFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2"); } // [B1, V6, V7]
11922test { try toAsciiFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2", false); } // [B1, V6, V7]
11923test { try toAsciiFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2", true); } // [B1, V6, V7]
488211924test { try toUnicodeFail("xn--lqc64t7t26c.xn--dwf"); } // [B1, V6, V7]
11925test { try toAsciiFail("xn--lqc64t7t26c.xn--dwf", false); } // [B1, V6, V7]
11926test { try toAsciiFail("xn--lqc64t7t26c.xn--dwf", true); } // [B1, V6, V7]
488311927test { try toUnicodeFail("\xe2\xae\xb7\xe2\x89\xae\xf1\x8e\x88\xb4\xf3\xa0\x84\x9f\xe3\x80\x82\xf0\x90\xa0\x84"); } // [B1, V7]
11928test { try toAsciiFail("\xe2\xae\xb7\xe2\x89\xae\xf1\x8e\x88\xb4\xf3\xa0\x84\x9f\xe3\x80\x82\xf0\x90\xa0\x84", false); } // [B1, V7]
11929test { try toAsciiFail("\xe2\xae\xb7\xe2\x89\xae\xf1\x8e\x88\xb4\xf3\xa0\x84\x9f\xe3\x80\x82\xf0\x90\xa0\x84", true); } // [B1, V7]
488411930test { try toUnicodeFail("\xe2\xae\xb7<\xcc\xb8\xf1\x8e\x88\xb4\xf3\xa0\x84\x9f\xe3\x80\x82\xf0\x90\xa0\x84"); } // [B1, V7]
11931test { try toAsciiFail("\xe2\xae\xb7<\xcc\xb8\xf1\x8e\x88\xb4\xf3\xa0\x84\x9f\xe3\x80\x82\xf0\x90\xa0\x84", false); } // [B1, V7]
11932test { try toAsciiFail("\xe2\xae\xb7<\xcc\xb8\xf1\x8e\x88\xb4\xf3\xa0\x84\x9f\xe3\x80\x82\xf0\x90\xa0\x84", true); } // [B1, V7]
488511933test { try toUnicodeFail("xn--gdh877a3513h.xn--pc9c"); } // [B1, V7]
11934test { try toAsciiFail("xn--gdh877a3513h.xn--pc9c", false); } // [B1, V7]
11935test { try toAsciiFail("xn--gdh877a3513h.xn--pc9c", true); } // [B1, V7]
488611936test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
488711937test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
11938test { try toAsciiFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", false); } // [B1, C1, C2]
488811939test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
488911940test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
11941test { try toAsciiFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", false); } // [B1, C1, C2]
489011942test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
489111943test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
11944test { try toAsciiFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", false); } // [B1, C1, C2]
489211945test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
489311946test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
11947test { try toAsciiFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", false); } // [B1, C1, C2]
489411948test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
489511949test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
11950test { try toAsciiFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", false); } // [B1, C1, C2]
489611951test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
489711952test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
11953test { try toAsciiFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", false); } // [B1, C1, C2]
489811954test { try toUnicodePass("xn--vkb.xn--08e172a", "\xda\xbc.\xe1\xba\x8f\xe1\xa1\xa4"); }
489911955test { try toAsciiPass("xn--vkb.xn--08e172a", "xn--vkb.xn--08e172a", false); }
490011956test { try toAsciiPass("xn--vkb.xn--08e172a", "xn--vkb.xn--08e172a", true); }
......@@ -4911,37 +11967,83 @@ test { try toUnicodePass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "\xda\xbc.\xe1\xba
491111967test { try toAsciiPass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "xn--vkb.xn--08e172a", false); }
491211968test { try toAsciiPass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
491311969test { try toUnicodeFail("xn--vkb.xn--08e172ax6aca"); } // [B1, C1, C2]
11970test { try toAsciiFail("xn--vkb.xn--08e172ax6aca", false); } // [B1, C1, C2]
11971test { try toAsciiFail("xn--vkb.xn--08e172ax6aca", true); } // [B1, C1, C2]
491411972test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
491511973test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
11974test { try toAsciiFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", false); } // [B1, C1, C2]
491611975test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
491711976test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
11977test { try toAsciiFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", false); } // [B1, C1, C2]
491811978test { try toUnicodeFail("\xf0\x90\xb9\xb9\xf0\x91\xb2\x9b\xe3\x80\x82\xf1\x91\x82\x90\xe0\xb7\x8a"); } // [B1, V7]
11979test { try toAsciiFail("\xf0\x90\xb9\xb9\xf0\x91\xb2\x9b\xe3\x80\x82\xf1\x91\x82\x90\xe0\xb7\x8a", false); } // [B1, V7]
11980test { try toAsciiFail("\xf0\x90\xb9\xb9\xf0\x91\xb2\x9b\xe3\x80\x82\xf1\x91\x82\x90\xe0\xb7\x8a", true); } // [B1, V7]
491911981test { try toUnicodeFail("xn--xo0dg5v.xn--h1c39876d"); } // [B1, V7]
11982test { try toAsciiFail("xn--xo0dg5v.xn--h1c39876d", false); } // [B1, V7]
11983test { try toAsciiFail("xn--xo0dg5v.xn--h1c39876d", true); } // [B1, V7]
492011984test { try toUnicodeFail("-\xe2\x89\xa0\xf0\x91\x88\xb5\xef\xbd\xa1\xe5\xb5\x95\xef\xbb\xb1\xdb\xb4\xea\xa5\x93"); } // [B1, B5, V3]
11985test { try toAsciiFail("-\xe2\x89\xa0\xf0\x91\x88\xb5\xef\xbd\xa1\xe5\xb5\x95\xef\xbb\xb1\xdb\xb4\xea\xa5\x93", false); } // [B1, B5, V3]
11986test { try toAsciiFail("-\xe2\x89\xa0\xf0\x91\x88\xb5\xef\xbd\xa1\xe5\xb5\x95\xef\xbb\xb1\xdb\xb4\xea\xa5\x93", true); } // [B1, B5, V3]
492111987test { try toUnicodeFail("-=\xcc\xb8\xf0\x91\x88\xb5\xef\xbd\xa1\xe5\xb5\x95\xef\xbb\xb1\xdb\xb4\xea\xa5\x93"); } // [B1, B5, V3]
11988test { try toAsciiFail("-=\xcc\xb8\xf0\x91\x88\xb5\xef\xbd\xa1\xe5\xb5\x95\xef\xbb\xb1\xdb\xb4\xea\xa5\x93", false); } // [B1, B5, V3]
11989test { try toAsciiFail("-=\xcc\xb8\xf0\x91\x88\xb5\xef\xbd\xa1\xe5\xb5\x95\xef\xbb\xb1\xdb\xb4\xea\xa5\x93", true); } // [B1, B5, V3]
492211990test { try toUnicodeFail("-\xe2\x89\xa0\xf0\x91\x88\xb5\xe3\x80\x82\xe5\xb5\x95\xd9\x8a\xdb\xb4\xea\xa5\x93"); } // [B1, B5, V3]
11991test { try toAsciiFail("-\xe2\x89\xa0\xf0\x91\x88\xb5\xe3\x80\x82\xe5\xb5\x95\xd9\x8a\xdb\xb4\xea\xa5\x93", false); } // [B1, B5, V3]
11992test { try toAsciiFail("-\xe2\x89\xa0\xf0\x91\x88\xb5\xe3\x80\x82\xe5\xb5\x95\xd9\x8a\xdb\xb4\xea\xa5\x93", true); } // [B1, B5, V3]
492311993test { try toUnicodeFail("-=\xcc\xb8\xf0\x91\x88\xb5\xe3\x80\x82\xe5\xb5\x95\xd9\x8a\xdb\xb4\xea\xa5\x93"); } // [B1, B5, V3]
11994test { try toAsciiFail("-=\xcc\xb8\xf0\x91\x88\xb5\xe3\x80\x82\xe5\xb5\x95\xd9\x8a\xdb\xb4\xea\xa5\x93", false); } // [B1, B5, V3]
11995test { try toAsciiFail("-=\xcc\xb8\xf0\x91\x88\xb5\xe3\x80\x82\xe5\xb5\x95\xd9\x8a\xdb\xb4\xea\xa5\x93", true); } // [B1, B5, V3]
492411996test { try toUnicodeFail("xn----ufo4749h.xn--mhb45a235sns3c"); } // [B1, B5, V3]
11997test { try toAsciiFail("xn----ufo4749h.xn--mhb45a235sns3c", false); } // [B1, B5, V3]
11998test { try toAsciiFail("xn----ufo4749h.xn--mhb45a235sns3c", true); } // [B1, B5, V3]
492511999test { try toUnicodeFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae\xef\xbc\x8e\xdb\x81\xe2\x80\x8d\xe2\x89\xaf\xe2\x80\x8d"); } // [B1, B3, C1, C2, V7]
12000test { try toAsciiFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae\xef\xbc\x8e\xdb\x81\xe2\x80\x8d\xe2\x89\xaf\xe2\x80\x8d", false); } // [B1, B3, C1, C2, V7]
12001test { try toAsciiFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae\xef\xbc\x8e\xdb\x81\xe2\x80\x8d\xe2\x89\xaf\xe2\x80\x8d", true); } // [B3, B5, B6, V7]
492612002test { try toUnicodeFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae\xef\xbc\x8e\xdb\x81\xe2\x80\x8d>\xcc\xb8\xe2\x80\x8d"); } // [B1, B3, C1, C2, V7]
12003test { try toAsciiFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae\xef\xbc\x8e\xdb\x81\xe2\x80\x8d>\xcc\xb8\xe2\x80\x8d", false); } // [B1, B3, C1, C2, V7]
12004test { try toAsciiFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae\xef\xbc\x8e\xdb\x81\xe2\x80\x8d>\xcc\xb8\xe2\x80\x8d", true); } // [B3, B5, B6, V7]
492712005test { try toUnicodeFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae.\xdb\x81\xe2\x80\x8d\xe2\x89\xaf\xe2\x80\x8d"); } // [B1, B3, C1, C2, V7]
12006test { try toAsciiFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae.\xdb\x81\xe2\x80\x8d\xe2\x89\xaf\xe2\x80\x8d", false); } // [B1, B3, C1, C2, V7]
12007test { try toAsciiFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae.\xdb\x81\xe2\x80\x8d\xe2\x89\xaf\xe2\x80\x8d", true); } // [B3, B5, B6, V7]
492812008test { try toUnicodeFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae.\xdb\x81\xe2\x80\x8d>\xcc\xb8\xe2\x80\x8d"); } // [B1, B3, C1, C2, V7]
12009test { try toAsciiFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae.\xdb\x81\xe2\x80\x8d>\xcc\xb8\xe2\x80\x8d", false); } // [B1, B3, C1, C2, V7]
12010test { try toAsciiFail("\xe2\x80\x8c\xf1\x8d\xb8\xb0\xf0\x90\xb9\xb6\xdd\xae.\xdb\x81\xe2\x80\x8d>\xcc\xb8\xe2\x80\x8d", true); } // [B3, B5, B6, V7]
492912011test { try toUnicodeFail("xn--ypb5875khz9y.xn--0kb682l"); } // [B3, B5, B6, V7]
12012test { try toAsciiFail("xn--ypb5875khz9y.xn--0kb682l", false); } // [B3, B5, B6, V7]
12013test { try toAsciiFail("xn--ypb5875khz9y.xn--0kb682l", true); } // [B3, B5, B6, V7]
493012014test { try toUnicodeFail("xn--ypb717jrx2o7v94a.xn--0kb660ka35v"); } // [B1, B3, C1, C2, V7]
12015test { try toAsciiFail("xn--ypb717jrx2o7v94a.xn--0kb660ka35v", false); } // [B1, B3, C1, C2, V7]
12016test { try toAsciiFail("xn--ypb717jrx2o7v94a.xn--0kb660ka35v", true); } // [B1, B3, C1, C2, V7]
493112017test { try toUnicodeFail("\xe2\x89\xae\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1]
12018test { try toAsciiFail("\xe2\x89\xae\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94", false); } // [B1]
12019test { try toAsciiFail("\xe2\x89\xae\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94", true); } // [B1]
493212020test { try toUnicodeFail("<\xcc\xb8\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1]
12021test { try toAsciiFail("<\xcc\xb8\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94", false); } // [B1]
12022test { try toAsciiFail("<\xcc\xb8\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94", true); } // [B1]
493312023test { try toUnicodeFail("\xe2\x89\xae.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1]
12024test { try toAsciiFail("\xe2\x89\xae.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94", false); } // [B1]
12025test { try toAsciiFail("\xe2\x89\xae.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94", true); } // [B1]
493412026test { try toUnicodeFail("<\xcc\xb8.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1]
12027test { try toAsciiFail("<\xcc\xb8.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94", false); } // [B1]
12028test { try toAsciiFail("<\xcc\xb8.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94", true); } // [B1]
493512029test { try toUnicodeFail("xn--gdh.xn--kwb4643k"); } // [B1]
12030test { try toAsciiFail("xn--gdh.xn--kwb4643k", false); } // [B1]
12031test { try toAsciiFail("xn--gdh.xn--kwb4643k", true); } // [B1]
493612032test { try toUnicodeFail("xn--gdh.xn--kwb589e217p"); } // [B1, V6, V7]
12033test { try toAsciiFail("xn--gdh.xn--kwb589e217p", false); } // [B1, V6, V7]
12034test { try toAsciiFail("xn--gdh.xn--kwb589e217p", true); } // [B1, V6, V7]
493712035test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn--0kjya", true); }
493812036test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe1\x82\xb5"); } // [B3, C2]
12037test { try toAsciiFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe1\x82\xb5", false); } // [B3, C2]
493912038test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn--0kjya", true); }
494012039test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe1\x82\xb5"); } // [B3, C2]
12040test { try toAsciiFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe1\x82\xb5", false); } // [B3, C2]
494112041test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe2\xb4\x89\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
494212042test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe2\xb4\x89\xe2\xb4\x95"); } // [B3, C2]
12043test { try toAsciiFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe2\xb4\x89\xe2\xb4\x95", false); } // [B3, C2]
494312044test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
494412045test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe2\xb4\x95"); } // [B3, C2]
12046test { try toAsciiFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe2\xb4\x95", false); } // [B3, C2]
494512047test { try toUnicodePass("xn--pt9c.xn--0kjya", "\xf0\x90\xa9\x97.\xe2\xb4\x89\xe2\xb4\x95"); }
494612048test { try toAsciiPass("xn--pt9c.xn--0kjya", "xn--pt9c.xn--0kjya", false); }
494712049test { try toAsciiPass("xn--pt9c.xn--0kjya", "xn--pt9c.xn--0kjya", true); }
......@@ -4955,114 +12057,326 @@ test { try toUnicodePass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "\xf0\x90\
495512057test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", false); }
495612058test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
495712059test { try toUnicodeFail("xn--1ug4933g.xn--0kjya"); } // [B3, C2]
12060test { try toAsciiFail("xn--1ug4933g.xn--0kjya", false); } // [B3, C2]
12061test { try toAsciiFail("xn--1ug4933g.xn--0kjya", true); } // [B3, C2]
495812062test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe2\xb4\x89\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
495912063test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe2\xb4\x89\xe2\xb4\x95"); } // [B3, C2]
12064test { try toAsciiFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe2\xb4\x89\xe2\xb4\x95", false); } // [B3, C2]
496012065test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
496112066test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe2\xb4\x95"); } // [B3, C2]
12067test { try toAsciiFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe2\xb4\x95", false); } // [B3, C2]
496212068test { try toUnicodeFail("xn--pt9c.xn--hnd666l"); } // [V7]
12069test { try toAsciiFail("xn--pt9c.xn--hnd666l", false); } // [V7]
12070test { try toAsciiFail("xn--pt9c.xn--hnd666l", true); } // [V7]
496312071test { try toUnicodeFail("xn--1ug4933g.xn--hnd666l"); } // [B3, C2, V7]
12072test { try toAsciiFail("xn--1ug4933g.xn--hnd666l", false); } // [B3, C2, V7]
12073test { try toAsciiFail("xn--1ug4933g.xn--hnd666l", true); } // [B3, C2, V7]
496412074test { try toUnicodeFail("xn--pt9c.xn--hndy"); } // [V7]
12075test { try toAsciiFail("xn--pt9c.xn--hndy", false); } // [V7]
12076test { try toAsciiFail("xn--pt9c.xn--hndy", true); } // [V7]
496512077test { try toUnicodeFail("xn--1ug4933g.xn--hndy"); } // [B3, C2, V7]
12078test { try toAsciiFail("xn--1ug4933g.xn--hndy", false); } // [B3, C2, V7]
12079test { try toAsciiFail("xn--1ug4933g.xn--hndy", true); } // [B3, C2, V7]
496612080test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x84\xa4\xef\xbc\x8e\xcc\xae\xf3\x95\xa8\x91\xe0\xa7\x82"); } // [C1, V6, V7]
12081test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x84\xa4\xef\xbc\x8e\xcc\xae\xf3\x95\xa8\x91\xe0\xa7\x82", false); } // [C1, V6, V7]
12082test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x84\xa4\xef\xbc\x8e\xcc\xae\xf3\x95\xa8\x91\xe0\xa7\x82", true); } // [V6, V7]
496712083test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x84\xa4.\xcc\xae\xf3\x95\xa8\x91\xe0\xa7\x82"); } // [C1, V6, V7]
12084test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x84\xa4.\xcc\xae\xf3\x95\xa8\x91\xe0\xa7\x82", false); } // [C1, V6, V7]
12085test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x84\xa4.\xcc\xae\xf3\x95\xa8\x91\xe0\xa7\x82", true); } // [V6, V7]
496812086test { try toUnicodeFail("xn--1fk.xn--vta284a9o563a"); } // [V6, V7]
12087test { try toAsciiFail("xn--1fk.xn--vta284a9o563a", false); } // [V6, V7]
12088test { try toAsciiFail("xn--1fk.xn--vta284a9o563a", true); } // [V6, V7]
496912089test { try toUnicodeFail("xn--0uga242k.xn--vta284a9o563a"); } // [C1, V6, V7]
12090test { try toAsciiFail("xn--0uga242k.xn--vta284a9o563a", false); } // [C1, V6, V7]
12091test { try toAsciiFail("xn--0uga242k.xn--vta284a9o563a", true); } // [C1, V6, V7]
497012092test { try toUnicodeFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7"); } // [B1, C1, V3]
12093test { try toAsciiFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7", false); } // [B1, C1, V3]
12094test { try toAsciiFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7", true); } // [B1, V3]
497112095test { try toUnicodeFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7"); } // [B1, C1, V3]
12096test { try toAsciiFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7", false); } // [B1, C1, V3]
12097test { try toAsciiFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7", true); } // [B1, V3]
497212098test { try toUnicodeFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97"); } // [B1, C1, V3]
12099test { try toAsciiFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97", false); } // [B1, C1, V3]
12100test { try toAsciiFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97", true); } // [B1, V3]
497312101test { try toUnicodeFail("xn--v97c.xn----lws0526f"); } // [B1, V3]
12102test { try toAsciiFail("xn--v97c.xn----lws0526f", false); } // [B1, V3]
12103test { try toAsciiFail("xn--v97c.xn----lws0526f", true); } // [B1, V3]
497412104test { try toUnicodeFail("xn--v97c.xn----sgnv20du99s"); } // [B1, C1, V3]
12105test { try toAsciiFail("xn--v97c.xn----sgnv20du99s", false); } // [B1, C1, V3]
12106test { try toAsciiFail("xn--v97c.xn----sgnv20du99s", true); } // [B1, C1, V3]
497512107test { try toUnicodeFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97"); } // [B1, C1, V3]
12108test { try toAsciiFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97", false); } // [B1, C1, V3]
12109test { try toAsciiFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97", true); } // [B1, V3]
497612110test { try toUnicodeFail("xn--v97c.xn----i1g2513q"); } // [B1, V3, V7]
12111test { try toAsciiFail("xn--v97c.xn----i1g2513q", false); } // [B1, V3, V7]
12112test { try toAsciiFail("xn--v97c.xn----i1g2513q", true); } // [B1, V3, V7]
497712113test { try toUnicodeFail("xn--v97c.xn----i1g888ih12u"); } // [B1, C1, V3, V7]
12114test { try toAsciiFail("xn--v97c.xn----i1g888ih12u", false); } // [B1, C1, V3, V7]
12115test { try toAsciiFail("xn--v97c.xn----i1g888ih12u", true); } // [B1, C1, V3, V7]
497812116test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8c"); } // [B1, C1, V7]
12117test { try toAsciiFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8c", false); } // [B1, C1, V7]
12118test { try toAsciiFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8c", true); } // [B1, V7]
497912119test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8c"); } // [B1, C1, V7]
12120test { try toAsciiFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8c", false); } // [B1, C1, V7]
12121test { try toAsciiFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8c", true); } // [B1, V7]
498012122test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.\xe2\x89\xa0\xe2\x80\x8c"); } // [B1, C1, V7]
12123test { try toAsciiFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.\xe2\x89\xa0\xe2\x80\x8c", false); } // [B1, C1, V7]
12124test { try toAsciiFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.\xe2\x89\xa0\xe2\x80\x8c", true); } // [B1, V7]
498112125test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.=\xcc\xb8\xe2\x80\x8c"); } // [B1, C1, V7]
12126test { try toAsciiFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.=\xcc\xb8\xe2\x80\x8c", false); } // [B1, C1, V7]
12127test { try toAsciiFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.=\xcc\xb8\xe2\x80\x8c", true); } // [B1, V7]
498212128test { try toUnicodeFail("xn--bl0dh970b.xn--1ch"); } // [B1, V7]
12129test { try toAsciiFail("xn--bl0dh970b.xn--1ch", false); } // [B1, V7]
12130test { try toAsciiFail("xn--bl0dh970b.xn--1ch", true); } // [B1, V7]
498312131test { try toUnicodeFail("xn--bl0dh970b.xn--0ug83g"); } // [B1, C1, V7]
12132test { try toAsciiFail("xn--bl0dh970b.xn--0ug83g", false); } // [B1, C1, V7]
12133test { try toAsciiFail("xn--bl0dh970b.xn--0ug83g", true); } // [B1, C1, V7]
498412134test { try toUnicodeFail("\xd9\x8c\xe1\xb3\x92\xef\xbd\xa1\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e"); } // [B1, B3, V6, V7]
12135test { try toAsciiFail("\xd9\x8c\xe1\xb3\x92\xef\xbd\xa1\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e", false); } // [B1, B3, V6, V7]
12136test { try toAsciiFail("\xd9\x8c\xe1\xb3\x92\xef\xbd\xa1\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e", true); } // [B1, B3, V6, V7]
498512137test { try toUnicodeFail("\xd9\x8c\xe1\xb3\x92\xe3\x80\x82\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e"); } // [B1, B3, V6, V7]
12138test { try toAsciiFail("\xd9\x8c\xe1\xb3\x92\xe3\x80\x82\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e", false); } // [B1, B3, V6, V7]
12139test { try toAsciiFail("\xd9\x8c\xe1\xb3\x92\xe3\x80\x82\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e", true); } // [B1, B3, V6, V7]
498612140test { try toUnicodeFail("xn--ohb646i.xn--ewi38jf765c"); } // [B1, B3, V6, V7]
12141test { try toAsciiFail("xn--ohb646i.xn--ewi38jf765c", false); } // [B1, B3, V6, V7]
12142test { try toAsciiFail("xn--ohb646i.xn--ewi38jf765c", true); } // [B1, B3, V6, V7]
498712143test { try toUnicodeFail("\xe1\x82\xb4\xf0\x9d\xa8\xa8\xe2\x82\x83\xf3\xa0\x81\xa6\xef\xbc\x8e\xf0\x9d\x9f\xb3\xf0\x91\x82\xb9\xe0\xae\x82"); } // [V7]
12144test { try toAsciiFail("\xe1\x82\xb4\xf0\x9d\xa8\xa8\xe2\x82\x83\xf3\xa0\x81\xa6\xef\xbc\x8e\xf0\x9d\x9f\xb3\xf0\x91\x82\xb9\xe0\xae\x82", false); } // [V7]
12145test { try toAsciiFail("\xe1\x82\xb4\xf0\x9d\xa8\xa8\xe2\x82\x83\xf3\xa0\x81\xa6\xef\xbc\x8e\xf0\x9d\x9f\xb3\xf0\x91\x82\xb9\xe0\xae\x82", true); } // [V7]
498812146test { try toUnicodeFail("\xe1\x82\xb4\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82"); } // [V7]
12147test { try toAsciiFail("\xe1\x82\xb4\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82", false); } // [V7]
12148test { try toAsciiFail("\xe1\x82\xb4\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82", true); } // [V7]
498912149test { try toUnicodeFail("\xe2\xb4\x94\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82"); } // [V7]
12150test { try toAsciiFail("\xe2\xb4\x94\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82", false); } // [V7]
12151test { try toAsciiFail("\xe2\xb4\x94\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82", true); } // [V7]
499012152test { try toUnicodeFail("xn--3-ews6985n35s3g.xn--7-cve6271r"); } // [V7]
12153test { try toAsciiFail("xn--3-ews6985n35s3g.xn--7-cve6271r", false); } // [V7]
12154test { try toAsciiFail("xn--3-ews6985n35s3g.xn--7-cve6271r", true); } // [V7]
499112155test { try toUnicodeFail("\xe2\xb4\x94\xf0\x9d\xa8\xa8\xe2\x82\x83\xf3\xa0\x81\xa6\xef\xbc\x8e\xf0\x9d\x9f\xb3\xf0\x91\x82\xb9\xe0\xae\x82"); } // [V7]
12156test { try toAsciiFail("\xe2\xb4\x94\xf0\x9d\xa8\xa8\xe2\x82\x83\xf3\xa0\x81\xa6\xef\xbc\x8e\xf0\x9d\x9f\xb3\xf0\x91\x82\xb9\xe0\xae\x82", false); } // [V7]
12157test { try toAsciiFail("\xe2\xb4\x94\xf0\x9d\xa8\xa8\xe2\x82\x83\xf3\xa0\x81\xa6\xef\xbc\x8e\xf0\x9d\x9f\xb3\xf0\x91\x82\xb9\xe0\xae\x82", true); } // [V7]
499212158test { try toUnicodeFail("xn--3-b1g83426a35t0g.xn--7-cve6271r"); } // [V7]
12159test { try toAsciiFail("xn--3-b1g83426a35t0g.xn--7-cve6271r", false); } // [V7]
12160test { try toAsciiFail("xn--3-b1g83426a35t0g.xn--7-cve6271r", true); } // [V7]
499312161test { try toUnicodeFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xe2\x92\x88\xf1\xb1\xa2\x95"); } // [C1, V7]
12162test { try toAsciiFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xe2\x92\x88\xf1\xb1\xa2\x95", false); } // [C1, V7]
12163test { try toAsciiFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xe2\x92\x88\xf1\xb1\xa2\x95", true); } // [V7]
499412164test { try toUnicodeFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c1.\xf1\xb1\xa2\x95"); } // [C1, V7]
12165test { try toAsciiFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c1.\xf1\xb1\xa2\x95", false); } // [C1, V7]
12166test { try toAsciiFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c1.\xf1\xb1\xa2\x95", true); } // [V7]
499512167test { try toUnicodeFail("xn--eco.1.xn--ms39a"); } // [V7]
12168test { try toAsciiFail("xn--eco.1.xn--ms39a", false); } // [V7]
12169test { try toAsciiFail("xn--eco.1.xn--ms39a", true); } // [V7]
499612170test { try toUnicodeFail("xn--0ug491l.xn--1-rgn.xn--ms39a"); } // [C1, V7]
12171test { try toAsciiFail("xn--0ug491l.xn--1-rgn.xn--ms39a", false); } // [C1, V7]
12172test { try toAsciiFail("xn--0ug491l.xn--1-rgn.xn--ms39a", true); } // [C1, V7]
499712173test { try toUnicodeFail("xn--eco.xn--tsh21126d"); } // [V7]
12174test { try toAsciiFail("xn--eco.xn--tsh21126d", false); } // [V7]
12175test { try toAsciiFail("xn--eco.xn--tsh21126d", true); } // [V7]
499812176test { try toUnicodeFail("xn--0ug491l.xn--0ug88oot66q"); } // [C1, V7]
12177test { try toAsciiFail("xn--0ug491l.xn--0ug88oot66q", false); } // [C1, V7]
12178test { try toAsciiFail("xn--0ug491l.xn--0ug88oot66q", true); } // [C1, V7]
499912179test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6]
12180test { try toAsciiFail("\xef\xbc\x91\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98", false); } // [V6]
12181test { try toAsciiFail("\xef\xbc\x91\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98", true); } // [V6]
500012182test { try toUnicodeFail("1\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6]
12183test { try toAsciiFail("1\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98", false); } // [V6]
12184test { try toAsciiFail("1\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98", true); } // [V6]
500112185test { try toUnicodeFail("1\xea\xab\xb6SS\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6]
12186test { try toAsciiFail("1\xea\xab\xb6SS\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98", false); } // [V6]
12187test { try toAsciiFail("1\xea\xab\xb6SS\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98", true); } // [V6]
500212188test { try toUnicodeFail("1\xea\xab\xb6ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6]
12189test { try toAsciiFail("1\xea\xab\xb6ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98", false); } // [V6]
12190test { try toAsciiFail("1\xea\xab\xb6ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98", true); } // [V6]
500312191test { try toUnicodeFail("xn--1ss-ir6ln166b.xn--weg"); } // [V6]
12192test { try toAsciiFail("xn--1ss-ir6ln166b.xn--weg", false); } // [V6]
12193test { try toAsciiFail("xn--1ss-ir6ln166b.xn--weg", true); } // [V6]
500412194test { try toUnicodeFail("xn--1-qfa2471kdb0d.xn--weg"); } // [V6]
12195test { try toAsciiFail("xn--1-qfa2471kdb0d.xn--weg", false); } // [V6]
12196test { try toAsciiFail("xn--1-qfa2471kdb0d.xn--weg", true); } // [V6]
500512197test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6SS\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6]
12198test { try toAsciiFail("\xef\xbc\x91\xea\xab\xb6SS\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98", false); } // [V6]
12199test { try toAsciiFail("\xef\xbc\x91\xea\xab\xb6SS\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98", true); } // [V6]
500612200test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6]
12201test { try toAsciiFail("\xef\xbc\x91\xea\xab\xb6ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98", false); } // [V6]
12202test { try toAsciiFail("\xef\xbc\x91\xea\xab\xb6ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98", true); } // [V6]
500712203test { try toUnicodeFail("1\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6]
12204test { try toAsciiFail("1\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98", false); } // [V6]
12205test { try toAsciiFail("1\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98", true); } // [V6]
500812206test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6]
12207test { try toAsciiFail("\xef\xbc\x91\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98", false); } // [V6]
12208test { try toAsciiFail("\xef\xbc\x91\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98", true); } // [V6]
500912209test { try toUnicodeFail("\xe2\x80\x8d\xf1\xab\xb6\xa9\xf0\x9e\xaa\xaf\xe0\xb3\x8d\xef\xbd\xa1\xdd\xbc\xe2\x92\x88"); } // [B1, C2, V7]
12210test { try toAsciiFail("\xe2\x80\x8d\xf1\xab\xb6\xa9\xf0\x9e\xaa\xaf\xe0\xb3\x8d\xef\xbd\xa1\xdd\xbc\xe2\x92\x88", false); } // [B1, C2, V7]
12211test { try toAsciiFail("\xe2\x80\x8d\xf1\xab\xb6\xa9\xf0\x9e\xaa\xaf\xe0\xb3\x8d\xef\xbd\xa1\xdd\xbc\xe2\x92\x88", true); } // [B5, B6, V7]
501012212test { try toUnicodeFail("\xe2\x80\x8d\xf1\xab\xb6\xa9\xf0\x9e\xaa\xaf\xe0\xb3\x8d\xe3\x80\x82\xdd\xbc1."); } // [B1, C2, V7]
12213test { try toAsciiFail("\xe2\x80\x8d\xf1\xab\xb6\xa9\xf0\x9e\xaa\xaf\xe0\xb3\x8d\xe3\x80\x82\xdd\xbc1.", false); } // [B1, C2, V7, A4_2]
12214test { try toAsciiFail("\xe2\x80\x8d\xf1\xab\xb6\xa9\xf0\x9e\xaa\xaf\xe0\xb3\x8d\xe3\x80\x82\xdd\xbc1.", true); } // [B5, B6, V7, A4_2]
501112215test { try toUnicodeFail("xn--8tc9875v5is1a.xn--1-g6c."); } // [B5, B6, V7]
12216test { try toAsciiFail("xn--8tc9875v5is1a.xn--1-g6c.", false); } // [B5, B6, V7, A4_2]
12217test { try toAsciiFail("xn--8tc9875v5is1a.xn--1-g6c.", true); } // [B5, B6, V7, A4_2]
501212218test { try toUnicodeFail("xn--8tc969gzn94a4lm8a.xn--1-g6c."); } // [B1, C2, V7]
12219test { try toAsciiFail("xn--8tc969gzn94a4lm8a.xn--1-g6c.", false); } // [B1, C2, V7, A4_2]
12220test { try toAsciiFail("xn--8tc969gzn94a4lm8a.xn--1-g6c.", true); } // [B1, C2, V7, A4_2]
501312221test { try toUnicodeFail("xn--8tc9875v5is1a.xn--dqb689l"); } // [B5, B6, V7]
12222test { try toAsciiFail("xn--8tc9875v5is1a.xn--dqb689l", false); } // [B5, B6, V7]
12223test { try toAsciiFail("xn--8tc9875v5is1a.xn--dqb689l", true); } // [B5, B6, V7]
501412224test { try toUnicodeFail("xn--8tc969gzn94a4lm8a.xn--dqb689l"); } // [B1, C2, V7]
12225test { try toAsciiFail("xn--8tc969gzn94a4lm8a.xn--dqb689l", false); } // [B1, C2, V7]
12226test { try toAsciiFail("xn--8tc969gzn94a4lm8a.xn--dqb689l", true); } // [B1, C2, V7]
501512227test { try toUnicodeFail("\xe1\xaa\xb6\xef\xbc\x8e\xf0\x9e\xa4\xb3\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97"); } // [B1, B2, V6, V7]
12228test { try toAsciiFail("\xe1\xaa\xb6\xef\xbc\x8e\xf0\x9e\xa4\xb3\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97", false); } // [B1, B2, V6, V7]
12229test { try toAsciiFail("\xe1\xaa\xb6\xef\xbc\x8e\xf0\x9e\xa4\xb3\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97", true); } // [B1, B2, V6, V7]
501612230test { try toUnicodeFail("\xe1\xaa\xb6.\xf0\x9e\xa4\xb3\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97"); } // [B1, B2, V6, V7]
12231test { try toAsciiFail("\xe1\xaa\xb6.\xf0\x9e\xa4\xb3\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97", false); } // [B1, B2, V6, V7]
12232test { try toAsciiFail("\xe1\xaa\xb6.\xf0\x9e\xa4\xb3\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97", true); } // [B1, B2, V6, V7]
501712233test { try toUnicodeFail("\xe1\xaa\xb6.\xf0\x9e\xa4\x91\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97"); } // [B1, B2, V6, V7]
12234test { try toAsciiFail("\xe1\xaa\xb6.\xf0\x9e\xa4\x91\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97", false); } // [B1, B2, V6, V7]
12235test { try toAsciiFail("\xe1\xaa\xb6.\xf0\x9e\xa4\x91\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97", true); } // [B1, B2, V6, V7]
501812236test { try toUnicodeFail("xn--zqf.xn--ysb9657vuiz5bj0ep"); } // [B1, B2, V6, V7]
12237test { try toAsciiFail("xn--zqf.xn--ysb9657vuiz5bj0ep", false); } // [B1, B2, V6, V7]
12238test { try toAsciiFail("xn--zqf.xn--ysb9657vuiz5bj0ep", true); } // [B1, B2, V6, V7]
501912239test { try toUnicodeFail("\xe1\xaa\xb6\xef\xbc\x8e\xf0\x9e\xa4\x91\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97"); } // [B1, B2, V6, V7]
12240test { try toAsciiFail("\xe1\xaa\xb6\xef\xbc\x8e\xf0\x9e\xa4\x91\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97", false); } // [B1, B2, V6, V7]
12241test { try toAsciiFail("\xe1\xaa\xb6\xef\xbc\x8e\xf0\x9e\xa4\x91\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97", true); } // [B1, B2, V6, V7]
502012242test { try toUnicodeFail("\xe0\xa1\x82\xf0\x9e\xa9\x9a\xe2\x92\x88\xef\xbc\x8e\xf3\xa0\xac\x8c\xef\xbc\x98\xf2\x8f\xb3\x8f\xdd\xb0"); } // [B1, V7]
12243test { try toAsciiFail("\xe0\xa1\x82\xf0\x9e\xa9\x9a\xe2\x92\x88\xef\xbc\x8e\xf3\xa0\xac\x8c\xef\xbc\x98\xf2\x8f\xb3\x8f\xdd\xb0", false); } // [B1, V7]
12244test { try toAsciiFail("\xe0\xa1\x82\xf0\x9e\xa9\x9a\xe2\x92\x88\xef\xbc\x8e\xf3\xa0\xac\x8c\xef\xbc\x98\xf2\x8f\xb3\x8f\xdd\xb0", true); } // [B1, V7]
502112245test { try toUnicodeFail("\xe0\xa1\x82\xf0\x9e\xa9\x9a1..\xf3\xa0\xac\x8c8\xf2\x8f\xb3\x8f\xdd\xb0"); } // [B1, V7, X4_2]
12246test { try toAsciiFail("\xe0\xa1\x82\xf0\x9e\xa9\x9a1..\xf3\xa0\xac\x8c8\xf2\x8f\xb3\x8f\xdd\xb0", false); } // [B1, V7, A4_2]
12247test { try toAsciiFail("\xe0\xa1\x82\xf0\x9e\xa9\x9a1..\xf3\xa0\xac\x8c8\xf2\x8f\xb3\x8f\xdd\xb0", true); } // [B1, V7, A4_2]
502212248test { try toUnicodeFail("xn--1-rid26318a..xn--8-s5c22427ox454a"); } // [B1, V7, X4_2]
12249test { try toAsciiFail("xn--1-rid26318a..xn--8-s5c22427ox454a", false); } // [B1, V7, A4_2]
12250test { try toAsciiFail("xn--1-rid26318a..xn--8-s5c22427ox454a", true); } // [B1, V7, A4_2]
502312251test { try toUnicodeFail("xn--0vb095ldg52a.xn--8-s5c22427ox454a"); } // [B1, V7]
12252test { try toAsciiFail("xn--0vb095ldg52a.xn--8-s5c22427ox454a", false); } // [B1, V7]
12253test { try toAsciiFail("xn--0vb095ldg52a.xn--8-s5c22427ox454a", true); } // [B1, V7]
502412254test { try toUnicodeFail("\xcd\xa1\xf0\x90\xab\xab\xcd\xa9\xe1\xa1\xb7\xe3\x80\x82-\xf3\xa0\xb0\x9b\xe9\x9e\xb0"); } // [B1, V3, V6, V7]
12255test { try toAsciiFail("\xcd\xa1\xf0\x90\xab\xab\xcd\xa9\xe1\xa1\xb7\xe3\x80\x82-\xf3\xa0\xb0\x9b\xe9\x9e\xb0", false); } // [B1, V3, V6, V7]
12256test { try toAsciiFail("\xcd\xa1\xf0\x90\xab\xab\xcd\xa9\xe1\xa1\xb7\xe3\x80\x82-\xf3\xa0\xb0\x9b\xe9\x9e\xb0", true); } // [B1, V3, V6, V7]
502512257test { try toUnicodeFail("xn--cvaq482npv5t.xn----yg7dt1332g"); } // [B1, V3, V6, V7]
12258test { try toAsciiFail("xn--cvaq482npv5t.xn----yg7dt1332g", false); } // [B1, V3, V6, V7]
12259test { try toAsciiFail("xn--cvaq482npv5t.xn----yg7dt1332g", true); } // [B1, V3, V6, V7]
502612260test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98\xc3\x9f\xf0\x90\xab\x83"); } // [B1, V3, V6]
12261test { try toAsciiFail("-.\xe0\xab\x8d\xe5\x89\x98\xc3\x9f\xf0\x90\xab\x83", false); } // [B1, V3, V6]
12262test { try toAsciiFail("-.\xe0\xab\x8d\xe5\x89\x98\xc3\x9f\xf0\x90\xab\x83", true); } // [B1, V3, V6]
502712263test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98SS\xf0\x90\xab\x83"); } // [B1, V3, V6]
12264test { try toAsciiFail("-.\xe0\xab\x8d\xe5\x89\x98SS\xf0\x90\xab\x83", false); } // [B1, V3, V6]
12265test { try toAsciiFail("-.\xe0\xab\x8d\xe5\x89\x98SS\xf0\x90\xab\x83", true); } // [B1, V3, V6]
502812266test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98ss\xf0\x90\xab\x83"); } // [B1, V3, V6]
12267test { try toAsciiFail("-.\xe0\xab\x8d\xe5\x89\x98ss\xf0\x90\xab\x83", false); } // [B1, V3, V6]
12268test { try toAsciiFail("-.\xe0\xab\x8d\xe5\x89\x98ss\xf0\x90\xab\x83", true); } // [B1, V3, V6]
502912269test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98Ss\xf0\x90\xab\x83"); } // [B1, V3, V6]
12270test { try toAsciiFail("-.\xe0\xab\x8d\xe5\x89\x98Ss\xf0\x90\xab\x83", false); } // [B1, V3, V6]
12271test { try toAsciiFail("-.\xe0\xab\x8d\xe5\x89\x98Ss\xf0\x90\xab\x83", true); } // [B1, V3, V6]
503012272test { try toUnicodeFail("-.xn--ss-bqg4734erywk"); } // [B1, V3, V6]
12273test { try toAsciiFail("-.xn--ss-bqg4734erywk", false); } // [B1, V3, V6]
12274test { try toAsciiFail("-.xn--ss-bqg4734erywk", true); } // [B1, V3, V6]
503112275test { try toUnicodeFail("-.xn--zca791c493duf8i"); } // [B1, V3, V6]
12276test { try toAsciiFail("-.xn--zca791c493duf8i", false); } // [B1, V3, V6]
12277test { try toAsciiFail("-.xn--zca791c493duf8i", true); } // [B1, V3, V6]
503212278test { try toUnicodeFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xef\xbd\xa1-"); } // [B1, V3, V6, V7]
12279test { try toAsciiFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xef\xbd\xa1-", false); } // [B1, V3, V6, V7]
12280test { try toAsciiFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xef\xbd\xa1-", true); } // [B1, V3, V6, V7]
503312281test { try toUnicodeFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xe3\x80\x82-"); } // [B1, V3, V6, V7]
12282test { try toAsciiFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xe3\x80\x82-", false); } // [B1, V3, V6, V7]
12283test { try toAsciiFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xe3\x80\x82-", true); } // [B1, V3, V6, V7]
503412284test { try toUnicodeFail("xn--b1b2719v.-"); } // [B1, V3, V6, V7]
12285test { try toAsciiFail("xn--b1b2719v.-", false); } // [B1, V3, V6, V7]
12286test { try toAsciiFail("xn--b1b2719v.-", true); } // [B1, V3, V6, V7]
503512287test { try toUnicodeFail("\xe2\x92\x88\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xef\xbd\xa1\xe2\x89\xa0\xd8\x83\xf0\x90\xb9\xbd"); } // [B1, V7]
12288test { try toAsciiFail("\xe2\x92\x88\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xef\xbd\xa1\xe2\x89\xa0\xd8\x83\xf0\x90\xb9\xbd", false); } // [B1, V7]
12289test { try toAsciiFail("\xe2\x92\x88\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xef\xbd\xa1\xe2\x89\xa0\xd8\x83\xf0\x90\xb9\xbd", true); } // [B1, V7]
503612290test { try toUnicodeFail("\xe2\x92\x88\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xef\xbd\xa1=\xcc\xb8\xd8\x83\xf0\x90\xb9\xbd"); } // [B1, V7]
12291test { try toAsciiFail("\xe2\x92\x88\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xef\xbd\xa1=\xcc\xb8\xd8\x83\xf0\x90\xb9\xbd", false); } // [B1, V7]
12292test { try toAsciiFail("\xe2\x92\x88\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xef\xbd\xa1=\xcc\xb8\xd8\x83\xf0\x90\xb9\xbd", true); } // [B1, V7]
503712293test { try toUnicodeFail("1.\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xe3\x80\x82\xe2\x89\xa0\xd8\x83\xf0\x90\xb9\xbd"); } // [B1, V7]
12294test { try toAsciiFail("1.\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xe3\x80\x82\xe2\x89\xa0\xd8\x83\xf0\x90\xb9\xbd", false); } // [B1, V7]
12295test { try toAsciiFail("1.\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xe3\x80\x82\xe2\x89\xa0\xd8\x83\xf0\x90\xb9\xbd", true); } // [B1, V7]
503812296test { try toUnicodeFail("1.\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xe3\x80\x82=\xcc\xb8\xd8\x83\xf0\x90\xb9\xbd"); } // [B1, V7]
12297test { try toAsciiFail("1.\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xe3\x80\x82=\xcc\xb8\xd8\x83\xf0\x90\xb9\xbd", false); } // [B1, V7]
12298test { try toAsciiFail("1.\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xe3\x80\x82=\xcc\xb8\xd8\x83\xf0\x90\xb9\xbd", true); } // [B1, V7]
503912299test { try toUnicodeFail("1.xn--qo0dl3077c.xn--lfb536lb35n"); } // [B1, V7]
12300test { try toAsciiFail("1.xn--qo0dl3077c.xn--lfb536lb35n", false); } // [B1, V7]
12301test { try toAsciiFail("1.xn--qo0dl3077c.xn--lfb536lb35n", true); } // [B1, V7]
504012302test { try toUnicodeFail("xn--tshw766f1153g.xn--lfb536lb35n"); } // [B1, V7]
12303test { try toAsciiFail("xn--tshw766f1153g.xn--lfb536lb35n", false); } // [B1, V7]
12304test { try toAsciiFail("xn--tshw766f1153g.xn--lfb536lb35n", true); } // [B1, V7]
504112305test { try toUnicodeFail("\xf0\x90\xb9\xa2\xf3\xa0\x88\x9a\xe1\x82\xae\xe2\x80\x8c.\xe3\x96\xbe\xf0\x90\xb9\xa1"); } // [B1, B5, B6, C1, V7]
12306test { try toAsciiFail("\xf0\x90\xb9\xa2\xf3\xa0\x88\x9a\xe1\x82\xae\xe2\x80\x8c.\xe3\x96\xbe\xf0\x90\xb9\xa1", false); } // [B1, B5, B6, C1, V7]
12307test { try toAsciiFail("\xf0\x90\xb9\xa2\xf3\xa0\x88\x9a\xe1\x82\xae\xe2\x80\x8c.\xe3\x96\xbe\xf0\x90\xb9\xa1", true); } // [B1, B5, B6, V7]
504212308test { try toUnicodeFail("\xf0\x90\xb9\xa2\xf3\xa0\x88\x9a\xe2\xb4\x8e\xe2\x80\x8c.\xe3\x96\xbe\xf0\x90\xb9\xa1"); } // [B1, B5, B6, C1, V7]
12309test { try toAsciiFail("\xf0\x90\xb9\xa2\xf3\xa0\x88\x9a\xe2\xb4\x8e\xe2\x80\x8c.\xe3\x96\xbe\xf0\x90\xb9\xa1", false); } // [B1, B5, B6, C1, V7]
12310test { try toAsciiFail("\xf0\x90\xb9\xa2\xf3\xa0\x88\x9a\xe2\xb4\x8e\xe2\x80\x8c.\xe3\x96\xbe\xf0\x90\xb9\xa1", true); } // [B1, B5, B6, V7]
504312311test { try toUnicodeFail("xn--5kjx323em053g.xn--pelu572d"); } // [B1, B5, B6, V7]
12312test { try toAsciiFail("xn--5kjx323em053g.xn--pelu572d", false); } // [B1, B5, B6, V7]
12313test { try toAsciiFail("xn--5kjx323em053g.xn--pelu572d", true); } // [B1, B5, B6, V7]
504412314test { try toUnicodeFail("xn--0ug342clq0pqxv4i.xn--pelu572d"); } // [B1, B5, B6, C1, V7]
12315test { try toAsciiFail("xn--0ug342clq0pqxv4i.xn--pelu572d", false); } // [B1, B5, B6, C1, V7]
12316test { try toAsciiFail("xn--0ug342clq0pqxv4i.xn--pelu572d", true); } // [B1, B5, B6, C1, V7]
504512317test { try toUnicodeFail("xn--mnd9001km0o0g.xn--pelu572d"); } // [B1, B5, B6, V7]
12318test { try toAsciiFail("xn--mnd9001km0o0g.xn--pelu572d", false); } // [B1, B5, B6, V7]
12319test { try toAsciiFail("xn--mnd9001km0o0g.xn--pelu572d", true); } // [B1, B5, B6, V7]
504612320test { try toUnicodeFail("xn--mnd289ezj4pqxp0i.xn--pelu572d"); } // [B1, B5, B6, C1, V7]
12321test { try toAsciiFail("xn--mnd289ezj4pqxp0i.xn--pelu572d", false); } // [B1, B5, B6, C1, V7]
12322test { try toAsciiFail("xn--mnd289ezj4pqxp0i.xn--pelu572d", true); } // [B1, B5, B6, C1, V7]
504712323test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7"); } // [B2, B3, V7]
12324test { try toAsciiFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7", false); } // [B2, B3, V7]
12325test { try toAsciiFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7", true); } // [B2, B3, V7]
504812326test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7"); } // [B2, B3, V7]
12327test { try toAsciiFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7", false); } // [B2, B3, V7]
12328test { try toAsciiFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7", true); } // [B2, B3, V7]
504912329test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87"); } // [B2, B3, V7]
12330test { try toAsciiFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87", false); } // [B2, B3, V7]
12331test { try toAsciiFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87", true); } // [B2, B3, V7]
505012332test { try toUnicodeFail("xn--te28c.xn--isb295fbtpmb"); } // [B2, B3, V7]
12333test { try toAsciiFail("xn--te28c.xn--isb295fbtpmb", false); } // [B2, B3, V7]
12334test { try toAsciiFail("xn--te28c.xn--isb295fbtpmb", true); } // [B2, B3, V7]
505112335test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87"); } // [B2, B3, V7]
12336test { try toAsciiFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87", false); } // [B2, B3, V7]
12337test { try toAsciiFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87", true); } // [B2, B3, V7]
505212338test { try toUnicodeFail("xn--te28c.xn--isb856b9a631d"); } // [B2, B3, V7]
12339test { try toAsciiFail("xn--te28c.xn--isb856b9a631d", false); } // [B2, B3, V7]
12340test { try toAsciiFail("xn--te28c.xn--isb856b9a631d", true); } // [B2, B3, V7]
505312341test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87"); } // [B2, B3, V7]
12342test { try toAsciiFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87", false); } // [B2, B3, V7]
12343test { try toAsciiFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87", true); } // [B2, B3, V7]
505412344test { try toUnicodeFail("xn--te28c.xn--isb286btrgo7w"); } // [B2, B3, V7]
12345test { try toAsciiFail("xn--te28c.xn--isb286btrgo7w", false); } // [B2, B3, V7]
12346test { try toAsciiFail("xn--te28c.xn--isb286btrgo7w", true); } // [B2, B3, V7]
505512347test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87"); } // [B2, B3, V7]
12348test { try toAsciiFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87", false); } // [B2, B3, V7]
12349test { try toAsciiFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87", true); } // [B2, B3, V7]
505612350test { try toUnicodeFail("\xe2\x80\x8d\xf4\x85\x8d\x89.\xda\xb3\xdd\xb5"); } // [B1, C2, V7]
12351test { try toAsciiFail("\xe2\x80\x8d\xf4\x85\x8d\x89.\xda\xb3\xdd\xb5", false); } // [B1, C2, V7]
12352test { try toAsciiFail("\xe2\x80\x8d\xf4\x85\x8d\x89.\xda\xb3\xdd\xb5", true); } // [V7]
505712353test { try toUnicodeFail("xn--3j78f.xn--mkb20b"); } // [V7]
12354test { try toAsciiFail("xn--3j78f.xn--mkb20b", false); } // [V7]
12355test { try toAsciiFail("xn--3j78f.xn--mkb20b", true); } // [V7]
505812356test { try toUnicodeFail("xn--1ug39444n.xn--mkb20b"); } // [B1, C2, V7]
12357test { try toAsciiFail("xn--1ug39444n.xn--mkb20b", false); } // [B1, C2, V7]
12358test { try toAsciiFail("xn--1ug39444n.xn--mkb20b", true); } // [B1, C2, V7]
505912359test { try toUnicodeFail("\xf0\xb2\xa4\xb1\xe2\x92\x9b\xe2\xbe\xb3\xef\xbc\x8e\xea\xa1\xa6\xe2\x92\x88"); } // [V7]
12360test { try toAsciiFail("\xf0\xb2\xa4\xb1\xe2\x92\x9b\xe2\xbe\xb3\xef\xbc\x8e\xea\xa1\xa6\xe2\x92\x88", false); } // [V7]
12361test { try toAsciiFail("\xf0\xb2\xa4\xb1\xe2\x92\x9b\xe2\xbe\xb3\xef\xbc\x8e\xea\xa1\xa6\xe2\x92\x88", true); } // [V7]
506012362test { try toUnicodePass("\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61.", "\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61."); }
12363test { try toAsciiFail("\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61.", false); } // [A4_2]
12364test { try toAsciiFail("\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61.", true); } // [A4_2]
506112365test { try toUnicodePass("xn--20-9802c.xn--0w5a.xn--1-eg4e.", "\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61."); }
12366test { try toAsciiFail("xn--20-9802c.xn--0w5a.xn--1-eg4e.", false); } // [A4_2]
12367test { try toAsciiFail("xn--20-9802c.xn--0w5a.xn--1-eg4e.", true); } // [A4_2]
506212368test { try toUnicodeFail("xn--dth6033bzbvx.xn--tsh9439b"); } // [V7]
12369test { try toAsciiFail("xn--dth6033bzbvx.xn--tsh9439b", false); } // [V7]
12370test { try toAsciiFail("xn--dth6033bzbvx.xn--tsh9439b", true); } // [V7]
506312371test { try toUnicodeFail("\xdf\x9c\xef\xbc\x98\xf1\xb3\xa6\x93-\xef\xbd\xa1\xf2\x9e\xb2\x99\xf0\x91\x81\xbf\xf0\x90\xa9\xa5\xe0\xa7\x8d"); } // [B2, B3, B5, B6, V3, V7]
12372test { try toAsciiFail("\xdf\x9c\xef\xbc\x98\xf1\xb3\xa6\x93-\xef\xbd\xa1\xf2\x9e\xb2\x99\xf0\x91\x81\xbf\xf0\x90\xa9\xa5\xe0\xa7\x8d", false); } // [B2, B3, B5, B6, V3, V7]
12373test { try toAsciiFail("\xdf\x9c\xef\xbc\x98\xf1\xb3\xa6\x93-\xef\xbd\xa1\xf2\x9e\xb2\x99\xf0\x91\x81\xbf\xf0\x90\xa9\xa5\xe0\xa7\x8d", true); } // [B2, B3, B5, B6, V3, V7]
506412374test { try toUnicodeFail("\xdf\x9c8\xf1\xb3\xa6\x93-\xe3\x80\x82\xf2\x9e\xb2\x99\xf0\x91\x81\xbf\xf0\x90\xa9\xa5\xe0\xa7\x8d"); } // [B2, B3, B5, B6, V3, V7]
12375test { try toAsciiFail("\xdf\x9c8\xf1\xb3\xa6\x93-\xe3\x80\x82\xf2\x9e\xb2\x99\xf0\x91\x81\xbf\xf0\x90\xa9\xa5\xe0\xa7\x8d", false); } // [B2, B3, B5, B6, V3, V7]
12376test { try toAsciiFail("\xdf\x9c8\xf1\xb3\xa6\x93-\xe3\x80\x82\xf2\x9e\xb2\x99\xf0\x91\x81\xbf\xf0\x90\xa9\xa5\xe0\xa7\x8d", true); } // [B2, B3, B5, B6, V3, V7]
506512377test { try toUnicodeFail("xn--8--rve13079p.xn--b7b9842k42df776x"); } // [B2, B3, B5, B6, V3, V7]
12378test { try toAsciiFail("xn--8--rve13079p.xn--b7b9842k42df776x", false); } // [B2, B3, B5, B6, V3, V7]
12379test { try toAsciiFail("xn--8--rve13079p.xn--b7b9842k42df776x", true); } // [B2, B3, B5, B6, V3, V7]
506612380test { try toUnicodePass("\xe1\x82\xb5\xe3\x80\x82\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "\xe2\xb4\x95.\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85"); }
506712381test { try toAsciiPass("\xe1\x82\xb5\xe3\x80\x82\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn--dlj.xn--zca912alh227g", false); }
506812382test { try toAsciiPass("\xe1\x82\xb5\xe3\x80\x82\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn--dlj.xn--ss-jbe65aw27i", true); }
......@@ -5124,37 +12438,92 @@ test { try toUnicodePass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "\xe2
512412438test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "xn--dlj.xn--zca912alh227g", false); }
512512439test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "xn--dlj.xn--ss-jbe65aw27i", true); }
512612440test { try toUnicodeFail("xn--tnd.xn--ss-jbe65aw27i"); } // [V7]
12441test { try toAsciiFail("xn--tnd.xn--ss-jbe65aw27i", false); } // [V7]
12442test { try toAsciiFail("xn--tnd.xn--ss-jbe65aw27i", true); } // [V7]
512712443test { try toUnicodeFail("xn--tnd.xn--zca912alh227g"); } // [V7]
12444test { try toAsciiFail("xn--tnd.xn--zca912alh227g", false); } // [V7]
12445test { try toAsciiFail("xn--tnd.xn--zca912alh227g", true); } // [V7]
512812446test { try toUnicodeFail("\xdf\xa9-.\xf0\x9d\xa8\x97\xea\x92\xb1\xe1\xad\xb2"); } // [B1, B3, V3, V6]
12447test { try toAsciiFail("\xdf\xa9-.\xf0\x9d\xa8\x97\xea\x92\xb1\xe1\xad\xb2", false); } // [B1, B3, V3, V6]
12448test { try toAsciiFail("\xdf\xa9-.\xf0\x9d\xa8\x97\xea\x92\xb1\xe1\xad\xb2", true); } // [B1, B3, V3, V6]
512912449test { try toUnicodeFail("xn----odd.xn--dwf8994dc8wj"); } // [B1, B3, V3, V6]
12450test { try toAsciiFail("xn----odd.xn--dwf8994dc8wj", false); } // [B1, B3, V3, V6]
12451test { try toAsciiFail("xn----odd.xn--dwf8994dc8wj", true); } // [B1, B3, V3, V6]
513012452test { try toUnicodeFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.\xe2\x89\xaf\xe4\x95\xb5\xe2\xab\xa7"); } // [B1, B3, C1, V7]
12453test { try toAsciiFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.\xe2\x89\xaf\xe4\x95\xb5\xe2\xab\xa7", false); } // [B1, B3, C1, V7]
12454test { try toAsciiFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.\xe2\x89\xaf\xe4\x95\xb5\xe2\xab\xa7", true); } // [B1, V7]
513112455test { try toUnicodeFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.>\xcc\xb8\xe4\x95\xb5\xe2\xab\xa7"); } // [B1, B3, C1, V7]
12456test { try toAsciiFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.>\xcc\xb8\xe4\x95\xb5\xe2\xab\xa7", false); } // [B1, B3, C1, V7]
12457test { try toAsciiFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.>\xcc\xb8\xe4\x95\xb5\xe2\xab\xa7", true); } // [B1, V7]
513212458test { try toUnicodeFail("xn--sn7h.xn--hdh754ax6w"); } // [B1, V7]
12459test { try toAsciiFail("xn--sn7h.xn--hdh754ax6w", false); } // [B1, V7]
12460test { try toAsciiFail("xn--sn7h.xn--hdh754ax6w", true); } // [B1, V7]
513312461test { try toUnicodeFail("xn--0ugx453p.xn--hdh754ax6w"); } // [B1, B3, C1, V7]
12462test { try toAsciiFail("xn--0ugx453p.xn--hdh754ax6w", false); } // [B1, B3, C1, V7]
12463test { try toAsciiFail("xn--0ugx453p.xn--hdh754ax6w", true); } // [B1, B3, C1, V7]
513412464test { try toUnicodeFail("\xf0\x90\xa8\x85\xc3\x9f\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7]
12465test { try toAsciiFail("\xf0\x90\xa8\x85\xc3\x9f\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92", false); } // [B1, B3, V6, V7]
12466test { try toAsciiFail("\xf0\x90\xa8\x85\xc3\x9f\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92", true); } // [B1, B3, V6, V7]
513512467test { try toUnicodeFail("\xf0\x90\xa8\x85\xc3\x9f\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6]
12468test { try toAsciiFail("\xf0\x90\xa8\x85\xc3\x9f\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82", false); } // [B1, V6, A4_2]
12469test { try toAsciiFail("\xf0\x90\xa8\x85\xc3\x9f\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82", true); } // [B1, V6, A4_2]
513612470test { try toUnicodeFail("\xf0\x90\xa8\x85SS\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6]
12471test { try toAsciiFail("\xf0\x90\xa8\x85SS\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82", false); } // [B1, V6, A4_2]
12472test { try toAsciiFail("\xf0\x90\xa8\x85SS\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82", true); } // [B1, V6, A4_2]
513712473test { try toUnicodeFail("\xf0\x90\xa8\x85ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6]
12474test { try toAsciiFail("\xf0\x90\xa8\x85ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82", false); } // [B1, V6, A4_2]
12475test { try toAsciiFail("\xf0\x90\xa8\x85ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82", true); } // [B1, V6, A4_2]
513812476test { try toUnicodeFail("\xf0\x90\xa8\x85Ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6]
12477test { try toAsciiFail("\xf0\x90\xa8\x85Ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82", false); } // [B1, V6, A4_2]
12478test { try toAsciiFail("\xf0\x90\xa8\x85Ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82", true); } // [B1, V6, A4_2]
513912479test { try toUnicodeFail("xn--ss-ytd5i7765l.xn--fkb6l."); } // [B1, V6]
12480test { try toAsciiFail("xn--ss-ytd5i7765l.xn--fkb6l.", false); } // [B1, V6, A4_2]
12481test { try toAsciiFail("xn--ss-ytd5i7765l.xn--fkb6l.", true); } // [B1, V6, A4_2]
514012482test { try toUnicodeFail("xn--zca23yncs877j.xn--fkb6l."); } // [B1, V6]
12483test { try toAsciiFail("xn--zca23yncs877j.xn--fkb6l.", false); } // [B1, V6, A4_2]
12484test { try toAsciiFail("xn--zca23yncs877j.xn--fkb6l.", true); } // [B1, V6, A4_2]
514112485test { try toUnicodeFail("\xf0\x90\xa8\x85SS\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7]
12486test { try toAsciiFail("\xf0\x90\xa8\x85SS\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92", false); } // [B1, B3, V6, V7]
12487test { try toAsciiFail("\xf0\x90\xa8\x85SS\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92", true); } // [B1, B3, V6, V7]
514212488test { try toUnicodeFail("\xf0\x90\xa8\x85ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7]
12489test { try toAsciiFail("\xf0\x90\xa8\x85ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92", false); } // [B1, B3, V6, V7]
12490test { try toAsciiFail("\xf0\x90\xa8\x85ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92", true); } // [B1, B3, V6, V7]
514312491test { try toUnicodeFail("\xf0\x90\xa8\x85Ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7]
12492test { try toAsciiFail("\xf0\x90\xa8\x85Ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92", false); } // [B1, B3, V6, V7]
12493test { try toAsciiFail("\xf0\x90\xa8\x85Ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92", true); } // [B1, B3, V6, V7]
514412494test { try toUnicodeFail("xn--ss-ytd5i7765l.xn--fkb6lp314e"); } // [B1, B3, V6, V7]
12495test { try toAsciiFail("xn--ss-ytd5i7765l.xn--fkb6lp314e", false); } // [B1, B3, V6, V7]
12496test { try toAsciiFail("xn--ss-ytd5i7765l.xn--fkb6lp314e", true); } // [B1, B3, V6, V7]
514512497test { try toUnicodeFail("xn--zca23yncs877j.xn--fkb6lp314e"); } // [B1, B3, V6, V7]
12498test { try toAsciiFail("xn--zca23yncs877j.xn--fkb6lp314e", false); } // [B1, B3, V6, V7]
12499test { try toAsciiFail("xn--zca23yncs877j.xn--fkb6lp314e", true); } // [B1, B3, V6, V7]
514612500test { try toUnicodeFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94"); } // [B1, V3, V7]
12501test { try toAsciiFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94", false); } // [B1, V3, V7]
12502test { try toAsciiFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94", true); } // [B1, V3, V7]
514712503test { try toUnicodeFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94"); } // [B1, V3, V7]
12504test { try toAsciiFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94", false); } // [B1, V3, V7]
12505test { try toAsciiFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94", true); } // [B1, V3, V7]
514812506test { try toUnicodeFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94"); } // [B1, V3, V7]
12507test { try toAsciiFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94", false); } // [B1, V3, V7]
12508test { try toAsciiFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94", true); } // [B1, V3, V7]
514912509test { try toUnicodeFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94"); } // [B1, V3, V7]
12510test { try toAsciiFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94", false); } // [B1, V3, V7]
12511test { try toAsciiFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94", true); } // [B1, V3, V7]
515012512test { try toUnicodeFail("xn----44l04zxt68c.xn--enb135qf106f"); } // [B1, V3, V7]
12513test { try toAsciiFail("xn----44l04zxt68c.xn--enb135qf106f", false); } // [B1, V3, V7]
12514test { try toAsciiFail("xn----44l04zxt68c.xn--enb135qf106f", true); } // [B1, V3, V7]
515112515test { try toUnicodeFail("xn----44l04zxt68c.xn--enb300c1597h"); } // [B1, V3, V7]
12516test { try toAsciiFail("xn----44l04zxt68c.xn--enb300c1597h", false); } // [B1, V3, V7]
12517test { try toAsciiFail("xn----44l04zxt68c.xn--enb300c1597h", true); } // [B1, V3, V7]
515212518test { try toAsciiPass("\xf0\x9e\xa4\xa8\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }
515312519test { try toUnicodeFail("\xf0\x9e\xa4\xa8\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2]
12520test { try toAsciiFail("\xf0\x9e\xa4\xa8\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", false); } // [B6, C1, C2]
515412521test { try toAsciiPass("\xf0\x9e\xa4\xa8\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }
515512522test { try toUnicodeFail("\xf0\x9e\xa4\xa8\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2]
12523test { try toAsciiFail("\xf0\x9e\xa4\xa8\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", false); } // [B6, C1, C2]
515612524test { try toAsciiPass("\xf0\x9e\xa4\x86\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }
515712525test { try toUnicodeFail("\xf0\x9e\xa4\x86\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2]
12526test { try toAsciiFail("\xf0\x9e\xa4\x86\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", false); } // [B6, C1, C2]
515812527test { try toUnicodePass("xn--ge6h.xn--oc9a", "\xf0\x9e\xa4\xa8.\xea\xa1\x8f"); }
515912528test { try toAsciiPass("xn--ge6h.xn--oc9a", "xn--ge6h.xn--oc9a", false); }
516012529test { try toAsciiPass("xn--ge6h.xn--oc9a", "xn--ge6h.xn--oc9a", true); }
......@@ -5165,59 +12534,164 @@ test { try toUnicodePass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "\xf0\x9e\xa4\xa8.\xea
516512534test { try toAsciiPass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", false); }
516612535test { try toAsciiPass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", true); }
516712536test { try toUnicodeFail("xn--ge6h.xn--0ugb9575h"); } // [B6, C1, C2]
12537test { try toAsciiFail("xn--ge6h.xn--0ugb9575h", false); } // [B6, C1, C2]
12538test { try toAsciiFail("xn--ge6h.xn--0ugb9575h", true); } // [B6, C1, C2]
516812539test { try toAsciiPass("\xf0\x9e\xa4\x86\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }
516912540test { try toUnicodeFail("\xf0\x9e\xa4\x86\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2]
12541test { try toAsciiFail("\xf0\x9e\xa4\x86\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", false); } // [B6, C1, C2]
517012542test { try toUnicodeFail("\xf3\xa0\x85\xb9\xf0\x91\x82\xb6\xef\xbc\x8e\xe1\xa2\x8c\xf0\x91\x82\xb9\xd9\xa9"); } // [B1, B5, B6, V6]
12543test { try toAsciiFail("\xf3\xa0\x85\xb9\xf0\x91\x82\xb6\xef\xbc\x8e\xe1\xa2\x8c\xf0\x91\x82\xb9\xd9\xa9", false); } // [B1, B5, B6, V6]
12544test { try toAsciiFail("\xf3\xa0\x85\xb9\xf0\x91\x82\xb6\xef\xbc\x8e\xe1\xa2\x8c\xf0\x91\x82\xb9\xd9\xa9", true); } // [B1, B5, B6, V6]
517112545test { try toUnicodeFail("\xf3\xa0\x85\xb9\xf0\x91\x82\xb6.\xe1\xa2\x8c\xf0\x91\x82\xb9\xd9\xa9"); } // [B1, B5, B6, V6]
12546test { try toAsciiFail("\xf3\xa0\x85\xb9\xf0\x91\x82\xb6.\xe1\xa2\x8c\xf0\x91\x82\xb9\xd9\xa9", false); } // [B1, B5, B6, V6]
12547test { try toAsciiFail("\xf3\xa0\x85\xb9\xf0\x91\x82\xb6.\xe1\xa2\x8c\xf0\x91\x82\xb9\xd9\xa9", true); } // [B1, B5, B6, V6]
517212548test { try toUnicodeFail("xn--b50d.xn--iib993gyp5p"); } // [B1, B5, B6, V6]
12549test { try toAsciiFail("xn--b50d.xn--iib993gyp5p", false); } // [B1, B5, B6, V6]
12550test { try toAsciiFail("xn--b50d.xn--iib993gyp5p", true); } // [B1, B5, B6, V6]
517312551test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91"); } // [V7]
12552test { try toAsciiFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91", false); } // [V7]
12553test { try toAsciiFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91", true); } // [V7]
517412554test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91"); } // [V7]
12555test { try toAsciiFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91", false); } // [V7]
12556test { try toAsciiFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91", true); } // [V7]
517512557test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe"); } // [V7]
12558test { try toAsciiFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe", false); } // [V7]
12559test { try toAsciiFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe", true); } // [V7]
517612560test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe"); } // [V7]
12561test { try toAsciiFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe", false); } // [V7]
12562test { try toAsciiFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe", true); } // [V7]
517712563test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe"); } // [V7]
12564test { try toAsciiFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe", false); } // [V7]
12565test { try toAsciiFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe", true); } // [V7]
517812566test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe"); } // [V7]
12567test { try toAsciiFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe", false); } // [V7]
12568test { try toAsciiFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe", true); } // [V7]
517912569test { try toUnicodeFail("xn--73g39298c.xn--hdhz171b"); } // [V7]
12570test { try toAsciiFail("xn--73g39298c.xn--hdhz171b", false); } // [V7]
12571test { try toAsciiFail("xn--73g39298c.xn--hdhz171b", true); } // [V7]
518012572test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91"); } // [V7]
12573test { try toAsciiFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91", false); } // [V7]
12574test { try toAsciiFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91", true); } // [V7]
518112575test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91"); } // [V7]
12576test { try toAsciiFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91", false); } // [V7]
12577test { try toAsciiFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91", true); } // [V7]
518212578test { try toUnicodeFail("xn--f3g73398c.xn--hdhz171b"); } // [V7]
12579test { try toAsciiFail("xn--f3g73398c.xn--hdhz171b", false); } // [V7]
12580test { try toAsciiFail("xn--f3g73398c.xn--hdhz171b", true); } // [V7]
518312581test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3]
12582test { try toAsciiFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-", false); } // [B1, B5, B6, C2, V3]
12583test { try toAsciiFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-", true); } // [B1, B5, B6, V3]
518412584test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3]
12585test { try toAsciiFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-", false); } // [B1, B5, B6, C2, V3]
12586test { try toAsciiFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-", true); } // [B1, B5, B6, V3]
518512587test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3]
12588test { try toAsciiFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-", false); } // [B1, B5, B6, C2, V3]
12589test { try toAsciiFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-", true); } // [B1, B5, B6, V3]
518612590test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3]
12591test { try toAsciiFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-", false); } // [B1, B5, B6, C2, V3]
12592test { try toAsciiFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-", true); } // [B1, B5, B6, V3]
518712593test { try toUnicodeFail("xn--4xa25ks2j.-"); } // [B1, B5, B6, V3]
12594test { try toAsciiFail("xn--4xa25ks2j.-", false); } // [B1, B5, B6, V3]
12595test { try toAsciiFail("xn--4xa25ks2j.-", true); } // [B1, B5, B6, V3]
518812596test { try toUnicodeFail("xn--4xa25ks2jenu.-"); } // [B1, B5, B6, C2, V3]
12597test { try toAsciiFail("xn--4xa25ks2jenu.-", false); } // [B1, B5, B6, C2, V3]
12598test { try toAsciiFail("xn--4xa25ks2jenu.-", true); } // [B1, B5, B6, C2, V3]
518912599test { try toUnicodeFail("xn--3xa45ks2jenu.-"); } // [B1, B5, B6, C2, V3]
12600test { try toAsciiFail("xn--3xa45ks2jenu.-", false); } // [B1, B5, B6, C2, V3]
12601test { try toAsciiFail("xn--3xa45ks2jenu.-", true); } // [B1, B5, B6, C2, V3]
519012602test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3]
12603test { try toAsciiFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-", false); } // [B1, B5, B6, C2, V3]
12604test { try toAsciiFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-", true); } // [B1, B5, B6, V3]
519112605test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3]
12606test { try toAsciiFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-", false); } // [B1, B5, B6, C2, V3]
12607test { try toAsciiFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-", true); } // [B1, B5, B6, V3]
519212608test { try toUnicodeFail("\xe2\x80\x8c.\xc3\x9f\xe1\x82\xa9-"); } // [C1, V3]
12609test { try toAsciiFail("\xe2\x80\x8c.\xc3\x9f\xe1\x82\xa9-", false); } // [C1, V3]
12610test { try toAsciiFail("\xe2\x80\x8c.\xc3\x9f\xe1\x82\xa9-", true); } // [V3, A4_2]
519312611test { try toUnicodeFail("\xe2\x80\x8c.\xc3\x9f\xe2\xb4\x89-"); } // [C1, V3]
12612test { try toAsciiFail("\xe2\x80\x8c.\xc3\x9f\xe2\xb4\x89-", false); } // [C1, V3]
12613test { try toAsciiFail("\xe2\x80\x8c.\xc3\x9f\xe2\xb4\x89-", true); } // [V3, A4_2]
519412614test { try toUnicodeFail("\xe2\x80\x8c.SS\xe1\x82\xa9-"); } // [C1, V3]
12615test { try toAsciiFail("\xe2\x80\x8c.SS\xe1\x82\xa9-", false); } // [C1, V3]
12616test { try toAsciiFail("\xe2\x80\x8c.SS\xe1\x82\xa9-", true); } // [V3, A4_2]
519512617test { try toUnicodeFail("\xe2\x80\x8c.ss\xe2\xb4\x89-"); } // [C1, V3]
12618test { try toAsciiFail("\xe2\x80\x8c.ss\xe2\xb4\x89-", false); } // [C1, V3]
12619test { try toAsciiFail("\xe2\x80\x8c.ss\xe2\xb4\x89-", true); } // [V3, A4_2]
519612620test { try toUnicodeFail("\xe2\x80\x8c.Ss\xe2\xb4\x89-"); } // [C1, V3]
12621test { try toAsciiFail("\xe2\x80\x8c.Ss\xe2\xb4\x89-", false); } // [C1, V3]
12622test { try toAsciiFail("\xe2\x80\x8c.Ss\xe2\xb4\x89-", true); } // [V3, A4_2]
519712623test { try toUnicodeFail(".xn--ss--bi1b"); } // [V3, X4_2]
12624test { try toAsciiFail(".xn--ss--bi1b", false); } // [V3, A4_2]
12625test { try toAsciiFail(".xn--ss--bi1b", true); } // [V3, A4_2]
519812626test { try toUnicodeFail("xn--0ug.xn--ss--bi1b"); } // [C1, V3]
12627test { try toAsciiFail("xn--0ug.xn--ss--bi1b", false); } // [C1, V3]
12628test { try toAsciiFail("xn--0ug.xn--ss--bi1b", true); } // [C1, V3]
519912629test { try toUnicodeFail("xn--0ug.xn----pfa2305a"); } // [C1, V3]
12630test { try toAsciiFail("xn--0ug.xn----pfa2305a", false); } // [C1, V3]
12631test { try toAsciiFail("xn--0ug.xn----pfa2305a", true); } // [C1, V3]
520012632test { try toUnicodeFail(".xn--ss--4rn"); } // [V3, V7, X4_2]
12633test { try toAsciiFail(".xn--ss--4rn", false); } // [V3, V7, A4_2]
12634test { try toAsciiFail(".xn--ss--4rn", true); } // [V3, V7, A4_2]
520112635test { try toUnicodeFail("xn--0ug.xn--ss--4rn"); } // [C1, V3, V7]
12636test { try toAsciiFail("xn--0ug.xn--ss--4rn", false); } // [C1, V3, V7]
12637test { try toAsciiFail("xn--0ug.xn--ss--4rn", true); } // [C1, V3, V7]
520212638test { try toUnicodeFail("xn--0ug.xn----pfa042j"); } // [C1, V3, V7]
12639test { try toAsciiFail("xn--0ug.xn----pfa042j", false); } // [C1, V3, V7]
12640test { try toAsciiFail("xn--0ug.xn----pfa042j", true); } // [C1, V3, V7]
520312641test { try toUnicodeFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe2\xbe\x91"); } // [B5, V7]
12642test { try toAsciiFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe2\xbe\x91", false); } // [B5, V7]
12643test { try toAsciiFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe2\xbe\x91", true); } // [B5, V7]
520412644test { try toUnicodeFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe8\xa5\xbe"); } // [B5, V7]
12645test { try toAsciiFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe8\xa5\xbe", false); } // [B5, V7]
12646test { try toAsciiFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe8\xa5\xbe", true); } // [B5, V7]
520512647test { try toUnicodeFail("xn--u7kt691dlj09f.xn--9v2a"); } // [B5, V7]
12648test { try toAsciiFail("xn--u7kt691dlj09f.xn--9v2a", false); } // [B5, V7]
12649test { try toAsciiFail("xn--u7kt691dlj09f.xn--9v2a", true); } // [B5, V7]
520612650test { try toUnicodeFail("\xda\xa0\xf0\x90\xae\x8b\xf0\x90\xb9\xb0\xe2\x89\xae\xe3\x80\x82\xe2\x89\xaf\xf3\xa0\xa6\x97\xe2\x80\x8d"); } // [B1, B3, C2, V7]
12651test { try toAsciiFail("\xda\xa0\xf0\x90\xae\x8b\xf0\x90\xb9\xb0\xe2\x89\xae\xe3\x80\x82\xe2\x89\xaf\xf3\xa0\xa6\x97\xe2\x80\x8d", false); } // [B1, B3, C2, V7]
12652test { try toAsciiFail("\xda\xa0\xf0\x90\xae\x8b\xf0\x90\xb9\xb0\xe2\x89\xae\xe3\x80\x82\xe2\x89\xaf\xf3\xa0\xa6\x97\xe2\x80\x8d", true); } // [B1, B3, V7]
520712653test { try toUnicodeFail("\xda\xa0\xf0\x90\xae\x8b\xf0\x90\xb9\xb0<\xcc\xb8\xe3\x80\x82>\xcc\xb8\xf3\xa0\xa6\x97\xe2\x80\x8d"); } // [B1, B3, C2, V7]
12654test { try toAsciiFail("\xda\xa0\xf0\x90\xae\x8b\xf0\x90\xb9\xb0<\xcc\xb8\xe3\x80\x82>\xcc\xb8\xf3\xa0\xa6\x97\xe2\x80\x8d", false); } // [B1, B3, C2, V7]
12655test { try toAsciiFail("\xda\xa0\xf0\x90\xae\x8b\xf0\x90\xb9\xb0<\xcc\xb8\xe3\x80\x82>\xcc\xb8\xf3\xa0\xa6\x97\xe2\x80\x8d", true); } // [B1, B3, V7]
520812656test { try toUnicodeFail("xn--2jb053lf13nyoc.xn--hdh08821l"); } // [B1, B3, V7]
12657test { try toAsciiFail("xn--2jb053lf13nyoc.xn--hdh08821l", false); } // [B1, B3, V7]
12658test { try toAsciiFail("xn--2jb053lf13nyoc.xn--hdh08821l", true); } // [B1, B3, V7]
520912659test { try toUnicodeFail("xn--2jb053lf13nyoc.xn--1ugx6gc8096c"); } // [B1, B3, C2, V7]
12660test { try toAsciiFail("xn--2jb053lf13nyoc.xn--1ugx6gc8096c", false); } // [B1, B3, C2, V7]
12661test { try toAsciiFail("xn--2jb053lf13nyoc.xn--1ugx6gc8096c", true); } // [B1, B3, C2, V7]
521012662test { try toUnicodeFail("\xf0\x9d\x9f\x9e\xef\xbd\xa1\xf1\x83\xb0\xb6\xdd\xb7\xe0\xa2\xb0\xe2\xa9\x8b"); } // [B1, B5, B6, V7]
12663test { try toAsciiFail("\xf0\x9d\x9f\x9e\xef\xbd\xa1\xf1\x83\xb0\xb6\xdd\xb7\xe0\xa2\xb0\xe2\xa9\x8b", false); } // [B1, B5, B6, V7]
12664test { try toAsciiFail("\xf0\x9d\x9f\x9e\xef\xbd\xa1\xf1\x83\xb0\xb6\xdd\xb7\xe0\xa2\xb0\xe2\xa9\x8b", true); } // [B1, B5, B6, V7]
521112665test { try toUnicodeFail("6\xe3\x80\x82\xf1\x83\xb0\xb6\xdd\xb7\xe0\xa2\xb0\xe2\xa9\x8b"); } // [B1, B5, B6, V7]
12666test { try toAsciiFail("6\xe3\x80\x82\xf1\x83\xb0\xb6\xdd\xb7\xe0\xa2\xb0\xe2\xa9\x8b", false); } // [B1, B5, B6, V7]
12667test { try toAsciiFail("6\xe3\x80\x82\xf1\x83\xb0\xb6\xdd\xb7\xe0\xa2\xb0\xe2\xa9\x8b", true); } // [B1, B5, B6, V7]
521212668test { try toUnicodeFail("6.xn--7pb04do15eq748f"); } // [B1, B5, B6, V7]
12669test { try toAsciiFail("6.xn--7pb04do15eq748f", false); } // [B1, B5, B6, V7]
12670test { try toAsciiFail("6.xn--7pb04do15eq748f", true); } // [B1, B5, B6, V7]
521312671test { try toUnicodeFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x8d\xb4\xf0\x91\x87\x80"); } // [B1, V3, V6]
12672test { try toAsciiFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x8d\xb4\xf0\x91\x87\x80", false); } // [B1, V3, V6]
12673test { try toAsciiFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x8d\xb4\xf0\x91\x87\x80", true); } // [B1, V3, V6]
521412674test { try toUnicodeFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4"); } // [B1, V3, V6]
12675test { try toAsciiFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4", false); } // [B1, V3, V6]
12676test { try toAsciiFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4", true); } // [B1, V3, V6]
521512677test { try toUnicodeFail("-\xd8\xb4\xd9\x89\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4"); } // [B1, V3, V6]
12678test { try toAsciiFail("-\xd8\xb4\xd9\x89\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4", false); } // [B1, V3, V6]
12679test { try toAsciiFail("-\xd8\xb4\xd9\x89\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4", true); } // [B1, V3, V6]
521612680test { try toUnicodeFail("xn----qnc7d.xn--wd1d62a"); } // [B1, V3, V6]
12681test { try toAsciiFail("xn----qnc7d.xn--wd1d62a", false); } // [B1, V3, V6]
12682test { try toAsciiFail("xn----qnc7d.xn--wd1d62a", true); } // [B1, V3, V6]
521712683test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x8a\xb6\xf0\x9d\x9f\x8f.\xe0\xb5\x83\xf2\xaa\xa5\x90\xf0\x90\xb9\xac\xf3\x8a\x93\xb6"); } // [B1, C1, V6, V7]
12684test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x8a\xb6\xf0\x9d\x9f\x8f.\xe0\xb5\x83\xf2\xaa\xa5\x90\xf0\x90\xb9\xac\xf3\x8a\x93\xb6", false); } // [B1, C1, V6, V7]
12685test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x8a\xb6\xf0\x9d\x9f\x8f.\xe0\xb5\x83\xf2\xaa\xa5\x90\xf0\x90\xb9\xac\xf3\x8a\x93\xb6", true); } // [B1, V6, V7]
521812686test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x8a\xb61.\xe0\xb5\x83\xf2\xaa\xa5\x90\xf0\x90\xb9\xac\xf3\x8a\x93\xb6"); } // [B1, C1, V6, V7]
12687test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x8a\xb61.\xe0\xb5\x83\xf2\xaa\xa5\x90\xf0\x90\xb9\xac\xf3\x8a\x93\xb6", false); } // [B1, C1, V6, V7]
12688test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x8a\xb61.\xe0\xb5\x83\xf2\xaa\xa5\x90\xf0\x90\xb9\xac\xf3\x8a\x93\xb6", true); } // [B1, V6, V7]
521912689test { try toUnicodeFail("xn--1-f521m.xn--mxc0872kcu37dnmem"); } // [B1, V6, V7]
12690test { try toAsciiFail("xn--1-f521m.xn--mxc0872kcu37dnmem", false); } // [B1, V6, V7]
12691test { try toAsciiFail("xn--1-f521m.xn--mxc0872kcu37dnmem", true); } // [B1, V6, V7]
522012692test { try toUnicodeFail("xn--1-rgnu0071n.xn--mxc0872kcu37dnmem"); } // [B1, C1, V6, V7]
12693test { try toAsciiFail("xn--1-rgnu0071n.xn--mxc0872kcu37dnmem", false); } // [B1, C1, V6, V7]
12694test { try toAsciiFail("xn--1-rgnu0071n.xn--mxc0872kcu37dnmem", true); } // [B1, C1, V6, V7]
522112695test { try toUnicodePass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "\xe9\xbd\x99--4.\xc3\x9f"); }
522212696test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "xn----4-p16k.xn--zca", false); }
522312697test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "xn----4-p16k.ss", true); }
......@@ -5249,74 +12723,200 @@ test { try toUnicodePass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "\xe9\xbd\x99--4.s
524912723test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "xn----4-p16k.ss", false); }
525012724test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "xn----4-p16k.ss", true); }
525112725test { try toUnicodeFail("\xe1\xaf\xb2.\xf0\x90\xb9\xa2\xf0\x9e\x80\x96\xe2\x80\x8c"); } // [B1, C1, V6]
12726test { try toAsciiFail("\xe1\xaf\xb2.\xf0\x90\xb9\xa2\xf0\x9e\x80\x96\xe2\x80\x8c", false); } // [B1, C1, V6]
12727test { try toAsciiFail("\xe1\xaf\xb2.\xf0\x90\xb9\xa2\xf0\x9e\x80\x96\xe2\x80\x8c", true); } // [B1, V6]
525212728test { try toUnicodeFail("xn--0zf.xn--9n0d2296a"); } // [B1, V6]
12729test { try toAsciiFail("xn--0zf.xn--9n0d2296a", false); } // [B1, V6]
12730test { try toAsciiFail("xn--0zf.xn--9n0d2296a", true); } // [B1, V6]
525312731test { try toUnicodeFail("xn--0zf.xn--0ug9894grqqf"); } // [B1, C1, V6]
12732test { try toAsciiFail("xn--0zf.xn--0ug9894grqqf", false); } // [B1, C1, V6]
12733test { try toAsciiFail("xn--0zf.xn--0ug9894grqqf", true); } // [B1, C1, V6]
525412734test { try toUnicodeFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xef\xbd\xa1?-\xe2\x80\x8d"); } // [C2, V7, U1]
12735test { try toAsciiFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xef\xbd\xa1?-\xe2\x80\x8d", false); } // [C2, V7, U1]
12736test { try toAsciiFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xef\xbd\xa1?-\xe2\x80\x8d", true); } // [V3, V7, U1]
525512737test { try toUnicodeFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xe3\x80\x82?-\xe2\x80\x8d"); } // [C2, V7, U1]
12738test { try toAsciiFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xe3\x80\x82?-\xe2\x80\x8d", false); } // [C2, V7, U1]
12739test { try toAsciiFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xe3\x80\x82?-\xe2\x80\x8d", true); } // [V3, V7, U1]
525612740test { try toUnicodeFail("xn--ct86d8w51a.?-"); } // [V3, V7, U1]
12741test { try toAsciiFail("xn--ct86d8w51a.?-", false); } // [V3, V7, U1]
12742test { try toAsciiFail("xn--ct86d8w51a.?-", true); } // [V3, V7, U1]
525712743test { try toUnicodeFail("xn--ct86d8w51a.xn--?--n1t"); } // [C2, V7, U1]
12744test { try toAsciiFail("xn--ct86d8w51a.xn--?--n1t", false); } // [C2, V7, U1]
12745test { try toAsciiFail("xn--ct86d8w51a.xn--?--n1t", true); } // [C2, V7, U1]
525812746test { try toUnicodeFail("xn--ct86d8w51a.?-\xe2\x80\x8d"); } // [C2, V7, U1]
12747test { try toAsciiFail("xn--ct86d8w51a.?-\xe2\x80\x8d", false); } // [C2, V7, U1]
12748test { try toAsciiFail("xn--ct86d8w51a.?-\xe2\x80\x8d", true); } // [V3, V7, U1]
525912749test { try toUnicodeFail("XN--CT86D8W51A.?-\xe2\x80\x8d"); } // [C2, V7, U1]
12750test { try toAsciiFail("XN--CT86D8W51A.?-\xe2\x80\x8d", false); } // [C2, V7, U1]
12751test { try toAsciiFail("XN--CT86D8W51A.?-\xe2\x80\x8d", true); } // [V3, V7, U1]
526012752test { try toUnicodeFail("Xn--Ct86d8w51a.?-\xe2\x80\x8d"); } // [C2, V7, U1]
12753test { try toAsciiFail("Xn--Ct86d8w51a.?-\xe2\x80\x8d", false); } // [C2, V7, U1]
12754test { try toAsciiFail("Xn--Ct86d8w51a.?-\xe2\x80\x8d", true); } // [V3, V7, U1]
526112755test { try toUnicodeFail("\xe1\xa9\xa0\xef\xbc\x8e\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e"); } // [B1, B2, B3, V6, V7]
12756test { try toAsciiFail("\xe1\xa9\xa0\xef\xbc\x8e\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e", false); } // [B1, B2, B3, V6, V7]
12757test { try toAsciiFail("\xe1\xa9\xa0\xef\xbc\x8e\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e", true); } // [B1, B2, B3, V6, V7]
526212758test { try toUnicodeFail("\xe1\xa9\xa0.\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e"); } // [B1, B2, B3, V6, V7]
12759test { try toAsciiFail("\xe1\xa9\xa0.\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e", false); } // [B1, B2, B3, V6, V7]
12760test { try toAsciiFail("\xe1\xa9\xa0.\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e", true); } // [B1, B2, B3, V6, V7]
526312761test { try toUnicodeFail("xn--jof.xn----gf4bq282iezpa"); } // [B1, B2, B3, V6, V7]
12762test { try toAsciiFail("xn--jof.xn----gf4bq282iezpa", false); } // [B1, B2, B3, V6, V7]
12763test { try toAsciiFail("xn--jof.xn----gf4bq282iezpa", true); } // [B1, B2, B3, V6, V7]
526412764test { try toUnicodeFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b\xef\xbc\x8e\xf0\x9e\xa4\xb3\xf1\x8f\xa5\xbe"); } // [B2, B3, B6, V7]
12765test { try toAsciiFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b\xef\xbc\x8e\xf0\x9e\xa4\xb3\xf1\x8f\xa5\xbe", false); } // [B2, B3, B6, V7]
12766test { try toAsciiFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b\xef\xbc\x8e\xf0\x9e\xa4\xb3\xf1\x8f\xa5\xbe", true); } // [B2, B3, B6, V7]
526512767test { try toUnicodeFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\xb3\xf1\x8f\xa5\xbe"); } // [B2, B3, B6, V7]
12768test { try toAsciiFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\xb3\xf1\x8f\xa5\xbe", false); } // [B2, B3, B6, V7]
12769test { try toAsciiFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\xb3\xf1\x8f\xa5\xbe", true); } // [B2, B3, B6, V7]
526612770test { try toUnicodeFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\x91\xf1\x8f\xa5\xbe"); } // [B2, B3, B6, V7]
12771test { try toAsciiFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\x91\xf1\x8f\xa5\xbe", false); } // [B2, B3, B6, V7]
12772test { try toAsciiFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\x91\xf1\x8f\xa5\xbe", true); } // [B2, B3, B6, V7]
526712773test { try toUnicodeFail("xn--xx5gy2741c.xn--re6hw266j"); } // [B2, B3, B6, V7]
12774test { try toAsciiFail("xn--xx5gy2741c.xn--re6hw266j", false); } // [B2, B3, B6, V7]
12775test { try toAsciiFail("xn--xx5gy2741c.xn--re6hw266j", true); } // [B2, B3, B6, V7]
526812776test { try toUnicodeFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b\xef\xbc\x8e\xf0\x9e\xa4\x91\xf1\x8f\xa5\xbe"); } // [B2, B3, B6, V7]
12777test { try toAsciiFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b\xef\xbc\x8e\xf0\x9e\xa4\x91\xf1\x8f\xa5\xbe", false); } // [B2, B3, B6, V7]
12778test { try toAsciiFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b\xef\xbc\x8e\xf0\x9e\xa4\x91\xf1\x8f\xa5\xbe", true); } // [B2, B3, B6, V7]
526912779test { try toUnicodeFail("\xdc\x9c\xf0\x90\xab\x92\xd8\xae.\xf0\x90\x8b\xb2"); } // [B1]
12780test { try toAsciiFail("\xdc\x9c\xf0\x90\xab\x92\xd8\xae.\xf0\x90\x8b\xb2", false); } // [B1]
12781test { try toAsciiFail("\xdc\x9c\xf0\x90\xab\x92\xd8\xae.\xf0\x90\x8b\xb2", true); } // [B1]
527012782test { try toUnicodeFail("xn--tgb98b8643d.xn--m97c"); } // [B1]
12783test { try toAsciiFail("xn--tgb98b8643d.xn--m97c", false); } // [B1]
12784test { try toAsciiFail("xn--tgb98b8643d.xn--m97c", true); } // [B1]
527112785test { try toUnicodeFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\x93\xd8\xb7\xe0\xa3\xa2.?"); } // [B1, V7, U1]
12786test { try toAsciiFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\x93\xd8\xb7\xe0\xa3\xa2.?", false); } // [B1, V7, U1]
12787test { try toAsciiFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\x93\xd8\xb7\xe0\xa3\xa2.?", true); } // [B1, V7, U1]
527212788test { try toUnicodeFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\xb5\xd8\xb7\xe0\xa3\xa2.?"); } // [B1, V7, U1]
12789test { try toAsciiFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\xb5\xd8\xb7\xe0\xa3\xa2.?", false); } // [B1, V7, U1]
12790test { try toAsciiFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\xb5\xd8\xb7\xe0\xa3\xa2.?", true); } // [B1, V7, U1]
527312791test { try toUnicodeFail("xn--2gb08k9w69agm0g.?"); } // [B1, V7, U1]
12792test { try toAsciiFail("xn--2gb08k9w69agm0g.?", false); } // [B1, V7, U1]
12793test { try toAsciiFail("xn--2gb08k9w69agm0g.?", true); } // [B1, V7, U1]
527412794test { try toUnicodeFail("\xe2\x86\x83\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3"); } // [B1, V6, V7]
12795test { try toAsciiFail("\xe2\x86\x83\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3", false); } // [B1, V6, V7]
12796test { try toAsciiFail("\xe2\x86\x83\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3", true); } // [B1, V6, V7]
527512797test { try toUnicodeFail("\xe2\x86\x83\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3"); } // [B1, V6, V7]
12798test { try toAsciiFail("\xe2\x86\x83\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3", false); } // [B1, V6, V7]
12799test { try toAsciiFail("\xe2\x86\x83\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3", true); } // [B1, V6, V7]
527612800test { try toUnicodeFail("\xe2\x86\x84\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3"); } // [B1, V6, V7]
12801test { try toAsciiFail("\xe2\x86\x84\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3", false); } // [B1, V6, V7]
12802test { try toAsciiFail("\xe2\x86\x84\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3", true); } // [B1, V6, V7]
527712803test { try toUnicodeFail("xn--r5g.xn--ybc995g0835a"); } // [B1, V6, V7]
12804test { try toAsciiFail("xn--r5g.xn--ybc995g0835a", false); } // [B1, V6, V7]
12805test { try toAsciiFail("xn--r5g.xn--ybc995g0835a", true); } // [B1, V6, V7]
527812806test { try toUnicodeFail("\xe2\x86\x84\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3"); } // [B1, V6, V7]
12807test { try toAsciiFail("\xe2\x86\x84\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3", false); } // [B1, V6, V7]
12808test { try toAsciiFail("\xe2\x86\x84\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3", true); } // [B1, V6, V7]
527912809test { try toUnicodeFail("xn--q5g.xn--ybc995g0835a"); } // [B1, V6, V7]
12810test { try toAsciiFail("xn--q5g.xn--ybc995g0835a", false); } // [B1, V6, V7]
12811test { try toAsciiFail("xn--q5g.xn--ybc995g0835a", true); } // [B1, V6, V7]
528012812test { try toUnicodeFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f\xe2\x89\xae\xf0\x91\x9c\xab"); } // [V3, V7]
12813test { try toAsciiFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f\xe2\x89\xae\xf0\x91\x9c\xab", false); } // [V3, V7]
12814test { try toAsciiFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f\xe2\x89\xae\xf0\x91\x9c\xab", true); } // [V3, V7]
528112815test { try toUnicodeFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f<\xcc\xb8\xf0\x91\x9c\xab"); } // [V3, V7]
12816test { try toAsciiFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f<\xcc\xb8\xf0\x91\x9c\xab", false); } // [V3, V7]
12817test { try toAsciiFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f<\xcc\xb8\xf0\x91\x9c\xab", true); } // [V3, V7]
528212818test { try toUnicodeFail("xn----bh61m.xn--gdhz157g0em1d"); } // [V3, V7]
12819test { try toAsciiFail("xn----bh61m.xn--gdhz157g0em1d", false); } // [V3, V7]
12820test { try toAsciiFail("xn----bh61m.xn--gdhz157g0em1d", true); } // [V3, V7]
528312821test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7\xe2\x89\xae\xe1\x82\xa9"); } // [C1, C2, V7]
12822test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7\xe2\x89\xae\xe1\x82\xa9", false); } // [C1, C2, V7]
12823test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7\xe2\x89\xae\xe1\x82\xa9", true); } // [V7]
528412824test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7<\xcc\xb8\xe1\x82\xa9"); } // [C1, C2, V7]
12825test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7<\xcc\xb8\xe1\x82\xa9", false); } // [C1, C2, V7]
12826test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7<\xcc\xb8\xe1\x82\xa9", true); } // [V7]
528512827test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7<\xcc\xb8\xe2\xb4\x89"); } // [C1, C2, V7]
12828test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7<\xcc\xb8\xe2\xb4\x89", false); } // [C1, C2, V7]
12829test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7<\xcc\xb8\xe2\xb4\x89", true); } // [V7]
528612830test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7\xe2\x89\xae\xe2\xb4\x89"); } // [C1, C2, V7]
12831test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7\xe2\x89\xae\xe2\xb4\x89", false); } // [C1, C2, V7]
12832test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\x89\xb9\xe2\x80\x8d\xe3\x80\x82\xf2\x8c\xbf\xa7\xe2\x89\xae\xe2\xb4\x89", true); } // [V7]
528712833test { try toUnicodeFail("xn--3n36e.xn--gdh992byu01p"); } // [V7]
12834test { try toAsciiFail("xn--3n36e.xn--gdh992byu01p", false); } // [V7]
12835test { try toAsciiFail("xn--3n36e.xn--gdh992byu01p", true); } // [V7]
528812836test { try toUnicodeFail("xn--0ugc90904y.xn--gdh992byu01p"); } // [C1, C2, V7]
12837test { try toAsciiFail("xn--0ugc90904y.xn--gdh992byu01p", false); } // [C1, C2, V7]
12838test { try toAsciiFail("xn--0ugc90904y.xn--gdh992byu01p", true); } // [C1, C2, V7]
528912839test { try toUnicodeFail("xn--3n36e.xn--hnd112gpz83n"); } // [V7]
12840test { try toAsciiFail("xn--3n36e.xn--hnd112gpz83n", false); } // [V7]
12841test { try toAsciiFail("xn--3n36e.xn--hnd112gpz83n", true); } // [V7]
529012842test { try toUnicodeFail("xn--0ugc90904y.xn--hnd112gpz83n"); } // [C1, C2, V7]
12843test { try toAsciiFail("xn--0ugc90904y.xn--hnd112gpz83n", false); } // [C1, C2, V7]
12844test { try toAsciiFail("xn--0ugc90904y.xn--hnd112gpz83n", true); } // [C1, C2, V7]
529112845test { try toUnicodeFail("\xf0\x90\xb9\xaf-\xf0\x91\x84\xb4\xe0\xa2\xbc\xe3\x80\x82\xef\xb8\x92\xe4\x96\x90\xe2\xbe\x86"); } // [B1, V7]
12846test { try toAsciiFail("\xf0\x90\xb9\xaf-\xf0\x91\x84\xb4\xe0\xa2\xbc\xe3\x80\x82\xef\xb8\x92\xe4\x96\x90\xe2\xbe\x86", false); } // [B1, V7]
12847test { try toAsciiFail("\xf0\x90\xb9\xaf-\xf0\x91\x84\xb4\xe0\xa2\xbc\xe3\x80\x82\xef\xb8\x92\xe4\x96\x90\xe2\xbe\x86", true); } // [B1, V7]
529212848test { try toUnicodeFail("\xf0\x90\xb9\xaf-\xf0\x91\x84\xb4\xe0\xa2\xbc\xe3\x80\x82\xe3\x80\x82\xe4\x96\x90\xe8\x88\x8c"); } // [B1, X4_2]
12849test { try toAsciiFail("\xf0\x90\xb9\xaf-\xf0\x91\x84\xb4\xe0\xa2\xbc\xe3\x80\x82\xe3\x80\x82\xe4\x96\x90\xe8\x88\x8c", false); } // [B1, A4_2]
12850test { try toAsciiFail("\xf0\x90\xb9\xaf-\xf0\x91\x84\xb4\xe0\xa2\xbc\xe3\x80\x82\xe3\x80\x82\xe4\x96\x90\xe8\x88\x8c", true); } // [B1, A4_2]
529312851test { try toUnicodeFail("xn----rpd7902rclc..xn--fpo216m"); } // [B1, X4_2]
12852test { try toAsciiFail("xn----rpd7902rclc..xn--fpo216m", false); } // [B1, A4_2]
12853test { try toAsciiFail("xn----rpd7902rclc..xn--fpo216m", true); } // [B1, A4_2]
529412854test { try toUnicodeFail("xn----rpd7902rclc.xn--fpo216mn07e"); } // [B1, V7]
12855test { try toAsciiFail("xn----rpd7902rclc.xn--fpo216mn07e", false); } // [B1, V7]
12856test { try toAsciiFail("xn----rpd7902rclc.xn--fpo216mn07e", true); } // [B1, V7]
529512857test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xec\xaa\xa1"); } // [V6]
12858test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xec\xaa\xa1", false); } // [V6]
12859test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xec\xaa\xa1", true); } // [V6]
529612860test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6]
12861test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8", false); } // [V6]
12862test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8", true); } // [V6]
529712863test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xec\xaa\xa1"); } // [V6]
12864test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xec\xaa\xa1", false); } // [V6]
12865test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xec\xaa\xa1", true); } // [V6]
529812866test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6]
12867test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8", false); } // [V6]
12868test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8", true); } // [V6]
529912869test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6]
12870test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8", false); } // [V6]
12871test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8", true); } // [V6]
530012872test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xec\xaa\xa1"); } // [V6]
12873test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xec\xaa\xa1", false); } // [V6]
12874test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xec\xaa\xa1", true); } // [V6]
530112875test { try toUnicodeFail("xn--7kj1858k.xn--pi6b"); } // [V6]
12876test { try toAsciiFail("xn--7kj1858k.xn--pi6b", false); } // [V6]
12877test { try toAsciiFail("xn--7kj1858k.xn--pi6b", true); } // [V6]
530212878test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6]
12879test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8", false); } // [V6]
12880test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8", true); } // [V6]
530312881test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xec\xaa\xa1"); } // [V6]
12882test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xec\xaa\xa1", false); } // [V6]
12883test { try toAsciiFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xec\xaa\xa1", true); } // [V6]
530412884test { try toUnicodeFail("xn--ond3755u.xn--pi6b"); } // [V6, V7]
12885test { try toAsciiFail("xn--ond3755u.xn--pi6b", false); } // [V6, V7]
12886test { try toAsciiFail("xn--ond3755u.xn--pi6b", true); } // [V6, V7]
530512887test { try toUnicodeFail("\xe0\xb8\xba\xec\xa9\x81\xf0\x90\xb9\xac.\xf4\x8b\x89\xb3"); } // [B1, V6, V7]
12888test { try toAsciiFail("\xe0\xb8\xba\xec\xa9\x81\xf0\x90\xb9\xac.\xf4\x8b\x89\xb3", false); } // [B1, V6, V7]
12889test { try toAsciiFail("\xe0\xb8\xba\xec\xa9\x81\xf0\x90\xb9\xac.\xf4\x8b\x89\xb3", true); } // [B1, V6, V7]
530612890test { try toUnicodeFail("\xe0\xb8\xba\xe1\x84\x8d\xe1\x85\xa4\xe1\x86\xb8\xf0\x90\xb9\xac.\xf4\x8b\x89\xb3"); } // [B1, V6, V7]
12891test { try toAsciiFail("\xe0\xb8\xba\xe1\x84\x8d\xe1\x85\xa4\xe1\x86\xb8\xf0\x90\xb9\xac.\xf4\x8b\x89\xb3", false); } // [B1, V6, V7]
12892test { try toAsciiFail("\xe0\xb8\xba\xe1\x84\x8d\xe1\x85\xa4\xe1\x86\xb8\xf0\x90\xb9\xac.\xf4\x8b\x89\xb3", true); } // [B1, V6, V7]
530712893test { try toUnicodeFail("xn--o4c4837g2zvb.xn--5f70g"); } // [B1, V6, V7]
12894test { try toAsciiFail("xn--o4c4837g2zvb.xn--5f70g", false); } // [B1, V6, V7]
12895test { try toAsciiFail("xn--o4c4837g2zvb.xn--5f70g", true); } // [B1, V6, V7]
530812896test { try toUnicodeFail("\xe1\xa1\x85\xef\xbc\x90\xe2\x80\x8c\xef\xbd\xa1\xe2\x8e\xa2\xf3\xa4\xa8\x84"); } // [C1, V7]
12897test { try toAsciiFail("\xe1\xa1\x85\xef\xbc\x90\xe2\x80\x8c\xef\xbd\xa1\xe2\x8e\xa2\xf3\xa4\xa8\x84", false); } // [C1, V7]
12898test { try toAsciiFail("\xe1\xa1\x85\xef\xbc\x90\xe2\x80\x8c\xef\xbd\xa1\xe2\x8e\xa2\xf3\xa4\xa8\x84", true); } // [V7]
530912899test { try toUnicodeFail("\xe1\xa1\x850\xe2\x80\x8c\xe3\x80\x82\xe2\x8e\xa2\xf3\xa4\xa8\x84"); } // [C1, V7]
12900test { try toAsciiFail("\xe1\xa1\x850\xe2\x80\x8c\xe3\x80\x82\xe2\x8e\xa2\xf3\xa4\xa8\x84", false); } // [C1, V7]
12901test { try toAsciiFail("\xe1\xa1\x850\xe2\x80\x8c\xe3\x80\x82\xe2\x8e\xa2\xf3\xa4\xa8\x84", true); } // [V7]
531012902test { try toUnicodeFail("xn--0-z6j.xn--8lh28773l"); } // [V7]
12903test { try toAsciiFail("xn--0-z6j.xn--8lh28773l", false); } // [V7]
12904test { try toAsciiFail("xn--0-z6j.xn--8lh28773l", true); } // [V7]
531112905test { try toUnicodeFail("xn--0-z6jy93b.xn--8lh28773l"); } // [C1, V7]
12906test { try toAsciiFail("xn--0-z6jy93b.xn--8lh28773l", false); } // [C1, V7]
12907test { try toAsciiFail("xn--0-z6jy93b.xn--8lh28773l", true); } // [C1, V7]
531212908test { try toAsciiPass("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8d\xc3\x9f", "xn--9-i0j5967eg3qz.ss", true); }
531312909test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8d\xc3\x9f"); } // [C2]
12910test { try toAsciiFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8d\xc3\x9f", false); } // [C2]
531412911test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8d\xc3\x9f", "xn--9-i0j5967eg3qz.ss", true); }
531512912test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8d\xc3\x9f"); } // [C2]
12913test { try toAsciiFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8d\xc3\x9f", false); } // [C2]
531612914test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSS", "xn--9-i0j5967eg3qz.ss", true); }
531712915test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSS"); } // [C2]
12916test { try toAsciiFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSS", false); } // [C2]
531812917test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dss", "xn--9-i0j5967eg3qz.ss", true); }
531912918test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dss"); } // [C2]
12919test { try toAsciiFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dss", false); } // [C2]
532012920test { try toUnicodePass("xn--9-i0j5967eg3qz.ss", "\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss"); }
532112921test { try toAsciiPass("xn--9-i0j5967eg3qz.ss", "xn--9-i0j5967eg3qz.ss", false); }
532212922test { try toAsciiPass("xn--9-i0j5967eg3qz.ss", "xn--9-i0j5967eg3qz.ss", true); }
......@@ -5327,15 +12927,23 @@ test { try toUnicodePass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "\xf0\x
532712927test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "xn--9-i0j5967eg3qz.ss", false); }
532812928test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "xn--9-i0j5967eg3qz.ss", true); }
532912929test { try toUnicodeFail("xn--9-i0j5967eg3qz.xn--ss-l1t"); } // [C2]
12930test { try toAsciiFail("xn--9-i0j5967eg3qz.xn--ss-l1t", false); } // [C2]
12931test { try toAsciiFail("xn--9-i0j5967eg3qz.xn--ss-l1t", true); } // [C2]
533012932test { try toUnicodeFail("xn--9-i0j5967eg3qz.xn--zca770n"); } // [C2]
12933test { try toAsciiFail("xn--9-i0j5967eg3qz.xn--zca770n", false); } // [C2]
12934test { try toAsciiFail("xn--9-i0j5967eg3qz.xn--zca770n", true); } // [C2]
533112935test { try toAsciiPass("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSS", "xn--9-i0j5967eg3qz.ss", true); }
533212936test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSS"); } // [C2]
12937test { try toAsciiFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSS", false); } // [C2]
533312938test { try toAsciiPass("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dss", "xn--9-i0j5967eg3qz.ss", true); }
533412939test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dss"); } // [C2]
12940test { try toAsciiFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dss", false); } // [C2]
533512941test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSs", "xn--9-i0j5967eg3qz.ss", true); }
533612942test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSs"); } // [C2]
12943test { try toAsciiFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSs", false); } // [C2]
533712944test { try toAsciiPass("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSs", "xn--9-i0j5967eg3qz.ss", true); }
533812945test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSs"); } // [C2]
12946test { try toAsciiFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSs", false); } // [C2]
533912947test { try toUnicodePass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92"); }
534012948test { try toAsciiPass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "xn--ju8a625r.xn--hpb0073k", false); }
534112949test { try toAsciiPass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "xn--ju8a625r.xn--hpb0073k", true); }
......@@ -5343,240 +12951,701 @@ test { try toUnicodePass("xn--ju8a625r.xn--hpb0073k", "\xea\x97\xb7\xf0\x91\x86\
534312951test { try toAsciiPass("xn--ju8a625r.xn--hpb0073k", "xn--ju8a625r.xn--hpb0073k", false); }
534412952test { try toAsciiPass("xn--ju8a625r.xn--hpb0073k", "xn--ju8a625r.xn--hpb0073k", true); }
534512953test { try toUnicodeFail("\xe2\x92\x90\xe2\x89\xaf-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7]
12954test { try toAsciiFail("\xe2\x92\x90\xe2\x89\xaf-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0", false); } // [V3, V7]
12955test { try toAsciiFail("\xe2\x92\x90\xe2\x89\xaf-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0", true); } // [V3, V7]
534612956test { try toUnicodeFail("\xe2\x92\x90>\xcc\xb8-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7]
12957test { try toAsciiFail("\xe2\x92\x90>\xcc\xb8-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0", false); } // [V3, V7]
12958test { try toAsciiFail("\xe2\x92\x90>\xcc\xb8-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0", true); } // [V3, V7]
534712959test { try toUnicodeFail("9.\xe2\x89\xaf-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7, X4_2]
12960test { try toAsciiFail("9.\xe2\x89\xaf-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0", false); } // [V3, V7, A4_2]
12961test { try toAsciiFail("9.\xe2\x89\xaf-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0", true); } // [V3, V7, A4_2]
534812962test { try toUnicodeFail("9.>\xcc\xb8-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7, X4_2]
12963test { try toAsciiFail("9.>\xcc\xb8-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0", false); } // [V3, V7, A4_2]
12964test { try toAsciiFail("9.>\xcc\xb8-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0", true); } // [V3, V7, A4_2]
534912965test { try toUnicodeFail("9.xn----ogo..xn----xj54d1s69k"); } // [V3, V7, X4_2]
12966test { try toAsciiFail("9.xn----ogo..xn----xj54d1s69k", false); } // [V3, V7, A4_2]
12967test { try toAsciiFail("9.xn----ogo..xn----xj54d1s69k", true); } // [V3, V7, A4_2]
535012968test { try toUnicodeFail("xn----ogot9g.xn----n89hl0522az9u2a"); } // [V3, V7]
12969test { try toAsciiFail("xn----ogot9g.xn----n89hl0522az9u2a", false); } // [V3, V7]
12970test { try toAsciiFail("xn----ogot9g.xn----n89hl0522az9u2a", true); } // [V3, V7]
535112971test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d"); } // [B6, V7]
12972test { try toAsciiFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d", false); } // [B6, V7]
12973test { try toAsciiFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d", true); } // [B6, V7]
535212974test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f.\xd8\x9d"); } // [B6, V7]
12975test { try toAsciiFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f.\xd8\x9d", false); } // [B6, V7]
12976test { try toAsciiFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f.\xd8\x9d", true); } // [B6, V7]
535312977test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f.\xd8\x9d"); } // [B6, V7]
12978test { try toAsciiFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f.\xd8\x9d", false); } // [B6, V7]
12979test { try toAsciiFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f.\xd8\x9d", true); } // [B6, V7]
535412980test { try toUnicodeFail("xn--vuc226n8n28lmju7a.xn--cgb"); } // [B6, V7]
12981test { try toAsciiFail("xn--vuc226n8n28lmju7a.xn--cgb", false); } // [B6, V7]
12982test { try toAsciiFail("xn--vuc226n8n28lmju7a.xn--cgb", true); } // [B6, V7]
535512983test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d"); } // [B6, V7]
12984test { try toAsciiFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d", false); } // [B6, V7]
12985test { try toAsciiFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d", true); } // [B6, V7]
535612986test { try toUnicodeFail("xn--vuc49qvu85xmju7a.xn--cgb"); } // [B6, V7]
12987test { try toAsciiFail("xn--vuc49qvu85xmju7a.xn--cgb", false); } // [B6, V7]
12988test { try toAsciiFail("xn--vuc49qvu85xmju7a.xn--cgb", true); } // [B6, V7]
535712989test { try toUnicodeFail("\xe1\xb7\xab\xe3\x80\x82\xf0\x90\x8b\xa9\xd8\xb8-\xf0\x90\xab\xae"); } // [B1, V6]
12990test { try toAsciiFail("\xe1\xb7\xab\xe3\x80\x82\xf0\x90\x8b\xa9\xd8\xb8-\xf0\x90\xab\xae", false); } // [B1, V6]
12991test { try toAsciiFail("\xe1\xb7\xab\xe3\x80\x82\xf0\x90\x8b\xa9\xd8\xb8-\xf0\x90\xab\xae", true); } // [B1, V6]
535812992test { try toUnicodeFail("xn--gfg.xn----xnc0815qyyg"); } // [B1, V6]
12993test { try toAsciiFail("xn--gfg.xn----xnc0815qyyg", false); } // [B1, V6]
12994test { try toAsciiFail("xn--gfg.xn----xnc0815qyyg", true); } // [B1, V6]
535912995test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe1\x82\xbd"); } // [B5]
12996test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe1\x82\xbd", false); } // [B5]
12997test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe1\x82\xbd", true); } // [B5]
536012998test { try toUnicodeFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe1\x82\xbd"); } // [B5]
12999test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe1\x82\xbd", false); } // [B5]
13000test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe1\x82\xbd", true); } // [B5]
536113001test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe1\x82\xbd"); } // [B5]
13002test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe1\x82\xbd", false); } // [B5]
13003test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe1\x82\xbd", true); } // [B5]
536213004test { try toUnicodeFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe1\x82\xbd"); } // [B5]
13005test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe1\x82\xbd", false); } // [B5]
13006test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe1\x82\xbd", true); } // [B5]
536313007test { try toUnicodeFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe2\xb4\x9d"); } // [B5]
13008test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe2\xb4\x9d", false); } // [B5]
13009test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe2\xb4\x9d", true); } // [B5]
536413010test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe2\xb4\x9d"); } // [B5]
13011test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe2\xb4\x9d", false); } // [B5]
13012test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe2\xb4\x9d", true); } // [B5]
536513013test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe1\x82\xbd"); } // [B5]
13014test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe1\x82\xbd", false); } // [B5]
13015test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe1\x82\xbd", true); } // [B5]
536613016test { try toUnicodeFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe1\x82\xbd"); } // [B5]
13017test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe1\x82\xbd", false); } // [B5]
13018test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe1\x82\xbd", true); } // [B5]
536713019test { try toUnicodeFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe2\xb4\x9d"); } // [B5]
13020test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe2\xb4\x9d", false); } // [B5]
13021test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe2\xb4\x9d", true); } // [B5]
536813022test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe2\xb4\x9d"); } // [B5]
13023test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe2\xb4\x9d", false); } // [B5]
13024test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe2\xb4\x9d", true); } // [B5]
536913025test { try toUnicodeFail("xn--9u4b.xn--llj123yh74e"); } // [B5]
13026test { try toAsciiFail("xn--9u4b.xn--llj123yh74e", false); } // [B5]
13027test { try toAsciiFail("xn--9u4b.xn--llj123yh74e", true); } // [B5]
537013028test { try toUnicodeFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe2\xb4\x9d"); } // [B5]
13029test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe2\xb4\x9d", false); } // [B5]
13030test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe2\xb4\x9d", true); } // [B5]
537113031test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe2\xb4\x9d"); } // [B5]
13032test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe2\xb4\x9d", false); } // [B5]
13033test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe2\xb4\x9d", true); } // [B5]
537213034test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe1\x82\xbd"); } // [B5]
13035test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe1\x82\xbd", false); } // [B5]
13036test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe1\x82\xbd", true); } // [B5]
537313037test { try toUnicodeFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe1\x82\xbd"); } // [B5]
13038test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe1\x82\xbd", false); } // [B5]
13039test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe1\x82\xbd", true); } // [B5]
537413040test { try toUnicodeFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe2\xb4\x9d"); } // [B5]
13041test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe2\xb4\x9d", false); } // [B5]
13042test { try toAsciiFail("\xe1\x84\x89\xe1\x85\xb4\xe1\x86\xae\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe2\xb4\x9d", true); } // [B5]
537513043test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe2\xb4\x9d"); } // [B5]
13044test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe2\xb4\x9d", false); } // [B5]
13045test { try toAsciiFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe2\xb4\x9d", true); } // [B5]
537613046test { try toUnicodeFail("xn--9u4b.xn--1nd7519ch79d"); } // [B5, V7]
13047test { try toAsciiFail("xn--9u4b.xn--1nd7519ch79d", false); } // [B5, V7]
13048test { try toAsciiFail("xn--9u4b.xn--1nd7519ch79d", true); } // [B5, V7]
537713049test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80"); } // [B1, C1]
13050test { try toAsciiFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80", false); } // [B1, C1]
13051test { try toAsciiFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80", true); } // [B1, B2, B3]
537813052test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1]
13053test { try toAsciiFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0", false); } // [B1, C1]
13054test { try toAsciiFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0", true); } // [B1, B2, B3]
537913055test { try toUnicodeFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80"); } // [B1, C1]
13056test { try toAsciiFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80", false); } // [B1, C1]
13057test { try toAsciiFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80", true); } // [B1, B2, B3]
538013058test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x83\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1]
13059test { try toAsciiFail("\xf0\x90\xb9\xa0\xcf\x83\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0", false); } // [B1, C1]
13060test { try toAsciiFail("\xf0\x90\xb9\xa0\xcf\x83\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0", true); } // [B1, B2, B3]
538113061test { try toUnicodeFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1]
13062test { try toAsciiFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0", false); } // [B1, C1]
13063test { try toAsciiFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0", true); } // [B1, B2, B3]
538213064test { try toUnicodeFail("xn--4xa9167k.xn--ykb467q"); } // [B1, B2, B3]
13065test { try toAsciiFail("xn--4xa9167k.xn--ykb467q", false); } // [B1, B2, B3]
13066test { try toAsciiFail("xn--4xa9167k.xn--ykb467q", true); } // [B1, B2, B3]
538313067test { try toUnicodeFail("xn--4xa9167k.xn--ykb760k9hj"); } // [B1, C1]
13068test { try toAsciiFail("xn--4xa9167k.xn--ykb760k9hj", false); } // [B1, C1]
13069test { try toAsciiFail("xn--4xa9167k.xn--ykb760k9hj", true); } // [B1, C1]
538413070test { try toUnicodeFail("xn--3xa1267k.xn--ykb760k9hj"); } // [B1, C1]
13071test { try toAsciiFail("xn--3xa1267k.xn--ykb760k9hj", false); } // [B1, C1]
13072test { try toAsciiFail("xn--3xa1267k.xn--ykb760k9hj", true); } // [B1, C1]
538513073test { try toUnicodeFail("xn--4xa9167k.xn--ykb632c"); } // [B1, B2, B3, V7]
13074test { try toAsciiFail("xn--4xa9167k.xn--ykb632c", false); } // [B1, B2, B3, V7]
13075test { try toAsciiFail("xn--4xa9167k.xn--ykb632c", true); } // [B1, B2, B3, V7]
538613076test { try toUnicodeFail("xn--4xa9167k.xn--ykb632cvxm"); } // [B1, C1, V7]
13077test { try toAsciiFail("xn--4xa9167k.xn--ykb632cvxm", false); } // [B1, C1, V7]
13078test { try toAsciiFail("xn--4xa9167k.xn--ykb632cvxm", true); } // [B1, C1, V7]
538713079test { try toUnicodeFail("xn--3xa1267k.xn--ykb632cvxm"); } // [B1, C1, V7]
13080test { try toAsciiFail("xn--3xa1267k.xn--ykb632cvxm", false); } // [B1, C1, V7]
13081test { try toAsciiFail("xn--3xa1267k.xn--ykb632cvxm", true); } // [B1, C1, V7]
538813082test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-\xc3\x9f"); } // [B2, B3, B5, B6, C1, V7]
13083test { try toAsciiFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-\xc3\x9f", false); } // [B2, B3, B5, B6, C1, V7]
13084test { try toAsciiFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-\xc3\x9f", true); } // [B2, B3, B5, B6, V7]
538913085test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-SS"); } // [B2, B3, B5, B6, C1, V7]
13086test { try toAsciiFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-SS", false); } // [B2, B3, B5, B6, C1, V7]
13087test { try toAsciiFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-SS", true); } // [B2, B3, B5, B6, V7]
539013088test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-ss"); } // [B2, B3, B5, B6, C1, V7]
13089test { try toAsciiFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-ss", false); } // [B2, B3, B5, B6, C1, V7]
13090test { try toAsciiFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-ss", true); } // [B2, B3, B5, B6, V7]
539113091test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-Ss"); } // [B2, B3, B5, B6, C1, V7]
13092test { try toAsciiFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-Ss", false); } // [B2, B3, B5, B6, C1, V7]
13093test { try toAsciiFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-Ss", true); } // [B2, B3, B5, B6, V7]
539213094test { try toUnicodeFail("xn--mfb98261i.xn---ss-sdf"); } // [B2, B3, B5, B6, V7]
13095test { try toAsciiFail("xn--mfb98261i.xn---ss-sdf", false); } // [B2, B3, B5, B6, V7]
13096test { try toAsciiFail("xn--mfb98261i.xn---ss-sdf", true); } // [B2, B3, B5, B6, V7]
539313097test { try toUnicodeFail("xn--mfb144kqo32m.xn---ss-sdf"); } // [B2, B3, B5, B6, C1, V7]
13098test { try toAsciiFail("xn--mfb144kqo32m.xn---ss-sdf", false); } // [B2, B3, B5, B6, C1, V7]
13099test { try toAsciiFail("xn--mfb144kqo32m.xn---ss-sdf", true); } // [B2, B3, B5, B6, C1, V7]
539413100test { try toUnicodeFail("xn--mfb144kqo32m.xn----qfa315b"); } // [B2, B3, B5, B6, C1, V7]
13101test { try toAsciiFail("xn--mfb144kqo32m.xn----qfa315b", false); } // [B2, B3, B5, B6, C1, V7]
13102test { try toAsciiFail("xn--mfb144kqo32m.xn----qfa315b", true); } // [B2, B3, B5, B6, C1, V7]
539513103test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xef\xae\xb0\xf3\x85\x84\x9e\xf0\x90\xb8\x9a"); } // [B1, C1, C2, V3, V7]
13104test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xef\xae\xb0\xf3\x85\x84\x9e\xf0\x90\xb8\x9a", false); } // [B1, C1, C2, V3, V7]
13105test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xef\xae\xb0\xf3\x85\x84\x9e\xf0\x90\xb8\x9a", true); } // [B1, V3, V7]
539613106test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xdb\x93\xf3\x85\x84\x9e\xf0\x90\xb8\x9a"); } // [B1, C1, C2, V3, V7]
13107test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xdb\x93\xf3\x85\x84\x9e\xf0\x90\xb8\x9a", false); } // [B1, C1, C2, V3, V7]
13108test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xdb\x93\xf3\x85\x84\x9e\xf0\x90\xb8\x9a", true); } // [B1, V3, V7]
539713109test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xdb\x92\xd9\x94\xf3\x85\x84\x9e\xf0\x90\xb8\x9a"); } // [B1, C1, C2, V3, V7]
13110test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xdb\x92\xd9\x94\xf3\x85\x84\x9e\xf0\x90\xb8\x9a", false); } // [B1, C1, C2, V3, V7]
13111test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8d\xe1\x9e\xb5\xd9\xba.-\xdb\x92\xd9\x94\xf3\x85\x84\x9e\xf0\x90\xb8\x9a", true); } // [B1, V3, V7]
539813112test { try toUnicodeFail("xn--zib.xn----twc1133r17r6g"); } // [B1, V3, V7]
13113test { try toAsciiFail("xn--zib.xn----twc1133r17r6g", false); } // [B1, V3, V7]
13114test { try toAsciiFail("xn--zib.xn----twc1133r17r6g", true); } // [B1, V3, V7]
539913115test { try toUnicodeFail("xn--zib502kda.xn----twc1133r17r6g"); } // [B1, C1, C2, V3, V7]
13116test { try toAsciiFail("xn--zib502kda.xn----twc1133r17r6g", false); } // [B1, C1, C2, V3, V7]
13117test { try toAsciiFail("xn--zib502kda.xn----twc1133r17r6g", true); } // [B1, C1, C2, V3, V7]
540013118test { try toUnicodeFail("xn--zib539f.xn----twc1133r17r6g"); } // [B1, V3, V6, V7]
13119test { try toAsciiFail("xn--zib539f.xn----twc1133r17r6g", false); } // [B1, V3, V6, V7]
13120test { try toAsciiFail("xn--zib539f.xn----twc1133r17r6g", true); } // [B1, V3, V6, V7]
540113121test { try toUnicodeFail("xn--zib539f8igea.xn----twc1133r17r6g"); } // [B1, C1, C2, V3, V7]
13122test { try toAsciiFail("xn--zib539f8igea.xn----twc1133r17r6g", false); } // [B1, C1, C2, V3, V7]
13123test { try toAsciiFail("xn--zib539f8igea.xn----twc1133r17r6g", true); } // [B1, C1, C2, V3, V7]
540213124test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac\xe2\x89\xa0"); } // [B3, V7]
13125test { try toAsciiFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac\xe2\x89\xa0", false); } // [B3, V7]
13126test { try toAsciiFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac\xe2\x89\xa0", true); } // [B3, V7]
540313127test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac=\xcc\xb8"); } // [B3, V7]
13128test { try toAsciiFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac=\xcc\xb8", false); } // [B3, V7]
13129test { try toAsciiFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac=\xcc\xb8", true); } // [B3, V7]
540413130test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac\xe2\x89\xa0"); } // [B3, V7]
13131test { try toAsciiFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac\xe2\x89\xa0", false); } // [B3, V7]
13132test { try toAsciiFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac\xe2\x89\xa0", true); } // [B3, V7]
540513133test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac=\xcc\xb8"); } // [B3, V7]
13134test { try toAsciiFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac=\xcc\xb8", false); } // [B3, V7]
13135test { try toAsciiFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac=\xcc\xb8", true); } // [B3, V7]
540613136test { try toUnicodeFail("xn--dd55c.xn--1ch3003g"); } // [B3, V7]
13137test { try toAsciiFail("xn--dd55c.xn--1ch3003g", false); } // [B3, V7]
13138test { try toAsciiFail("xn--dd55c.xn--1ch3003g", true); } // [B3, V7]
540713139test { try toUnicodeFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xef\xbd\xa1\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xeb\x8d\x9d\xdb\xb5"); } // [B1, V6, V7]
13140test { try toAsciiFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xef\xbd\xa1\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xeb\x8d\x9d\xdb\xb5", false); } // [B1, V6, V7]
13141test { try toAsciiFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xef\xbd\xa1\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xeb\x8d\x9d\xdb\xb5", true); } // [B1, V6, V7]
540813142test { try toUnicodeFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xef\xbd\xa1\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xe1\x84\x83\xe1\x85\xa5\xe1\x86\xb0\xdb\xb5"); } // [B1, V6, V7]
13143test { try toAsciiFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xef\xbd\xa1\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xe1\x84\x83\xe1\x85\xa5\xe1\x86\xb0\xdb\xb5", false); } // [B1, V6, V7]
13144test { try toAsciiFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xef\xbd\xa1\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xe1\x84\x83\xe1\x85\xa5\xe1\x86\xb0\xdb\xb5", true); } // [B1, V6, V7]
540913145test { try toUnicodeFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xe3\x80\x82\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xeb\x8d\x9d\xdb\xb5"); } // [B1, V6, V7]
13146test { try toAsciiFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xe3\x80\x82\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xeb\x8d\x9d\xdb\xb5", false); } // [B1, V6, V7]
13147test { try toAsciiFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xe3\x80\x82\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xeb\x8d\x9d\xdb\xb5", true); } // [B1, V6, V7]
541013148test { try toUnicodeFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xe3\x80\x82\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xe1\x84\x83\xe1\x85\xa5\xe1\x86\xb0\xdb\xb5"); } // [B1, V6, V7]
13149test { try toAsciiFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xe3\x80\x82\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xe1\x84\x83\xe1\x85\xa5\xe1\x86\xb0\xdb\xb5", false); } // [B1, V6, V7]
13150test { try toAsciiFail("\xe0\xbe\xb2\xf0\x9e\xb6\x85\xe3\x80\x82\xf0\x90\xb9\xae\xf0\x90\xb9\xb7\xe1\x84\x83\xe1\x85\xa5\xe1\x86\xb0\xdb\xb5", true); } // [B1, V6, V7]
541113151test { try toUnicodeFail("xn--fgd0675v.xn--imb5839fidpcbba"); } // [B1, V6, V7]
13152test { try toAsciiFail("xn--fgd0675v.xn--imb5839fidpcbba", false); } // [B1, V6, V7]
13153test { try toAsciiFail("xn--fgd0675v.xn--imb5839fidpcbba", true); } // [B1, V6, V7]
541213154test { try toUnicodeFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe1\x82\xa9"); } // [C2, V3]
13155test { try toAsciiFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe1\x82\xa9", false); } // [C2, V3]
13156test { try toAsciiFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe1\x82\xa9", true); } // [V3]
541313157test { try toUnicodeFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe1\x82\xa9"); } // [C2, V3]
13158test { try toAsciiFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe1\x82\xa9", false); } // [C2, V3]
13159test { try toAsciiFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe1\x82\xa9", true); } // [V3]
541413160test { try toUnicodeFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe2\xb4\x89"); } // [C2, V3]
13161test { try toAsciiFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe2\xb4\x89", false); } // [C2, V3]
13162test { try toAsciiFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe2\xb4\x89", true); } // [V3]
541513163test { try toUnicodeFail("xn----3vs.xn--0kj"); } // [V3]
13164test { try toAsciiFail("xn----3vs.xn--0kj", false); } // [V3]
13165test { try toAsciiFail("xn----3vs.xn--0kj", true); } // [V3]
541613166test { try toUnicodeFail("xn----3vs.xn--1ug532c"); } // [C2, V3]
13167test { try toAsciiFail("xn----3vs.xn--1ug532c", false); } // [C2, V3]
13168test { try toAsciiFail("xn----3vs.xn--1ug532c", true); } // [C2, V3]
541713169test { try toUnicodeFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe2\xb4\x89"); } // [C2, V3]
13170test { try toAsciiFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe2\xb4\x89", false); } // [C2, V3]
13171test { try toAsciiFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe2\xb4\x89", true); } // [V3]
541813172test { try toUnicodeFail("xn----00g.xn--hnd"); } // [V3, V7]
13173test { try toAsciiFail("xn----00g.xn--hnd", false); } // [V3, V7]
13174test { try toAsciiFail("xn----00g.xn--hnd", true); } // [V3, V7]
541913175test { try toUnicodeFail("xn----00g.xn--hnd399e"); } // [C2, V3, V7]
13176test { try toAsciiFail("xn----00g.xn--hnd399e", false); } // [C2, V3, V7]
13177test { try toAsciiFail("xn----00g.xn--hnd399e", true); } // [C2, V3, V7]
542013178test { try toUnicodeFail("\xe2\x87\xa7\xf0\x90\xa8\x8f\xf3\xa0\xbe\x88\xf3\xaf\xb6\x85\xe3\x80\x82\xd8\x80\xf3\xa0\x88\xb5\xf3\xa0\x86\x89"); } // [B1, V7]
13179test { try toAsciiFail("\xe2\x87\xa7\xf0\x90\xa8\x8f\xf3\xa0\xbe\x88\xf3\xaf\xb6\x85\xe3\x80\x82\xd8\x80\xf3\xa0\x88\xb5\xf3\xa0\x86\x89", false); } // [B1, V7]
13180test { try toAsciiFail("\xe2\x87\xa7\xf0\x90\xa8\x8f\xf3\xa0\xbe\x88\xf3\xaf\xb6\x85\xe3\x80\x82\xd8\x80\xf3\xa0\x88\xb5\xf3\xa0\x86\x89", true); } // [B1, V7]
542113181test { try toUnicodeFail("xn--l8g5552g64t4g46xf.xn--ifb08144p"); } // [B1, V7]
13182test { try toAsciiFail("xn--l8g5552g64t4g46xf.xn--ifb08144p", false); } // [B1, V7]
13183test { try toAsciiFail("xn--l8g5552g64t4g46xf.xn--ifb08144p", true); } // [B1, V7]
542213184test { try toUnicodeFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88"); } // [B1, V7, U1]
13185test { try toAsciiFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88", false); } // [B1, V7, U1]
13186test { try toAsciiFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88", true); } // [B1, V7, U1]
542313187test { try toUnicodeFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88"); } // [B1, V7, U1]
13188test { try toAsciiFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88", false); } // [B1, V7, U1]
13189test { try toAsciiFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88", true); } // [B1, V7, U1]
542413190test { try toUnicodeFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x916,1."); } // [B1, U1]
13191test { try toAsciiFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x916,1.", false); } // [B1, U1, A4_2]
13192test { try toAsciiFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x916,1.", true); } // [B1, U1, A4_2]
542513193test { try toUnicodeFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x916,1."); } // [B1, U1]
13194test { try toAsciiFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x916,1.", false); } // [B1, U1, A4_2]
13195test { try toAsciiFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x916,1.", true); } // [B1, U1, A4_2]
542613196test { try toUnicodeFail("xn--1chy492g.xn--6,1-pw1a."); } // [B1, U1]
13197test { try toAsciiFail("xn--1chy492g.xn--6,1-pw1a.", false); } // [B1, U1, A4_2]
13198test { try toAsciiFail("xn--1chy492g.xn--6,1-pw1a.", true); } // [B1, U1, A4_2]
542713199test { try toUnicodeFail("xn--1chy492g.xn--6,-uzus5m"); } // [B1, V7, U1]
13200test { try toAsciiFail("xn--1chy492g.xn--6,-uzus5m", false); } // [B1, V7, U1]
13201test { try toAsciiFail("xn--1chy492g.xn--6,-uzus5m", true); } // [B1, V7, U1]
542813202test { try toUnicodeFail("xn--1chy492g.xn--45gx9iuy44d"); } // [B1, V7]
13203test { try toAsciiFail("xn--1chy492g.xn--45gx9iuy44d", false); } // [B1, V7]
13204test { try toAsciiFail("xn--1chy492g.xn--45gx9iuy44d", true); } // [B1, V7]
542913205test { try toUnicodeFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89\xc3\x9f.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab"); } // [B1, B5, B6, C1, V6, V7]
13206test { try toAsciiFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89\xc3\x9f.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab", false); } // [B1, B5, B6, C1, V6, V7]
13207test { try toAsciiFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89\xc3\x9f.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab", true); } // [B1, B5, B6, V6, V7]
543013208test { try toUnicodeFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89SS.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab"); } // [B1, B5, B6, C1, V6, V7]
13209test { try toAsciiFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89SS.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab", false); } // [B1, B5, B6, C1, V6, V7]
13210test { try toAsciiFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89SS.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab", true); } // [B1, B5, B6, V6, V7]
543113211test { try toUnicodeFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89ss.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab"); } // [B1, B5, B6, C1, V6, V7]
13212test { try toAsciiFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89ss.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab", false); } // [B1, B5, B6, C1, V6, V7]
13213test { try toAsciiFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89ss.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab", true); } // [B1, B5, B6, V6, V7]
543213214test { try toUnicodeFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89Ss.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab"); } // [B1, B5, B6, C1, V6, V7]
13215test { try toAsciiFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89Ss.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab", false); } // [B1, B5, B6, C1, V6, V7]
13216test { try toAsciiFail("\xf0\x9d\xa9\x8f\xf3\xa0\xb2\x89Ss.\xe1\xa2\xa4\xf2\x84\xa6\x8c\xe2\x80\x8c\xf0\x90\xb9\xab", true); } // [B1, B5, B6, V6, V7]
543313217test { try toUnicodeFail("xn--ss-zb11ap1427e.xn--ubf2596jbt61c"); } // [B1, B5, B6, V6, V7]
13218test { try toAsciiFail("xn--ss-zb11ap1427e.xn--ubf2596jbt61c", false); } // [B1, B5, B6, V6, V7]
13219test { try toAsciiFail("xn--ss-zb11ap1427e.xn--ubf2596jbt61c", true); } // [B1, B5, B6, V6, V7]
543413220test { try toUnicodeFail("xn--ss-zb11ap1427e.xn--ubf609atw1tynn3d"); } // [B1, B5, B6, C1, V6, V7]
13221test { try toAsciiFail("xn--ss-zb11ap1427e.xn--ubf609atw1tynn3d", false); } // [B1, B5, B6, C1, V6, V7]
13222test { try toAsciiFail("xn--ss-zb11ap1427e.xn--ubf609atw1tynn3d", true); } // [B1, B5, B6, C1, V6, V7]
543513223test { try toUnicodeFail("xn--zca3153vupz3e.xn--ubf609atw1tynn3d"); } // [B1, B5, B6, C1, V6, V7]
13224test { try toAsciiFail("xn--zca3153vupz3e.xn--ubf609atw1tynn3d", false); } // [B1, B5, B6, C1, V6, V7]
13225test { try toAsciiFail("xn--zca3153vupz3e.xn--ubf609atw1tynn3d", true); } // [B1, B5, B6, C1, V6, V7]
543613226test { try toUnicodeFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
13227test { try toAsciiFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba", false); } // [B1, B5, V6, V7]
13228test { try toAsciiFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba", true); } // [B1, B5, V6, V7]
543713229test { try toUnicodeFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
13230test { try toAsciiFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba", false); } // [B1, B5, V6, V7]
13231test { try toAsciiFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba", true); } // [B1, B5, V6, V7]
543813232test { try toUnicodeFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
13233test { try toAsciiFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xe3\x80\x82\xea\x99\xba", false); } // [B1, B5, V6, V7]
13234test { try toAsciiFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xe3\x80\x82\xea\x99\xba", true); } // [B1, B5, V6, V7]
543913235test { try toUnicodeFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
13236test { try toAsciiFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba", false); } // [B1, B5, V6, V7]
13237test { try toAsciiFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba", true); } // [B1, B5, V6, V7]
544013238test { try toUnicodeFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
13239test { try toAsciiFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xe3\x80\x82\xea\x99\xba", false); } // [B1, B5, V6, V7]
13240test { try toAsciiFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xe3\x80\x82\xea\x99\xba", true); } // [B1, B5, V6, V7]
544113241test { try toUnicodeFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
13242test { try toAsciiFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba", false); } // [B1, B5, V6, V7]
13243test { try toAsciiFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba", true); } // [B1, B5, V6, V7]
544213244test { try toUnicodeFail("xn--ss-e61ar955h4hs7b.xn--9x8a"); } // [B1, B5, V6, V7]
13245test { try toAsciiFail("xn--ss-e61ar955h4hs7b.xn--9x8a", false); } // [B1, B5, V6, V7]
13246test { try toAsciiFail("xn--ss-e61ar955h4hs7b.xn--9x8a", true); } // [B1, B5, V6, V7]
544313247test { try toUnicodeFail("xn--zca227tpy4lkns1b.xn--9x8a"); } // [B1, B5, V6, V7]
13248test { try toAsciiFail("xn--zca227tpy4lkns1b.xn--9x8a", false); } // [B1, B5, V6, V7]
13249test { try toAsciiFail("xn--zca227tpy4lkns1b.xn--9x8a", true); } // [B1, B5, V6, V7]
544413250test { try toUnicodeFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
13251test { try toAsciiFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xef\xbd\xa1\xea\x99\xba", false); } // [B1, B5, V6, V7]
13252test { try toAsciiFail("\xc3\x9f\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xef\xbd\xa1\xea\x99\xba", true); } // [B1, B5, V6, V7]
544513253test { try toUnicodeFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
13254test { try toAsciiFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba", false); } // [B1, B5, V6, V7]
13255test { try toAsciiFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba", true); } // [B1, B5, V6, V7]
544613256test { try toUnicodeFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
13257test { try toAsciiFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xef\xbd\xa1\xea\x99\xba", false); } // [B1, B5, V6, V7]
13258test { try toAsciiFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xef\xbd\xa1\xea\x99\xba", true); } // [B1, B5, V6, V7]
544713259test { try toUnicodeFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
13260test { try toAsciiFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba", false); } // [B1, B5, V6, V7]
13261test { try toAsciiFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba", true); } // [B1, B5, V6, V7]
544813262test { try toUnicodeFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
13263test { try toAsciiFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba", false); } // [B1, B5, V6, V7]
13264test { try toAsciiFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba", true); } // [B1, B5, V6, V7]
544913265test { try toUnicodeFail("xn--ss-rek7420r4hs7b.xn--9x8a"); } // [B1, B5, V6, V7]
13266test { try toAsciiFail("xn--ss-rek7420r4hs7b.xn--9x8a", false); } // [B1, B5, V6, V7]
13267test { try toAsciiFail("xn--ss-rek7420r4hs7b.xn--9x8a", true); } // [B1, B5, V6, V7]
545013268test { try toUnicodeFail("xn--zca491fci5qkn79a.xn--9x8a"); } // [B1, B5, V6, V7]
13269test { try toAsciiFail("xn--zca491fci5qkn79a.xn--9x8a", false); } // [B1, B5, V6, V7]
13270test { try toAsciiFail("xn--zca491fci5qkn79a.xn--9x8a", true); } // [B1, B5, V6, V7]
545113271test { try toUnicodeFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
13272test { try toAsciiFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba", false); } // [B1, B5, V6, V7]
13273test { try toAsciiFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba", true); } // [B1, B5, V6, V7]
545213274test { try toUnicodeFail("\xe1\x9c\x94\xe3\x80\x82\xf3\xa0\x86\xa3-\xf0\x91\x8b\xaa"); } // [V3, V6]
13275test { try toAsciiFail("\xe1\x9c\x94\xe3\x80\x82\xf3\xa0\x86\xa3-\xf0\x91\x8b\xaa", false); } // [V3, V6]
13276test { try toAsciiFail("\xe1\x9c\x94\xe3\x80\x82\xf3\xa0\x86\xa3-\xf0\x91\x8b\xaa", true); } // [V3, V6]
545313277test { try toUnicodeFail("xn--fze.xn----ly8i"); } // [V3, V6]
13278test { try toAsciiFail("xn--fze.xn----ly8i", false); } // [V3, V6]
13279test { try toAsciiFail("xn--fze.xn----ly8i", true); } // [V3, V6]
545413280test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f"); } // [V3, V6, V7]
13281test { try toAsciiFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f", false); } // [V3, V6, V7]
13282test { try toAsciiFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f", true); } // [V3, V6, V7]
545513283test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f"); } // [V3, V6, V7]
13284test { try toAsciiFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f", false); } // [V3, V6, V7]
13285test { try toAsciiFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f", true); } // [V3, V6, V7]
545613286test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSS"); } // [V3, V6, V7]
13287test { try toAsciiFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSS", false); } // [V3, V6, V7]
13288test { try toAsciiFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSS", true); } // [V3, V6, V7]
545713289test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdss"); } // [V3, V6, V7]
13290test { try toAsciiFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdss", false); } // [V3, V6, V7]
13291test { try toAsciiFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdss", true); } // [V3, V6, V7]
545813292test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSs"); } // [V3, V6, V7]
13293test { try toAsciiFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSs", false); } // [V3, V6, V7]
13294test { try toAsciiFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSs", true); } // [V3, V6, V7]
545913295test { try toUnicodeFail("xn----pw5e.xn--ss-7jd10716y"); } // [V3, V6, V7]
13296test { try toAsciiFail("xn----pw5e.xn--ss-7jd10716y", false); } // [V3, V6, V7]
13297test { try toAsciiFail("xn----pw5e.xn--ss-7jd10716y", true); } // [V3, V6, V7]
546013298test { try toUnicodeFail("xn----pw5e.xn--zca50wfv060a"); } // [V3, V6, V7]
13299test { try toAsciiFail("xn----pw5e.xn--zca50wfv060a", false); } // [V3, V6, V7]
13300test { try toAsciiFail("xn----pw5e.xn--zca50wfv060a", true); } // [V3, V6, V7]
546113301test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSS"); } // [V3, V6, V7]
13302test { try toAsciiFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSS", false); } // [V3, V6, V7]
13303test { try toAsciiFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSS", true); } // [V3, V6, V7]
546213304test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdss"); } // [V3, V6, V7]
13305test { try toAsciiFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdss", false); } // [V3, V6, V7]
13306test { try toAsciiFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdss", true); } // [V3, V6, V7]
546313307test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSs"); } // [V3, V6, V7]
13308test { try toAsciiFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSs", false); } // [V3, V6, V7]
13309test { try toAsciiFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSs", true); } // [V3, V6, V7]
546413310test { try toUnicodeFail("\xe1\xa1\x93-\xe2\x89\xae\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84"); } // [B1, B6]
13311test { try toAsciiFail("\xe1\xa1\x93-\xe2\x89\xae\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84", false); } // [B1, B6]
13312test { try toAsciiFail("\xe1\xa1\x93-\xe2\x89\xae\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84", true); } // [B1, B6]
546513313test { try toUnicodeFail("\xe1\xa1\x93-<\xcc\xb8\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84"); } // [B1, B6]
13314test { try toAsciiFail("\xe1\xa1\x93-<\xcc\xb8\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84", false); } // [B1, B6]
13315test { try toAsciiFail("\xe1\xa1\x93-<\xcc\xb8\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84", true); } // [B1, B6]
546613316test { try toUnicodeFail("xn----s7j866c.xn--kib252g"); } // [B1, B6]
13317test { try toAsciiFail("xn----s7j866c.xn--kib252g", false); } // [B1, B6]
13318test { try toAsciiFail("xn----s7j866c.xn--kib252g", true); } // [B1, B6]
546713319test { try toUnicodeFail("\xf0\x9d\x9f\xa5\xe2\x99\xae\xf0\x91\x9c\xab\xe0\xa3\xad\xef\xbc\x8e\xe1\x9f\x92\xf0\x91\x9c\xab8\xf3\xa0\x86\x8f"); } // [V6]
13320test { try toAsciiFail("\xf0\x9d\x9f\xa5\xe2\x99\xae\xf0\x91\x9c\xab\xe0\xa3\xad\xef\xbc\x8e\xe1\x9f\x92\xf0\x91\x9c\xab8\xf3\xa0\x86\x8f", false); } // [V6]
13321test { try toAsciiFail("\xf0\x9d\x9f\xa5\xe2\x99\xae\xf0\x91\x9c\xab\xe0\xa3\xad\xef\xbc\x8e\xe1\x9f\x92\xf0\x91\x9c\xab8\xf3\xa0\x86\x8f", true); } // [V6]
546813322test { try toUnicodeFail("3\xe2\x99\xae\xf0\x91\x9c\xab\xe0\xa3\xad.\xe1\x9f\x92\xf0\x91\x9c\xab8\xf3\xa0\x86\x8f"); } // [V6]
13323test { try toAsciiFail("3\xe2\x99\xae\xf0\x91\x9c\xab\xe0\xa3\xad.\xe1\x9f\x92\xf0\x91\x9c\xab8\xf3\xa0\x86\x8f", false); } // [V6]
13324test { try toAsciiFail("3\xe2\x99\xae\xf0\x91\x9c\xab\xe0\xa3\xad.\xe1\x9f\x92\xf0\x91\x9c\xab8\xf3\xa0\x86\x8f", true); } // [V6]
546913325test { try toUnicodeFail("xn--3-ksd277tlo7s.xn--8-f0jx021l"); } // [V6]
13326test { try toAsciiFail("xn--3-ksd277tlo7s.xn--8-f0jx021l", false); } // [V6]
13327test { try toAsciiFail("xn--3-ksd277tlo7s.xn--8-f0jx021l", true); } // [V6]
547013328test { try toUnicodeFail("-\xef\xbd\xa1\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1"); } // [C2, V3, V7]
13329test { try toAsciiFail("-\xef\xbd\xa1\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1", false); } // [C2, V3, V7]
13330test { try toAsciiFail("-\xef\xbd\xa1\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1", true); } // [V3, V7]
547113331test { try toUnicodeFail("-\xe3\x80\x82\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1"); } // [C2, V3, V7]
13332test { try toAsciiFail("-\xe3\x80\x82\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1", false); } // [C2, V3, V7]
13333test { try toAsciiFail("-\xe3\x80\x82\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1", true); } // [V3, V7]
547213334test { try toUnicodeFail("-.xn--nei54421f"); } // [V3, V7]
13335test { try toAsciiFail("-.xn--nei54421f", false); } // [V3, V7]
13336test { try toAsciiFail("-.xn--nei54421f", true); } // [V3, V7]
547313337test { try toUnicodeFail("-.xn--1ug800aq795s"); } // [C2, V3, V7]
13338test { try toAsciiFail("-.xn--1ug800aq795s", false); } // [C2, V3, V7]
13339test { try toAsciiFail("-.xn--1ug800aq795s", true); } // [C2, V3, V7]
547413340test { try toUnicodeFail("\xf0\x9d\x9f\x93\xe2\x98\xb1\xf0\x9d\x9f\x90\xf2\xa5\xb0\xb5\xef\xbd\xa1\xf0\x9d\xaa\xae\xf1\x90\xa1\xb3"); } // [V6, V7]
13341test { try toAsciiFail("\xf0\x9d\x9f\x93\xe2\x98\xb1\xf0\x9d\x9f\x90\xf2\xa5\xb0\xb5\xef\xbd\xa1\xf0\x9d\xaa\xae\xf1\x90\xa1\xb3", false); } // [V6, V7]
13342test { try toAsciiFail("\xf0\x9d\x9f\x93\xe2\x98\xb1\xf0\x9d\x9f\x90\xf2\xa5\xb0\xb5\xef\xbd\xa1\xf0\x9d\xaa\xae\xf1\x90\xa1\xb3", true); } // [V6, V7]
547513343test { try toUnicodeFail("5\xe2\x98\xb12\xf2\xa5\xb0\xb5\xe3\x80\x82\xf0\x9d\xaa\xae\xf1\x90\xa1\xb3"); } // [V6, V7]
13344test { try toAsciiFail("5\xe2\x98\xb12\xf2\xa5\xb0\xb5\xe3\x80\x82\xf0\x9d\xaa\xae\xf1\x90\xa1\xb3", false); } // [V6, V7]
13345test { try toAsciiFail("5\xe2\x98\xb12\xf2\xa5\xb0\xb5\xe3\x80\x82\xf0\x9d\xaa\xae\xf1\x90\xa1\xb3", true); } // [V6, V7]
547613346test { try toUnicodeFail("xn--52-dwx47758j.xn--kd3hk431k"); } // [V6, V7]
13347test { try toAsciiFail("xn--52-dwx47758j.xn--kd3hk431k", false); } // [V6, V7]
13348test { try toAsciiFail("xn--52-dwx47758j.xn--kd3hk431k", true); } // [V6, V7]
547713349test { try toUnicodeFail("-.-\xe2\x94\x9c\xf2\x96\xa6\xa3"); } // [V3, V7]
13350test { try toAsciiFail("-.-\xe2\x94\x9c\xf2\x96\xa6\xa3", false); } // [V3, V7]
13351test { try toAsciiFail("-.-\xe2\x94\x9c\xf2\x96\xa6\xa3", true); } // [V3, V7]
547813352test { try toUnicodeFail("-.xn----ukp70432h"); } // [V3, V7]
13353test { try toAsciiFail("-.xn----ukp70432h", false); } // [V3, V7]
13354test { try toAsciiFail("-.xn----ukp70432h", true); } // [V3, V7]
547913355test { try toUnicodeFail("\xd6\xa5\xdd\xad\xef\xbd\xa1\xe2\x80\x8d\xf3\xa0\x80\x98"); } // [B1, C2, V6, V7]
13356test { try toAsciiFail("\xd6\xa5\xdd\xad\xef\xbd\xa1\xe2\x80\x8d\xf3\xa0\x80\x98", false); } // [B1, C2, V6, V7]
13357test { try toAsciiFail("\xd6\xa5\xdd\xad\xef\xbd\xa1\xe2\x80\x8d\xf3\xa0\x80\x98", true); } // [B1, V6, V7]
548013358test { try toUnicodeFail("\xd6\xa5\xdd\xad\xe3\x80\x82\xe2\x80\x8d\xf3\xa0\x80\x98"); } // [B1, C2, V6, V7]
13359test { try toAsciiFail("\xd6\xa5\xdd\xad\xe3\x80\x82\xe2\x80\x8d\xf3\xa0\x80\x98", false); } // [B1, C2, V6, V7]
13360test { try toAsciiFail("\xd6\xa5\xdd\xad\xe3\x80\x82\xe2\x80\x8d\xf3\xa0\x80\x98", true); } // [B1, V6, V7]
548113361test { try toUnicodeFail("xn--wcb62g.xn--p526e"); } // [B1, V6, V7]
13362test { try toAsciiFail("xn--wcb62g.xn--p526e", false); } // [B1, V6, V7]
13363test { try toAsciiFail("xn--wcb62g.xn--p526e", true); } // [B1, V6, V7]
548213364test { try toUnicodeFail("xn--wcb62g.xn--1ugy8001l"); } // [B1, C2, V6, V7]
13365test { try toAsciiFail("xn--wcb62g.xn--1ugy8001l", false); } // [B1, C2, V6, V7]
13366test { try toAsciiFail("xn--wcb62g.xn--1ugy8001l", true); } // [B1, C2, V6, V7]
548313367test { try toUnicodeFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe1\x82\xae\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92"); } // [B1, C1, V7]
13368test { try toAsciiFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe1\x82\xae\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92", false); } // [B1, C1, V7]
13369test { try toAsciiFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe1\x82\xae\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92", true); } // [B1, V7]
548413370test { try toUnicodeFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe1\x82\xae\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92"); } // [B1, C1, V7]
13371test { try toAsciiFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe1\x82\xae\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92", false); } // [B1, C1, V7]
13372test { try toAsciiFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe1\x82\xae\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92", true); } // [B1, V7]
548513373test { try toUnicodeFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe1\x82\xae.\xe2\x80\x8c1.1.\xf0\x90\xab\x92"); } // [B1, C1, V7]
13374test { try toAsciiFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe1\x82\xae.\xe2\x80\x8c1.1.\xf0\x90\xab\x92", false); } // [B1, C1, V7]
13375test { try toAsciiFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe1\x82\xae.\xe2\x80\x8c1.1.\xf0\x90\xab\x92", true); } // [B1, V7]
548613376test { try toUnicodeFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe1\x82\xae.\xe2\x80\x8c1.1.\xf0\x90\xab\x92"); } // [B1, C1, V7]
13377test { try toAsciiFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe1\x82\xae.\xe2\x80\x8c1.1.\xf0\x90\xab\x92", false); } // [B1, C1, V7]
13378test { try toAsciiFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe1\x82\xae.\xe2\x80\x8c1.1.\xf0\x90\xab\x92", true); } // [B1, V7]
548713379test { try toUnicodeFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe2\xb4\x8e.\xe2\x80\x8c1.1.\xf0\x90\xab\x92"); } // [B1, C1, V7]
13380test { try toAsciiFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe2\xb4\x8e.\xe2\x80\x8c1.1.\xf0\x90\xab\x92", false); } // [B1, C1, V7]
13381test { try toAsciiFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe2\xb4\x8e.\xe2\x80\x8c1.1.\xf0\x90\xab\x92", true); } // [B1, V7]
548813382test { try toUnicodeFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe2\xb4\x8e.\xe2\x80\x8c1.1.\xf0\x90\xab\x92"); } // [B1, C1, V7]
13383test { try toAsciiFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe2\xb4\x8e.\xe2\x80\x8c1.1.\xf0\x90\xab\x92", false); } // [B1, C1, V7]
13384test { try toAsciiFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe2\xb4\x8e.\xe2\x80\x8c1.1.\xf0\x90\xab\x92", true); } // [B1, V7]
548913385test { try toUnicodeFail("xn--5kj3511ccyw3h.1.1.xn--7w9c"); } // [B1, V7]
13386test { try toAsciiFail("xn--5kj3511ccyw3h.1.1.xn--7w9c", false); } // [B1, V7]
13387test { try toAsciiFail("xn--5kj3511ccyw3h.1.1.xn--7w9c", true); } // [B1, V7]
549013388test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--1-rgn.1.xn--7w9c"); } // [B1, C1, V7]
13389test { try toAsciiFail("xn--5kj3511ccyw3h.xn--1-rgn.1.xn--7w9c", false); } // [B1, C1, V7]
13390test { try toAsciiFail("xn--5kj3511ccyw3h.xn--1-rgn.1.xn--7w9c", true); } // [B1, C1, V7]
549113391test { try toUnicodeFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe2\xb4\x8e\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92"); } // [B1, C1, V7]
13392test { try toAsciiFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe2\xb4\x8e\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92", false); } // [B1, C1, V7]
13393test { try toAsciiFail("\xe1\x84\x8c\xe1\x85\xb1\xe1\x86\xbc\xf3\x94\x8f\x89\xe2\xb4\x8e\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92", true); } // [B1, V7]
549213394test { try toUnicodeFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe2\xb4\x8e\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92"); } // [B1, C1, V7]
13395test { try toAsciiFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe2\xb4\x8e\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92", false); } // [B1, C1, V7]
13396test { try toAsciiFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe2\xb4\x8e\xef\xbc\x8e\xe2\x80\x8c\xe2\x92\x88\xe2\x92\x88\xf0\x90\xab\x92", true); } // [B1, V7]
549313397test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--tsha6797o"); } // [B1, V7]
13398test { try toAsciiFail("xn--5kj3511ccyw3h.xn--tsha6797o", false); } // [B1, V7]
13399test { try toAsciiFail("xn--5kj3511ccyw3h.xn--tsha6797o", true); } // [B1, V7]
549413400test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--0ug88oa0396u"); } // [B1, C1, V7]
13401test { try toAsciiFail("xn--5kj3511ccyw3h.xn--0ug88oa0396u", false); } // [B1, C1, V7]
13402test { try toAsciiFail("xn--5kj3511ccyw3h.xn--0ug88oa0396u", true); } // [B1, C1, V7]
549513403test { try toUnicodeFail("xn--mnd7865gcy28g.1.1.xn--7w9c"); } // [B1, V7]
13404test { try toAsciiFail("xn--mnd7865gcy28g.1.1.xn--7w9c", false); } // [B1, V7]
13405test { try toAsciiFail("xn--mnd7865gcy28g.1.1.xn--7w9c", true); } // [B1, V7]
549613406test { try toUnicodeFail("xn--mnd7865gcy28g.xn--1-rgn.1.xn--7w9c"); } // [B1, C1, V7]
13407test { try toAsciiFail("xn--mnd7865gcy28g.xn--1-rgn.1.xn--7w9c", false); } // [B1, C1, V7]
13408test { try toAsciiFail("xn--mnd7865gcy28g.xn--1-rgn.1.xn--7w9c", true); } // [B1, C1, V7]
549713409test { try toUnicodeFail("xn--mnd7865gcy28g.xn--tsha6797o"); } // [B1, V7]
13410test { try toAsciiFail("xn--mnd7865gcy28g.xn--tsha6797o", false); } // [B1, V7]
13411test { try toAsciiFail("xn--mnd7865gcy28g.xn--tsha6797o", true); } // [B1, V7]
549813412test { try toUnicodeFail("xn--mnd7865gcy28g.xn--0ug88oa0396u"); } // [B1, C1, V7]
13413test { try toAsciiFail("xn--mnd7865gcy28g.xn--0ug88oa0396u", false); } // [B1, C1, V7]
13414test { try toAsciiFail("xn--mnd7865gcy28g.xn--0ug88oa0396u", true); } // [B1, C1, V7]
549913415test { try toUnicodeFail("\xe0\xa0\xa7\xf0\x9d\x9f\xb6\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3"); } // [B1, V3, V6]
13416test { try toAsciiFail("\xe0\xa0\xa7\xf0\x9d\x9f\xb6\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3", false); } // [B1, V3, V6]
13417test { try toAsciiFail("\xe0\xa0\xa7\xf0\x9d\x9f\xb6\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3", true); } // [B1, V3, V6]
550013418test { try toUnicodeFail("\xe0\xa0\xa70\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3"); } // [B1, V3, V6]
13419test { try toAsciiFail("\xe0\xa0\xa70\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3", false); } // [B1, V3, V6]
13420test { try toAsciiFail("\xe0\xa0\xa70\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3", true); } // [B1, V3, V6]
550113421test { try toUnicodeFail("xn--0--p3d67m.xn--v80d"); } // [B1, V3, V6]
13422test { try toAsciiFail("xn--0--p3d67m.xn--v80d", false); } // [B1, V3, V6]
13423test { try toAsciiFail("xn--0--p3d67m.xn--v80d", true); } // [B1, V3, V6]
550213424test { try toUnicodeFail("\xcf\x82\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7]
13425test { try toAsciiFail("\xcf\x82\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88", false); } // [V7]
13426test { try toAsciiFail("\xcf\x82\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88", true); } // [V7]
550313427test { try toUnicodePass("\xcf\x82.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", "\xcf\x82.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }
13428test { try toAsciiFail("\xcf\x82.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", false); } // [A4_2]
13429test { try toAsciiFail("\xcf\x82.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", true); } // [A4_2]
550413430test { try toUnicodePass("\xce\xa3.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", "\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }
13431test { try toAsciiFail("\xce\xa3.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", false); } // [A4_2]
13432test { try toAsciiFail("\xce\xa3.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", true); } // [A4_2]
550513433test { try toUnicodePass("\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", "\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }
13434test { try toAsciiFail("\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", false); } // [A4_2]
13435test { try toAsciiFail("\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1.", true); } // [A4_2]
550613436test { try toUnicodePass("xn--4xa.xn--1-gocmu97674d.", "\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }
13437test { try toAsciiFail("xn--4xa.xn--1-gocmu97674d.", false); } // [A4_2]
13438test { try toAsciiFail("xn--4xa.xn--1-gocmu97674d.", true); } // [A4_2]
550713439test { try toUnicodePass("xn--3xa.xn--1-gocmu97674d.", "\xcf\x82.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }
13440test { try toAsciiFail("xn--3xa.xn--1-gocmu97674d.", false); } // [A4_2]
13441test { try toAsciiFail("xn--3xa.xn--1-gocmu97674d.", true); } // [A4_2]
550813442test { try toUnicodeFail("\xce\xa3\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7]
13443test { try toAsciiFail("\xce\xa3\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88", false); } // [V7]
13444test { try toAsciiFail("\xce\xa3\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88", true); } // [V7]
550913445test { try toUnicodeFail("\xcf\x83\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7]
13446test { try toAsciiFail("\xcf\x83\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88", false); } // [V7]
13447test { try toAsciiFail("\xcf\x83\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88", true); } // [V7]
551013448test { try toUnicodeFail("xn--4xa.xn--dhbip2802atb20c"); } // [V7]
13449test { try toAsciiFail("xn--4xa.xn--dhbip2802atb20c", false); } // [V7]
13450test { try toAsciiFail("xn--4xa.xn--dhbip2802atb20c", true); } // [V7]
551113451test { try toUnicodeFail("xn--3xa.xn--dhbip2802atb20c"); } // [V7]
13452test { try toAsciiFail("xn--3xa.xn--dhbip2802atb20c", false); } // [V7]
13453test { try toAsciiFail("xn--3xa.xn--dhbip2802atb20c", true); } // [V7]
551213454test { try toUnicodeFail("\xf0\x9f\x97\xa9-\xef\xbd\xa1\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae"); } // [B1, V3, V7]
13455test { try toAsciiFail("\xf0\x9f\x97\xa9-\xef\xbd\xa1\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae", false); } // [B1, V3, V7]
13456test { try toAsciiFail("\xf0\x9f\x97\xa9-\xef\xbd\xa1\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae", true); } // [B1, V3, V7]
551313457test { try toUnicodeFail("\xf0\x9f\x97\xa9-\xe3\x80\x82\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae"); } // [B1, V3, V7]
13458test { try toAsciiFail("\xf0\x9f\x97\xa9-\xe3\x80\x82\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae", false); } // [B1, V3, V7]
13459test { try toAsciiFail("\xf0\x9f\x97\xa9-\xe3\x80\x82\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae", true); } // [B1, V3, V7]
551413460test { try toUnicodeFail("xn----6t3s.xn--zo0d4811u6ru6a"); } // [B1, V3, V7]
13461test { try toAsciiFail("xn----6t3s.xn--zo0d4811u6ru6a", false); } // [B1, V3, V7]
13462test { try toAsciiFail("xn----6t3s.xn--zo0d4811u6ru6a", true); } // [B1, V3, V7]
551513463test { try toUnicodeFail("\xf0\x90\xa1\x9c-\xf0\x9f\x94\xaa\xef\xbd\xa1\xf0\x9d\x9f\xbb\xe2\x80\x8c\xf0\x90\xbf\x80"); } // [B1, B3, C1]
13464test { try toAsciiFail("\xf0\x90\xa1\x9c-\xf0\x9f\x94\xaa\xef\xbd\xa1\xf0\x9d\x9f\xbb\xe2\x80\x8c\xf0\x90\xbf\x80", false); } // [B1, B3, C1]
13465test { try toAsciiFail("\xf0\x90\xa1\x9c-\xf0\x9f\x94\xaa\xef\xbd\xa1\xf0\x9d\x9f\xbb\xe2\x80\x8c\xf0\x90\xbf\x80", true); } // [B1, B3]
551613466test { try toUnicodeFail("\xf0\x90\xa1\x9c-\xf0\x9f\x94\xaa\xe3\x80\x825\xe2\x80\x8c\xf0\x90\xbf\x80"); } // [B1, B3, C1]
13467test { try toAsciiFail("\xf0\x90\xa1\x9c-\xf0\x9f\x94\xaa\xe3\x80\x825\xe2\x80\x8c\xf0\x90\xbf\x80", false); } // [B1, B3, C1]
13468test { try toAsciiFail("\xf0\x90\xa1\x9c-\xf0\x9f\x94\xaa\xe3\x80\x825\xe2\x80\x8c\xf0\x90\xbf\x80", true); } // [B1, B3]
551713469test { try toUnicodeFail("xn----5j4iv089c.xn--5-bn7i"); } // [B1, B3]
13470test { try toAsciiFail("xn----5j4iv089c.xn--5-bn7i", false); } // [B1, B3]
13471test { try toAsciiFail("xn----5j4iv089c.xn--5-bn7i", true); } // [B1, B3]
551813472test { try toUnicodeFail("xn----5j4iv089c.xn--5-sgn7149h"); } // [B1, B3, C1]
13473test { try toAsciiFail("xn----5j4iv089c.xn--5-sgn7149h", false); } // [B1, B3, C1]
13474test { try toAsciiFail("xn----5j4iv089c.xn--5-sgn7149h", true); } // [B1, B3, C1]
551913475test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13476test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f\xef\xbc\x8e\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13477test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f\xef\xbc\x8e\xdf\x8f0\xd6\xbc", true); } // [B1]
552013478test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8d\xc3\x9f\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13479test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8d\xc3\x9f\xef\xbc\x8e\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13480test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8d\xc3\x9f\xef\xbc\x8e\xdf\x8f0\xd6\xbc", true); } // [B1]
552113481test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13482test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f.\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13483test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f.\xdf\x8f0\xd6\xbc", true); } // [B1]
552213484test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8d\xc3\x9f.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13485test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8d\xc3\x9f.\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13486test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8d\xc3\x9f.\xdf\x8f0\xd6\xbc", true); } // [B1]
552313487test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13488test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13489test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc", true); } // [B1]
552413490test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13491test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13492test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc", true); } // [B1]
552513493test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13494test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13495test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc", true); } // [B1]
552613496test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13497test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13498test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc", true); } // [B1]
552713499test { try toUnicodeFail("xn--ss-i05i7041a.xn--0-vgc50n"); } // [B1]
13500test { try toAsciiFail("xn--ss-i05i7041a.xn--0-vgc50n", false); } // [B1]
13501test { try toAsciiFail("xn--ss-i05i7041a.xn--0-vgc50n", true); } // [B1]
552813502test { try toUnicodeFail("xn--ss-l1tu910fo0xd.xn--0-vgc50n"); } // [B1, C2]
13503test { try toAsciiFail("xn--ss-l1tu910fo0xd.xn--0-vgc50n", false); } // [B1, C2]
13504test { try toAsciiFail("xn--ss-l1tu910fo0xd.xn--0-vgc50n", true); } // [B1, C2]
552913505test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13506test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13507test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc", true); } // [B1]
553013508test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13509test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13510test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc", true); } // [B1]
553113511test { try toUnicodeFail("xn--zca770n5s4hev6c.xn--0-vgc50n"); } // [B1, C2]
13512test { try toAsciiFail("xn--zca770n5s4hev6c.xn--0-vgc50n", false); } // [B1, C2]
13513test { try toAsciiFail("xn--zca770n5s4hev6c.xn--0-vgc50n", true); } // [B1, C2]
553213514test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSS\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13515test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSS\xef\xbc\x8e\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13516test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSS\xef\xbc\x8e\xdf\x8f0\xd6\xbc", true); } // [B1]
553313517test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13518test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS\xef\xbc\x8e\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13519test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS\xef\xbc\x8e\xdf\x8f0\xd6\xbc", true); } // [B1]
553413520test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13521test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss\xef\xbc\x8e\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13522test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss\xef\xbc\x8e\xdf\x8f0\xd6\xbc", true); } // [B1]
553513523test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dss\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13524test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dss\xef\xbc\x8e\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13525test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dss\xef\xbc\x8e\xdf\x8f0\xd6\xbc", true); } // [B1]
553613526test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13527test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs\xef\xbc\x8e\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13528test { try toAsciiFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs\xef\xbc\x8e\xdf\x8f0\xd6\xbc", true); } // [B1]
553713529test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSs\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
13530test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSs\xef\xbc\x8e\xdf\x8f0\xd6\xbc", false); } // [B1, C2]
13531test { try toAsciiFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSs\xef\xbc\x8e\xdf\x8f0\xd6\xbc", true); } // [B1]
553813532test { try toUnicodeFail("9\xf3\xa0\x87\xa5\xef\xbc\x8e\xf3\xaa\xb4\xb4\xe1\xa2\x93"); } // [V7]
13533test { try toAsciiFail("9\xf3\xa0\x87\xa5\xef\xbc\x8e\xf3\xaa\xb4\xb4\xe1\xa2\x93", false); } // [V7]
13534test { try toAsciiFail("9\xf3\xa0\x87\xa5\xef\xbc\x8e\xf3\xaa\xb4\xb4\xe1\xa2\x93", true); } // [V7]
553913535test { try toUnicodeFail("9\xf3\xa0\x87\xa5.\xf3\xaa\xb4\xb4\xe1\xa2\x93"); } // [V7]
13536test { try toAsciiFail("9\xf3\xa0\x87\xa5.\xf3\xaa\xb4\xb4\xe1\xa2\x93", false); } // [V7]
13537test { try toAsciiFail("9\xf3\xa0\x87\xa5.\xf3\xaa\xb4\xb4\xe1\xa2\x93", true); } // [V7]
554013538test { try toUnicodeFail("9.xn--dbf91222q"); } // [V7]
13539test { try toAsciiFail("9.xn--dbf91222q", false); } // [V7]
13540test { try toAsciiFail("9.xn--dbf91222q", true); } // [V7]
554113541test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97\xc3\x9f\xe2\xbd\x9f"); } // [B1, B2, B3, C1]
13542test { try toAsciiFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97\xc3\x9f\xe2\xbd\x9f", false); } // [B1, B2, B3, C1]
13543test { try toAsciiFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97\xc3\x9f\xe2\xbd\x9f", true); } // [B2, B3, A4_2]
554213544test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97\xc3\x9f\xe7\x8e\x89"); } // [B1, B2, B3, C1]
13545test { try toAsciiFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97\xc3\x9f\xe7\x8e\x89", false); } // [B1, B2, B3, C1]
13546test { try toAsciiFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97\xc3\x9f\xe7\x8e\x89", true); } // [B2, B3, A4_2]
554313547test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe7\x8e\x89"); } // [B1, B2, B3, C1]
13548test { try toAsciiFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe7\x8e\x89", false); } // [B1, B2, B3, C1]
13549test { try toAsciiFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe7\x8e\x89", true); } // [B2, B3, A4_2]
554413550test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe7\x8e\x89"); } // [B1, B2, B3, C1]
13551test { try toAsciiFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe7\x8e\x89", false); } // [B1, B2, B3, C1]
13552test { try toAsciiFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe7\x8e\x89", true); } // [B2, B3, A4_2]
554513553test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe7\x8e\x89"); } // [B1, B2, B3, C1]
13554test { try toAsciiFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe7\x8e\x89", false); } // [B1, B2, B3, C1]
13555test { try toAsciiFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe7\x8e\x89", true); } // [B2, B3, A4_2]
554613556test { try toUnicodeFail(".xn--ss-je6eq954cp25j"); } // [B2, B3, X4_2]
13557test { try toAsciiFail(".xn--ss-je6eq954cp25j", false); } // [B2, B3, A4_2]
13558test { try toAsciiFail(".xn--ss-je6eq954cp25j", true); } // [B2, B3, A4_2]
554713559test { try toUnicodeFail("xn--0ug.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1]
13560test { try toAsciiFail("xn--0ug.xn--ss-je6eq954cp25j", false); } // [B1, B2, B3, C1]
13561test { try toAsciiFail("xn--0ug.xn--ss-je6eq954cp25j", true); } // [B1, B2, B3, C1]
554813562test { try toUnicodeFail("xn--0ug.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1]
13563test { try toAsciiFail("xn--0ug.xn--zca2289c550e0iwi", false); } // [B1, B2, B3, C1]
13564test { try toAsciiFail("xn--0ug.xn--zca2289c550e0iwi", true); } // [B1, B2, B3, C1]
554913565test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe2\xbd\x9f"); } // [B1, B2, B3, C1]
13566test { try toAsciiFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe2\xbd\x9f", false); } // [B1, B2, B3, C1]
13567test { try toAsciiFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe2\xbd\x9f", true); } // [B2, B3, A4_2]
555013568test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe2\xbd\x9f"); } // [B1, B2, B3, C1]
13569test { try toAsciiFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe2\xbd\x9f", false); } // [B1, B2, B3, C1]
13570test { try toAsciiFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe2\xbd\x9f", true); } // [B2, B3, A4_2]
555113571test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe2\xbd\x9f"); } // [B1, B2, B3, C1]
13572test { try toAsciiFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe2\xbd\x9f", false); } // [B1, B2, B3, C1]
13573test { try toAsciiFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe2\xbd\x9f", true); } // [B2, B3, A4_2]
555213574test { try toUnicodeFail("xn--psd.xn--ss-je6eq954cp25j"); } // [B2, B3, V7]
13575test { try toAsciiFail("xn--psd.xn--ss-je6eq954cp25j", false); } // [B2, B3, V7]
13576test { try toAsciiFail("xn--psd.xn--ss-je6eq954cp25j", true); } // [B2, B3, V7]
555313577test { try toUnicodeFail("xn--psd526e.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1, V7]
13578test { try toAsciiFail("xn--psd526e.xn--ss-je6eq954cp25j", false); } // [B1, B2, B3, C1, V7]
13579test { try toAsciiFail("xn--psd526e.xn--ss-je6eq954cp25j", true); } // [B1, B2, B3, C1, V7]
555413580test { try toUnicodeFail("xn--psd526e.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1, V7]
13581test { try toAsciiFail("xn--psd526e.xn--zca2289c550e0iwi", false); } // [B1, B2, B3, C1, V7]
13582test { try toAsciiFail("xn--psd526e.xn--zca2289c550e0iwi", true); } // [B1, B2, B3, C1, V7]
555513583test { try toUnicodeFail("xn--cl7c.xn--ss-je6eq954cp25j"); } // [B2, B3, V7]
13584test { try toAsciiFail("xn--cl7c.xn--ss-je6eq954cp25j", false); } // [B2, B3, V7]
13585test { try toAsciiFail("xn--cl7c.xn--ss-je6eq954cp25j", true); } // [B2, B3, V7]
555613586test { try toUnicodeFail("xn--0ug7719f.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1, V7]
13587test { try toAsciiFail("xn--0ug7719f.xn--ss-je6eq954cp25j", false); } // [B1, B2, B3, C1, V7]
13588test { try toAsciiFail("xn--0ug7719f.xn--ss-je6eq954cp25j", true); } // [B1, B2, B3, C1, V7]
555713589test { try toUnicodeFail("xn--0ug7719f.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1, V7]
13590test { try toAsciiFail("xn--0ug7719f.xn--zca2289c550e0iwi", false); } // [B1, B2, B3, C1, V7]
13591test { try toAsciiFail("xn--0ug7719f.xn--zca2289c550e0iwi", true); } // [B1, B2, B3, C1, V7]
555813592test { try toUnicodeFail("\xef\xb8\x92\xe1\x82\xb6\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V7]
13593test { try toAsciiFail("\xef\xb8\x92\xe1\x82\xb6\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c", false); } // [C1, V7]
13594test { try toAsciiFail("\xef\xb8\x92\xe1\x82\xb6\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c", true); } // [V7, A4_2]
555913595test { try toUnicodeFail("\xe3\x80\x82\xe1\x82\xb6\xcd\xa6.\xe2\x80\x8c"); } // [C1, X4_2]
13596test { try toAsciiFail("\xe3\x80\x82\xe1\x82\xb6\xcd\xa6.\xe2\x80\x8c", false); } // [C1, A4_2]
13597test { try toAsciiFail("\xe3\x80\x82\xe1\x82\xb6\xcd\xa6.\xe2\x80\x8c", true); } // [A4_2]
556013598test { 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]
13600test { try toAsciiFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c", true); } // [A4_2]
556113601test { try toUnicodeFail(".xn--hva754s."); } // [X4_2]
13602test { try toAsciiFail(".xn--hva754s.", false); } // [A4_2]
13603test { try toAsciiFail(".xn--hva754s.", true); } // [A4_2]
556213604test { try toUnicodeFail(".xn--hva754s.xn--0ug"); } // [C1, X4_2]
13605test { try toAsciiFail(".xn--hva754s.xn--0ug", false); } // [C1, A4_2]
13606test { try toAsciiFail(".xn--hva754s.xn--0ug", true); } // [C1, A4_2]
556313607test { try toUnicodeFail("\xef\xb8\x92\xe2\xb4\x96\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V7]
13608test { try toAsciiFail("\xef\xb8\x92\xe2\xb4\x96\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c", false); } // [C1, V7]
13609test { try toAsciiFail("\xef\xb8\x92\xe2\xb4\x96\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c", true); } // [V7, A4_2]
556413610test { try toUnicodeFail("xn--hva754sy94k."); } // [V7]
13611test { try toAsciiFail("xn--hva754sy94k.", false); } // [V7, A4_2]
13612test { try toAsciiFail("xn--hva754sy94k.", true); } // [V7, A4_2]
556513613test { try toUnicodeFail("xn--hva754sy94k.xn--0ug"); } // [C1, V7]
13614test { try toAsciiFail("xn--hva754sy94k.xn--0ug", false); } // [C1, V7]
13615test { try toAsciiFail("xn--hva754sy94k.xn--0ug", true); } // [C1, V7]
556613616test { try toUnicodeFail(".xn--hva929d."); } // [V7, X4_2]
13617test { try toAsciiFail(".xn--hva929d.", false); } // [V7, A4_2]
13618test { try toAsciiFail(".xn--hva929d.", true); } // [V7, A4_2]
556713619test { try toUnicodeFail(".xn--hva929d.xn--0ug"); } // [C1, V7, X4_2]
13620test { try toAsciiFail(".xn--hva929d.xn--0ug", false); } // [C1, V7, A4_2]
13621test { try toAsciiFail(".xn--hva929d.xn--0ug", true); } // [C1, V7, A4_2]
556813622test { try toUnicodeFail("xn--hva929dl29p."); } // [V7]
13623test { try toAsciiFail("xn--hva929dl29p.", false); } // [V7, A4_2]
13624test { try toAsciiFail("xn--hva929dl29p.", true); } // [V7, A4_2]
556913625test { try toUnicodeFail("xn--hva929dl29p.xn--0ug"); } // [C1, V7]
13626test { try toAsciiFail("xn--hva929dl29p.xn--0ug", false); } // [C1, V7]
13627test { try toAsciiFail("xn--hva929dl29p.xn--0ug", true); } // [C1, V7]
557013628test { try toUnicodePass("xn--hva754s.", "\xe2\xb4\x96\xcd\xa6."); }
13629test { try toAsciiFail("xn--hva754s.", false); } // [A4_2]
13630test { try toAsciiFail("xn--hva754s.", true); } // [A4_2]
557113631test { try toUnicodePass("\xe2\xb4\x96\xcd\xa6.", "\xe2\xb4\x96\xcd\xa6."); }
13632test { try toAsciiFail("\xe2\xb4\x96\xcd\xa6.", false); } // [A4_2]
13633test { try toAsciiFail("\xe2\xb4\x96\xcd\xa6.", true); } // [A4_2]
557213634test { try toUnicodePass("\xe1\x82\xb6\xcd\xa6.", "\xe2\xb4\x96\xcd\xa6."); }
13635test { try toAsciiFail("\xe1\x82\xb6\xcd\xa6.", false); } // [A4_2]
13636test { try toAsciiFail("\xe1\x82\xb6\xcd\xa6.", true); } // [A4_2]
557313637test { try toUnicodeFail("xn--hva929d."); } // [V7]
13638test { try toAsciiFail("xn--hva929d.", false); } // [V7, A4_2]
13639test { try toAsciiFail("xn--hva929d.", true); } // [V7, A4_2]
557413640test { try toAsciiPass("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
557513641test { try toUnicodeFail("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92"); } // [B1, C1]
13642test { try toAsciiFail("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", false); } // [B1, C1]
557613643test { try toAsciiPass("\xe0\xa2\xbb.\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
557713644test { try toUnicodeFail("\xe0\xa2\xbb.\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92"); } // [B1, C1]
13645test { try toAsciiFail("\xe0\xa2\xbb.\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", false); } // [B1, C1]
557813646test { try toAsciiPass("\xe0\xa2\xbb.\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
557913647test { try toUnicodeFail("\xe0\xa2\xbb.\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92"); } // [B1, C1]
13648test { try toAsciiFail("\xe0\xa2\xbb.\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", false); } // [B1, C1]
558013649test { try toUnicodePass("xn--hzb.xn--ukj4430l", "\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92"); }
558113650test { try toAsciiPass("xn--hzb.xn--ukj4430l", "xn--hzb.xn--ukj4430l", false); }
558213651test { try toAsciiPass("xn--hzb.xn--ukj4430l", "xn--hzb.xn--ukj4430l", true); }
......@@ -5587,104 +13656,293 @@ test { try toUnicodePass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "\xe0\xa2\
558713656test { try toAsciiPass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", false); }
558813657test { try toAsciiPass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
558913658test { try toUnicodeFail("xn--hzb.xn--0ug822cp045a"); } // [B1, C1]
13659test { try toAsciiFail("xn--hzb.xn--0ug822cp045a", false); } // [B1, C1]
13660test { try toAsciiFail("xn--hzb.xn--0ug822cp045a", true); } // [B1, C1]
559013661test { try toAsciiPass("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
559113662test { try toUnicodeFail("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92"); } // [B1, C1]
13663test { try toAsciiFail("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", false); } // [B1, C1]
559213664test { try toUnicodeFail("xn--hzb.xn--bnd2938u"); } // [V7]
13665test { try toAsciiFail("xn--hzb.xn--bnd2938u", false); } // [V7]
13666test { try toAsciiFail("xn--hzb.xn--bnd2938u", true); } // [V7]
559313667test { try toUnicodeFail("xn--hzb.xn--bnd300f7225a"); } // [B1, C1, V7]
13668test { try toAsciiFail("xn--hzb.xn--bnd300f7225a", false); } // [B1, C1, V7]
13669test { try toAsciiFail("xn--hzb.xn--bnd300f7225a", true); } // [B1, C1, V7]
559413670test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xef\xbc\x92\xe4\xab\xb7\xf3\xa0\xa7\xb7"); } // [C1, C2, V7]
13671test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xef\xbc\x92\xe4\xab\xb7\xf3\xa0\xa7\xb7", false); } // [C1, C2, V7]
13672test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xef\xbc\x92\xe4\xab\xb7\xf3\xa0\xa7\xb7", true); } // [V7, A4_2]
559513673test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x822\xe4\xab\xb7\xf3\xa0\xa7\xb7"); } // [C1, C2, V7]
13674test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x822\xe4\xab\xb7\xf3\xa0\xa7\xb7", false); } // [C1, C2, V7]
13675test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x822\xe4\xab\xb7\xf3\xa0\xa7\xb7", true); } // [V7, A4_2]
559613676test { try toUnicodeFail(".xn--2-me5ay1273i"); } // [V7, X4_2]
13677test { try toAsciiFail(".xn--2-me5ay1273i", false); } // [V7, A4_2]
13678test { try toAsciiFail(".xn--2-me5ay1273i", true); } // [V7, A4_2]
559713679test { try toUnicodeFail("xn--0ugb.xn--2-me5ay1273i"); } // [C1, C2, V7]
13680test { try toAsciiFail("xn--0ugb.xn--2-me5ay1273i", false); } // [C1, C2, V7]
13681test { try toAsciiFail("xn--0ugb.xn--2-me5ay1273i", true); } // [C1, C2, V7]
559813682test { try toUnicodeFail("-\xf0\x9e\x80\xa4\xf3\x9c\xa0\x90\xe3\x80\x82\xf2\x88\xac\x96"); } // [V3, V7]
13683test { try toAsciiFail("-\xf0\x9e\x80\xa4\xf3\x9c\xa0\x90\xe3\x80\x82\xf2\x88\xac\x96", false); } // [V3, V7]
13684test { try toAsciiFail("-\xf0\x9e\x80\xa4\xf3\x9c\xa0\x90\xe3\x80\x82\xf2\x88\xac\x96", true); } // [V3, V7]
559913685test { try toUnicodeFail("xn----rq4re4997d.xn--l707b"); } // [V3, V7]
13686test { try toAsciiFail("xn----rq4re4997d.xn--l707b", false); } // [V3, V7]
13687test { try toAsciiFail("xn----rq4re4997d.xn--l707b", true); } // [V3, V7]
560013688test { try toUnicodeFail("\xf3\xb3\x9b\x82\xef\xb8\x92\xe2\x80\x8c\xe3\x9f\x80\xef\xbc\x8e\xd8\xa4\xe2\x92\x88"); } // [C1, V7]
13689test { try toAsciiFail("\xf3\xb3\x9b\x82\xef\xb8\x92\xe2\x80\x8c\xe3\x9f\x80\xef\xbc\x8e\xd8\xa4\xe2\x92\x88", false); } // [C1, V7]
13690test { try toAsciiFail("\xf3\xb3\x9b\x82\xef\xb8\x92\xe2\x80\x8c\xe3\x9f\x80\xef\xbc\x8e\xd8\xa4\xe2\x92\x88", true); } // [V7]
560113691test { try toUnicodeFail("\xf3\xb3\x9b\x82\xef\xb8\x92\xe2\x80\x8c\xe3\x9f\x80\xef\xbc\x8e\xd9\x88\xd9\x94\xe2\x92\x88"); } // [C1, V7]
13692test { try toAsciiFail("\xf3\xb3\x9b\x82\xef\xb8\x92\xe2\x80\x8c\xe3\x9f\x80\xef\xbc\x8e\xd9\x88\xd9\x94\xe2\x92\x88", false); } // [C1, V7]
13693test { try toAsciiFail("\xf3\xb3\x9b\x82\xef\xb8\x92\xe2\x80\x8c\xe3\x9f\x80\xef\xbc\x8e\xd9\x88\xd9\x94\xe2\x92\x88", true); } // [V7]
560213694test { try toUnicodeFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd8\xa41."); } // [B1, C1, V7]
13695test { try toAsciiFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd8\xa41.", false); } // [B1, C1, V7, A4_2]
13696test { try toAsciiFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd8\xa41.", true); } // [V7, A4_2]
560313697test { try toUnicodeFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd9\x88\xd9\x941."); } // [B1, C1, V7]
13698test { try toAsciiFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd9\x88\xd9\x941.", false); } // [B1, C1, V7, A4_2]
13699test { try toAsciiFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd9\x88\xd9\x941.", true); } // [V7, A4_2]
560413700test { try toUnicodeFail("xn--z272f.xn--etl.xn--1-smc."); } // [V7]
13701test { try toAsciiFail("xn--z272f.xn--etl.xn--1-smc.", false); } // [V7, A4_2]
13702test { try toAsciiFail("xn--z272f.xn--etl.xn--1-smc.", true); } // [V7, A4_2]
560513703test { try toUnicodeFail("xn--z272f.xn--0ug754g.xn--1-smc."); } // [B1, C1, V7]
13704test { try toAsciiFail("xn--z272f.xn--0ug754g.xn--1-smc.", false); } // [B1, C1, V7, A4_2]
13705test { try toAsciiFail("xn--z272f.xn--0ug754g.xn--1-smc.", true); } // [B1, C1, V7, A4_2]
560613706test { try toUnicodeFail("xn--etlt457ccrq7h.xn--jgb476m"); } // [V7]
13707test { try toAsciiFail("xn--etlt457ccrq7h.xn--jgb476m", false); } // [V7]
13708test { try toAsciiFail("xn--etlt457ccrq7h.xn--jgb476m", true); } // [V7]
560713709test { try toUnicodeFail("xn--0ug754gxl4ldlt0k.xn--jgb476m"); } // [C1, V7]
13710test { try toAsciiFail("xn--0ug754gxl4ldlt0k.xn--jgb476m", false); } // [C1, V7]
13711test { try toAsciiFail("xn--0ug754gxl4ldlt0k.xn--jgb476m", true); } // [C1, V7]
560813712test { try toUnicodeFail("\xf0\x91\xb2\x9c\xdf\x8a\xf0\x9d\x85\xbc\xe3\x80\x82-\xe2\x80\x8d"); } // [B1, C2, V3, V6]
13713test { try toAsciiFail("\xf0\x91\xb2\x9c\xdf\x8a\xf0\x9d\x85\xbc\xe3\x80\x82-\xe2\x80\x8d", false); } // [B1, C2, V3, V6]
13714test { try toAsciiFail("\xf0\x91\xb2\x9c\xdf\x8a\xf0\x9d\x85\xbc\xe3\x80\x82-\xe2\x80\x8d", true); } // [B1, V3, V6]
560913715test { try toUnicodeFail("xn--lsb5482l7nre.-"); } // [B1, V3, V6]
13716test { try toAsciiFail("xn--lsb5482l7nre.-", false); } // [B1, V3, V6]
13717test { try toAsciiFail("xn--lsb5482l7nre.-", true); } // [B1, V3, V6]
561013718test { try toUnicodeFail("xn--lsb5482l7nre.xn----ugn"); } // [B1, C2, V3, V6]
13719test { try toAsciiFail("xn--lsb5482l7nre.xn----ugn", false); } // [B1, C2, V3, V6]
13720test { try toAsciiFail("xn--lsb5482l7nre.xn----ugn", true); } // [B1, C2, V3, V6]
561113721test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
13722test { try toAsciiFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6", false); } // [B1, B5, B6, C1]
13723test { try toAsciiFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6", true); } // [B5, B6, A4_2]
561213724test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
13725test { try toAsciiFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6", false); } // [B1, B5, B6, C1]
13726test { try toAsciiFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6", true); } // [B5, B6, A4_2]
561313727test { try toUnicodeFail("\xe2\x80\x8c.\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
13728test { try toAsciiFail("\xe2\x80\x8c.\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6", false); } // [B1, B5, B6, C1]
13729test { try toAsciiFail("\xe2\x80\x8c.\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6", true); } // [B5, B6, A4_2]
561413730test { try toUnicodeFail("\xe2\x80\x8c.\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
13731test { try toAsciiFail("\xe2\x80\x8c.\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6", false); } // [B1, B5, B6, C1]
13732test { try toAsciiFail("\xe2\x80\x8c.\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6", true); } // [B5, B6, A4_2]
561513733test { try toUnicodeFail("\xe2\x80\x8c.\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
13734test { try toAsciiFail("\xe2\x80\x8c.\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6", false); } // [B1, B5, B6, C1]
13735test { try toAsciiFail("\xe2\x80\x8c.\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6", true); } // [B5, B6, A4_2]
561613736test { try toUnicodeFail("\xe2\x80\x8c.\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
13737test { try toAsciiFail("\xe2\x80\x8c.\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6", false); } // [B1, B5, B6, C1]
13738test { try toAsciiFail("\xe2\x80\x8c.\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6", true); } // [B5, B6, A4_2]
561713739test { try toUnicodeFail(".xn--1chx23bzj4p"); } // [B5, B6, X4_2]
13740test { try toAsciiFail(".xn--1chx23bzj4p", false); } // [B5, B6, A4_2]
13741test { try toAsciiFail(".xn--1chx23bzj4p", true); } // [B5, B6, A4_2]
561813742test { try toUnicodeFail("xn--0ug.xn--1chx23bzj4p"); } // [B1, B5, B6, C1]
13743test { try toAsciiFail("xn--0ug.xn--1chx23bzj4p", false); } // [B1, B5, B6, C1]
13744test { try toAsciiFail("xn--0ug.xn--1chx23bzj4p", true); } // [B1, B5, B6, C1]
561913745test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
13746test { try toAsciiFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6", false); } // [B1, B5, B6, C1]
13747test { try toAsciiFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6", true); } // [B5, B6, A4_2]
562013748test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
13749test { try toAsciiFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6", false); } // [B1, B5, B6, C1]
13750test { try toAsciiFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6", true); } // [B5, B6, A4_2]
562113751test { try toUnicodeFail(".xn--hnd481gv73o"); } // [B5, B6, V7, X4_2]
13752test { try toAsciiFail(".xn--hnd481gv73o", false); } // [B5, B6, V7, A4_2]
13753test { try toAsciiFail(".xn--hnd481gv73o", true); } // [B5, B6, V7, A4_2]
562213754test { try toUnicodeFail("xn--0ug.xn--hnd481gv73o"); } // [B1, B5, B6, C1, V7]
13755test { try toAsciiFail("xn--0ug.xn--hnd481gv73o", false); } // [B1, B5, B6, C1, V7]
13756test { try toAsciiFail("xn--0ug.xn--hnd481gv73o", true); } // [B1, B5, B6, C1, V7]
562313757test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x82"); } // [B1]
13758test { try toAsciiFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x82", false); } // [B1]
13759test { try toAsciiFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x82", true); } // [B1]
562413760test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x82"); } // [B1]
13761test { try toAsciiFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x82", false); } // [B1]
13762test { try toAsciiFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x82", true); } // [B1]
562513763test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xce\xa3"); } // [B1]
13764test { try toAsciiFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xce\xa3", false); } // [B1]
13765test { try toAsciiFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xce\xa3", true); } // [B1]
562613766test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xce\xa3"); } // [B1]
13767test { try toAsciiFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xce\xa3", false); } // [B1]
13768test { try toAsciiFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xce\xa3", true); } // [B1]
562713769test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x83"); } // [B1]
13770test { try toAsciiFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x83", false); } // [B1]
13771test { try toAsciiFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x83", true); } // [B1]
562813772test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x83"); } // [B1]
13773test { try toAsciiFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x83", false); } // [B1]
13774test { try toAsciiFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x83", true); } // [B1]
562913775test { try toUnicodeFail("xn--3ob.xn--4xa718m"); } // [B1]
13776test { try toAsciiFail("xn--3ob.xn--4xa718m", false); } // [B1]
13777test { try toAsciiFail("xn--3ob.xn--4xa718m", true); } // [B1]
563013778test { try toUnicodeFail("xn--3ob.xn--3xa918m"); } // [B1]
13779test { try toAsciiFail("xn--3ob.xn--3xa918m", false); } // [B1]
13780test { try toAsciiFail("xn--3ob.xn--3xa918m", true); } // [B1]
563113781test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe1\x82\xb0"); } // [V7]
13782test { try toAsciiFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe1\x82\xb0", false); } // [V7]
13783test { try toAsciiFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe1\x82\xb0", true); } // [V7]
563213784test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe1\x82\xb0"); } // [V7]
13785test { try toAsciiFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe1\x82\xb0", false); } // [V7]
13786test { try toAsciiFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe1\x82\xb0", true); } // [V7]
563313787test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe2\xb4\x90"); } // [V7]
13788test { try toAsciiFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe2\xb4\x90", false); } // [V7]
13789test { try toAsciiFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe2\xb4\x90", true); } // [V7]
563413790test { try toUnicodeFail("xn--0tb8725k.xn--tu8d.xn--7kj73887a"); } // [V7]
13791test { try toAsciiFail("xn--0tb8725k.xn--tu8d.xn--7kj73887a", false); } // [V7]
13792test { try toAsciiFail("xn--0tb8725k.xn--tu8d.xn--7kj73887a", true); } // [V7]
563513793test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe2\xb4\x90"); } // [V7]
13794test { try toAsciiFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe2\xb4\x90", false); } // [V7]
13795test { try toAsciiFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe2\xb4\x90", true); } // [V7]
563613796test { try toUnicodeFail("xn--0tb8725k.xn--7kj9008dt18a7py9c"); } // [V7]
13797test { try toAsciiFail("xn--0tb8725k.xn--7kj9008dt18a7py9c", false); } // [V7]
13798test { try toAsciiFail("xn--0tb8725k.xn--7kj9008dt18a7py9c", true); } // [V7]
563713799test { try toUnicodeFail("xn--0tb8725k.xn--tu8d.xn--ond97931d"); } // [V7]
13800test { try toAsciiFail("xn--0tb8725k.xn--tu8d.xn--ond97931d", false); } // [V7]
13801test { try toAsciiFail("xn--0tb8725k.xn--tu8d.xn--ond97931d", true); } // [V7]
563813802test { try toUnicodeFail("xn--0tb8725k.xn--ond3562jt18a7py9c"); } // [V7]
13803test { try toAsciiFail("xn--0tb8725k.xn--ond3562jt18a7py9c", false); } // [V7]
13804test { try toAsciiFail("xn--0tb8725k.xn--ond3562jt18a7py9c", true); } // [V7]
563913805test { try toUnicodeFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc"); } // [V6, V7]
13806test { try toAsciiFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc", false); } // [V6, V7]
13807test { try toAsciiFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc", true); } // [V6, V7]
564013808test { try toUnicodeFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc"); } // [V6, V7]
13809test { try toAsciiFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc", false); } // [V6, V7]
13810test { try toAsciiFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc", true); } // [V6, V7]
564113811test { try toUnicodeFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc"); } // [V6, V7]
13812test { try toAsciiFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc", false); } // [V6, V7]
13813test { try toAsciiFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc", true); } // [V6, V7]
564213814test { try toUnicodeFail("xn--vfh16m67gx1162b.xn--ro1d"); } // [V6, V7]
13815test { try toAsciiFail("xn--vfh16m67gx1162b.xn--ro1d", false); } // [V6, V7]
13816test { try toAsciiFail("xn--vfh16m67gx1162b.xn--ro1d", true); } // [V6, V7]
564313817test { try toUnicodeFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc"); } // [V6, V7]
13818test { try toAsciiFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc", false); } // [V6, V7]
13819test { try toAsciiFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc", true); } // [V6, V7]
564413820test { try toUnicodeFail("xn--9nd623g4zc5z060c.xn--ro1d"); } // [V6, V7]
13821test { try toAsciiFail("xn--9nd623g4zc5z060c.xn--ro1d", false); } // [V6, V7]
13822test { try toAsciiFail("xn--9nd623g4zc5z060c.xn--ro1d", true); } // [V6, V7]
564513823test { try toUnicodeFail("\xf0\x9f\x84\x88\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84"); } // [B1, V7, U1]
13824test { try toAsciiFail("\xf0\x9f\x84\x88\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84", false); } // [B1, V7, U1]
13825test { try toAsciiFail("\xf0\x9f\x84\x88\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84", true); } // [B1, V7, U1]
564613826test { try toUnicodeFail("7,\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84"); } // [B1, V7, U1]
13827test { try toAsciiFail("7,\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84", false); } // [B1, V7, U1]
13828test { try toAsciiFail("7,\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84", true); } // [B1, V7, U1]
564713829test { try toUnicodeFail("7,.xn--2vb13094p"); } // [B1, V7, U1]
13830test { try toAsciiFail("7,.xn--2vb13094p", false); } // [B1, V7, U1]
13831test { try toAsciiFail("7,.xn--2vb13094p", true); } // [B1, V7, U1]
564813832test { try toUnicodeFail("xn--107h.xn--2vb13094p"); } // [B1, V7]
13833test { try toAsciiFail("xn--107h.xn--2vb13094p", false); } // [B1, V7]
13834test { try toAsciiFail("xn--107h.xn--2vb13094p", true); } // [B1, V7]
564913835test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96\xc3\x9f"); } // [B1]
13836test { try toAsciiFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96\xc3\x9f", false); } // [B1]
13837test { try toAsciiFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96\xc3\x9f", true); } // [B1]
565013838test { try toUnicodeFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbd\xc3\x9f"); } // [B1]
13839test { try toAsciiFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbd\xc3\x9f", false); } // [B1]
13840test { try toAsciiFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbd\xc3\x9f", true); } // [B1]
565113841test { try toUnicodeFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdSS"); } // [B1]
13842test { try toAsciiFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdSS", false); } // [B1]
13843test { try toAsciiFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdSS", true); } // [B1]
565213844test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96SS"); } // [B1]
13845test { try toAsciiFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96SS", false); } // [B1]
13846test { try toAsciiFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96SS", true); } // [B1]
565313847test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96ss"); } // [B1]
13848test { try toAsciiFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96ss", false); } // [B1]
13849test { try toAsciiFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96ss", true); } // [B1]
565413850test { try toUnicodeFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdss"); } // [B1]
13851test { try toAsciiFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdss", false); } // [B1]
13852test { try toAsciiFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdss", true); } // [B1]
565513853test { try toUnicodeFail("xn--4vb505k.xn--ss-5z4j006a"); } // [B1]
13854test { try toAsciiFail("xn--4vb505k.xn--ss-5z4j006a", false); } // [B1]
13855test { try toAsciiFail("xn--4vb505k.xn--ss-5z4j006a", true); } // [B1]
565613856test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96Ss"); } // [B1]
13857test { try toAsciiFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96Ss", false); } // [B1]
13858test { try toAsciiFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96Ss", true); } // [B1]
565713859test { try toUnicodeFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdSs"); } // [B1]
13860test { try toAsciiFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdSs", false); } // [B1]
13861test { try toAsciiFail("<\xcc\xb8\xe0\xa1\x86\xe3\x80\x82\xe1\x84\x89\xe1\x85\xa4\xe1\x86\xbd\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xbdSs", true); } // [B1]
565813862test { try toUnicodeFail("xn--4vb505k.xn--zca7259goug"); } // [B1]
13863test { try toAsciiFail("xn--4vb505k.xn--zca7259goug", false); } // [B1]
13864test { try toAsciiFail("xn--4vb505k.xn--zca7259goug", true); } // [B1]
565913865test { try toUnicodeFail("\xf3\xa0\x86\x93\xe2\x9b\x8f-\xe3\x80\x82\xea\xa1\x92"); } // [V3]
13866test { try toAsciiFail("\xf3\xa0\x86\x93\xe2\x9b\x8f-\xe3\x80\x82\xea\xa1\x92", false); } // [V3]
13867test { try toAsciiFail("\xf3\xa0\x86\x93\xe2\x9b\x8f-\xe3\x80\x82\xea\xa1\x92", true); } // [V3]
566013868test { try toUnicodeFail("xn----o9p.xn--rc9a"); } // [V3]
13869test { try toAsciiFail("xn----o9p.xn--rc9a", false); } // [V3]
13870test { try toAsciiFail("xn----o9p.xn--rc9a", true); } // [V3]
566113871test { try toUnicodeFail("\xde\xbb\xf0\x90\xb9\xb3\xd8\xa6\xf0\x91\x81\x86\xe3\x80\x82\xe0\xa2\xa7\xda\xb0\xe2\x80\x8c\xe1\xa2\x92"); } // [B2, B3, V7]
13872test { try toAsciiFail("\xde\xbb\xf0\x90\xb9\xb3\xd8\xa6\xf0\x91\x81\x86\xe3\x80\x82\xe0\xa2\xa7\xda\xb0\xe2\x80\x8c\xe1\xa2\x92", false); } // [B2, B3, V7]
13873test { try toAsciiFail("\xde\xbb\xf0\x90\xb9\xb3\xd8\xa6\xf0\x91\x81\x86\xe3\x80\x82\xe0\xa2\xa7\xda\xb0\xe2\x80\x8c\xe1\xa2\x92", true); } // [B2, B3, V7]
566213874test { try toUnicodeFail("\xde\xbb\xf0\x90\xb9\xb3\xd9\x8a\xf0\x91\x81\x86\xd9\x94\xe3\x80\x82\xe0\xa2\xa7\xda\xb0\xe2\x80\x8c\xe1\xa2\x92"); } // [B2, B3, V7]
13875test { try toAsciiFail("\xde\xbb\xf0\x90\xb9\xb3\xd9\x8a\xf0\x91\x81\x86\xd9\x94\xe3\x80\x82\xe0\xa2\xa7\xda\xb0\xe2\x80\x8c\xe1\xa2\x92", false); } // [B2, B3, V7]
13876test { try toAsciiFail("\xde\xbb\xf0\x90\xb9\xb3\xd9\x8a\xf0\x91\x81\x86\xd9\x94\xe3\x80\x82\xe0\xa2\xa7\xda\xb0\xe2\x80\x8c\xe1\xa2\x92", true); } // [B2, B3, V7]
566313877test { try toUnicodeFail("xn--lgb32f2753cosb.xn--jkb91hlz1a"); } // [B2, B3, V7]
13878test { try toAsciiFail("xn--lgb32f2753cosb.xn--jkb91hlz1a", false); } // [B2, B3, V7]
13879test { try toAsciiFail("xn--lgb32f2753cosb.xn--jkb91hlz1a", true); } // [B2, B3, V7]
566413880test { try toUnicodeFail("xn--lgb32f2753cosb.xn--jkb91hlz1azih"); } // [B2, B3, V7]
13881test { try toAsciiFail("xn--lgb32f2753cosb.xn--jkb91hlz1azih", false); } // [B2, B3, V7]
13882test { try toAsciiFail("xn--lgb32f2753cosb.xn--jkb91hlz1azih", true); } // [B2, B3, V7]
566513883test { try toUnicodeFail("\xe0\xa0\x96.\xf0\x90\xa8\x95\xf0\x9a\x9a\x95"); } // [B1, B2, B3, V6, V7]
13884test { try toAsciiFail("\xe0\xa0\x96.\xf0\x90\xa8\x95\xf0\x9a\x9a\x95", false); } // [B1, B2, B3, V6, V7]
13885test { try toAsciiFail("\xe0\xa0\x96.\xf0\x90\xa8\x95\xf0\x9a\x9a\x95", true); } // [B1, B2, B3, V6, V7]
566613886test { try toUnicodeFail("xn--rub.xn--tr9c248x"); } // [B1, B2, B3, V6, V7]
13887test { try toAsciiFail("xn--rub.xn--tr9c248x", false); } // [B1, B2, B3, V6, V7]
13888test { try toAsciiFail("xn--rub.xn--tr9c248x", true); } // [B1, B2, B3, V6, V7]
566713889test { try toUnicodeFail("--\xe3\x80\x82\xf0\xbd\x8a\x86\xdd\xa7\xf0\x90\xbd\x8b\xf0\x9e\xa0\xac"); } // [B1, B5, B6, V3, V7]
13890test { try toAsciiFail("--\xe3\x80\x82\xf0\xbd\x8a\x86\xdd\xa7\xf0\x90\xbd\x8b\xf0\x9e\xa0\xac", false); } // [B1, B5, B6, V3, V7]
13891test { try toAsciiFail("--\xe3\x80\x82\xf0\xbd\x8a\x86\xdd\xa7\xf0\x90\xbd\x8b\xf0\x9e\xa0\xac", true); } // [B1, B5, B6, V3, V7]
566813892test { try toUnicodeFail("--.xn--rpb6226k77pfh58p"); } // [B1, B5, B6, V3, V7]
13893test { try toAsciiFail("--.xn--rpb6226k77pfh58p", false); } // [B1, B5, B6, V3, V7]
13894test { try toAsciiFail("--.xn--rpb6226k77pfh58p", true); } // [B1, B5, B6, V3, V7]
566913895test { try toUnicodeFail("\xf2\x9b\xad\xa6\xf0\x90\x8b\xa5\xf0\xb9\xb8\x90.\xe2\x89\xaf\xe0\xa2\xb0\xe0\xa2\xa6\xf3\x94\x9b\xa3"); } // [B1, V7]
13896test { try toAsciiFail("\xf2\x9b\xad\xa6\xf0\x90\x8b\xa5\xf0\xb9\xb8\x90.\xe2\x89\xaf\xe0\xa2\xb0\xe0\xa2\xa6\xf3\x94\x9b\xa3", false); } // [B1, V7]
13897test { try toAsciiFail("\xf2\x9b\xad\xa6\xf0\x90\x8b\xa5\xf0\xb9\xb8\x90.\xe2\x89\xaf\xe0\xa2\xb0\xe0\xa2\xa6\xf3\x94\x9b\xa3", true); } // [B1, V7]
567013898test { try toUnicodeFail("\xf2\x9b\xad\xa6\xf0\x90\x8b\xa5\xf0\xb9\xb8\x90.>\xcc\xb8\xe0\xa2\xb0\xe0\xa2\xa6\xf3\x94\x9b\xa3"); } // [B1, V7]
13899test { try toAsciiFail("\xf2\x9b\xad\xa6\xf0\x90\x8b\xa5\xf0\xb9\xb8\x90.>\xcc\xb8\xe0\xa2\xb0\xe0\xa2\xa6\xf3\x94\x9b\xa3", false); } // [B1, V7]
13900test { try toAsciiFail("\xf2\x9b\xad\xa6\xf0\x90\x8b\xa5\xf0\xb9\xb8\x90.>\xcc\xb8\xe0\xa2\xb0\xe0\xa2\xa6\xf3\x94\x9b\xa3", true); } // [B1, V7]
567113901test { try toUnicodeFail("xn--887c2298i5mv6a.xn--vybt688qm8981a"); } // [B1, V7]
13902test { try toAsciiFail("xn--887c2298i5mv6a.xn--vybt688qm8981a", false); } // [B1, V7]
13903test { try toAsciiFail("xn--887c2298i5mv6a.xn--vybt688qm8981a", true); } // [B1, V7]
567213904test { try toUnicodeFail("\xe4\x94\x9b\xf3\xa0\x87\x92\xf2\xa4\xb8\x9e\xf0\x90\xb9\xa7\xef\xbc\x8e-\xe4\xa4\xb7"); } // [B1, B5, B6, V3, V7]
13905test { try toAsciiFail("\xe4\x94\x9b\xf3\xa0\x87\x92\xf2\xa4\xb8\x9e\xf0\x90\xb9\xa7\xef\xbc\x8e-\xe4\xa4\xb7", false); } // [B1, B5, B6, V3, V7]
13906test { try toAsciiFail("\xe4\x94\x9b\xf3\xa0\x87\x92\xf2\xa4\xb8\x9e\xf0\x90\xb9\xa7\xef\xbc\x8e-\xe4\xa4\xb7", true); } // [B1, B5, B6, V3, V7]
567313907test { try toUnicodeFail("\xe4\x94\x9b\xf3\xa0\x87\x92\xf2\xa4\xb8\x9e\xf0\x90\xb9\xa7.-\xe4\xa4\xb7"); } // [B1, B5, B6, V3, V7]
13908test { try toAsciiFail("\xe4\x94\x9b\xf3\xa0\x87\x92\xf2\xa4\xb8\x9e\xf0\x90\xb9\xa7.-\xe4\xa4\xb7", false); } // [B1, B5, B6, V3, V7]
13909test { try toAsciiFail("\xe4\x94\x9b\xf3\xa0\x87\x92\xf2\xa4\xb8\x9e\xf0\x90\xb9\xa7.-\xe4\xa4\xb7", true); } // [B1, B5, B6, V3, V7]
567413910test { try toUnicodeFail("xn--2loy662coo60e.xn----0n4a"); } // [B1, B5, B6, V3, V7]
13911test { try toAsciiFail("xn--2loy662coo60e.xn----0n4a", false); } // [B1, B5, B6, V3, V7]
13912test { try toAsciiFail("xn--2loy662coo60e.xn----0n4a", true); } // [B1, B5, B6, V3, V7]
567513913test { try toUnicodeFail("\xf0\x90\xb9\xa9\xef\xbc\x8e\xe2\x80\x8d-"); } // [B1, C2, V3]
13914test { try toAsciiFail("\xf0\x90\xb9\xa9\xef\xbc\x8e\xe2\x80\x8d-", false); } // [B1, C2, V3]
13915test { try toAsciiFail("\xf0\x90\xb9\xa9\xef\xbc\x8e\xe2\x80\x8d-", true); } // [B1, V3]
567613916test { try toUnicodeFail("\xf0\x90\xb9\xa9.\xe2\x80\x8d-"); } // [B1, C2, V3]
13917test { try toAsciiFail("\xf0\x90\xb9\xa9.\xe2\x80\x8d-", false); } // [B1, C2, V3]
13918test { try toAsciiFail("\xf0\x90\xb9\xa9.\xe2\x80\x8d-", true); } // [B1, V3]
567713919test { try toUnicodeFail("xn--ho0d.-"); } // [B1, V3]
13920test { try toAsciiFail("xn--ho0d.-", false); } // [B1, V3]
13921test { try toAsciiFail("xn--ho0d.-", true); } // [B1, V3]
567813922test { try toUnicodeFail("xn--ho0d.xn----tgn"); } // [B1, C2, V3]
13923test { try toAsciiFail("xn--ho0d.xn----tgn", false); } // [B1, C2, V3]
13924test { try toAsciiFail("xn--ho0d.xn----tgn", true); } // [B1, C2, V3]
567913925test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7]
13926test { try toAsciiFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-", false); } // [V3, V7]
13927test { try toAsciiFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-", true); } // [V3, V7]
568013928test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7]
13929test { try toAsciiFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-", false); } // [V3, V7]
13930test { try toAsciiFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-", true); } // [V3, V7]
568113931test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7]
13932test { try toAsciiFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-", false); } // [V3, V7]
13933test { try toAsciiFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-", true); } // [V3, V7]
568213934test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7]
13935test { try toAsciiFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-", false); } // [V3, V7]
13936test { try toAsciiFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-", true); } // [V3, V7]
568313937test { try toUnicodeFail("xn--qutw175s.xn----mimu6tf67j"); } // [V3, V7]
13938test { try toAsciiFail("xn--qutw175s.xn----mimu6tf67j", false); } // [V3, V7]
13939test { try toAsciiFail("xn--qutw175s.xn----mimu6tf67j", true); } // [V3, V7]
568413940test { try toAsciiPass("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", true); }
568513941test { try toUnicodeFail("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe1\x82\xb8"); } // [C2]
13942test { try toAsciiFail("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe1\x82\xb8", false); } // [C2]
568613943test { try toAsciiPass("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe2\xb4\x98", "xn--p9ut19m.xn----mck373i", true); }
568713944test { try toUnicodeFail("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe2\xb4\x98"); } // [C2]
13945test { try toAsciiFail("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe2\xb4\x98", false); } // [C2]
568813946test { try toUnicodePass("xn--p9ut19m.xn----mck373i", "\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe2\xb4\x98"); }
568913947test { try toAsciiPass("xn--p9ut19m.xn----mck373i", "xn--p9ut19m.xn----mck373i", false); }
569013948test { try toAsciiPass("xn--p9ut19m.xn----mck373i", "xn--p9ut19m.xn----mck373i", true); }
......@@ -5695,14 +13953,26 @@ test { try toUnicodePass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "
569513953test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", false); }
569613954test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", true); }
569713955test { try toUnicodeFail("xn--1ug592ykp6b.xn----mck373i"); } // [C2]
13956test { try toAsciiFail("xn--1ug592ykp6b.xn----mck373i", false); } // [C2]
13957test { try toAsciiFail("xn--1ug592ykp6b.xn----mck373i", true); } // [C2]
569813958test { try toUnicodeFail("xn--p9ut19m.xn----k1g451d"); } // [V7]
13959test { try toAsciiFail("xn--p9ut19m.xn----k1g451d", false); } // [V7]
13960test { try toAsciiFail("xn--p9ut19m.xn----k1g451d", true); } // [V7]
569913961test { try toUnicodeFail("xn--1ug592ykp6b.xn----k1g451d"); } // [C2, V7]
13962test { try toAsciiFail("xn--1ug592ykp6b.xn----k1g451d", false); } // [C2, V7]
13963test { try toAsciiFail("xn--1ug592ykp6b.xn----k1g451d", true); } // [C2, V7]
570013964test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8\xef\xbc\x8e\xe2\x92\x97\xef\xbc\x93\xed\x88\x92\xdb\xb3"); } // [C1, V7]
13965test { try toAsciiFail("\xe2\x80\x8c\xea\x96\xa8\xef\xbc\x8e\xe2\x92\x97\xef\xbc\x93\xed\x88\x92\xdb\xb3", false); } // [C1, V7]
13966test { try toAsciiFail("\xe2\x80\x8c\xea\x96\xa8\xef\xbc\x8e\xe2\x92\x97\xef\xbc\x93\xed\x88\x92\xdb\xb3", true); } // [V7]
570113967test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8\xef\xbc\x8e\xe2\x92\x97\xef\xbc\x93\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3"); } // [C1, V7]
13968test { try toAsciiFail("\xe2\x80\x8c\xea\x96\xa8\xef\xbc\x8e\xe2\x92\x97\xef\xbc\x93\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3", false); } // [C1, V7]
13969test { try toAsciiFail("\xe2\x80\x8c\xea\x96\xa8\xef\xbc\x8e\xe2\x92\x97\xef\xbc\x93\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3", true); } // [V7]
570213970test { try toAsciiPass("\xe2\x80\x8c\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3", "xn--9r8a.16.xn--3-nyc0117m", true); }
570313971test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); } // [C1]
13972test { try toAsciiFail("\xe2\x80\x8c\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3", false); } // [C1]
570413973test { try toAsciiPass("\xe2\x80\x8c\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3", "xn--9r8a.16.xn--3-nyc0117m", true); }
570513974test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3"); } // [C1]
13975test { try toAsciiFail("\xe2\x80\x8c\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3", false); } // [C1]
570613976test { try toUnicodePass("xn--9r8a.16.xn--3-nyc0117m", "\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); }
570713977test { try toAsciiPass("xn--9r8a.16.xn--3-nyc0117m", "xn--9r8a.16.xn--3-nyc0117m", false); }
570813978test { try toAsciiPass("xn--9r8a.16.xn--3-nyc0117m", "xn--9r8a.16.xn--3-nyc0117m", true); }
......@@ -5713,172 +13983,506 @@ test { try toUnicodePass("\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\
571313983test { try toAsciiPass("\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3", "xn--9r8a.16.xn--3-nyc0117m", false); }
571413984test { try toAsciiPass("\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3", "xn--9r8a.16.xn--3-nyc0117m", true); }
571513985test { try toUnicodeFail("xn--0ug2473c.16.xn--3-nyc0117m"); } // [C1]
13986test { try toAsciiFail("xn--0ug2473c.16.xn--3-nyc0117m", false); } // [C1]
13987test { try toAsciiFail("xn--0ug2473c.16.xn--3-nyc0117m", true); } // [C1]
571613988test { try toUnicodeFail("xn--9r8a.xn--3-nyc678tu07m"); } // [V7]
13989test { try toAsciiFail("xn--9r8a.xn--3-nyc678tu07m", false); } // [V7]
13990test { try toAsciiFail("xn--9r8a.xn--3-nyc678tu07m", true); } // [V7]
571713991test { try toUnicodeFail("xn--0ug2473c.xn--3-nyc678tu07m"); } // [C1, V7]
13992test { try toAsciiFail("xn--0ug2473c.xn--3-nyc678tu07m", false); } // [C1, V7]
13993test { try toAsciiFail("xn--0ug2473c.xn--3-nyc678tu07m", true); } // [C1, V7]
571813994test { try toUnicodeFail("\xe2\x92\x88\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90"); } // [B1, V7]
13995test { try toAsciiFail("\xe2\x92\x88\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90", false); } // [B1, V7]
13996test { try toAsciiFail("\xe2\x92\x88\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90", true); } // [B1, V7]
571913997test { try toUnicodeFail("\xe2\x92\x88\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90"); } // [B1, V7]
13998test { try toAsciiFail("\xe2\x92\x88\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90", false); } // [B1, V7]
13999test { try toAsciiFail("\xe2\x92\x88\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90", true); } // [B1, V7]
572014000test { try toUnicodeFail("1.\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90"); } // [B1]
14001test { try toAsciiFail("1.\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90", false); } // [B1]
14002test { try toAsciiFail("1.\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90", true); } // [B1]
572114003test { try toUnicodeFail("1.\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90"); } // [B1]
14004test { try toAsciiFail("1.\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90", false); } // [B1]
14005test { try toAsciiFail("1.\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90", true); } // [B1]
572214006test { try toUnicodeFail("1.xn--6-945e.xn--glb1794k"); } // [B1]
14007test { try toAsciiFail("1.xn--6-945e.xn--glb1794k", false); } // [B1]
14008test { try toAsciiFail("1.xn--6-945e.xn--glb1794k", true); } // [B1]
572314009test { try toUnicodeFail("xn--6-dcps419c.xn--glb1794k"); } // [B1, V7]
14010test { try toAsciiFail("xn--6-dcps419c.xn--glb1794k", false); } // [B1, V7]
14011test { try toAsciiFail("xn--6-dcps419c.xn--glb1794k", true); } // [B1, V7]
572414012test { try toUnicodeFail("\xf0\x90\xb2\x9e\xf0\x9d\x9f\xb6\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
14013test { try toAsciiFail("\xf0\x90\xb2\x9e\xf0\x9d\x9f\xb6\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9", false); } // [B1, B3, V7]
14014test { try toAsciiFail("\xf0\x90\xb2\x9e\xf0\x9d\x9f\xb6\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9", true); } // [B1, B3, V7]
572514015test { try toUnicodeFail("\xf0\x90\xb2\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
14016test { try toAsciiFail("\xf0\x90\xb2\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9", false); } // [B1, B3, V7]
14017test { try toAsciiFail("\xf0\x90\xb2\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9", true); } // [B1, B3, V7]
572614018test { try toUnicodeFail("\xf0\x90\xb2\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
14019test { try toAsciiFail("\xf0\x90\xb2\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9", false); } // [B1, B3, V7]
14020test { try toAsciiFail("\xf0\x90\xb2\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9", true); } // [B1, B3, V7]
572714021test { try toUnicodeFail("\xf0\x90\xb2\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
14022test { try toAsciiFail("\xf0\x90\xb2\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9", false); } // [B1, B3, V7]
14023test { try toAsciiFail("\xf0\x90\xb2\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9", true); } // [B1, B3, V7]
572814024test { try toUnicodeFail("\xf0\x90\xb3\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
14025test { try toAsciiFail("\xf0\x90\xb3\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9", false); } // [B1, B3, V7]
14026test { try toAsciiFail("\xf0\x90\xb3\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9", true); } // [B1, B3, V7]
572914027test { try toUnicodeFail("\xf0\x90\xb3\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
14028test { try toAsciiFail("\xf0\x90\xb3\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9", false); } // [B1, B3, V7]
14029test { try toAsciiFail("\xf0\x90\xb3\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9", true); } // [B1, B3, V7]
573014030test { try toUnicodeFail("xn--0-ngoa5711v.xn--4gb31034p"); } // [B1, B3, V7]
14031test { try toAsciiFail("xn--0-ngoa5711v.xn--4gb31034p", false); } // [B1, B3, V7]
14032test { try toAsciiFail("xn--0-ngoa5711v.xn--4gb31034p", true); } // [B1, B3, V7]
573114033test { try toUnicodeFail("\xf0\x90\xb3\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
14034test { try toAsciiFail("\xf0\x90\xb3\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9", false); } // [B1, B3, V7]
14035test { try toAsciiFail("\xf0\x90\xb3\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9", true); } // [B1, B3, V7]
573214036test { try toUnicodeFail("\xf0\x90\xb3\x9e\xf0\x9d\x9f\xb6\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
14037test { try toAsciiFail("\xf0\x90\xb3\x9e\xf0\x9d\x9f\xb6\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9", false); } // [B1, B3, V7]
14038test { try toAsciiFail("\xf0\x90\xb3\x9e\xf0\x9d\x9f\xb6\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9", true); } // [B1, B3, V7]
573314039test { try toUnicodeFail("\xe0\xab\xa3.\xf0\x90\xb9\xba\xe1\x85\x9f"); } // [B1, V6]
14040test { try toAsciiFail("\xe0\xab\xa3.\xf0\x90\xb9\xba\xe1\x85\x9f", false); } // [B1, V6]
14041test { try toAsciiFail("\xe0\xab\xa3.\xf0\x90\xb9\xba\xe1\x85\x9f", true); } // [B1, V6]
573414042test { try toUnicodeFail("xn--8fc.xn--yo0d"); } // [B1, V6]
14043test { try toAsciiFail("xn--8fc.xn--yo0d", false); } // [B1, V6]
14044test { try toAsciiFail("xn--8fc.xn--yo0d", true); } // [B1, V6]
573514045test { try toUnicodeFail("xn--8fc.xn--osd3070k"); } // [B1, V6, V7]
14046test { try toAsciiFail("xn--8fc.xn--osd3070k", false); } // [B1, V6, V7]
14047test { try toAsciiFail("xn--8fc.xn--osd3070k", true); } // [B1, V6, V7]
573614048test { try toUnicodeFail("\xf0\x9d\x9f\x8f\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d"); } // [C2]
14049test { try toAsciiFail("\xf0\x9d\x9f\x8f\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d", false); } // [C2]
14050test { try toAsciiFail("\xf0\x9d\x9f\x8f\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d", true); } // [A4_2]
573714051test { try toUnicodeFail("1\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d"); } // [C2]
14052test { try toAsciiFail("1\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d", false); } // [C2]
14053test { try toAsciiFail("1\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d", true); } // [A4_2]
573814054test { try toUnicodePass("xn--1-5bt6845n.", "1\xf0\x9d\xa8\x99\xe2\xb8\x96."); }
14055test { try toAsciiFail("xn--1-5bt6845n.", false); } // [A4_2]
14056test { try toAsciiFail("xn--1-5bt6845n.", true); } // [A4_2]
573914057test { try toUnicodePass("1\xf0\x9d\xa8\x99\xe2\xb8\x96.", "1\xf0\x9d\xa8\x99\xe2\xb8\x96."); }
14058test { try toAsciiFail("1\xf0\x9d\xa8\x99\xe2\xb8\x96.", false); } // [A4_2]
14059test { try toAsciiFail("1\xf0\x9d\xa8\x99\xe2\xb8\x96.", true); } // [A4_2]
574014060test { try toUnicodeFail("xn--1-5bt6845n.xn--1ug"); } // [C2]
14061test { try toAsciiFail("xn--1-5bt6845n.xn--1ug", false); } // [C2]
14062test { try toAsciiFail("xn--1-5bt6845n.xn--1ug", true); } // [C2]
574114063test { try toUnicodeFail("\xf0\x9e\xa4\x90\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
14064test { try toAsciiFail("\xf0\x9e\xa4\x90\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95", false); } // [B1, C1, V3]
14065test { try toAsciiFail("\xf0\x9e\xa4\x90\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95", true); } // [B1, V3]
574214066test { try toUnicodeFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
14067test { try toAsciiFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95", false); } // [B1, C1, V3]
14068test { try toAsciiFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95", true); } // [B1, V3]
574314069test { try toUnicodeFail("\xf0\x9e\xa4\x90\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
14070test { try toAsciiFail("\xf0\x9e\xa4\x90\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95", false); } // [B1, C1, V3]
14071test { try toAsciiFail("\xf0\x9e\xa4\x90\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95", true); } // [B1, V3]
574414072test { try toUnicodeFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
14073test { try toAsciiFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95", false); } // [B1, C1, V3]
14074test { try toAsciiFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95", true); } // [B1, V3]
574514075test { try toUnicodeFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
14076test { try toAsciiFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95", false); } // [B1, C1, V3]
14077test { try toAsciiFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95", true); } // [B1, V3]
574614078test { try toUnicodeFail("\xf0\x9e\xa4\xb2\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
14079test { try toAsciiFail("\xf0\x9e\xa4\xb2\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95", false); } // [B1, C1, V3]
14080test { try toAsciiFail("\xf0\x9e\xa4\xb2\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95", true); } // [B1, V3]
574714081test { try toUnicodeFail("xn--wnb859grzfzw60c.xn----kcd"); } // [B1, V3]
14082test { try toAsciiFail("xn--wnb859grzfzw60c.xn----kcd", false); } // [B1, V3]
14083test { try toAsciiFail("xn--wnb859grzfzw60c.xn----kcd", true); } // [B1, V3]
574814084test { try toUnicodeFail("xn--wnb859grzfzw60c.xn----kcd017p"); } // [B1, C1, V3]
14085test { try toAsciiFail("xn--wnb859grzfzw60c.xn----kcd017p", false); } // [B1, C1, V3]
14086test { try toAsciiFail("xn--wnb859grzfzw60c.xn----kcd017p", true); } // [B1, C1, V3]
574914087test { try toUnicodeFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
14088test { try toAsciiFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95", false); } // [B1, C1, V3]
14089test { try toAsciiFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95", true); } // [B1, V3]
575014090test { try toUnicodeFail("\xf0\x9e\xa4\xb2\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
14091test { try toAsciiFail("\xf0\x9e\xa4\xb2\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95", false); } // [B1, C1, V3]
14092test { try toAsciiFail("\xf0\x9e\xa4\xb2\xe2\x89\xa0\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95", true); } // [B1, V3]
575114093test { try toUnicodeFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xef\xbd\xa1\xd9\xb5"); } // [B1]
14094test { try toAsciiFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xef\xbd\xa1\xd9\xb5", false); } // [B1]
14095test { try toAsciiFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xef\xbd\xa1\xd9\xb5", true); } // [B1]
575214096test { try toUnicodeFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xe3\x80\x82\xd8\xa7\xd9\xb4"); } // [B1]
14097test { try toAsciiFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xe3\x80\x82\xd8\xa7\xd9\xb4", false); } // [B1]
14098test { try toAsciiFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xe3\x80\x82\xd8\xa7\xd9\xb4", true); } // [B1]
575314099test { try toUnicodeFail("xn----shb2387jgkqd.xn--mgb8m"); } // [B1]
14100test { try toAsciiFail("xn----shb2387jgkqd.xn--mgb8m", false); } // [B1]
14101test { try toAsciiFail("xn----shb2387jgkqd.xn--mgb8m", true); } // [B1]
575414102test { try toUnicodeFail("F\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7]
14103test { try toAsciiFail("F\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a", false); } // [V7]
14104test { try toAsciiFail("F\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a", true); } // [V7]
575514105test { try toUnicodeFail("F\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7]
14106test { try toAsciiFail("F\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a", false); } // [V7]
14107test { try toAsciiFail("F\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a", true); } // [V7]
575614108test { try toUnicodeFail("f\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7]
14109test { try toAsciiFail("f\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a", false); } // [V7]
14110test { try toAsciiFail("f\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a", true); } // [V7]
575714111test { try toUnicodeFail("f.xn--45hz6953f"); } // [V7]
14112test { try toAsciiFail("f.xn--45hz6953f", false); } // [V7]
14113test { try toAsciiFail("f.xn--45hz6953f", true); } // [V7]
575814114test { try toUnicodeFail("f\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7]
14115test { try toAsciiFail("f\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a", false); } // [V7]
14116test { try toAsciiFail("f\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a", true); } // [V7]
575914117test { try toUnicodeFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x82\xf0\x9d\x9f\xae\xe1\x82\xb8\xf0\x9e\x80\xa8\xf1\x83\xa5\x87"); } // [V6, V7]
14118test { try toAsciiFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x82\xf0\x9d\x9f\xae\xe1\x82\xb8\xf0\x9e\x80\xa8\xf1\x83\xa5\x87", false); } // [V6, V7]
14119test { try toAsciiFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x82\xf0\x9d\x9f\xae\xe1\x82\xb8\xf0\x9e\x80\xa8\xf1\x83\xa5\x87", true); } // [V6, V7]
576014120test { try toUnicodeFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x822\xe1\x82\xb8\xf0\x9e\x80\xa8\xf1\x83\xa5\x87"); } // [V6, V7]
14121test { try toAsciiFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x822\xe1\x82\xb8\xf0\x9e\x80\xa8\xf1\x83\xa5\x87", false); } // [V6, V7]
14122test { try toAsciiFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x822\xe1\x82\xb8\xf0\x9e\x80\xa8\xf1\x83\xa5\x87", true); } // [V6, V7]
576114123test { try toUnicodeFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x822\xe2\xb4\x98\xf0\x9e\x80\xa8\xf1\x83\xa5\x87"); } // [V6, V7]
14124test { try toAsciiFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x822\xe2\xb4\x98\xf0\x9e\x80\xa8\xf1\x83\xa5\x87", false); } // [V6, V7]
14125test { try toAsciiFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x822\xe2\xb4\x98\xf0\x9e\x80\xa8\xf1\x83\xa5\x87", true); } // [V6, V7]
576214126test { try toUnicodeFail("xn--9ic246gs21p.xn--2-nws2918ndrjr"); } // [V6, V7]
14127test { try toAsciiFail("xn--9ic246gs21p.xn--2-nws2918ndrjr", false); } // [V6, V7]
14128test { try toAsciiFail("xn--9ic246gs21p.xn--2-nws2918ndrjr", true); } // [V6, V7]
576314129test { try toUnicodeFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x82\xf0\x9d\x9f\xae\xe2\xb4\x98\xf0\x9e\x80\xa8\xf1\x83\xa5\x87"); } // [V6, V7]
14130test { try toAsciiFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x82\xf0\x9d\x9f\xae\xe2\xb4\x98\xf0\x9e\x80\xa8\xf1\x83\xa5\x87", false); } // [V6, V7]
14131test { try toAsciiFail("\xe0\xad\x8d\xf0\x91\x84\xb4\xe1\xb7\xa9\xe3\x80\x82\xf0\x9d\x9f\xae\xe2\xb4\x98\xf0\x9e\x80\xa8\xf1\x83\xa5\x87", true); } // [V6, V7]
576414132test { try toUnicodeFail("xn--9ic246gs21p.xn--2-k1g43076adrwq"); } // [V6, V7]
14133test { try toAsciiFail("xn--9ic246gs21p.xn--2-k1g43076adrwq", false); } // [V6, V7]
14134test { try toAsciiFail("xn--9ic246gs21p.xn--2-k1g43076adrwq", true); } // [V6, V7]
576514135test { try toUnicodeFail("\xf2\x93\xa0\xad\xe2\x80\x8c\xe2\x80\x8c\xe2\x92\x88\xe3\x80\x82\xe5\x8b\x89\xf0\x91\x81\x85"); } // [C1, V7]
14136test { try toAsciiFail("\xf2\x93\xa0\xad\xe2\x80\x8c\xe2\x80\x8c\xe2\x92\x88\xe3\x80\x82\xe5\x8b\x89\xf0\x91\x81\x85", false); } // [C1, V7]
14137test { try toAsciiFail("\xf2\x93\xa0\xad\xe2\x80\x8c\xe2\x80\x8c\xe2\x92\x88\xe3\x80\x82\xe5\x8b\x89\xf0\x91\x81\x85", true); } // [V7]
576614138test { try toUnicodeFail("\xf2\x93\xa0\xad\xe2\x80\x8c\xe2\x80\x8c1.\xe3\x80\x82\xe5\x8b\x89\xf0\x91\x81\x85"); } // [C1, V7, X4_2]
14139test { try toAsciiFail("\xf2\x93\xa0\xad\xe2\x80\x8c\xe2\x80\x8c1.\xe3\x80\x82\xe5\x8b\x89\xf0\x91\x81\x85", false); } // [C1, V7, A4_2]
14140test { try toAsciiFail("\xf2\x93\xa0\xad\xe2\x80\x8c\xe2\x80\x8c1.\xe3\x80\x82\xe5\x8b\x89\xf0\x91\x81\x85", true); } // [V7, A4_2]
576714141test { try toUnicodeFail("xn--1-yi00h..xn--4grs325b"); } // [V7, X4_2]
14142test { try toAsciiFail("xn--1-yi00h..xn--4grs325b", false); } // [V7, A4_2]
14143test { try toAsciiFail("xn--1-yi00h..xn--4grs325b", true); } // [V7, A4_2]
576814144test { try toUnicodeFail("xn--1-rgna61159u..xn--4grs325b"); } // [C1, V7, X4_2]
14145test { try toAsciiFail("xn--1-rgna61159u..xn--4grs325b", false); } // [C1, V7, A4_2]
14146test { try toAsciiFail("xn--1-rgna61159u..xn--4grs325b", true); } // [C1, V7, A4_2]
576914147test { try toUnicodeFail("xn--tsh11906f.xn--4grs325b"); } // [V7]
14148test { try toAsciiFail("xn--tsh11906f.xn--4grs325b", false); } // [V7]
14149test { try toAsciiFail("xn--tsh11906f.xn--4grs325b", true); } // [V7]
577014150test { try toUnicodeFail("xn--0uga855aez302a.xn--4grs325b"); } // [C1, V7]
14151test { try toAsciiFail("xn--0uga855aez302a.xn--4grs325b", false); } // [C1, V7]
14152test { try toAsciiFail("xn--0uga855aez302a.xn--4grs325b", true); } // [C1, V7]
577114153test { try toUnicodeFail("\xe1\xa1\x83.\xe7\x8e\xbf\xf1\xab\x88\x9c\xf3\x95\x9e\x90"); } // [V7]
14154test { try toAsciiFail("\xe1\xa1\x83.\xe7\x8e\xbf\xf1\xab\x88\x9c\xf3\x95\x9e\x90", false); } // [V7]
14155test { try toAsciiFail("\xe1\xa1\x83.\xe7\x8e\xbf\xf1\xab\x88\x9c\xf3\x95\x9e\x90", true); } // [V7]
577214156test { try toUnicodeFail("xn--27e.xn--7cy81125a0yq4a"); } // [V7]
14157test { try toAsciiFail("xn--27e.xn--7cy81125a0yq4a", false); } // [V7]
14158test { try toAsciiFail("xn--27e.xn--7cy81125a0yq4a", true); } // [V7]
577314159test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88\xe2\x89\xaf\xf0\x9d\x9f\xb5"); } // [C1, V7]
14160test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88\xe2\x89\xaf\xf0\x9d\x9f\xb5", false); } // [C1, V7]
14161test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88\xe2\x89\xaf\xf0\x9d\x9f\xb5", true); } // [V7, A4_2]
577414162test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88>\xcc\xb8\xf0\x9d\x9f\xb5"); } // [C1, V7]
14163test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88>\xcc\xb8\xf0\x9d\x9f\xb5", false); } // [C1, V7]
14164test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88>\xcc\xb8\xf0\x9d\x9f\xb5", true); } // [V7, A4_2]
577514165test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.\xe2\x89\xaf9"); } // [C1]
14166test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.\xe2\x89\xaf9", false); } // [C1]
14167test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.\xe2\x89\xaf9", true); } // [A4_2]
577614168test { 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]
14170test { try toAsciiFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89", true); } // [A4_2]
577714171test { try toUnicodeFail(".1.xn--9-ogo"); } // [X4_2]
14172test { try toAsciiFail(".1.xn--9-ogo", false); } // [A4_2]
14173test { try toAsciiFail(".1.xn--9-ogo", true); } // [A4_2]
577814174test { try toUnicodeFail("xn--0uga.1.xn--9-ogo"); } // [C1]
14175test { try toAsciiFail("xn--0uga.1.xn--9-ogo", false); } // [C1]
14176test { try toAsciiFail("xn--0uga.1.xn--9-ogo", true); } // [C1]
577914177test { try toUnicodeFail(".xn--9-ogo37g"); } // [V7, X4_2]
14178test { try toAsciiFail(".xn--9-ogo37g", false); } // [V7, A4_2]
14179test { try toAsciiFail(".xn--9-ogo37g", true); } // [V7, A4_2]
578014180test { try toUnicodeFail("xn--0uga.xn--9-ogo37g"); } // [C1, V7]
14181test { try toAsciiFail("xn--0uga.xn--9-ogo37g", false); } // [C1, V7]
14182test { try toAsciiFail("xn--0uga.xn--9-ogo37g", true); } // [C1, V7]
578114183test { try toUnicodeFail("\xe1\x85\x9f\xe1\xb7\xa0\xf2\x90\x80\x81.\xf0\xba\xbb\x86\xe2\x89\xaf\xf0\x90\xae\x81"); } // [B1, B5, B6, V6, V7]
14184test { try toAsciiFail("\xe1\x85\x9f\xe1\xb7\xa0\xf2\x90\x80\x81.\xf0\xba\xbb\x86\xe2\x89\xaf\xf0\x90\xae\x81", false); } // [B1, B5, B6, V6, V7]
14185test { try toAsciiFail("\xe1\x85\x9f\xe1\xb7\xa0\xf2\x90\x80\x81.\xf0\xba\xbb\x86\xe2\x89\xaf\xf0\x90\xae\x81", true); } // [B1, B5, B6, V6, V7]
578214186test { try toUnicodeFail("\xe1\x85\x9f\xe1\xb7\xa0\xf2\x90\x80\x81.\xf0\xba\xbb\x86>\xcc\xb8\xf0\x90\xae\x81"); } // [B1, B5, B6, V6, V7]
14187test { try toAsciiFail("\xe1\x85\x9f\xe1\xb7\xa0\xf2\x90\x80\x81.\xf0\xba\xbb\x86>\xcc\xb8\xf0\x90\xae\x81", false); } // [B1, B5, B6, V6, V7]
14188test { try toAsciiFail("\xe1\x85\x9f\xe1\xb7\xa0\xf2\x90\x80\x81.\xf0\xba\xbb\x86>\xcc\xb8\xf0\x90\xae\x81", true); } // [B1, B5, B6, V6, V7]
578314189test { try toUnicodeFail("xn--4eg41418g.xn--hdh5192gkm6r"); } // [B1, B5, B6, V6, V7]
14190test { try toAsciiFail("xn--4eg41418g.xn--hdh5192gkm6r", false); } // [B1, B5, B6, V6, V7]
14191test { try toAsciiFail("xn--4eg41418g.xn--hdh5192gkm6r", true); } // [B1, B5, B6, V6, V7]
578414192test { try toUnicodeFail("xn--osd615d5659o.xn--hdh5192gkm6r"); } // [B5, B6, V7]
14193test { try toAsciiFail("xn--osd615d5659o.xn--hdh5192gkm6r", false); } // [B5, B6, V7]
14194test { try toAsciiFail("xn--osd615d5659o.xn--hdh5192gkm6r", true); } // [B5, B6, V7]
578514195test { try toUnicodeFail("\xf3\xa0\x84\xab\xf0\x9d\xa9\xa4\xe2\x80\x8d\xd8\xbe.\xf0\x9d\xa9\xa9-\xe0\xa0\x9e\xf3\x91\xbc\xa9"); } // [B1, C2, V6, V7]
14196test { try toAsciiFail("\xf3\xa0\x84\xab\xf0\x9d\xa9\xa4\xe2\x80\x8d\xd8\xbe.\xf0\x9d\xa9\xa9-\xe0\xa0\x9e\xf3\x91\xbc\xa9", false); } // [B1, C2, V6, V7]
14197test { try toAsciiFail("\xf3\xa0\x84\xab\xf0\x9d\xa9\xa4\xe2\x80\x8d\xd8\xbe.\xf0\x9d\xa9\xa9-\xe0\xa0\x9e\xf3\x91\xbc\xa9", true); } // [B1, V6, V7]
578614198test { try toUnicodeFail("xn--9gb5080v.xn----qgd52296avol4f"); } // [B1, V6, V7]
14199test { try toAsciiFail("xn--9gb5080v.xn----qgd52296avol4f", false); } // [B1, V6, V7]
14200test { try toAsciiFail("xn--9gb5080v.xn----qgd52296avol4f", true); } // [B1, V6, V7]
578714201test { try toUnicodeFail("xn--9gb723kg862a.xn----qgd52296avol4f"); } // [B1, C2, V6, V7]
14202test { try toAsciiFail("xn--9gb723kg862a.xn----qgd52296avol4f", false); } // [B1, C2, V6, V7]
14203test { try toAsciiFail("xn--9gb723kg862a.xn----qgd52296avol4f", true); } // [B1, C2, V6, V7]
578814204test { try toUnicodeFail("\xe2\x83\x9a\xef\xbc\x8e\xf0\x91\x98\xbf-"); } // [V3, V6]
14205test { try toAsciiFail("\xe2\x83\x9a\xef\xbc\x8e\xf0\x91\x98\xbf-", false); } // [V3, V6]
14206test { try toAsciiFail("\xe2\x83\x9a\xef\xbc\x8e\xf0\x91\x98\xbf-", true); } // [V3, V6]
578914207test { try toUnicodeFail("\xe2\x83\x9a.\xf0\x91\x98\xbf-"); } // [V3, V6]
14208test { try toAsciiFail("\xe2\x83\x9a.\xf0\x91\x98\xbf-", false); } // [V3, V6]
14209test { try toAsciiFail("\xe2\x83\x9a.\xf0\x91\x98\xbf-", true); } // [V3, V6]
579014210test { try toUnicodeFail("xn--w0g.xn----bd0j"); } // [V3, V6]
14211test { try toAsciiFail("xn--w0g.xn----bd0j", false); } // [V3, V6]
14212test { try toAsciiFail("xn--w0g.xn----bd0j", true); } // [V3, V6]
579114213test { try toUnicodeFail("\xe4\xae\xb8\xc3\x9f.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7]
14214test { try toAsciiFail("\xe4\xae\xb8\xc3\x9f.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8", false); } // [B1, V7]
14215test { try toAsciiFail("\xe4\xae\xb8\xc3\x9f.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8", true); } // [B1, V7]
579214216test { try toUnicodeFail("\xe4\xae\xb8SS.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7]
14217test { try toAsciiFail("\xe4\xae\xb8SS.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8", false); } // [B1, V7]
14218test { try toAsciiFail("\xe4\xae\xb8SS.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8", true); } // [B1, V7]
579314219test { try toUnicodeFail("\xe4\xae\xb8ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7]
14220test { try toAsciiFail("\xe4\xae\xb8ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8", false); } // [B1, V7]
14221test { try toAsciiFail("\xe4\xae\xb8ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8", true); } // [B1, V7]
579414222test { try toUnicodeFail("\xe4\xae\xb8Ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7]
14223test { try toAsciiFail("\xe4\xae\xb8Ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8", false); } // [B1, V7]
14224test { try toAsciiFail("\xe4\xae\xb8Ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8", true); } // [B1, V7]
579514225test { try toUnicodeFail("xn--ss-sf1c.xn--xyb1370div70kpzba"); } // [B1, V7]
14226test { try toAsciiFail("xn--ss-sf1c.xn--xyb1370div70kpzba", false); } // [B1, V7]
14227test { try toAsciiFail("xn--ss-sf1c.xn--xyb1370div70kpzba", true); } // [B1, V7]
579614228test { try toUnicodeFail("xn--zca5349a.xn--xyb1370div70kpzba"); } // [B1, V7]
14229test { try toAsciiFail("xn--zca5349a.xn--xyb1370div70kpzba", false); } // [B1, V7]
14230test { try toAsciiFail("xn--zca5349a.xn--xyb1370div70kpzba", true); } // [B1, V7]
579714231test { try toUnicodeFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95"); } // [B1, V3]
14232test { try toAsciiFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95", false); } // [B1, V3]
14233test { try toAsciiFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95", true); } // [B1, V3]
579814234test { try toUnicodeFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95"); } // [B1, V3]
14235test { try toAsciiFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95", false); } // [B1, V3]
14236test { try toAsciiFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95", true); } // [B1, V3]
579914237test { try toUnicodeFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95"); } // [B1, V3]
14238test { try toAsciiFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95", false); } // [B1, V3]
14239test { try toAsciiFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95", true); } // [B1, V3]
580014240test { try toUnicodeFail("xn----zws.xn---23-pt0a0433lk3jj"); } // [B1, V3]
14241test { try toAsciiFail("xn----zws.xn---23-pt0a0433lk3jj", false); } // [B1, V3]
14242test { try toAsciiFail("xn----zws.xn---23-pt0a0433lk3jj", true); } // [B1, V3]
580114243test { try toUnicodeFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95"); } // [B1, V3]
14244test { try toAsciiFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95", false); } // [B1, V3]
14245test { try toAsciiFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95", true); } // [B1, V3]
580214246test { try toUnicodeFail("xn----w1g.xn---23-pt0a0433lk3jj"); } // [B1, V3, V7]
14247test { try toAsciiFail("xn----w1g.xn---23-pt0a0433lk3jj", false); } // [B1, V3, V7]
14248test { try toAsciiFail("xn----w1g.xn---23-pt0a0433lk3jj", true); } // [B1, V3, V7]
580314249test { try toUnicodeFail("\xf3\xa7\x88\xaf\xf0\x90\xb9\xaf\xe0\xab\x82\xef\xbd\xa1\xf2\x96\xa2\xa8\xf0\x90\xae\x81\xf1\x87\xbc\x96\xe1\xa1\x82"); } // [B5, B6, V7]
14250test { try toAsciiFail("\xf3\xa7\x88\xaf\xf0\x90\xb9\xaf\xe0\xab\x82\xef\xbd\xa1\xf2\x96\xa2\xa8\xf0\x90\xae\x81\xf1\x87\xbc\x96\xe1\xa1\x82", false); } // [B5, B6, V7]
14251test { try toAsciiFail("\xf3\xa7\x88\xaf\xf0\x90\xb9\xaf\xe0\xab\x82\xef\xbd\xa1\xf2\x96\xa2\xa8\xf0\x90\xae\x81\xf1\x87\xbc\x96\xe1\xa1\x82", true); } // [B5, B6, V7]
580414252test { try toUnicodeFail("\xf3\xa7\x88\xaf\xf0\x90\xb9\xaf\xe0\xab\x82\xe3\x80\x82\xf2\x96\xa2\xa8\xf0\x90\xae\x81\xf1\x87\xbc\x96\xe1\xa1\x82"); } // [B5, B6, V7]
14253test { try toAsciiFail("\xf3\xa7\x88\xaf\xf0\x90\xb9\xaf\xe0\xab\x82\xe3\x80\x82\xf2\x96\xa2\xa8\xf0\x90\xae\x81\xf1\x87\xbc\x96\xe1\xa1\x82", false); } // [B5, B6, V7]
14254test { try toAsciiFail("\xf3\xa7\x88\xaf\xf0\x90\xb9\xaf\xe0\xab\x82\xe3\x80\x82\xf2\x96\xa2\xa8\xf0\x90\xae\x81\xf1\x87\xbc\x96\xe1\xa1\x82", true); } // [B5, B6, V7]
580514255test { try toUnicodeFail("xn--bfc7604kv8m3g.xn--17e5565jl7zw4h16a"); } // [B5, B6, V7]
14256test { try toAsciiFail("xn--bfc7604kv8m3g.xn--17e5565jl7zw4h16a", false); } // [B5, B6, V7]
14257test { try toAsciiFail("xn--bfc7604kv8m3g.xn--17e5565jl7zw4h16a", true); } // [B5, B6, V7]
580614258test { try toUnicodeFail("\xe1\x82\x82-\xe2\x80\x8d\xea\xa3\xaa\xef\xbc\x8e\xea\xa1\x8a\xe2\x80\x8d\xf1\xbc\xb8\xb3"); } // [C2, V6, V7]
14259test { try toAsciiFail("\xe1\x82\x82-\xe2\x80\x8d\xea\xa3\xaa\xef\xbc\x8e\xea\xa1\x8a\xe2\x80\x8d\xf1\xbc\xb8\xb3", false); } // [C2, V6, V7]
14260test { try toAsciiFail("\xe1\x82\x82-\xe2\x80\x8d\xea\xa3\xaa\xef\xbc\x8e\xea\xa1\x8a\xe2\x80\x8d\xf1\xbc\xb8\xb3", true); } // [V6, V7]
580714261test { try toUnicodeFail("\xe1\x82\x82-\xe2\x80\x8d\xea\xa3\xaa.\xea\xa1\x8a\xe2\x80\x8d\xf1\xbc\xb8\xb3"); } // [C2, V6, V7]
14262test { try toAsciiFail("\xe1\x82\x82-\xe2\x80\x8d\xea\xa3\xaa.\xea\xa1\x8a\xe2\x80\x8d\xf1\xbc\xb8\xb3", false); } // [C2, V6, V7]
14263test { try toAsciiFail("\xe1\x82\x82-\xe2\x80\x8d\xea\xa3\xaa.\xea\xa1\x8a\xe2\x80\x8d\xf1\xbc\xb8\xb3", true); } // [V6, V7]
580814264test { try toUnicodeFail("xn----gyg3618i.xn--jc9ao4185a"); } // [V6, V7]
14265test { try toAsciiFail("xn----gyg3618i.xn--jc9ao4185a", false); } // [V6, V7]
14266test { try toAsciiFail("xn----gyg3618i.xn--jc9ao4185a", true); } // [V6, V7]
580914267test { try toUnicodeFail("xn----gyg250jio7k.xn--1ug8774cri56d"); } // [C2, V6, V7]
14268test { try toAsciiFail("xn----gyg250jio7k.xn--1ug8774cri56d", false); } // [C2, V6, V7]
14269test { try toAsciiFail("xn----gyg250jio7k.xn--1ug8774cri56d", true); } // [C2, V6, V7]
581014270test { try toUnicodeFail("\xdb\xb1\xe3\x80\x82\xe2\x89\xa0\xd9\xa8"); } // [B1]
14271test { try toAsciiFail("\xdb\xb1\xe3\x80\x82\xe2\x89\xa0\xd9\xa8", false); } // [B1]
14272test { try toAsciiFail("\xdb\xb1\xe3\x80\x82\xe2\x89\xa0\xd9\xa8", true); } // [B1]
581114273test { try toUnicodeFail("\xdb\xb1\xe3\x80\x82=\xcc\xb8\xd9\xa8"); } // [B1]
14274test { try toAsciiFail("\xdb\xb1\xe3\x80\x82=\xcc\xb8\xd9\xa8", false); } // [B1]
14275test { try toAsciiFail("\xdb\xb1\xe3\x80\x82=\xcc\xb8\xd9\xa8", true); } // [B1]
581214276test { try toUnicodeFail("xn--emb.xn--hib334l"); } // [B1]
14277test { try toAsciiFail("xn--emb.xn--hib334l", false); } // [B1]
14278test { try toAsciiFail("xn--emb.xn--hib334l", true); } // [B1]
581314279test { try toUnicodeFail("\xf0\x91\x88\xb5\xe5\xbb\x8a.\xf0\x90\xa0\x8d"); } // [V6]
14280test { try toAsciiFail("\xf0\x91\x88\xb5\xe5\xbb\x8a.\xf0\x90\xa0\x8d", false); } // [V6]
14281test { try toAsciiFail("\xf0\x91\x88\xb5\xe5\xbb\x8a.\xf0\x90\xa0\x8d", true); } // [V6]
581414282test { try toUnicodeFail("xn--xytw701b.xn--yc9c"); } // [V6]
14283test { try toAsciiFail("xn--xytw701b.xn--yc9c", false); } // [V6]
14284test { try toAsciiFail("xn--xytw701b.xn--yc9c", true); } // [V6]
581514285test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe1\x82\xb0\xd9\xa1"); } // [B1, C2, V3]
14286test { try toAsciiFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe1\x82\xb0\xd9\xa1", false); } // [B1, C2, V3]
14287test { try toAsciiFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe1\x82\xb0\xd9\xa1", true); } // [B1, V3, V6]
581614288test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-.-\xe1\x82\xb0\xd9\xa1"); } // [B1, C2, V3]
14289test { try toAsciiFail("\xe2\x80\x8d\xcd\x96-.-\xe1\x82\xb0\xd9\xa1", false); } // [B1, C2, V3]
14290test { try toAsciiFail("\xe2\x80\x8d\xcd\x96-.-\xe1\x82\xb0\xd9\xa1", true); } // [B1, V3, V6]
581714291test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-.-\xe2\xb4\x90\xd9\xa1"); } // [B1, C2, V3]
14292test { try toAsciiFail("\xe2\x80\x8d\xcd\x96-.-\xe2\xb4\x90\xd9\xa1", false); } // [B1, C2, V3]
14293test { try toAsciiFail("\xe2\x80\x8d\xcd\x96-.-\xe2\xb4\x90\xd9\xa1", true); } // [B1, V3, V6]
581814294test { try toUnicodeFail("xn----rgb.xn----bqc2280a"); } // [B1, V3, V6]
14295test { try toAsciiFail("xn----rgb.xn----bqc2280a", false); } // [B1, V3, V6]
14296test { try toAsciiFail("xn----rgb.xn----bqc2280a", true); } // [B1, V3, V6]
581914297test { try toUnicodeFail("xn----rgb661t.xn----bqc2280a"); } // [B1, C2, V3]
14298test { try toAsciiFail("xn----rgb661t.xn----bqc2280a", false); } // [B1, C2, V3]
14299test { try toAsciiFail("xn----rgb661t.xn----bqc2280a", true); } // [B1, C2, V3]
582014300test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe2\xb4\x90\xd9\xa1"); } // [B1, C2, V3]
14301test { try toAsciiFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe2\xb4\x90\xd9\xa1", false); } // [B1, C2, V3]
14302test { try toAsciiFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe2\xb4\x90\xd9\xa1", true); } // [B1, V3, V6]
582114303test { try toUnicodeFail("xn----rgb.xn----bqc030f"); } // [B1, V3, V6, V7]
14304test { try toAsciiFail("xn----rgb.xn----bqc030f", false); } // [B1, V3, V6, V7]
14305test { try toAsciiFail("xn----rgb.xn----bqc030f", true); } // [B1, V3, V6, V7]
582214306test { try toUnicodeFail("xn----rgb661t.xn----bqc030f"); } // [B1, C2, V3, V7]
14307test { try toAsciiFail("xn----rgb661t.xn----bqc030f", false); } // [B1, C2, V3, V7]
14308test { try toAsciiFail("xn----rgb661t.xn----bqc030f", true); } // [B1, C2, V3, V7]
582314309test { try toUnicodeFail("\xd8\xba\xd9\xa1\xe6\x8c\x8f\xf3\xbe\xaf\x90.-"); } // [B1, B2, B3, V3, V7]
14310test { try toAsciiFail("\xd8\xba\xd9\xa1\xe6\x8c\x8f\xf3\xbe\xaf\x90.-", false); } // [B1, B2, B3, V3, V7]
14311test { try toAsciiFail("\xd8\xba\xd9\xa1\xe6\x8c\x8f\xf3\xbe\xaf\x90.-", true); } // [B1, B2, B3, V3, V7]
582414312test { try toUnicodeFail("xn--5gb2f4205aqi47p.-"); } // [B1, B2, B3, V3, V7]
14313test { try toAsciiFail("xn--5gb2f4205aqi47p.-", false); } // [B1, B2, B3, V3, V7]
14314test { try toAsciiFail("xn--5gb2f4205aqi47p.-", true); } // [B1, B2, B3, V3, V7]
582514315test { try toUnicodeFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd"); } // [B1]
14316test { try toAsciiFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd", false); } // [B1]
14317test { try toAsciiFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd", true); } // [B1]
582614318test { try toUnicodeFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd"); } // [B1]
14319test { try toAsciiFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd", false); } // [B1]
14320test { try toAsciiFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd", true); } // [B1]
582714321test { try toUnicodeFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b"); } // [B1]
14322test { try toAsciiFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b", false); } // [B1]
14323test { try toAsciiFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b", true); } // [B1]
582814324test { try toUnicodeFail("xn--cmb.xn--fo0dy848a"); } // [B1]
14325test { try toAsciiFail("xn--cmb.xn--fo0dy848a", false); } // [B1]
14326test { try toAsciiFail("xn--cmb.xn--fo0dy848a", true); } // [B1]
582914327test { try toUnicodeFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b"); } // [B1]
14328test { try toAsciiFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b", false); } // [B1]
14329test { try toAsciiFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b", true); } // [B1]
583014330test { try toUnicodeFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab"); } // [V7]
14331test { try toAsciiFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab", false); } // [V7]
14332test { try toAsciiFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab", true); } // [V7]
583114333test { try toUnicodeFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82"); } // [V7]
14334test { try toAsciiFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82", false); } // [V7]
14335test { try toAsciiFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82", true); } // [V7]
583214336test { try toUnicodeFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab"); } // [V7]
14337test { try toAsciiFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab", false); } // [V7]
14338test { try toAsciiFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab", true); } // [V7]
583314339test { try toUnicodeFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82"); } // [V7]
14340test { try toAsciiFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82", false); } // [V7]
14341test { try toAsciiFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82", true); } // [V7]
583414342test { try toUnicodeFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82"); } // [V7]
14343test { try toAsciiFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82", false); } // [V7]
14344test { try toAsciiFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82", true); } // [V7]
583514345test { try toUnicodeFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab"); } // [V7]
14346test { try toAsciiFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab", false); } // [V7]
14347test { try toAsciiFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab", true); } // [V7]
583614348test { try toUnicodeFail("xn--mlj0486jgl2j.xn--hbf6853f"); } // [V7]
14349test { try toAsciiFail("xn--mlj0486jgl2j.xn--hbf6853f", false); } // [V7]
14350test { try toAsciiFail("xn--mlj0486jgl2j.xn--hbf6853f", true); } // [V7]
583714351test { try toUnicodeFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82"); } // [V7]
14352test { try toAsciiFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82", false); } // [V7]
14353test { try toAsciiFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xe1\x84\x85\xe1\x85\xb4\xe1\x87\x82", true); } // [V7]
583814354test { try toUnicodeFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab"); } // [V7]
14355test { try toAsciiFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab", false); } // [V7]
14356test { try toAsciiFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab", true); } // [V7]
583914357test { try toUnicodeFail("xn--2nd8876sgl2j.xn--hbf6853f"); } // [V7]
14358test { try toAsciiFail("xn--2nd8876sgl2j.xn--hbf6853f", false); } // [V7]
14359test { try toAsciiFail("xn--2nd8876sgl2j.xn--hbf6853f", true); } // [V7]
584014360test { try toUnicodeFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xef\xbd\xa1\xe2\x89\xaf\xe2\x80\x8c\xe1\xb7\xbe"); } // [B1, C1, V7]
14361test { try toAsciiFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xef\xbd\xa1\xe2\x89\xaf\xe2\x80\x8c\xe1\xb7\xbe", false); } // [B1, C1, V7]
14362test { try toAsciiFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xef\xbd\xa1\xe2\x89\xaf\xe2\x80\x8c\xe1\xb7\xbe", true); } // [B1, V7]
584114363test { try toUnicodeFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xef\xbd\xa1>\xcc\xb8\xe2\x80\x8c\xe1\xb7\xbe"); } // [B1, C1, V7]
14364test { try toAsciiFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xef\xbd\xa1>\xcc\xb8\xe2\x80\x8c\xe1\xb7\xbe", false); } // [B1, C1, V7]
14365test { try toAsciiFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xef\xbd\xa1>\xcc\xb8\xe2\x80\x8c\xe1\xb7\xbe", true); } // [B1, V7]
584214366test { try toUnicodeFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xe3\x80\x82\xe2\x89\xaf\xe2\x80\x8c\xe1\xb7\xbe"); } // [B1, C1, V7]
14367test { try toAsciiFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xe3\x80\x82\xe2\x89\xaf\xe2\x80\x8c\xe1\xb7\xbe", false); } // [B1, C1, V7]
14368test { try toAsciiFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xe3\x80\x82\xe2\x89\xaf\xe2\x80\x8c\xe1\xb7\xbe", true); } // [B1, V7]
584314369test { try toUnicodeFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xe3\x80\x82>\xcc\xb8\xe2\x80\x8c\xe1\xb7\xbe"); } // [B1, C1, V7]
14370test { try toAsciiFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xe3\x80\x82>\xcc\xb8\xe2\x80\x8c\xe1\xb7\xbe", false); } // [B1, C1, V7]
14371test { try toAsciiFail("\xf3\xa0\x8e\x83\xf3\x97\xad\x9e\xda\xb7\xf0\x90\xb9\xb7\xe3\x80\x82>\xcc\xb8\xe2\x80\x8c\xe1\xb7\xbe", true); } // [B1, V7]
584414372test { try toUnicodeFail("xn--qkb4516kbi06fg2id.xn--zfg31q"); } // [B1, V7]
14373test { try toAsciiFail("xn--qkb4516kbi06fg2id.xn--zfg31q", false); } // [B1, V7]
14374test { try toAsciiFail("xn--qkb4516kbi06fg2id.xn--zfg31q", true); } // [B1, V7]
584514375test { try toUnicodeFail("xn--qkb4516kbi06fg2id.xn--zfg59fm0c"); } // [B1, C1, V7]
14376test { try toAsciiFail("xn--qkb4516kbi06fg2id.xn--zfg59fm0c", false); } // [B1, C1, V7]
14377test { try toAsciiFail("xn--qkb4516kbi06fg2id.xn--zfg59fm0c", true); } // [B1, C1, V7]
584614378test { try toUnicodeFail("\xe1\x9b\x8e\xf3\xa0\x85\x8d\xf3\xa0\x90\x95\xe2\x80\x8d\xef\xbd\xa1\xf0\x90\xb9\xbe\xf0\x90\xb9\xaa\xf0\x90\xbb\x9d-"); } // [B1, B6, C2, V3, V7]
14379test { try toAsciiFail("\xe1\x9b\x8e\xf3\xa0\x85\x8d\xf3\xa0\x90\x95\xe2\x80\x8d\xef\xbd\xa1\xf0\x90\xb9\xbe\xf0\x90\xb9\xaa\xf0\x90\xbb\x9d-", false); } // [B1, B6, C2, V3, V7]
14380test { try toAsciiFail("\xe1\x9b\x8e\xf3\xa0\x85\x8d\xf3\xa0\x90\x95\xe2\x80\x8d\xef\xbd\xa1\xf0\x90\xb9\xbe\xf0\x90\xb9\xaa\xf0\x90\xbb\x9d-", true); } // [B1, B6, V3, V7]
584714381test { try toUnicodeFail("\xe1\x9b\x8e\xf3\xa0\x85\x8d\xf3\xa0\x90\x95\xe2\x80\x8d\xe3\x80\x82\xf0\x90\xb9\xbe\xf0\x90\xb9\xaa\xf0\x90\xbb\x9d-"); } // [B1, B6, C2, V3, V7]
14382test { try toAsciiFail("\xe1\x9b\x8e\xf3\xa0\x85\x8d\xf3\xa0\x90\x95\xe2\x80\x8d\xe3\x80\x82\xf0\x90\xb9\xbe\xf0\x90\xb9\xaa\xf0\x90\xbb\x9d-", false); } // [B1, B6, C2, V3, V7]
14383test { try toAsciiFail("\xe1\x9b\x8e\xf3\xa0\x85\x8d\xf3\xa0\x90\x95\xe2\x80\x8d\xe3\x80\x82\xf0\x90\xb9\xbe\xf0\x90\xb9\xaa\xf0\x90\xbb\x9d-", true); } // [B1, B6, V3, V7]
584814384test { try toUnicodeFail("xn--fxe63563p.xn----q26i2bvu"); } // [B1, B6, V3, V7]
14385test { try toAsciiFail("xn--fxe63563p.xn----q26i2bvu", false); } // [B1, B6, V3, V7]
14386test { try toAsciiFail("xn--fxe63563p.xn----q26i2bvu", true); } // [B1, B6, V3, V7]
584914387test { try toUnicodeFail("xn--fxe848bq3411a.xn----q26i2bvu"); } // [B1, B6, C2, V3, V7]
14388test { try toAsciiFail("xn--fxe848bq3411a.xn----q26i2bvu", false); } // [B1, B6, C2, V3, V7]
14389test { try toAsciiFail("xn--fxe848bq3411a.xn----q26i2bvu", true); } // [B1, B6, C2, V3, V7]
585014390test { try toUnicodeFail("\xf0\x90\xb9\xb6.\xf0\x90\xab\x82"); } // [B1]
14391test { try toAsciiFail("\xf0\x90\xb9\xb6.\xf0\x90\xab\x82", false); } // [B1]
14392test { try toAsciiFail("\xf0\x90\xb9\xb6.\xf0\x90\xab\x82", true); } // [B1]
585114393test { try toUnicodeFail("xn--uo0d.xn--rw9c"); } // [B1]
14394test { try toAsciiFail("xn--uo0d.xn--rw9c", false); } // [B1]
14395test { try toAsciiFail("xn--uo0d.xn--rw9c", true); } // [B1]
585214396test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7]
14397test { try toAsciiFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88", false); } // [C2, V7]
14398test { try toAsciiFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88", true); } // [V7]
585314399test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2]
14400test { try toAsciiFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821.", false); } // [C2, A4_2]
14401test { try toAsciiFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821.", true); } // [A4_2]
585414402test { try toUnicodeFail("SS\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2]
14403test { try toAsciiFail("SS\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821.", false); } // [C2, A4_2]
14404test { try toAsciiFail("SS\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821.", true); } // [A4_2]
585514405test { try toUnicodeFail("ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2]
14406test { try toAsciiFail("ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821.", false); } // [C2, A4_2]
14407test { try toAsciiFail("ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821.", true); } // [A4_2]
585614408test { try toUnicodeFail("Ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2]
14409test { try toAsciiFail("Ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821.", false); } // [C2, A4_2]
14410test { try toAsciiFail("Ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821.", true); } // [A4_2]
585714411test { try toUnicodePass("xn--ss-f4j.b.", "ss\xe1\x80\xba.b."); }
14412test { try toAsciiFail("xn--ss-f4j.b.", false); } // [A4_2]
14413test { try toAsciiFail("xn--ss-f4j.b.", true); } // [A4_2]
585814414test { try toUnicodePass("ss\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }
14415test { try toAsciiFail("ss\xe1\x80\xba.b.", false); } // [A4_2]
14416test { try toAsciiFail("ss\xe1\x80\xba.b.", true); } // [A4_2]
585914417test { try toUnicodePass("SS\xe1\x80\xba.B.", "ss\xe1\x80\xba.b."); }
14418test { try toAsciiFail("SS\xe1\x80\xba.B.", false); } // [A4_2]
14419test { try toAsciiFail("SS\xe1\x80\xba.B.", true); } // [A4_2]
586014420test { try toUnicodePass("Ss\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }
14421test { try toAsciiFail("Ss\xe1\x80\xba.b.", false); } // [A4_2]
14422test { try toAsciiFail("Ss\xe1\x80\xba.b.", true); } // [A4_2]
586114423test { try toUnicodeFail("xn--ss-f4j585j.b."); } // [C2]
14424test { try toAsciiFail("xn--ss-f4j585j.b.", false); } // [C2, A4_2]
14425test { try toAsciiFail("xn--ss-f4j585j.b.", true); } // [C2, A4_2]
586214426test { try toUnicodeFail("xn--zca679eh2l.b."); } // [C2]
14427test { try toAsciiFail("xn--zca679eh2l.b.", false); } // [C2, A4_2]
14428test { try toAsciiFail("xn--zca679eh2l.b.", true); } // [C2, A4_2]
586314429test { try toUnicodeFail("SS\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7]
14430test { try toAsciiFail("SS\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88", false); } // [C2, V7]
14431test { try toAsciiFail("SS\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88", true); } // [V7]
586414432test { try toUnicodeFail("ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7]
14433test { try toAsciiFail("ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88", false); } // [C2, V7]
14434test { try toAsciiFail("ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88", true); } // [V7]
586514435test { try toUnicodeFail("Ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7]
14436test { try toAsciiFail("Ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88", false); } // [C2, V7]
14437test { try toAsciiFail("Ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88", true); } // [V7]
586614438test { try toUnicodeFail("xn--ss-f4j.xn--tsh"); } // [V7]
14439test { try toAsciiFail("xn--ss-f4j.xn--tsh", false); } // [V7]
14440test { try toAsciiFail("xn--ss-f4j.xn--tsh", true); } // [V7]
586714441test { try toUnicodeFail("xn--ss-f4j585j.xn--tsh"); } // [C2, V7]
14442test { try toAsciiFail("xn--ss-f4j585j.xn--tsh", false); } // [C2, V7]
14443test { try toAsciiFail("xn--ss-f4j585j.xn--tsh", true); } // [C2, V7]
586814444test { try toUnicodeFail("xn--zca679eh2l.xn--tsh"); } // [C2, V7]
14445test { try toAsciiFail("xn--zca679eh2l.xn--tsh", false); } // [C2, V7]
14446test { try toAsciiFail("xn--zca679eh2l.xn--tsh", true); } // [C2, V7]
586914447test { try toUnicodePass("SS\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }
14448test { try toAsciiFail("SS\xe1\x80\xba.b.", false); } // [A4_2]
14449test { try toAsciiFail("SS\xe1\x80\xba.b.", true); } // [A4_2]
587014450test { try toUnicodeFail("\xe0\xad\x8d\xe2\x80\x8c\xf0\x99\xb6\xb5\xf0\x9e\xbb\x98\xe3\x80\x82\xe2\x80\x8d"); } // [B1, C2, V6, V7]
14451test { try toAsciiFail("\xe0\xad\x8d\xe2\x80\x8c\xf0\x99\xb6\xb5\xf0\x9e\xbb\x98\xe3\x80\x82\xe2\x80\x8d", false); } // [B1, C2, V6, V7]
14452test { try toAsciiFail("\xe0\xad\x8d\xe2\x80\x8c\xf0\x99\xb6\xb5\xf0\x9e\xbb\x98\xe3\x80\x82\xe2\x80\x8d", true); } // [B1, V6, V7, A4_2]
587114453test { try toUnicodeFail("xn--9ic6417rn4xb."); } // [B1, V6, V7]
14454test { try toAsciiFail("xn--9ic6417rn4xb.", false); } // [B1, V6, V7, A4_2]
14455test { try toAsciiFail("xn--9ic6417rn4xb.", true); } // [B1, V6, V7, A4_2]
587214456test { try toUnicodeFail("xn--9ic637hz82z32jc.xn--1ug"); } // [B1, C2, V6, V7]
14457test { try toAsciiFail("xn--9ic637hz82z32jc.xn--1ug", false); } // [B1, C2, V6, V7]
14458test { try toAsciiFail("xn--9ic637hz82z32jc.xn--1ug", true); } // [B1, C2, V6, V7]
587314459test { try toUnicodeFail("\xf0\x90\xae\x85\xef\xbd\xa1\xda\xbc\xf0\x9f\x81\x95"); } // [B3]
14460test { try toAsciiFail("\xf0\x90\xae\x85\xef\xbd\xa1\xda\xbc\xf0\x9f\x81\x95", false); } // [B3]
14461test { try toAsciiFail("\xf0\x90\xae\x85\xef\xbd\xa1\xda\xbc\xf0\x9f\x81\x95", true); } // [B3]
587414462test { try toUnicodeFail("\xf0\x90\xae\x85\xe3\x80\x82\xda\xbc\xf0\x9f\x81\x95"); } // [B3]
14463test { try toAsciiFail("\xf0\x90\xae\x85\xe3\x80\x82\xda\xbc\xf0\x9f\x81\x95", false); } // [B3]
14464test { try toAsciiFail("\xf0\x90\xae\x85\xe3\x80\x82\xda\xbc\xf0\x9f\x81\x95", true); } // [B3]
587514465test { try toUnicodeFail("xn--c29c.xn--vkb8871w"); } // [B3]
14466test { try toAsciiFail("xn--c29c.xn--vkb8871w", false); } // [B3]
14467test { try toAsciiFail("xn--c29c.xn--vkb8871w", true); } // [B3]
587614468test { try toUnicodeFail("\xd8\xa0\xe1\x9f\x92\xe3\x80\x82\xf0\x90\xab\x94\xf3\xa0\x80\xa7\xe2\x80\x8c\xf0\x91\x88\xb5"); } // [B2, B3, C1, V7]
14469test { try toAsciiFail("\xd8\xa0\xe1\x9f\x92\xe3\x80\x82\xf0\x90\xab\x94\xf3\xa0\x80\xa7\xe2\x80\x8c\xf0\x91\x88\xb5", false); } // [B2, B3, C1, V7]
14470test { try toAsciiFail("\xd8\xa0\xe1\x9f\x92\xe3\x80\x82\xf0\x90\xab\x94\xf3\xa0\x80\xa7\xe2\x80\x8c\xf0\x91\x88\xb5", true); } // [B2, B3, V7]
587714471test { try toUnicodeFail("xn--fgb471g.xn--9w9c29jw3931a"); } // [B2, B3, V7]
14472test { try toAsciiFail("xn--fgb471g.xn--9w9c29jw3931a", false); } // [B2, B3, V7]
14473test { try toAsciiFail("xn--fgb471g.xn--9w9c29jw3931a", true); } // [B2, B3, V7]
587814474test { try toUnicodeFail("xn--fgb471g.xn--0ug9853g7verp838a"); } // [B2, B3, C1, V7]
14475test { try toAsciiFail("xn--fgb471g.xn--0ug9853g7verp838a", false); } // [B2, B3, C1, V7]
14476test { try toAsciiFail("xn--fgb471g.xn--0ug9853g7verp838a", true); } // [B2, B3, C1, V7]
587914477test { try toUnicodeFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\x8a"); } // [B1, V6, V7]
14478test { try toAsciiFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\x8a", false); } // [B1, V6, V7]
14479test { try toAsciiFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\x8a", true); } // [B1, V6, V7]
588014480test { try toUnicodeFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\xac"); } // [B1, V6, V7]
14481test { try toAsciiFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\xac", false); } // [B1, V6, V7]
14482test { try toAsciiFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\xac", true); } // [B1, V6, V7]
588114483test { try toUnicodeFail("xn--tf5w.xn--2b6hof"); } // [B1, V6, V7]
14484test { try toAsciiFail("xn--tf5w.xn--2b6hof", false); } // [B1, V6, V7]
14485test { try toAsciiFail("xn--tf5w.xn--2b6hof", true); } // [B1, V6, V7]
588214486test { try toUnicodePass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8e\xc3\x9f\xe0\xbe\x84\xf0\x91\x8d\xac", "\xdb\x8c\xf0\x90\xa8\xbf.\xc3\x9f\xe0\xbe\x84\xf0\x91\x8d\xac"); }
588314487test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8e\xc3\x9f\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--zca216edt0r", false); }
588414488test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8e\xc3\x9f\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", true); }
......@@ -5910,94 +14514,272 @@ test { try toUnicodePass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0
591014514test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", false); }
591114515test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", true); }
591214516test { try toUnicodeFail("\xf0\x9d\x9f\xa0\xe2\x89\xae\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1]
14517test { try toAsciiFail("\xf0\x9d\x9f\xa0\xe2\x89\xae\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4", false); } // [C1, A4_2]
14518test { try toAsciiFail("\xf0\x9d\x9f\xa0\xe2\x89\xae\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4", true); } // [A4_2]
591314519test { try toUnicodeFail("\xf0\x9d\x9f\xa0<\xcc\xb8\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1]
14520test { try toAsciiFail("\xf0\x9d\x9f\xa0<\xcc\xb8\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4", false); } // [C1, A4_2]
14521test { try toAsciiFail("\xf0\x9d\x9f\xa0<\xcc\xb8\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4", true); } // [A4_2]
591414522test { try toUnicodeFail("8\xe2\x89\xae\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1]
14523test { try toAsciiFail("8\xe2\x89\xae\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4", false); } // [C1, A4_2]
14524test { try toAsciiFail("8\xe2\x89\xae\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4", true); } // [A4_2]
591514525test { try toUnicodeFail("8<\xcc\xb8\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1]
14526test { try toAsciiFail("8<\xcc\xb8\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4", false); } // [C1, A4_2]
14527test { try toAsciiFail("8<\xcc\xb8\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4", true); } // [A4_2]
591614528test { try toUnicodePass("xn--8-ngo.", "8\xe2\x89\xae."); }
14529test { try toAsciiFail("xn--8-ngo.", false); } // [A4_2]
14530test { try toAsciiFail("xn--8-ngo.", true); } // [A4_2]
591714531test { try toUnicodePass("8\xe2\x89\xae.", "8\xe2\x89\xae."); }
14532test { try toAsciiFail("8\xe2\x89\xae.", false); } // [A4_2]
14533test { try toAsciiFail("8\xe2\x89\xae.", true); } // [A4_2]
591814534test { try toUnicodePass("8<\xcc\xb8.", "8\xe2\x89\xae."); }
14535test { try toAsciiFail("8<\xcc\xb8.", false); } // [A4_2]
14536test { try toAsciiFail("8<\xcc\xb8.", true); } // [A4_2]
591914537test { try toUnicodeFail("xn--8-sgn10i."); } // [C1]
14538test { try toAsciiFail("xn--8-sgn10i.", false); } // [C1, A4_2]
14539test { try toAsciiFail("xn--8-sgn10i.", true); } // [C1, A4_2]
592014540test { try toUnicodeFail("xn--8-ngo.xn--z3e"); } // [V6, V7]
14541test { try toAsciiFail("xn--8-ngo.xn--z3e", false); } // [V6, V7]
14542test { try toAsciiFail("xn--8-ngo.xn--z3e", true); } // [V6, V7]
592114543test { try toUnicodeFail("xn--8-sgn10i.xn--z3e"); } // [C1, V6, V7]
14544test { try toAsciiFail("xn--8-sgn10i.xn--z3e", false); } // [C1, V6, V7]
14545test { try toAsciiFail("xn--8-sgn10i.xn--z3e", true); } // [C1, V6, V7]
592214546test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0"); } // [V7]
14547test { try toAsciiFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0", false); } // [V7]
14548test { try toAsciiFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0", true); } // [V7]
592314549test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0"); } // [V7]
14550test { try toAsciiFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0", false); } // [V7]
14551test { try toAsciiFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0", true); } // [V7]
592414552test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0"); } // [V7]
14553test { try toAsciiFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0", false); } // [V7]
14554test { try toAsciiFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0", true); } // [V7]
592514555test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0"); } // [V7]
14556test { try toAsciiFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0", false); } // [V7]
14557test { try toAsciiFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0", true); } // [V7]
592614558test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80"); } // [V7]
14559test { try toAsciiFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80", false); } // [V7]
14560test { try toAsciiFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80", true); } // [V7]
592714561test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80"); } // [V7]
14562test { try toAsciiFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80", false); } // [V7]
14563test { try toAsciiFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80", true); } // [V7]
592814564test { try toUnicodeFail("xn--fbf851c.xn--ko1u.xn--rkj"); } // [V7]
14565test { try toAsciiFail("xn--fbf851c.xn--ko1u.xn--rkj", false); } // [V7]
14566test { try toAsciiFail("xn--fbf851c.xn--ko1u.xn--rkj", true); } // [V7]
592914567test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80"); } // [V7]
14568test { try toAsciiFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80", false); } // [V7]
14569test { try toAsciiFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80", true); } // [V7]
593014570test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80"); } // [V7]
14571test { try toAsciiFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80", false); } // [V7]
14572test { try toAsciiFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80", true); } // [V7]
593114573test { try toUnicodeFail("xn--fbf851cq98poxw1a.xn--rkj"); } // [V7]
14574test { try toAsciiFail("xn--fbf851cq98poxw1a.xn--rkj", false); } // [V7]
14575test { try toAsciiFail("xn--fbf851cq98poxw1a.xn--rkj", true); } // [V7]
593214576test { try toUnicodeFail("xn--fbf851c.xn--ko1u.xn--7md"); } // [V7]
14577test { try toAsciiFail("xn--fbf851c.xn--ko1u.xn--7md", false); } // [V7]
14578test { try toAsciiFail("xn--fbf851c.xn--ko1u.xn--7md", true); } // [V7]
593314579test { try toUnicodeFail("xn--fbf851cq98poxw1a.xn--7md"); } // [V7]
14580test { try toAsciiFail("xn--fbf851cq98poxw1a.xn--7md", false); } // [V7]
14581test { try toAsciiFail("xn--fbf851cq98poxw1a.xn--7md", true); } // [V7]
593414582test { try toUnicodeFail("\xe0\xbe\x9f\xef\xbc\x8e-\xe0\xa0\xaa"); } // [V3, V6]
14583test { try toAsciiFail("\xe0\xbe\x9f\xef\xbc\x8e-\xe0\xa0\xaa", false); } // [V3, V6]
14584test { try toAsciiFail("\xe0\xbe\x9f\xef\xbc\x8e-\xe0\xa0\xaa", true); } // [V3, V6]
593514585test { try toUnicodeFail("\xe0\xbe\x9f.-\xe0\xa0\xaa"); } // [V3, V6]
14586test { try toAsciiFail("\xe0\xbe\x9f.-\xe0\xa0\xaa", false); } // [V3, V6]
14587test { try toAsciiFail("\xe0\xbe\x9f.-\xe0\xa0\xaa", true); } // [V3, V6]
593614588test { try toUnicodeFail("xn--vfd.xn----fhd"); } // [V3, V6]
14589test { try toAsciiFail("xn--vfd.xn----fhd", false); } // [V3, V6]
14590test { try toAsciiFail("xn--vfd.xn----fhd", true); } // [V3, V6]
593714591test { try toUnicodeFail("\xe1\xb5\xac\xf3\xa0\x86\xa0\xef\xbc\x8e\xed\x95\x92\xe2\x92\x92\xe2\x92\x88\xf4\x88\x84\xa6"); } // [V7]
14592test { try toAsciiFail("\xe1\xb5\xac\xf3\xa0\x86\xa0\xef\xbc\x8e\xed\x95\x92\xe2\x92\x92\xe2\x92\x88\xf4\x88\x84\xa6", false); } // [V7]
14593test { try toAsciiFail("\xe1\xb5\xac\xf3\xa0\x86\xa0\xef\xbc\x8e\xed\x95\x92\xe2\x92\x92\xe2\x92\x88\xf4\x88\x84\xa6", true); } // [V7]
593814594test { try toUnicodeFail("\xe1\xb5\xac\xf3\xa0\x86\xa0\xef\xbc\x8e\xe1\x84\x91\xe1\x85\xb5\xe1\x86\xbd\xe2\x92\x92\xe2\x92\x88\xf4\x88\x84\xa6"); } // [V7]
14595test { try toAsciiFail("\xe1\xb5\xac\xf3\xa0\x86\xa0\xef\xbc\x8e\xe1\x84\x91\xe1\x85\xb5\xe1\x86\xbd\xe2\x92\x92\xe2\x92\x88\xf4\x88\x84\xa6", false); } // [V7]
14596test { try toAsciiFail("\xe1\xb5\xac\xf3\xa0\x86\xa0\xef\xbc\x8e\xe1\x84\x91\xe1\x85\xb5\xe1\x86\xbd\xe2\x92\x92\xe2\x92\x88\xf4\x88\x84\xa6", true); } // [V7]
593914597test { try toUnicodeFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xed\x95\x9211.1.\xf4\x88\x84\xa6"); } // [V7]
14598test { try toAsciiFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xed\x95\x9211.1.\xf4\x88\x84\xa6", false); } // [V7]
14599test { try toAsciiFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xed\x95\x9211.1.\xf4\x88\x84\xa6", true); } // [V7]
594014600test { try toUnicodeFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xe1\x84\x91\xe1\x85\xb5\xe1\x86\xbd11.1.\xf4\x88\x84\xa6"); } // [V7]
14601test { try toAsciiFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xe1\x84\x91\xe1\x85\xb5\xe1\x86\xbd11.1.\xf4\x88\x84\xa6", false); } // [V7]
14602test { try toAsciiFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xe1\x84\x91\xe1\x85\xb5\xe1\x86\xbd11.1.\xf4\x88\x84\xa6", true); } // [V7]
594114603test { try toUnicodeFail("xn--tbg.xn--11-5o7k.1.xn--k469f"); } // [V7]
14604test { try toAsciiFail("xn--tbg.xn--11-5o7k.1.xn--k469f", false); } // [V7]
14605test { try toAsciiFail("xn--tbg.xn--11-5o7k.1.xn--k469f", true); } // [V7]
594214606test { try toUnicodeFail("xn--tbg.xn--tsht7586kyts9l"); } // [V7]
14607test { try toAsciiFail("xn--tbg.xn--tsht7586kyts9l", false); } // [V7]
14608test { try toAsciiFail("xn--tbg.xn--tsht7586kyts9l", true); } // [V7]
594314609test { try toUnicodeFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1]
14610test { try toAsciiFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8", false); } // [B1]
14611test { try toAsciiFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8", true); } // [B1]
594414612test { try toUnicodeFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1]
14613test { try toAsciiFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8", false); } // [B1]
14614test { try toAsciiFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8", true); } // [B1]
594514615test { try toUnicodeFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1]
14616test { try toAsciiFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8", false); } // [B1]
14617test { try toAsciiFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8", true); } // [B1]
594614618test { try toUnicodeFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1]
14619test { try toAsciiFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8", false); } // [B1]
14620test { try toAsciiFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8", true); } // [B1]
594714621test { try toUnicodeFail("xn--4xa6371khhl.xn--hib"); } // [B1]
14622test { try toAsciiFail("xn--4xa6371khhl.xn--hib", false); } // [B1]
14623test { try toAsciiFail("xn--4xa6371khhl.xn--hib", true); } // [B1]
594814624test { try toUnicodeFail("xn--3xa8371khhl.xn--hib"); } // [B1]
14625test { try toAsciiFail("xn--3xa8371khhl.xn--hib", false); } // [B1]
14626test { try toAsciiFail("xn--3xa8371khhl.xn--hib", true); } // [B1]
594914627test { try toUnicodeFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1]
14628test { try toAsciiFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8", false); } // [B1]
14629test { try toAsciiFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8", true); } // [B1]
595014630test { try toUnicodeFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1]
14631test { try toAsciiFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8", false); } // [B1]
14632test { try toAsciiFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8", true); } // [B1]
595114633test { try toUnicodeFail("\xea\xa5\x93\xe2\x80\x8c\xf0\x90\x8b\xbb\xe2\x80\x8d.\xe2\xb7\xb8\xf0\x9e\xbf\x84\xf0\x90\xb9\xb2"); } // [B1, B6, C2, V6, V7]
14634test { try toAsciiFail("\xea\xa5\x93\xe2\x80\x8c\xf0\x90\x8b\xbb\xe2\x80\x8d.\xe2\xb7\xb8\xf0\x9e\xbf\x84\xf0\x90\xb9\xb2", false); } // [B1, B6, C2, V6, V7]
14635test { try toAsciiFail("\xea\xa5\x93\xe2\x80\x8c\xf0\x90\x8b\xbb\xe2\x80\x8d.\xe2\xb7\xb8\xf0\x9e\xbf\x84\xf0\x90\xb9\xb2", true); } // [B1, V6, V7]
595214636test { try toUnicodeFail("xn--3j9a531o.xn--urju692efj0f"); } // [B1, V6, V7]
14637test { try toAsciiFail("xn--3j9a531o.xn--urju692efj0f", false); } // [B1, V6, V7]
14638test { try toAsciiFail("xn--3j9a531o.xn--urju692efj0f", true); } // [B1, V6, V7]
595314639test { try toUnicodeFail("xn--0ugc8356he76c.xn--urju692efj0f"); } // [B1, B6, C2, V6, V7]
14640test { try toAsciiFail("xn--0ugc8356he76c.xn--urju692efj0f", false); } // [B1, B6, C2, V6, V7]
14641test { try toAsciiFail("xn--0ugc8356he76c.xn--urju692efj0f", true); } // [B1, B6, C2, V6, V7]
595414642test { try toUnicodeFail("\xe2\x8a\xbc\xe3\x80\x82\xf1\xaa\xa7\x96\xda\x95"); } // [B1, B5, B6, V7]
14643test { try toAsciiFail("\xe2\x8a\xbc\xe3\x80\x82\xf1\xaa\xa7\x96\xda\x95", false); } // [B1, B5, B6, V7]
14644test { try toAsciiFail("\xe2\x8a\xbc\xe3\x80\x82\xf1\xaa\xa7\x96\xda\x95", true); } // [B1, B5, B6, V7]
595514645test { try toUnicodeFail("xn--ofh.xn--rjb13118f"); } // [B1, B5, B6, V7]
14646test { try toAsciiFail("xn--ofh.xn--rjb13118f", false); } // [B1, B5, B6, V7]
14647test { try toAsciiFail("xn--ofh.xn--rjb13118f", true); } // [B1, B5, B6, V7]
595614648test { try toUnicodeFail("\xf0\x90\xaf\xac\xf1\x96\x8b\x94\xe3\x80\x82\xf3\x9c\xb3\xa5"); } // [B2, B3, V7]
14649test { try toAsciiFail("\xf0\x90\xaf\xac\xf1\x96\x8b\x94\xe3\x80\x82\xf3\x9c\xb3\xa5", false); } // [B2, B3, V7]
14650test { try toAsciiFail("\xf0\x90\xaf\xac\xf1\x96\x8b\x94\xe3\x80\x82\xf3\x9c\xb3\xa5", true); } // [B2, B3, V7]
595714651test { try toUnicodeFail("xn--949co370q.xn--7g25e"); } // [B2, B3, V7]
14652test { try toAsciiFail("xn--949co370q.xn--7g25e", false); } // [B2, B3, V7]
14653test { try toAsciiFail("xn--949co370q.xn--7g25e", true); } // [B2, B3, V7]
595814654test { try toUnicodeFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xcf\x82\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5"); } // [B1, B6, V7]
14655test { try toAsciiFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xcf\x82\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5", false); } // [B1, B6, V7]
14656test { try toAsciiFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xcf\x82\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5", true); } // [B1, B6, V7]
595914657test { try toUnicodeFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xce\xa3\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5"); } // [B1, B6, V7]
14658test { try toAsciiFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xce\xa3\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5", false); } // [B1, B6, V7]
14659test { try toAsciiFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xce\xa3\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5", true); } // [B1, B6, V7]
596014660test { try toUnicodeFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xcf\x83\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5"); } // [B1, B6, V7]
14661test { try toAsciiFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xcf\x83\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5", false); } // [B1, B6, V7]
14662test { try toAsciiFail("\xd8\x81\xf0\x91\x8d\xa7\xdf\x9d\xe3\x80\x82\xcf\x83\xf2\xac\x8d\x98\xf0\x9f\x80\x9e\xe1\x9e\xb5", true); } // [B1, B6, V7]
596114663test { try toUnicodeFail("xn--jfb66gt010c.xn--4xa0023w4nq4c"); } // [B1, B6, V7]
14664test { try toAsciiFail("xn--jfb66gt010c.xn--4xa0023w4nq4c", false); } // [B1, B6, V7]
14665test { try toAsciiFail("xn--jfb66gt010c.xn--4xa0023w4nq4c", true); } // [B1, B6, V7]
596214666test { try toUnicodeFail("xn--jfb66gt010c.xn--3xa2023w4nq4c"); } // [B1, B6, V7]
14667test { try toAsciiFail("xn--jfb66gt010c.xn--3xa2023w4nq4c", false); } // [B1, B6, V7]
14668test { try toAsciiFail("xn--jfb66gt010c.xn--3xa2023w4nq4c", true); } // [B1, B6, V7]
596314669test { try toUnicodeFail("xn--jfb66gt010c.xn--4xa623h9p95ars26d"); } // [B1, B6, V7]
14670test { try toAsciiFail("xn--jfb66gt010c.xn--4xa623h9p95ars26d", false); } // [B1, B6, V7]
14671test { try toAsciiFail("xn--jfb66gt010c.xn--4xa623h9p95ars26d", true); } // [B1, B6, V7]
596414672test { try toUnicodeFail("xn--jfb66gt010c.xn--3xa823h9p95ars26d"); } // [B1, B6, V7]
14673test { try toAsciiFail("xn--jfb66gt010c.xn--3xa823h9p95ars26d", false); } // [B1, B6, V7]
14674test { try toAsciiFail("xn--jfb66gt010c.xn--3xa823h9p95ars26d", true); } // [B1, B6, V7]
596514675test { try toUnicodeFail("-\xf0\x90\xb3\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad\xf0\x9d\x9f\xa5"); } // [B1, V3, V6, V7]
14676test { try toAsciiFail("-\xf0\x90\xb3\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad\xf0\x9d\x9f\xa5", false); } // [B1, V3, V6, V7]
14677test { try toAsciiFail("-\xf0\x90\xb3\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad\xf0\x9d\x9f\xa5", true); } // [B1, V3, V6, V7]
596614678test { try toUnicodeFail("-\xf0\x90\xb3\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3"); } // [B1, V3, V6, V7]
14679test { try toAsciiFail("-\xf0\x90\xb3\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3", false); } // [B1, V3, V6, V7]
14680test { try toAsciiFail("-\xf0\x90\xb3\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3", true); } // [B1, V3, V6, V7]
596714681test { try toUnicodeFail("-\xf0\x90\xb2\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3"); } // [B1, V3, V6, V7]
14682test { try toAsciiFail("-\xf0\x90\xb2\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3", false); } // [B1, V3, V6, V7]
14683test { try toAsciiFail("-\xf0\x90\xb2\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3", true); } // [B1, V3, V6, V7]
596814684test { try toUnicodeFail("xn----roc5482rek10i.xn--3-zw5e"); } // [B1, V3, V6, V7]
14685test { try toAsciiFail("xn----roc5482rek10i.xn--3-zw5e", false); } // [B1, V3, V6, V7]
14686test { try toAsciiFail("xn----roc5482rek10i.xn--3-zw5e", true); } // [B1, V3, V6, V7]
596914687test { try toUnicodeFail("-\xf0\x90\xb2\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad\xf0\x9d\x9f\xa5"); } // [B1, V3, V6, V7]
14688test { try toAsciiFail("-\xf0\x90\xb2\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad\xf0\x9d\x9f\xa5", false); } // [B1, V3, V6, V7]
14689test { try toAsciiFail("-\xf0\x90\xb2\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad\xf0\x9d\x9f\xa5", true); } // [B1, V3, V6, V7]
597014690test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xef\xbd\xa1\xf1\xb2\xa8\x95\xe2\x89\xae\xf0\x90\xa6\x9c"); } // [B1, B5, B6, C1, V7]
14691test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xef\xbd\xa1\xf1\xb2\xa8\x95\xe2\x89\xae\xf0\x90\xa6\x9c", false); } // [B1, B5, B6, C1, V7]
14692test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xef\xbd\xa1\xf1\xb2\xa8\x95\xe2\x89\xae\xf0\x90\xa6\x9c", true); } // [B1, B5, B6, V7]
597114693test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xef\xbd\xa1\xf1\xb2\xa8\x95<\xcc\xb8\xf0\x90\xa6\x9c"); } // [B1, B5, B6, C1, V7]
14694test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xef\xbd\xa1\xf1\xb2\xa8\x95<\xcc\xb8\xf0\x90\xa6\x9c", false); } // [B1, B5, B6, C1, V7]
14695test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xef\xbd\xa1\xf1\xb2\xa8\x95<\xcc\xb8\xf0\x90\xa6\x9c", true); } // [B1, B5, B6, V7]
597214696test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xe3\x80\x82\xf1\xb2\xa8\x95\xe2\x89\xae\xf0\x90\xa6\x9c"); } // [B1, B5, B6, C1, V7]
14697test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xe3\x80\x82\xf1\xb2\xa8\x95\xe2\x89\xae\xf0\x90\xa6\x9c", false); } // [B1, B5, B6, C1, V7]
14698test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xe3\x80\x82\xf1\xb2\xa8\x95\xe2\x89\xae\xf0\x90\xa6\x9c", true); } // [B1, B5, B6, V7]
597314699test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xe3\x80\x82\xf1\xb2\xa8\x95<\xcc\xb8\xf0\x90\xa6\x9c"); } // [B1, B5, B6, C1, V7]
14700test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xe3\x80\x82\xf1\xb2\xa8\x95<\xcc\xb8\xf0\x90\xa6\x9c", false); } // [B1, B5, B6, C1, V7]
14701test { try toAsciiFail("\xe2\x80\x8c\xf3\xa0\xb4\xa6\xe3\x80\x82\xf1\xb2\xa8\x95<\xcc\xb8\xf0\x90\xa6\x9c", true); } // [B1, B5, B6, V7]
597414702test { try toUnicodeFail("xn--6v56e.xn--gdhz712gzlr6b"); } // [B1, B5, B6, V7]
14703test { try toAsciiFail("xn--6v56e.xn--gdhz712gzlr6b", false); } // [B1, B5, B6, V7]
14704test { try toAsciiFail("xn--6v56e.xn--gdhz712gzlr6b", true); } // [B1, B5, B6, V7]
597514705test { try toUnicodeFail("xn--0ug22251l.xn--gdhz712gzlr6b"); } // [B1, B5, B6, C1, V7]
14706test { try toAsciiFail("xn--0ug22251l.xn--gdhz712gzlr6b", false); } // [B1, B5, B6, C1, V7]
14707test { try toAsciiFail("xn--0ug22251l.xn--gdhz712gzlr6b", true); } // [B1, B5, B6, C1, V7]
597614708test { try toUnicodeFail("\xe2\x92\x88\xe2\x9c\x8c\xf2\x9f\xac\x9f\xef\xbc\x8e\xf0\x9d\x9f\xa1\xf1\xa0\xb1\xa3"); } // [V7]
14709test { try toAsciiFail("\xe2\x92\x88\xe2\x9c\x8c\xf2\x9f\xac\x9f\xef\xbc\x8e\xf0\x9d\x9f\xa1\xf1\xa0\xb1\xa3", false); } // [V7]
14710test { try toAsciiFail("\xe2\x92\x88\xe2\x9c\x8c\xf2\x9f\xac\x9f\xef\xbc\x8e\xf0\x9d\x9f\xa1\xf1\xa0\xb1\xa3", true); } // [V7]
597714711test { try toUnicodeFail("1.\xe2\x9c\x8c\xf2\x9f\xac\x9f.9\xf1\xa0\xb1\xa3"); } // [V7]
14712test { try toAsciiFail("1.\xe2\x9c\x8c\xf2\x9f\xac\x9f.9\xf1\xa0\xb1\xa3", false); } // [V7]
14713test { try toAsciiFail("1.\xe2\x9c\x8c\xf2\x9f\xac\x9f.9\xf1\xa0\xb1\xa3", true); } // [V7]
597814714test { try toUnicodeFail("1.xn--7bi44996f.xn--9-o706d"); } // [V7]
14715test { try toAsciiFail("1.xn--7bi44996f.xn--9-o706d", false); } // [V7]
14716test { try toAsciiFail("1.xn--7bi44996f.xn--9-o706d", true); } // [V7]
597914717test { try toUnicodeFail("xn--tsh24g49550b.xn--9-o706d"); } // [V7]
14718test { try toAsciiFail("xn--tsh24g49550b.xn--9-o706d", false); } // [V7]
14719test { try toAsciiFail("xn--tsh24g49550b.xn--9-o706d", true); } // [V7]
598014720test { try toUnicodeFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\xac\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94"); } // [B1, V6]
14721test { try toAsciiFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\xac\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94", false); } // [B1, V6]
14722test { try toAsciiFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\xac\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94", true); } // [B1, V6]
598114723test { try toUnicodeFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\x8a\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94"); } // [B1, V6]
14724test { try toAsciiFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\x8a\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94", false); } // [B1, V6]
14725test { try toAsciiFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\x8a\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94", true); } // [B1, V6]
598214726test { try toUnicodeFail("xn--d29c79hf98r.xn--fib011j"); } // [B1, V6]
14727test { try toAsciiFail("xn--d29c79hf98r.xn--fib011j", false); } // [B1, V6]
14728test { try toAsciiFail("xn--d29c79hf98r.xn--fib011j", true); } // [B1, V6]
598314729test { try toUnicodeFail("\xcf\x82\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6]
14730test { try toAsciiFail("\xcf\x82\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84", false); } // [V6]
14731test { try toAsciiFail("\xcf\x82\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84", true); } // [V6]
598414732test { try toUnicodeFail("\xcf\x82.\xea\xa7\x80\xea\xa3\x84"); } // [V6]
14733test { try toAsciiFail("\xcf\x82.\xea\xa7\x80\xea\xa3\x84", false); } // [V6]
14734test { try toAsciiFail("\xcf\x82.\xea\xa7\x80\xea\xa3\x84", true); } // [V6]
598514735test { try toUnicodeFail("\xce\xa3.\xea\xa7\x80\xea\xa3\x84"); } // [V6]
14736test { try toAsciiFail("\xce\xa3.\xea\xa7\x80\xea\xa3\x84", false); } // [V6]
14737test { try toAsciiFail("\xce\xa3.\xea\xa7\x80\xea\xa3\x84", true); } // [V6]
598614738test { try toUnicodeFail("\xcf\x83.\xea\xa7\x80\xea\xa3\x84"); } // [V6]
14739test { try toAsciiFail("\xcf\x83.\xea\xa7\x80\xea\xa3\x84", false); } // [V6]
14740test { try toAsciiFail("\xcf\x83.\xea\xa7\x80\xea\xa3\x84", true); } // [V6]
598714741test { try toUnicodeFail("xn--4xa.xn--0f9ars"); } // [V6]
14742test { try toAsciiFail("xn--4xa.xn--0f9ars", false); } // [V6]
14743test { try toAsciiFail("xn--4xa.xn--0f9ars", true); } // [V6]
598814744test { try toUnicodeFail("xn--3xa.xn--0f9ars"); } // [V6]
14745test { try toAsciiFail("xn--3xa.xn--0f9ars", false); } // [V6]
14746test { try toAsciiFail("xn--3xa.xn--0f9ars", true); } // [V6]
598914747test { try toUnicodeFail("\xce\xa3\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6]
14748test { try toAsciiFail("\xce\xa3\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84", false); } // [V6]
14749test { try toAsciiFail("\xce\xa3\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84", true); } // [V6]
599014750test { try toUnicodeFail("\xcf\x83\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6]
14751test { try toAsciiFail("\xcf\x83\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84", false); } // [V6]
14752test { try toAsciiFail("\xcf\x83\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84", true); } // [V6]
599114753test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb3\x90\xef\xbc\x8e\xe0\xa1\x9b"); } // [B1, C1, V6]
14754test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb3\x90\xef\xbc\x8e\xe0\xa1\x9b", false); } // [B1, C1, V6]
14755test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb3\x90\xef\xbc\x8e\xe0\xa1\x9b", true); } // [B1, V6]
599214756test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90\xef\xbc\x8e\xe0\xa1\x9b"); } // [B1, C1, V6]
14757test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90\xef\xbc\x8e\xe0\xa1\x9b", false); } // [B1, C1, V6]
14758test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90\xef\xbc\x8e\xe0\xa1\x9b", true); } // [B1, V6]
599314759test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb3\x90.\xe0\xa1\x9b"); } // [B1, C1, V6]
14760test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb3\x90.\xe0\xa1\x9b", false); } // [B1, C1, V6]
14761test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb3\x90.\xe0\xa1\x9b", true); } // [B1, V6]
599414762test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90.\xe0\xa1\x9b"); } // [B1, C1, V6]
14763test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90.\xe0\xa1\x9b", false); } // [B1, C1, V6]
14764test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90.\xe0\xa1\x9b", true); } // [B1, V6]
599514765test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90.\xe0\xa1\x9b"); } // [B1, C1, V6]
14766test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90.\xe0\xa1\x9b", false); } // [B1, C1, V6]
14767test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90.\xe0\xa1\x9b", true); } // [B1, V6]
599614768test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb2\x90.\xe0\xa1\x9b"); } // [B1, C1, V6]
14769test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb2\x90.\xe0\xa1\x9b", false); } // [B1, C1, V6]
14770test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb2\x90.\xe0\xa1\x9b", true); } // [B1, V6]
599714771test { try toUnicodeFail("xn--hdhz343g3wj.xn--qwb"); } // [B1, V6]
14772test { try toAsciiFail("xn--hdhz343g3wj.xn--qwb", false); } // [B1, V6]
14773test { try toAsciiFail("xn--hdhz343g3wj.xn--qwb", true); } // [B1, V6]
599814774test { try toUnicodeFail("xn--0ug06g7697ap4ma.xn--qwb"); } // [B1, C1, V6]
14775test { try toAsciiFail("xn--0ug06g7697ap4ma.xn--qwb", false); } // [B1, C1, V6]
14776test { try toAsciiFail("xn--0ug06g7697ap4ma.xn--qwb", true); } // [B1, C1, V6]
599914777test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90\xef\xbc\x8e\xe0\xa1\x9b"); } // [B1, C1, V6]
14778test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90\xef\xbc\x8e\xe0\xa1\x9b", false); } // [B1, C1, V6]
14779test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90\xef\xbc\x8e\xe0\xa1\x9b", true); } // [B1, V6]
600014780test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb2\x90\xef\xbc\x8e\xe0\xa1\x9b"); } // [B1, C1, V6]
14781test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb2\x90\xef\xbc\x8e\xe0\xa1\x9b", false); } // [B1, C1, V6]
14782test { try toAsciiFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb2\x90\xef\xbc\x8e\xe0\xa1\x9b", true); } // [B1, V6]
600114783test { try toUnicodePass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "\xe7\xbe\x9a.\xe2\x89\xaf"); }
600214784test { try toAsciiPass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "xn--xt0a.xn--hdh", false); }
600314785test { try toAsciiPass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "xn--xt0a.xn--hdh", true); }
......@@ -6020,52 +14802,146 @@ test { try toUnicodePass("\xe7\xbe\x9a.>\xcc\xb8", "\xe7\xbe\x9a.\xe2\x89\xaf");
602014802test { try toAsciiPass("\xe7\xbe\x9a.>\xcc\xb8", "xn--xt0a.xn--hdh", false); }
602114803test { try toAsciiPass("\xe7\xbe\x9a.>\xcc\xb8", "xn--xt0a.xn--hdh", true); }
602214804test { try toUnicodeFail("\xf0\x91\x93\x82\xe1\x9d\x99\xef\xbc\x8e\xe0\xa2\xa8"); } // [B1, V6, V7]
14805test { try toAsciiFail("\xf0\x91\x93\x82\xe1\x9d\x99\xef\xbc\x8e\xe0\xa2\xa8", false); } // [B1, V6, V7]
14806test { try toAsciiFail("\xf0\x91\x93\x82\xe1\x9d\x99\xef\xbc\x8e\xe0\xa2\xa8", true); } // [B1, V6, V7]
602314807test { try toUnicodeFail("\xf0\x91\x93\x82\xe1\x9d\x99.\xe0\xa2\xa8"); } // [B1, V6, V7]
14808test { try toAsciiFail("\xf0\x91\x93\x82\xe1\x9d\x99.\xe0\xa2\xa8", false); } // [B1, V6, V7]
14809test { try toAsciiFail("\xf0\x91\x93\x82\xe1\x9d\x99.\xe0\xa2\xa8", true); } // [B1, V6, V7]
602414810test { try toUnicodeFail("xn--e1e9580k.xn--xyb"); } // [B1, V6, V7]
14811test { try toAsciiFail("xn--e1e9580k.xn--xyb", false); } // [B1, V6, V7]
14812test { try toAsciiFail("xn--e1e9580k.xn--xyb", true); } // [B1, V6, V7]
602514813test { try toUnicodeFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa0\xe1\x83\x80\xf0\x9d\x9f\x91"); } // [B1, B6, C2, V7]
14814test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa0\xe1\x83\x80\xf0\x9d\x9f\x91", false); } // [B1, B6, C2, V7]
14815test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa0\xe1\x83\x80\xf0\x9d\x9f\x91", true); } // [B1, V7]
602614816test { try toUnicodeFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa0\xe1\x83\x803"); } // [B1, B6, C2, V7]
14817test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa0\xe1\x83\x803", false); } // [B1, B6, C2, V7]
14818test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa0\xe1\x83\x803", true); } // [B1, V7]
602714819test { try toUnicodeFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa1\xe2\xb4\xa03"); } // [B1, B6, C2, V7]
14820test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa1\xe2\xb4\xa03", false); } // [B1, B6, C2, V7]
14821test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa1\xe2\xb4\xa03", true); } // [B1, V7]
602814822test { try toUnicodeFail("xn--1r19e.xn--3-ozb36ko13f"); } // [B1, V7]
14823test { try toAsciiFail("xn--1r19e.xn--3-ozb36ko13f", false); } // [B1, V7]
14824test { try toAsciiFail("xn--1r19e.xn--3-ozb36ko13f", true); } // [B1, V7]
602914825test { try toUnicodeFail("xn--1ug89936l.xn--3-ozb36ko13f"); } // [B1, B6, C2, V7]
14826test { try toAsciiFail("xn--1ug89936l.xn--3-ozb36ko13f", false); } // [B1, B6, C2, V7]
14827test { try toAsciiFail("xn--1ug89936l.xn--3-ozb36ko13f", true); } // [B1, B6, C2, V7]
603014828test { try toUnicodeFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa1\xe2\xb4\xa0\xf0\x9d\x9f\x91"); } // [B1, B6, C2, V7]
14829test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa1\xe2\xb4\xa0\xf0\x9d\x9f\x91", false); } // [B1, B6, C2, V7]
14830test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa1\xe2\xb4\xa0\xf0\x9d\x9f\x91", true); } // [B1, V7]
603114831test { try toUnicodeFail("xn--1r19e.xn--3-ozb36kixu"); } // [B1, V7]
14832test { try toAsciiFail("xn--1r19e.xn--3-ozb36kixu", false); } // [B1, V7]
14833test { try toAsciiFail("xn--1r19e.xn--3-ozb36kixu", true); } // [B1, V7]
603214834test { try toUnicodeFail("xn--1ug89936l.xn--3-ozb36kixu"); } // [B1, B6, C2, V7]
14835test { try toAsciiFail("xn--1ug89936l.xn--3-ozb36kixu", false); } // [B1, B6, C2, V7]
14836test { try toAsciiFail("xn--1ug89936l.xn--3-ozb36kixu", true); } // [B1, B6, C2, V7]
603314837test { try toUnicodeFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa0\xe2\xb4\xa03"); } // [B1, B6, C2, V7]
14838test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa0\xe2\xb4\xa03", false); } // [B1, B6, C2, V7]
14839test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xe3\x80\x82\xd9\xa3\xd2\xa0\xe2\xb4\xa03", true); } // [B1, V7]
603414840test { try toUnicodeFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa0\xe2\xb4\xa0\xf0\x9d\x9f\x91"); } // [B1, B6, C2, V7]
14841test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa0\xe2\xb4\xa0\xf0\x9d\x9f\x91", false); } // [B1, B6, C2, V7]
14842test { try toAsciiFail("\xf3\xa8\xa3\xbf\xf3\xa0\x87\x80\xe2\x80\x8d\xef\xbd\xa1\xd9\xa3\xd2\xa0\xe2\xb4\xa0\xf0\x9d\x9f\x91", true); } // [B1, V7]
603514843test { try toUnicodeFail("\xe1\xa1\xb7\xe3\x80\x82\xf0\x90\xb9\xa2\xe0\xa3\xa0"); } // [B1]
14844test { try toAsciiFail("\xe1\xa1\xb7\xe3\x80\x82\xf0\x90\xb9\xa2\xe0\xa3\xa0", false); } // [B1]
14845test { try toAsciiFail("\xe1\xa1\xb7\xe3\x80\x82\xf0\x90\xb9\xa2\xe0\xa3\xa0", true); } // [B1]
603614846test { try toUnicodeFail("xn--k9e.xn--j0b5005k"); } // [B1]
14847test { try toAsciiFail("xn--k9e.xn--j0b5005k", false); } // [B1]
14848test { try toAsciiFail("xn--k9e.xn--j0b5005k", true); } // [B1]
603714849test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92\xc3\x9f"); } // [B1, V7]
14850test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92\xc3\x9f", false); } // [B1, V7]
14851test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92\xc3\x9f", true); } // [B1, V7]
603814852test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92\xc3\x9f"); } // [B1, V7]
14853test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92\xc3\x9f", false); } // [B1, V7]
14854test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92\xc3\x9f", true); } // [B1, V7]
603914855test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS"); } // [B1, V7]
14856test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS", false); } // [B1, V7]
14857test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS", true); } // [B1, V7]
604014858test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss"); } // [B1, V7]
14859test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss", false); } // [B1, V7]
14860test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss", true); } // [B1, V7]
604114861test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss"); } // [B1, V7]
14862test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss", false); } // [B1, V7]
14863test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss", true); } // [B1, V7]
604214864test { try toUnicodeFail("xn--1zf58212h.xn--ss-pyd459o3258m"); } // [B1, V7]
14865test { try toAsciiFail("xn--1zf58212h.xn--ss-pyd459o3258m", false); } // [B1, V7]
14866test { try toAsciiFail("xn--1zf58212h.xn--ss-pyd459o3258m", true); } // [B1, V7]
604314867test { try toUnicodeFail("xn--1zf58212h.xn--zca34zk4qx711k"); } // [B1, V7]
14868test { try toAsciiFail("xn--1zf58212h.xn--zca34zk4qx711k", false); } // [B1, V7]
14869test { try toAsciiFail("xn--1zf58212h.xn--zca34zk4qx711k", true); } // [B1, V7]
604414870test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS"); } // [B1, V7]
14871test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS", false); } // [B1, V7]
14872test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS", true); } // [B1, V7]
604514873test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss"); } // [B1, V7]
14874test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss", false); } // [B1, V7]
14875test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss", true); } // [B1, V7]
604614876test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss"); } // [B1, V7]
14877test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss", false); } // [B1, V7]
14878test { try toAsciiFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss", true); } // [B1, V7]
604714879test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92\xe2\x89\xa0"); } // [B1, V7]
14880test { try toAsciiFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92\xe2\x89\xa0", false); } // [B1, V7]
14881test { try toAsciiFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92\xe2\x89\xa0", true); } // [B1, V7]
604814882test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92=\xcc\xb8"); } // [B1, V7]
14883test { try toAsciiFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92=\xcc\xb8", false); } // [B1, V7]
14884test { try toAsciiFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92=\xcc\xb8", true); } // [B1, V7]
604914885test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82\xe2\x89\xa0"); } // [B1, V7]
14886test { try toAsciiFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82\xe2\x89\xa0", false); } // [B1, V7]
14887test { try toAsciiFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82\xe2\x89\xa0", true); } // [B1, V7]
605014888test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82=\xcc\xb8"); } // [B1, V7]
14889test { try toAsciiFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82=\xcc\xb8", false); } // [B1, V7]
14890test { try toAsciiFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82=\xcc\xb8", true); } // [B1, V7]
605114891test { try toUnicodeFail("xn--dib0653l2i02d.xn--k736e.xn--1ch"); } // [B1, V7]
14892test { try toAsciiFail("xn--dib0653l2i02d.xn--k736e.xn--1ch", false); } // [B1, V7]
14893test { try toAsciiFail("xn--dib0653l2i02d.xn--k736e.xn--1ch", true); } // [B1, V7]
605214894test { try toUnicodeFail("xn--dib0653l2i02d.xn--1ch7467f14u4g"); } // [B1, V7]
14895test { try toAsciiFail("xn--dib0653l2i02d.xn--1ch7467f14u4g", false); } // [B1, V7]
14896test { try toAsciiFail("xn--dib0653l2i02d.xn--1ch7467f14u4g", true); } // [B1, V7]
605314897test { try toUnicodeFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x97\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab"); } // [V7]
14898test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x97\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab", false); } // [V7]
14899test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x97\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab", true); } // [V7]
605414900test { try toUnicodeFail("\xe2\x9e\x86\xf1\xb7\xa7\x95o\xcc\x82\xcc\x83\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab"); } // [V7]
14901test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95o\xcc\x82\xcc\x83\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab", false); } // [V7]
14902test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95o\xcc\x82\xcc\x83\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab", true); } // [V7]
605514903test { try toUnicodeFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x971..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9"); } // [V7, X4_2]
14904test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x971..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9", false); } // [V7, A4_2]
14905test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x971..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9", true); } // [V7, A4_2]
605614906test { try toUnicodeFail("\xe2\x9e\x86\xf1\xb7\xa7\x95o\xcc\x82\xcc\x831..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9"); } // [V7, X4_2]
14907test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95o\xcc\x82\xcc\x831..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9", false); } // [V7, A4_2]
14908test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95o\xcc\x82\xcc\x831..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9", true); } // [V7, A4_2]
605714909test { try toUnicodeFail("\xe2\x9e\x86\xf1\xb7\xa7\x95O\xcc\x82\xcc\x831..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9"); } // [V7, X4_2]
14910test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95O\xcc\x82\xcc\x831..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9", false); } // [V7, A4_2]
14911test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95O\xcc\x82\xcc\x831..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9", true); } // [V7, A4_2]
605814912test { try toUnicodeFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x961..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9"); } // [V7, X4_2]
14913test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x961..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9", false); } // [V7, A4_2]
14914test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x961..\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b9", true); } // [V7, A4_2]
605914915test { try toUnicodeFail("xn--1-3xm292b6044r..xn--9-6jd87310jtcqs"); } // [V7, X4_2]
14916test { try toAsciiFail("xn--1-3xm292b6044r..xn--9-6jd87310jtcqs", false); } // [V7, A4_2]
14917test { try toAsciiFail("xn--1-3xm292b6044r..xn--9-6jd87310jtcqs", true); } // [V7, A4_2]
606014918test { try toUnicodeFail("\xe2\x9e\x86\xf1\xb7\xa7\x95O\xcc\x82\xcc\x83\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab"); } // [V7]
14919test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95O\xcc\x82\xcc\x83\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab", false); } // [V7]
14920test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95O\xcc\x82\xcc\x83\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab", true); } // [V7]
606114921test { try toUnicodeFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x96\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab"); } // [V7]
14922test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x96\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab", false); } // [V7]
14923test { try toAsciiFail("\xe2\x9e\x86\xf1\xb7\xa7\x95\xe1\xbb\x96\xe2\x92\x88\xef\xbc\x8e\xf2\x91\xac\x92\xf1\xa1\x98\xae\xe0\xa1\x9b\xf0\x9d\x9f\xab", true); } // [V7]
606214924test { try toUnicodeFail("xn--6lg26tvvc6v99z.xn--9-6jd87310jtcqs"); } // [V7]
14925test { try toAsciiFail("xn--6lg26tvvc6v99z.xn--9-6jd87310jtcqs", false); } // [V7]
14926test { try toAsciiFail("xn--6lg26tvvc6v99z.xn--9-6jd87310jtcqs", true); } // [V7]
606314927test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\x98"); } // [B1, C2]
14928test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\x98", false); } // [B1, C2]
14929test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\x98", true); } // [A4_2]
606414930test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x98"); } // [B1, C2]
14931test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x98", false); } // [B1, C2]
14932test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x98", true); } // [A4_2]
606514933test { 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]
14935test { try toAsciiFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba", true); } // [A4_2]
606614936test { try toUnicodeFail(".xn--ye6h"); } // [X4_2]
14937test { try toAsciiFail(".xn--ye6h", false); } // [A4_2]
14938test { try toAsciiFail(".xn--ye6h", true); } // [A4_2]
606714939test { try toUnicodeFail("xn--1ug.xn--ye6h"); } // [B1, C2]
14940test { try toAsciiFail("xn--1ug.xn--ye6h", false); } // [B1, C2]
14941test { try toAsciiFail("xn--1ug.xn--ye6h", true); } // [B1, C2]
606814942test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\xba"); } // [B1, C2]
14943test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\xba", false); } // [B1, C2]
14944test { try toAsciiFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\xba", true); } // [A4_2]
606914945test { try toUnicodePass("xn--ye6h", "\xf0\x9e\xa4\xba"); }
607014946test { try toAsciiPass("xn--ye6h", "xn--ye6h", false); }
607114947test { try toAsciiPass("xn--ye6h", "xn--ye6h", true); }
......@@ -6076,136 +14952,398 @@ test { try toUnicodePass("\xf0\x9e\xa4\x98", "\xf0\x9e\xa4\xba"); }
607614952test { try toAsciiPass("\xf0\x9e\xa4\x98", "xn--ye6h", false); }
607714953test { try toAsciiPass("\xf0\x9e\xa4\x98", "xn--ye6h", true); }
607814954test { try toUnicodeFail("\xe0\xa0\xa9\xdc\xa4.\xe1\xa2\xa3"); } // [B1, V6]
14955test { try toAsciiFail("\xe0\xa0\xa9\xdc\xa4.\xe1\xa2\xa3", false); } // [B1, V6]
14956test { try toAsciiFail("\xe0\xa0\xa9\xdc\xa4.\xe1\xa2\xa3", true); } // [B1, V6]
607914957test { try toUnicodeFail("xn--unb53c.xn--tbf"); } // [B1, V6]
14958test { try toAsciiFail("xn--unb53c.xn--tbf", false); } // [B1, V6]
14959test { try toAsciiFail("xn--unb53c.xn--tbf", true); } // [B1, V6]
608014960test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbe\xc3\x9f"); } // [C1, V3, V6, V7]
14961test { try toAsciiFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbe\xc3\x9f", false); } // [C1, V3, V6, V7]
14962test { try toAsciiFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbe\xc3\x9f", true); } // [V3, V6, V7]
608114963test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSS"); } // [C1, V3, V6, V7]
14964test { try toAsciiFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSS", false); } // [C1, V3, V6, V7]
14965test { try toAsciiFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSS", true); } // [V3, V6, V7]
608214966test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbess"); } // [C1, V3, V6, V7]
14967test { try toAsciiFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbess", false); } // [C1, V3, V6, V7]
14968test { try toAsciiFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbess", true); } // [V3, V6, V7]
608314969test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSs"); } // [C1, V3, V6, V7]
14970test { try toAsciiFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSs", false); } // [C1, V3, V6, V7]
14971test { try toAsciiFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSs", true); } // [V3, V6, V7]
608414972test { try toUnicodeFail("xn----s2c.xn--ss-066q"); } // [V3, V6, V7]
14973test { try toAsciiFail("xn----s2c.xn--ss-066q", false); } // [V3, V6, V7]
14974test { try toAsciiFail("xn----s2c.xn--ss-066q", true); } // [V3, V6, V7]
608514975test { try toUnicodeFail("xn----s2c071q.xn--ss-066q"); } // [C1, V3, V6, V7]
14976test { try toAsciiFail("xn----s2c071q.xn--ss-066q", false); } // [C1, V3, V6, V7]
14977test { try toAsciiFail("xn----s2c071q.xn--ss-066q", true); } // [C1, V3, V6, V7]
608614978test { try toUnicodeFail("xn----s2c071q.xn--zca7848m"); } // [C1, V3, V6, V7]
14979test { try toAsciiFail("xn----s2c071q.xn--zca7848m", false); } // [C1, V3, V6, V7]
14980test { try toAsciiFail("xn----s2c071q.xn--zca7848m", true); } // [C1, V3, V6, V7]
608714981test { try toUnicodeFail("\xe2\x80\x8c\xcf\x82\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96"); } // [B1, B5, B6, C1, V6, V7]
14982test { try toAsciiFail("\xe2\x80\x8c\xcf\x82\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", false); } // [B1, B5, B6, C1, V6, V7]
14983test { try toAsciiFail("\xe2\x80\x8c\xcf\x82\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", true); } // [B5, B6, V6, V7]
608814984test { try toUnicodeFail("\xe2\x80\x8c\xcf\x82\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96"); } // [B1, B5, B6, C1, V6, X4_2]
14985test { try toAsciiFail("\xe2\x80\x8c\xcf\x82\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", false); } // [B1, B5, B6, C1, V6, A4_2]
14986test { try toAsciiFail("\xe2\x80\x8c\xcf\x82\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", true); } // [B5, B6, V6, A4_2]
608914987test { try toUnicodeFail("\xe2\x80\x8c\xce\xa3\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96"); } // [B1, B5, B6, C1, V6, X4_2]
14988test { try toAsciiFail("\xe2\x80\x8c\xce\xa3\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", false); } // [B1, B5, B6, C1, V6, A4_2]
14989test { try toAsciiFail("\xe2\x80\x8c\xce\xa3\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", true); } // [B5, B6, V6, A4_2]
609014990test { try toUnicodeFail("\xe2\x80\x8c\xcf\x83\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96"); } // [B1, B5, B6, C1, V6, X4_2]
14991test { try toAsciiFail("\xe2\x80\x8c\xcf\x83\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", false); } // [B1, B5, B6, C1, V6, A4_2]
14992test { try toAsciiFail("\xe2\x80\x8c\xcf\x83\xf0\x9f\x83\xa116..\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", true); } // [B5, B6, V6, A4_2]
609114993test { try toUnicodeFail("xn--16-ubc66061c..xn--9ob79ycx2e"); } // [B5, B6, V6, X4_2]
14994test { try toAsciiFail("xn--16-ubc66061c..xn--9ob79ycx2e", false); } // [B5, B6, V6, A4_2]
14995test { try toAsciiFail("xn--16-ubc66061c..xn--9ob79ycx2e", true); } // [B5, B6, V6, A4_2]
609214996test { try toUnicodeFail("xn--16-ubc7700avy99b..xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, X4_2]
14997test { try toAsciiFail("xn--16-ubc7700avy99b..xn--9ob79ycx2e", false); } // [B1, B5, B6, C1, V6, A4_2]
14998test { try toAsciiFail("xn--16-ubc7700avy99b..xn--9ob79ycx2e", true); } // [B1, B5, B6, C1, V6, A4_2]
609314999test { try toUnicodeFail("xn--16-rbc1800avy99b..xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, X4_2]
15000test { try toAsciiFail("xn--16-rbc1800avy99b..xn--9ob79ycx2e", false); } // [B1, B5, B6, C1, V6, A4_2]
15001test { try toAsciiFail("xn--16-rbc1800avy99b..xn--9ob79ycx2e", true); } // [B1, B5, B6, C1, V6, A4_2]
609415002test { try toUnicodeFail("\xe2\x80\x8c\xce\xa3\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96"); } // [B1, B5, B6, C1, V6, V7]
15003test { try toAsciiFail("\xe2\x80\x8c\xce\xa3\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", false); } // [B1, B5, B6, C1, V6, V7]
15004test { try toAsciiFail("\xe2\x80\x8c\xce\xa3\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", true); } // [B5, B6, V6, V7]
609515005test { try toUnicodeFail("\xe2\x80\x8c\xcf\x83\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96"); } // [B1, B5, B6, C1, V6, V7]
15006test { try toAsciiFail("\xe2\x80\x8c\xcf\x83\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", false); } // [B1, B5, B6, C1, V6, V7]
15007test { try toAsciiFail("\xe2\x80\x8c\xcf\x83\xf0\x9f\x83\xa1\xe2\x92\x97.\xe0\xb3\x86\xe4\xbb\xa7\xdd\x96", true); } // [B5, B6, V6, V7]
609615008test { try toUnicodeFail("xn--4xa229nbu92a.xn--9ob79ycx2e"); } // [B5, B6, V6, V7]
15009test { try toAsciiFail("xn--4xa229nbu92a.xn--9ob79ycx2e", false); } // [B5, B6, V6, V7]
15010test { try toAsciiFail("xn--4xa229nbu92a.xn--9ob79ycx2e", true); } // [B5, B6, V6, V7]
609715011test { try toUnicodeFail("xn--4xa595lz9czy52d.xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, V7]
15012test { try toAsciiFail("xn--4xa595lz9czy52d.xn--9ob79ycx2e", false); } // [B1, B5, B6, C1, V6, V7]
15013test { try toAsciiFail("xn--4xa595lz9czy52d.xn--9ob79ycx2e", true); } // [B1, B5, B6, C1, V6, V7]
609815014test { try toUnicodeFail("xn--3xa795lz9czy52d.xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, V7]
15015test { try toAsciiFail("xn--3xa795lz9czy52d.xn--9ob79ycx2e", false); } // [B1, B5, B6, C1, V6, V7]
15016test { try toAsciiFail("xn--3xa795lz9czy52d.xn--9ob79ycx2e", true); } // [B1, B5, B6, C1, V6, V7]
609915017test { try toUnicodeFail("-.\xf0\x9e\xb8\x9a"); } // [B1, V3]
15018test { try toAsciiFail("-.\xf0\x9e\xb8\x9a", false); } // [B1, V3]
15019test { try toAsciiFail("-.\xf0\x9e\xb8\x9a", true); } // [B1, V3]
610015020test { try toUnicodeFail("-.\xd8\xb8"); } // [B1, V3]
15021test { try toAsciiFail("-.\xd8\xb8", false); } // [B1, V3]
15022test { try toAsciiFail("-.\xd8\xb8", true); } // [B1, V3]
610115023test { try toUnicodeFail("-.xn--3gb"); } // [B1, V3]
15024test { try toAsciiFail("-.xn--3gb", false); } // [B1, V3]
15025test { try toAsciiFail("-.xn--3gb", true); } // [B1, V3]
610215026test { try toUnicodeFail("\xf2\x8f\x9b\x93\xda\x83.\xe0\xbd\xbe\xd8\xb4"); } // [B1, B5, B6, V6, V7]
15027test { try toAsciiFail("\xf2\x8f\x9b\x93\xda\x83.\xe0\xbd\xbe\xd8\xb4", false); } // [B1, B5, B6, V6, V7]
15028test { try toAsciiFail("\xf2\x8f\x9b\x93\xda\x83.\xe0\xbd\xbe\xd8\xb4", true); } // [B1, B5, B6, V6, V7]
610315029test { try toUnicodeFail("xn--8ib92728i.xn--zgb968b"); } // [B1, B5, B6, V6, V7]
15030test { try toAsciiFail("xn--8ib92728i.xn--zgb968b", false); } // [B1, B5, B6, V6, V7]
15031test { try toAsciiFail("xn--8ib92728i.xn--zgb968b", true); } // [B1, B5, B6, V6, V7]
610415032test { try toUnicodeFail("\xe0\xbf\xa6\xe0\xa1\x83\xf1\xbd\xb6\xac.\xf0\x90\xae\x8f"); } // [B5, V7]
15033test { try toAsciiFail("\xe0\xbf\xa6\xe0\xa1\x83\xf1\xbd\xb6\xac.\xf0\x90\xae\x8f", false); } // [B5, V7]
15034test { try toAsciiFail("\xe0\xbf\xa6\xe0\xa1\x83\xf1\xbd\xb6\xac.\xf0\x90\xae\x8f", true); } // [B5, V7]
610515035test { try toUnicodeFail("xn--1vb320b5m04p.xn--m29c"); } // [B5, V7]
15036test { try toAsciiFail("xn--1vb320b5m04p.xn--m29c", false); } // [B5, V7]
15037test { try toAsciiFail("xn--1vb320b5m04p.xn--m29c", true); } // [B5, V7]
610615038test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8b\xc3\x9f\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7]
15039test { try toAsciiFail("2\xf1\x8e\xa8\xa0\xdf\x8b\xc3\x9f\xe3\x80\x82\xe1\xa0\xbd", false); } // [B1, V7]
15040test { try toAsciiFail("2\xf1\x8e\xa8\xa0\xdf\x8b\xc3\x9f\xe3\x80\x82\xe1\xa0\xbd", true); } // [B1, V7]
610715041test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bSS\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7]
15042test { try toAsciiFail("2\xf1\x8e\xa8\xa0\xdf\x8bSS\xe3\x80\x82\xe1\xa0\xbd", false); } // [B1, V7]
15043test { try toAsciiFail("2\xf1\x8e\xa8\xa0\xdf\x8bSS\xe3\x80\x82\xe1\xa0\xbd", true); } // [B1, V7]
610815044test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bss\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7]
15045test { try toAsciiFail("2\xf1\x8e\xa8\xa0\xdf\x8bss\xe3\x80\x82\xe1\xa0\xbd", false); } // [B1, V7]
15046test { try toAsciiFail("2\xf1\x8e\xa8\xa0\xdf\x8bss\xe3\x80\x82\xe1\xa0\xbd", true); } // [B1, V7]
610915047test { try toUnicodeFail("xn--2ss-odg83511n.xn--w7e"); } // [B1, V7]
15048test { try toAsciiFail("xn--2ss-odg83511n.xn--w7e", false); } // [B1, V7]
15049test { try toAsciiFail("xn--2ss-odg83511n.xn--w7e", true); } // [B1, V7]
611015050test { try toUnicodeFail("xn--2-qfa924cez02l.xn--w7e"); } // [B1, V7]
15051test { try toAsciiFail("xn--2-qfa924cez02l.xn--w7e", false); } // [B1, V7]
15052test { try toAsciiFail("xn--2-qfa924cez02l.xn--w7e", true); } // [B1, V7]
611115053test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bSs\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7]
15054test { try toAsciiFail("2\xf1\x8e\xa8\xa0\xdf\x8bSs\xe3\x80\x82\xe1\xa0\xbd", false); } // [B1, V7]
15055test { try toAsciiFail("2\xf1\x8e\xa8\xa0\xdf\x8bSs\xe3\x80\x82\xe1\xa0\xbd", true); } // [B1, V7]
611215056test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15057test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8e\xc3\x9f-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15058test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8e\xc3\x9f-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
611315059test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15060test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8e\xc3\x9f-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15061test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8e\xc3\x9f-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
611415062test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15063test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8e\xc3\x9f-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15064test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8e\xc3\x9f-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
611515065test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15066test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8e\xc3\x9f-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15067test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8e\xc3\x9f-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
611615068test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15069test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSS-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15070test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSS-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
611715071test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15072test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSS-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15073test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSS-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
611815074test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15075test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8ess-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15076test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8ess-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
611915077test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15078test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8ess-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15079test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8ess-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
612015080test { try toUnicodeFail("xn--lsb457kkut.xn--ss--qjf"); } // [B2, B3, B5, B6, V3]
15081test { try toAsciiFail("xn--lsb457kkut.xn--ss--qjf", false); } // [B2, B3, B5, B6, V3]
15082test { try toAsciiFail("xn--lsb457kkut.xn--ss--qjf", true); } // [B2, B3, B5, B6, V3]
612115083test { try toUnicodeFail("xn--lsb457kkut.xn--ss--qjf2343a"); } // [B2, B3, B5, B6, C2]
15084test { try toAsciiFail("xn--lsb457kkut.xn--ss--qjf2343a", false); } // [B2, B3, B5, B6, C2]
15085test { try toAsciiFail("xn--lsb457kkut.xn--ss--qjf2343a", true); } // [B2, B3, B5, B6, C2]
612215086test { try toUnicodeFail("xn--lsb457kkut.xn----pfa076bys4a"); } // [B2, B3, B5, B6, C2]
15087test { try toAsciiFail("xn--lsb457kkut.xn----pfa076bys4a", false); } // [B2, B3, B5, B6, C2]
15088test { try toAsciiFail("xn--lsb457kkut.xn----pfa076bys4a", true); } // [B2, B3, B5, B6, C2]
612315089test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15090test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15091test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
612415092test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15093test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15094test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
612515095test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15096test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15097test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
612615098test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15099test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15100test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
612715101test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15102test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSs-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15103test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSs-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
612815104test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15105test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSs-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15106test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSs-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
612915107test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15108test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15109test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
613015110test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
15111test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d", false); } // [B2, B3, B5, B6, C2]
15112test { try toAsciiFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d", true); } // [B2, B3, B5, B6, V3]
613115113test { try toUnicodeFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xef\xb8\x92"); } // [V3, V6, V7]
15114test { try toAsciiFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xef\xb8\x92", false); } // [V3, V6, V7]
15115test { try toAsciiFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xef\xb8\x92", true); } // [V3, V6, V7]
613215116test { try toUnicodeFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xe3\x80\x82"); } // [V3, V6, V7]
15117test { try toAsciiFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xe3\x80\x82", false); } // [V3, V6, V7, A4_2]
15118test { try toAsciiFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xe3\x80\x82", true); } // [V3, V6, V7, A4_2]
613315119test { try toUnicodeFail("xn----b5h1837n2ok9f.xn----mkm."); } // [V3, V6, V7]
15120test { try toAsciiFail("xn----b5h1837n2ok9f.xn----mkm.", false); } // [V3, V6, V7, A4_2]
15121test { try toAsciiFail("xn----b5h1837n2ok9f.xn----mkm.", true); } // [V3, V6, V7, A4_2]
613415122test { try toUnicodeFail("xn----b5h1837n2ok9f.xn----mkmw278h"); } // [V3, V6, V7]
15123test { try toAsciiFail("xn----b5h1837n2ok9f.xn----mkmw278h", false); } // [V3, V6, V7]
15124test { try toAsciiFail("xn----b5h1837n2ok9f.xn----mkmw278h", true); } // [V3, V6, V7]
613515125test { try toUnicodeFail("\xef\xb8\x92.\xf2\x9a\xa0\xa1\xe1\xa9\x99"); } // [V7]
15126test { try toAsciiFail("\xef\xb8\x92.\xf2\x9a\xa0\xa1\xe1\xa9\x99", false); } // [V7]
15127test { try toAsciiFail("\xef\xb8\x92.\xf2\x9a\xa0\xa1\xe1\xa9\x99", true); } // [V7]
613615128test { try toUnicodeFail("\xe3\x80\x82.\xf2\x9a\xa0\xa1\xe1\xa9\x99"); } // [V7, X4_2]
15129test { try toAsciiFail("\xe3\x80\x82.\xf2\x9a\xa0\xa1\xe1\xa9\x99", false); } // [V7, A4_2]
15130test { try toAsciiFail("\xe3\x80\x82.\xf2\x9a\xa0\xa1\xe1\xa9\x99", true); } // [V7, A4_2]
613715131test { try toUnicodeFail("..xn--cof61594i"); } // [V7, X4_2]
15132test { try toAsciiFail("..xn--cof61594i", false); } // [V7, A4_2]
15133test { try toAsciiFail("..xn--cof61594i", true); } // [V7, A4_2]
613815134test { try toUnicodeFail("xn--y86c.xn--cof61594i"); } // [V7]
15135test { try toAsciiFail("xn--y86c.xn--cof61594i", false); } // [V7]
15136test { try toAsciiFail("xn--y86c.xn--cof61594i", true); } // [V7]
613915137test { try toUnicodeFail("\xcc\xa3\xe2\xb7\xa1\xe3\x80\x82\xe2\x80\x8c\xe2\x93\xbe\xe2\x80\x8c\xda\xb9"); } // [B1, C1, V6]
15138test { try toAsciiFail("\xcc\xa3\xe2\xb7\xa1\xe3\x80\x82\xe2\x80\x8c\xe2\x93\xbe\xe2\x80\x8c\xda\xb9", false); } // [B1, C1, V6]
15139test { try toAsciiFail("\xcc\xa3\xe2\xb7\xa1\xe3\x80\x82\xe2\x80\x8c\xe2\x93\xbe\xe2\x80\x8c\xda\xb9", true); } // [B1, V6]
614015140test { try toUnicodeFail("xn--kta899s.xn--skb116m"); } // [B1, V6]
15141test { try toAsciiFail("xn--kta899s.xn--skb116m", false); } // [B1, V6]
15142test { try toAsciiFail("xn--kta899s.xn--skb116m", true); } // [B1, V6]
614115143test { try toUnicodeFail("xn--kta899s.xn--skb970ka771c"); } // [B1, C1, V6]
15144test { try toAsciiFail("xn--kta899s.xn--skb970ka771c", false); } // [B1, C1, V6]
15145test { try toAsciiFail("xn--kta899s.xn--skb970ka771c", true); } // [B1, C1, V6]
614215146test { try toUnicodeFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xef\xbd\xa1\xe1\x81\xb4\xf0\x9e\xa4\xb5\xf3\xa0\x85\xa6"); } // [B1, B2, V6, V7]
15147test { try toAsciiFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xef\xbd\xa1\xe1\x81\xb4\xf0\x9e\xa4\xb5\xf3\xa0\x85\xa6", false); } // [B1, B2, V6, V7]
15148test { try toAsciiFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xef\xbd\xa1\xe1\x81\xb4\xf0\x9e\xa4\xb5\xf3\xa0\x85\xa6", true); } // [B1, B2, V6, V7]
614315149test { try toUnicodeFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xe3\x80\x82\xe1\x81\xb4\xf0\x9e\xa4\xb5\xf3\xa0\x85\xa6"); } // [B1, B2, V6, V7]
15150test { try toAsciiFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xe3\x80\x82\xe1\x81\xb4\xf0\x9e\xa4\xb5\xf3\xa0\x85\xa6", false); } // [B1, B2, V6, V7]
15151test { try toAsciiFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xe3\x80\x82\xe1\x81\xb4\xf0\x9e\xa4\xb5\xf3\xa0\x85\xa6", true); } // [B1, B2, V6, V7]
614415152test { try toUnicodeFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xe3\x80\x82\xe1\x81\xb4\xf0\x9e\xa4\x93\xf3\xa0\x85\xa6"); } // [B1, B2, V6, V7]
15153test { try toAsciiFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xe3\x80\x82\xe1\x81\xb4\xf0\x9e\xa4\x93\xf3\xa0\x85\xa6", false); } // [B1, B2, V6, V7]
15154test { try toAsciiFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xe3\x80\x82\xe1\x81\xb4\xf0\x9e\xa4\x93\xf3\xa0\x85\xa6", true); } // [B1, B2, V6, V7]
614515155test { try toUnicodeFail("xn--tlb199fwl35a.xn--yld4613v"); } // [B1, B2, V6, V7]
15156test { try toAsciiFail("xn--tlb199fwl35a.xn--yld4613v", false); } // [B1, B2, V6, V7]
15157test { try toAsciiFail("xn--tlb199fwl35a.xn--yld4613v", true); } // [B1, B2, V6, V7]
614615158test { try toUnicodeFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xef\xbd\xa1\xe1\x81\xb4\xf0\x9e\xa4\x93\xf3\xa0\x85\xa6"); } // [B1, B2, V6, V7]
15159test { try toAsciiFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xef\xbd\xa1\xe1\x81\xb4\xf0\x9e\xa4\x93\xf3\xa0\x85\xa6", false); } // [B1, B2, V6, V7]
15160test { try toAsciiFail("\xf0\x9e\xa0\xb6\xe1\xa0\xb4\xdb\x9d\xef\xbd\xa1\xe1\x81\xb4\xf0\x9e\xa4\x93\xf3\xa0\x85\xa6", true); } // [B1, B2, V6, V7]
614715161test { try toUnicodeFail("\xf0\x91\xb0\xba.-\xf2\x91\x9f\x8f"); } // [V3, V6, V7]
15162test { try toAsciiFail("\xf0\x91\xb0\xba.-\xf2\x91\x9f\x8f", false); } // [V3, V6, V7]
15163test { try toAsciiFail("\xf0\x91\xb0\xba.-\xf2\x91\x9f\x8f", true); } // [V3, V6, V7]
614815164test { try toUnicodeFail("xn--jk3d.xn----iz68g"); } // [V3, V6, V7]
15165test { try toAsciiFail("xn--jk3d.xn----iz68g", false); } // [V3, V6, V7]
15166test { try toAsciiFail("xn--jk3d.xn----iz68g", true); } // [V3, V6, V7]
614915167test { try toUnicodeFail("\xf3\xa0\xbb\xa9\xef\xbc\x8e\xe8\xb5\x8f"); } // [V7]
15168test { try toAsciiFail("\xf3\xa0\xbb\xa9\xef\xbc\x8e\xe8\xb5\x8f", false); } // [V7]
15169test { try toAsciiFail("\xf3\xa0\xbb\xa9\xef\xbc\x8e\xe8\xb5\x8f", true); } // [V7]
615015170test { try toUnicodeFail("\xf3\xa0\xbb\xa9.\xe8\xb5\x8f"); } // [V7]
15171test { try toAsciiFail("\xf3\xa0\xbb\xa9.\xe8\xb5\x8f", false); } // [V7]
15172test { try toAsciiFail("\xf3\xa0\xbb\xa9.\xe8\xb5\x8f", true); } // [V7]
615115173test { try toUnicodeFail("xn--2856e.xn--6o3a"); } // [V7]
15174test { try toAsciiFail("xn--2856e.xn--6o3a", false); } // [V7]
15175test { try toAsciiFail("xn--2856e.xn--6o3a", true); } // [V7]
615215176test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe1\x82\xa1"); } // [B2, B3]
15177test { try toAsciiFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe1\x82\xa1", false); } // [B2, B3]
15178test { try toAsciiFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe1\x82\xa1", true); } // [B2, B3]
615315179test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe1\x82\xa1"); } // [B2, B3]
15180test { try toAsciiFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe1\x82\xa1", false); } // [B2, B3]
15181test { try toAsciiFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe1\x82\xa1", true); } // [B2, B3]
615415182test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe2\xb4\x81"); } // [B2, B3]
15183test { try toAsciiFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe2\xb4\x81", false); } // [B2, B3]
15184test { try toAsciiFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe2\xb4\x81", true); } // [B2, B3]
615515185test { try toUnicodeFail("xn--jkb440g.xn--skj"); } // [B2, B3]
15186test { try toAsciiFail("xn--jkb440g.xn--skj", false); } // [B2, B3]
15187test { try toAsciiFail("xn--jkb440g.xn--skj", true); } // [B2, B3]
615615188test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe2\xb4\x81"); } // [B2, B3]
15189test { try toAsciiFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe2\xb4\x81", false); } // [B2, B3]
15190test { try toAsciiFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe2\xb4\x81", true); } // [B2, B3]
615715191test { try toUnicodeFail("xn--jkb440g.xn--8md"); } // [B2, B3, V7]
15192test { try toAsciiFail("xn--jkb440g.xn--8md", false); } // [B2, B3, V7]
15193test { try toAsciiFail("xn--jkb440g.xn--8md", true); } // [B2, B3, V7]
615815194test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xef\xbd\xa1-"); } // [B1, V3, V6]
15195test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xef\xbd\xa1-", false); } // [B1, V3, V6]
15196test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xef\xbd\xa1-", true); } // [B1, V3, V6]
615915197test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xe3\x80\x82-"); } // [B1, V3, V6]
15198test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xe3\x80\x82-", false); } // [B1, V3, V6]
15199test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xe3\x80\x82-", true); } // [B1, V3, V6]
616015200test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xe3\x80\x82-"); } // [B1, V3, V6]
15201test { try toAsciiFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xe3\x80\x82-", false); } // [B1, V3, V6]
15202test { try toAsciiFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xe3\x80\x82-", true); } // [B1, V3, V6]
616115203test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xe3\x80\x82-"); } // [B1, V3, V6]
15204test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xe3\x80\x82-", false); } // [B1, V3, V6]
15205test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xe3\x80\x82-", true); } // [B1, V3, V6]
616215206test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xe3\x80\x82-"); } // [B1, V3, V6]
15207test { try toAsciiFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xe3\x80\x82-", false); } // [B1, V3, V6]
15208test { try toAsciiFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xe3\x80\x82-", true); } // [B1, V3, V6]
616315209test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xe3\x80\x82-"); } // [B1, V3, V6]
15210test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xe3\x80\x82-", false); } // [B1, V3, V6]
15211test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xe3\x80\x82-", true); } // [B1, V3, V6]
616415212test { try toUnicodeFail("xn--4xa33mr38aeel.-"); } // [B1, V3, V6]
15213test { try toAsciiFail("xn--4xa33mr38aeel.-", false); } // [B1, V3, V6]
15214test { try toAsciiFail("xn--4xa33mr38aeel.-", true); } // [B1, V3, V6]
616515215test { try toUnicodeFail("xn--3xa53mr38aeel.-"); } // [B1, V3, V6]
15216test { try toAsciiFail("xn--3xa53mr38aeel.-", false); } // [B1, V3, V6]
15217test { try toAsciiFail("xn--3xa53mr38aeel.-", true); } // [B1, V3, V6]
616615218test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xef\xbd\xa1-"); } // [B1, V3, V6]
15219test { try toAsciiFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xef\xbd\xa1-", false); } // [B1, V3, V6]
15220test { try toAsciiFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xef\xbd\xa1-", true); } // [B1, V3, V6]
616715221test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xef\xbd\xa1-"); } // [B1, V3, V6]
15222test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xef\xbd\xa1-", false); } // [B1, V3, V6]
15223test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xef\xbd\xa1-", true); } // [B1, V3, V6]
616815224test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xef\xbd\xa1-"); } // [B1, V3, V6]
15225test { try toAsciiFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xef\xbd\xa1-", false); } // [B1, V3, V6]
15226test { try toAsciiFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xef\xbd\xa1-", true); } // [B1, V3, V6]
616915227test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xef\xbd\xa1-"); } // [B1, V3, V6]
15228test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xef\xbd\xa1-", false); } // [B1, V3, V6]
15229test { try toAsciiFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xef\xbd\xa1-", true); } // [B1, V3, V6]
617015230test { try toUnicodeFail("xn--4xa33m7zmb0q.-"); } // [B1, V3, V6, V7]
15231test { try toAsciiFail("xn--4xa33m7zmb0q.-", false); } // [B1, V3, V6, V7]
15232test { try toAsciiFail("xn--4xa33m7zmb0q.-", true); } // [B1, V3, V6, V7]
617115233test { try toUnicodeFail("xn--3xa53m7zmb0q.-"); } // [B1, V3, V6, V7]
15234test { try toAsciiFail("xn--3xa53m7zmb0q.-", false); } // [B1, V3, V6, V7]
15235test { try toAsciiFail("xn--3xa53m7zmb0q.-", true); } // [B1, V3, V6, V7]
617215236test { try toUnicodeFail("\xe1\x82\xad\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7]
15237test { try toAsciiFail("\xe1\x82\xad\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c", false); } // [C1, V7]
15238test { try toAsciiFail("\xe1\x82\xad\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c", true); } // [V7]
617315239test { try toUnicodeFail("\xe1\x82\xad.\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7]
15240test { try toAsciiFail("\xe1\x82\xad.\xf1\x8d\x87\xa6\xe2\x80\x8c", false); } // [C1, V7]
15241test { try toAsciiFail("\xe1\x82\xad.\xf1\x8d\x87\xa6\xe2\x80\x8c", true); } // [V7]
617415242test { try toUnicodeFail("\xe2\xb4\x8d.\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7]
15243test { try toAsciiFail("\xe2\xb4\x8d.\xf1\x8d\x87\xa6\xe2\x80\x8c", false); } // [C1, V7]
15244test { try toAsciiFail("\xe2\xb4\x8d.\xf1\x8d\x87\xa6\xe2\x80\x8c", true); } // [V7]
617515245test { try toUnicodeFail("xn--4kj.xn--p01x"); } // [V7]
15246test { try toAsciiFail("xn--4kj.xn--p01x", false); } // [V7]
15247test { try toAsciiFail("xn--4kj.xn--p01x", true); } // [V7]
617615248test { try toUnicodeFail("xn--4kj.xn--0ug56448b"); } // [C1, V7]
15249test { try toAsciiFail("xn--4kj.xn--0ug56448b", false); } // [C1, V7]
15250test { try toAsciiFail("xn--4kj.xn--0ug56448b", true); } // [C1, V7]
617715251test { try toUnicodeFail("\xe2\xb4\x8d\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7]
15252test { try toAsciiFail("\xe2\xb4\x8d\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c", false); } // [C1, V7]
15253test { try toAsciiFail("\xe2\xb4\x8d\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c", true); } // [V7]
617815254test { try toUnicodeFail("xn--lnd.xn--p01x"); } // [V7]
15255test { try toAsciiFail("xn--lnd.xn--p01x", false); } // [V7]
15256test { try toAsciiFail("xn--lnd.xn--p01x", true); } // [V7]
617915257test { try toUnicodeFail("xn--lnd.xn--0ug56448b"); } // [C1, V7]
15258test { try toAsciiFail("xn--lnd.xn--0ug56448b", false); } // [C1, V7]
15259test { try toAsciiFail("xn--lnd.xn--0ug56448b", true); } // [C1, V7]
618015260test { try toUnicodeFail("\xf2\x89\x9f\x82\xf3\xa0\xb5\xa3.\xf0\x90\xab\xab\xe1\xa9\xa0\xf3\xb4\xba\x96\xe1\xad\x84"); } // [B2, B3, B6, V7]
15261test { try toAsciiFail("\xf2\x89\x9f\x82\xf3\xa0\xb5\xa3.\xf0\x90\xab\xab\xe1\xa9\xa0\xf3\xb4\xba\x96\xe1\xad\x84", false); } // [B2, B3, B6, V7]
15262test { try toAsciiFail("\xf2\x89\x9f\x82\xf3\xa0\xb5\xa3.\xf0\x90\xab\xab\xe1\xa9\xa0\xf3\xb4\xba\x96\xe1\xad\x84", true); } // [B2, B3, B6, V7]
618115263test { try toUnicodeFail("xn--9u37blu98h.xn--jof13bt568cork1j"); } // [B2, B3, B6, V7]
15264test { try toAsciiFail("xn--9u37blu98h.xn--jof13bt568cork1j", false); } // [B2, B3, B6, V7]
15265test { try toAsciiFail("xn--9u37blu98h.xn--jof13bt568cork1j", true); } // [B2, B3, B6, V7]
618215266test { try toUnicodeFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1]
15267test { try toAsciiFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8", false); } // [B1]
15268test { try toAsciiFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8", true); } // [B1]
618315269test { try toUnicodeFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1]
15270test { try toAsciiFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8", false); } // [B1]
15271test { try toAsciiFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8", true); } // [B1]
618415272test { try toUnicodeFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1]
15273test { try toAsciiFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8", false); } // [B1]
15274test { try toAsciiFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8", true); } // [B1]
618515275test { try toUnicodeFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1]
15276test { try toAsciiFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8", false); } // [B1]
15277test { try toAsciiFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8", true); } // [B1]
618615278test { try toUnicodeFail("xn--i7e163ct2d.xn--vwj7372e"); } // [B1]
15279test { try toAsciiFail("xn--i7e163ct2d.xn--vwj7372e", false); } // [B1]
15280test { try toAsciiFail("xn--i7e163ct2d.xn--vwj7372e", true); } // [B1]
618715281test { try toUnicodeFail("\xf4\x81\x95\x9c\xf0\x90\xb9\xa7\xf0\x9e\xad\x81\xf0\x90\xb9\xa9\xe3\x80\x82\xe1\x82\xa8\xf0\x90\xab\xae\xe1\x82\xaf"); } // [B5, B6, V7]
15282test { try toAsciiFail("\xf4\x81\x95\x9c\xf0\x90\xb9\xa7\xf0\x9e\xad\x81\xf0\x90\xb9\xa9\xe3\x80\x82\xe1\x82\xa8\xf0\x90\xab\xae\xe1\x82\xaf", false); } // [B5, B6, V7]
15283test { try toAsciiFail("\xf4\x81\x95\x9c\xf0\x90\xb9\xa7\xf0\x9e\xad\x81\xf0\x90\xb9\xa9\xe3\x80\x82\xe1\x82\xa8\xf0\x90\xab\xae\xe1\x82\xaf", true); } // [B5, B6, V7]
618815284test { try toUnicodeFail("\xf4\x81\x95\x9c\xf0\x90\xb9\xa7\xf0\x9e\xad\x81\xf0\x90\xb9\xa9\xe3\x80\x82\xe2\xb4\x88\xf0\x90\xab\xae\xe2\xb4\x8f"); } // [B5, B6, V7]
15285test { try toAsciiFail("\xf4\x81\x95\x9c\xf0\x90\xb9\xa7\xf0\x9e\xad\x81\xf0\x90\xb9\xa9\xe3\x80\x82\xe2\xb4\x88\xf0\x90\xab\xae\xe2\xb4\x8f", false); } // [B5, B6, V7]
15286test { try toAsciiFail("\xf4\x81\x95\x9c\xf0\x90\xb9\xa7\xf0\x9e\xad\x81\xf0\x90\xb9\xa9\xe3\x80\x82\xe2\xb4\x88\xf0\x90\xab\xae\xe2\xb4\x8f", true); } // [B5, B6, V7]
618915287test { try toUnicodeFail("xn--fo0de1270ope54j.xn--zkjo0151o"); } // [B5, B6, V7]
15288test { try toAsciiFail("xn--fo0de1270ope54j.xn--zkjo0151o", false); } // [B5, B6, V7]
15289test { try toAsciiFail("xn--fo0de1270ope54j.xn--zkjo0151o", true); } // [B5, B6, V7]
619015290test { try toUnicodeFail("xn--fo0de1270ope54j.xn--gndo2033q"); } // [B5, B6, V7]
15291test { try toAsciiFail("xn--fo0de1270ope54j.xn--gndo2033q", false); } // [B5, B6, V7]
15292test { try toAsciiFail("xn--fo0de1270ope54j.xn--gndo2033q", true); } // [B5, B6, V7]
619115293test { try toUnicodeFail("\xf0\x9e\xa0\x82\xe3\x80\x82\xea\xa4\xa6"); } // [B1, V6]
15294test { try toAsciiFail("\xf0\x9e\xa0\x82\xe3\x80\x82\xea\xa4\xa6", false); } // [B1, V6]
15295test { try toAsciiFail("\xf0\x9e\xa0\x82\xe3\x80\x82\xea\xa4\xa6", true); } // [B1, V6]
619215296test { try toUnicodeFail("xn--145h.xn--ti9a"); } // [B1, V6]
15297test { try toAsciiFail("xn--145h.xn--ti9a", false); } // [B1, V6]
15298test { try toAsciiFail("xn--145h.xn--ti9a", true); } // [B1, V6]
619315299test { try toUnicodeFail("\xf0\x9d\x9f\x94\xf0\x90\xb9\xab\xef\xbc\x8e\xdc\xb3\xe1\x80\xb7\xef\xbc\x99\xea\xa1\x87"); } // [B1, V6]
15300test { try toAsciiFail("\xf0\x9d\x9f\x94\xf0\x90\xb9\xab\xef\xbc\x8e\xdc\xb3\xe1\x80\xb7\xef\xbc\x99\xea\xa1\x87", false); } // [B1, V6]
15301test { try toAsciiFail("\xf0\x9d\x9f\x94\xf0\x90\xb9\xab\xef\xbc\x8e\xdc\xb3\xe1\x80\xb7\xef\xbc\x99\xea\xa1\x87", true); } // [B1, V6]
619415302test { try toUnicodeFail("\xf0\x9d\x9f\x94\xf0\x90\xb9\xab\xef\xbc\x8e\xe1\x80\xb7\xdc\xb3\xef\xbc\x99\xea\xa1\x87"); } // [B1, V6]
15303test { try toAsciiFail("\xf0\x9d\x9f\x94\xf0\x90\xb9\xab\xef\xbc\x8e\xe1\x80\xb7\xdc\xb3\xef\xbc\x99\xea\xa1\x87", false); } // [B1, V6]
15304test { try toAsciiFail("\xf0\x9d\x9f\x94\xf0\x90\xb9\xab\xef\xbc\x8e\xe1\x80\xb7\xdc\xb3\xef\xbc\x99\xea\xa1\x87", true); } // [B1, V6]
619515305test { try toUnicodeFail("6\xf0\x90\xb9\xab.\xe1\x80\xb7\xdc\xb39\xea\xa1\x87"); } // [B1, V6]
15306test { try toAsciiFail("6\xf0\x90\xb9\xab.\xe1\x80\xb7\xdc\xb39\xea\xa1\x87", false); } // [B1, V6]
15307test { try toAsciiFail("6\xf0\x90\xb9\xab.\xe1\x80\xb7\xdc\xb39\xea\xa1\x87", true); } // [B1, V6]
619615308test { try toUnicodeFail("xn--6-t26i.xn--9-91c730e8u8n"); } // [B1, V6]
15309test { try toAsciiFail("xn--6-t26i.xn--9-91c730e8u8n", false); } // [B1, V6]
15310test { try toAsciiFail("xn--6-t26i.xn--9-91c730e8u8n", true); } // [B1, V6]
619715311test { try toUnicodeFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6\xef\xbc\x8e\xdb\x98"); } // [B1, V6, V7]
15312test { try toAsciiFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6\xef\xbc\x8e\xdb\x98", false); } // [B1, V6, V7]
15313test { try toAsciiFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6\xef\xbc\x8e\xdb\x98", true); } // [B1, V6, V7]
619815314test { try toUnicodeFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6.\xdb\x98"); } // [B1, V6, V7]
15315test { try toAsciiFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6.\xdb\x98", false); } // [B1, V6, V7]
15316test { try toAsciiFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6.\xdb\x98", true); } // [B1, V6, V7]
619915317test { try toUnicodeFail("xn--lfb19ct414i.xn--olb"); } // [B1, V6, V7]
15318test { try toAsciiFail("xn--lfb19ct414i.xn--olb", false); } // [B1, V6, V7]
15319test { try toAsciiFail("xn--lfb19ct414i.xn--olb", true); } // [B1, V6, V7]
620015320test { try toUnicodeFail("\xe2\x9c\x86\xf1\xb1\x94\xa9\xea\xa1\x8b\xef\xbc\x8e\xd8\xb2\xe2\x80\x8d\xf0\x9e\xa3\xb4"); } // [B1, C2, V7]
15321test { try toAsciiFail("\xe2\x9c\x86\xf1\xb1\x94\xa9\xea\xa1\x8b\xef\xbc\x8e\xd8\xb2\xe2\x80\x8d\xf0\x9e\xa3\xb4", false); } // [B1, C2, V7]
15322test { try toAsciiFail("\xe2\x9c\x86\xf1\xb1\x94\xa9\xea\xa1\x8b\xef\xbc\x8e\xd8\xb2\xe2\x80\x8d\xf0\x9e\xa3\xb4", true); } // [B1, V7]
620115323test { try toUnicodeFail("\xe2\x9c\x86\xf1\xb1\x94\xa9\xea\xa1\x8b.\xd8\xb2\xe2\x80\x8d\xf0\x9e\xa3\xb4"); } // [B1, C2, V7]
15324test { try toAsciiFail("\xe2\x9c\x86\xf1\xb1\x94\xa9\xea\xa1\x8b.\xd8\xb2\xe2\x80\x8d\xf0\x9e\xa3\xb4", false); } // [B1, C2, V7]
15325test { try toAsciiFail("\xe2\x9c\x86\xf1\xb1\x94\xa9\xea\xa1\x8b.\xd8\xb2\xe2\x80\x8d\xf0\x9e\xa3\xb4", true); } // [B1, V7]
620215326test { try toUnicodeFail("xn--1biv525bcix0d.xn--xgb6828v"); } // [B1, V7]
15327test { try toAsciiFail("xn--1biv525bcix0d.xn--xgb6828v", false); } // [B1, V7]
15328test { try toAsciiFail("xn--1biv525bcix0d.xn--xgb6828v", true); } // [B1, V7]
620315329test { try toUnicodeFail("xn--1biv525bcix0d.xn--xgb253k0m73a"); } // [B1, C2, V7]
15330test { try toAsciiFail("xn--1biv525bcix0d.xn--xgb253k0m73a", false); } // [B1, C2, V7]
15331test { try toAsciiFail("xn--1biv525bcix0d.xn--xgb253k0m73a", true); } // [B1, C2, V7]
620415332test { try toUnicodeFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xf0\x9e\xb8\x8d-\xef\xbc\x8e\xe2\x89\xa0\xf2\x83\x81\x9f\xf0\x91\x8b\xaa"); } // [B1, B2, B3, V3, V7]
15333test { try toAsciiFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xf0\x9e\xb8\x8d-\xef\xbc\x8e\xe2\x89\xa0\xf2\x83\x81\x9f\xf0\x91\x8b\xaa", false); } // [B1, B2, B3, V3, V7]
15334test { try toAsciiFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xf0\x9e\xb8\x8d-\xef\xbc\x8e\xe2\x89\xa0\xf2\x83\x81\x9f\xf0\x91\x8b\xaa", true); } // [B1, B2, B3, V3, V7]
620515335test { try toUnicodeFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xf0\x9e\xb8\x8d-\xef\xbc\x8e=\xcc\xb8\xf2\x83\x81\x9f\xf0\x91\x8b\xaa"); } // [B1, B2, B3, V3, V7]
15336test { try toAsciiFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xf0\x9e\xb8\x8d-\xef\xbc\x8e=\xcc\xb8\xf2\x83\x81\x9f\xf0\x91\x8b\xaa", false); } // [B1, B2, B3, V3, V7]
15337test { try toAsciiFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xf0\x9e\xb8\x8d-\xef\xbc\x8e=\xcc\xb8\xf2\x83\x81\x9f\xf0\x91\x8b\xaa", true); } // [B1, B2, B3, V3, V7]
620615338test { try toUnicodeFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xd9\x86-.\xe2\x89\xa0\xf2\x83\x81\x9f\xf0\x91\x8b\xaa"); } // [B1, B2, B3, V3, V7]
15339test { try toAsciiFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xd9\x86-.\xe2\x89\xa0\xf2\x83\x81\x9f\xf0\x91\x8b\xaa", false); } // [B1, B2, B3, V3, V7]
15340test { try toAsciiFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xd9\x86-.\xe2\x89\xa0\xf2\x83\x81\x9f\xf0\x91\x8b\xaa", true); } // [B1, B2, B3, V3, V7]
620715341test { try toUnicodeFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xd9\x86-.=\xcc\xb8\xf2\x83\x81\x9f\xf0\x91\x8b\xaa"); } // [B1, B2, B3, V3, V7]
15342test { try toAsciiFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xd9\x86-.=\xcc\xb8\xf2\x83\x81\x9f\xf0\x91\x8b\xaa", false); } // [B1, B2, B3, V3, V7]
15343test { try toAsciiFail("\xe0\xa1\x85\xf1\x83\xbe\xb0\xd9\x86-.=\xcc\xb8\xf2\x83\x81\x9f\xf0\x91\x8b\xaa", true); } // [B1, B2, B3, V3, V7]
620815344test { try toUnicodeFail("xn----qoc64my971s.xn--1ch7585g76o3c"); } // [B1, B2, B3, V3, V7]
15345test { try toAsciiFail("xn----qoc64my971s.xn--1ch7585g76o3c", false); } // [B1, B2, B3, V3, V7]
15346test { try toAsciiFail("xn----qoc64my971s.xn--1ch7585g76o3c", true); } // [B1, B2, B3, V3, V7]
620915347test { try toUnicodePass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.\xe7\xac\xa0"); }
621015348test { try toAsciiPass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.xn--6vz", false); }
621115349test { try toAsciiPass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.xn--6vz", true); }
......@@ -6219,187 +15357,530 @@ test { try toUnicodePass("3.xn--6vz", "3.\xe7\xac\xa0"); }
621915357test { try toAsciiPass("3.xn--6vz", "3.xn--6vz", false); }
622015358test { try toAsciiPass("3.xn--6vz", "3.xn--6vz", true); }
622115359test { try toUnicodeFail("-\xe2\x80\x8d.\xe1\x82\xbe\xf0\x90\x8b\xb7"); } // [C2, V3]
15360test { try toAsciiFail("-\xe2\x80\x8d.\xe1\x82\xbe\xf0\x90\x8b\xb7", false); } // [C2, V3]
15361test { try toAsciiFail("-\xe2\x80\x8d.\xe1\x82\xbe\xf0\x90\x8b\xb7", true); } // [V3]
622215362test { try toUnicodeFail("-\xe2\x80\x8d.\xe2\xb4\x9e\xf0\x90\x8b\xb7"); } // [C2, V3]
15363test { try toAsciiFail("-\xe2\x80\x8d.\xe2\xb4\x9e\xf0\x90\x8b\xb7", false); } // [C2, V3]
15364test { try toAsciiFail("-\xe2\x80\x8d.\xe2\xb4\x9e\xf0\x90\x8b\xb7", true); } // [V3]
622315365test { try toUnicodeFail("-.xn--mlj8559d"); } // [V3]
15366test { try toAsciiFail("-.xn--mlj8559d", false); } // [V3]
15367test { try toAsciiFail("-.xn--mlj8559d", true); } // [V3]
622415368test { try toUnicodeFail("xn----ugn.xn--mlj8559d"); } // [C2, V3]
15369test { try toAsciiFail("xn----ugn.xn--mlj8559d", false); } // [C2, V3]
15370test { try toAsciiFail("xn----ugn.xn--mlj8559d", true); } // [C2, V3]
622515371test { try toUnicodeFail("-.xn--2nd2315j"); } // [V3, V7]
15372test { try toAsciiFail("-.xn--2nd2315j", false); } // [V3, V7]
15373test { try toAsciiFail("-.xn--2nd2315j", true); } // [V3, V7]
622615374test { try toUnicodeFail("xn----ugn.xn--2nd2315j"); } // [C2, V3, V7]
15375test { try toAsciiFail("xn----ugn.xn--2nd2315j", false); } // [C2, V3, V7]
15376test { try toAsciiFail("xn----ugn.xn--2nd2315j", true); } // [C2, V3, V7]
622715377test { try toUnicodeFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
15378test { try toAsciiFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", false); } // [C2, V6]
15379test { try toAsciiFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", true); } // [V6]
622815380test { try toUnicodeFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
15381test { try toAsciiFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1.\xe0\xaf\x8d", false); } // [C2, V6]
15382test { try toAsciiFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1.\xe0\xaf\x8d", true); } // [V6]
622915383test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
15384test { try toAsciiFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1.\xe0\xaf\x8d", false); } // [C2, V6]
15385test { try toAsciiFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1.\xe0\xaf\x8d", true); } // [V6]
623015386test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
15387test { try toAsciiFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1.\xe0\xaf\x8d", false); } // [C2, V6]
15388test { try toAsciiFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1.\xe0\xaf\x8d", true); } // [V6]
623115389test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
15390test { try toAsciiFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1.\xe0\xaf\x8d", false); } // [C2, V6]
15391test { try toAsciiFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1.\xe0\xaf\x8d", true); } // [V6]
623215392test { try toUnicodeFail("xn--ss-ubc826a.xn--xmc"); } // [V6]
15393test { try toAsciiFail("xn--ss-ubc826a.xn--xmc", false); } // [V6]
15394test { try toAsciiFail("xn--ss-ubc826a.xn--xmc", true); } // [V6]
623315395test { try toUnicodeFail("xn--ss-ubc826ab34b.xn--xmc"); } // [C2, V6]
15396test { try toAsciiFail("xn--ss-ubc826ab34b.xn--xmc", false); } // [C2, V6]
15397test { try toAsciiFail("xn--ss-ubc826ab34b.xn--xmc", true); } // [C2, V6]
623415398test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
15399test { try toAsciiFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1.\xe0\xaf\x8d", false); } // [C2, V6]
15400test { try toAsciiFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1.\xe0\xaf\x8d", true); } // [V6]
623515401test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
15402test { try toAsciiFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1.\xe0\xaf\x8d", false); } // [C2, V6]
15403test { try toAsciiFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1.\xe0\xaf\x8d", true); } // [V6]
623615404test { try toUnicodeFail("xn--zca39lk1di19a.xn--xmc"); } // [C2, V6]
15405test { try toAsciiFail("xn--zca39lk1di19a.xn--xmc", false); } // [C2, V6]
15406test { try toAsciiFail("xn--zca39lk1di19a.xn--xmc", true); } // [C2, V6]
623715407test { try toUnicodeFail("xn--zca19ln1di19a.xn--xmc"); } // [C2, V6]
15408test { try toAsciiFail("xn--zca19ln1di19a.xn--xmc", false); } // [C2, V6]
15409test { try toAsciiFail("xn--zca19ln1di19a.xn--xmc", true); } // [C2, V6]
623815410test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
15411test { try toAsciiFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", false); } // [C2, V6]
15412test { try toAsciiFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", true); } // [V6]
623915413test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
15414test { try toAsciiFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", false); } // [C2, V6]
15415test { try toAsciiFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", true); } // [V6]
624015416test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
15417test { try toAsciiFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", false); } // [C2, V6]
15418test { try toAsciiFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", true); } // [V6]
624115419test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
15420test { try toAsciiFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", false); } // [C2, V6]
15421test { try toAsciiFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", true); } // [V6]
624215422test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
15423test { try toAsciiFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", false); } // [C2, V6]
15424test { try toAsciiFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d", true); } // [V6]
624315425test { try toUnicodeFail("\xe2\x89\xa0\xef\xbc\x8e\xe2\x80\x8d"); } // [C2]
15426test { try toAsciiFail("\xe2\x89\xa0\xef\xbc\x8e\xe2\x80\x8d", false); } // [C2]
15427test { try toAsciiFail("\xe2\x89\xa0\xef\xbc\x8e\xe2\x80\x8d", true); } // [A4_2]
624415428test { try toUnicodeFail("=\xcc\xb8\xef\xbc\x8e\xe2\x80\x8d"); } // [C2]
15429test { try toAsciiFail("=\xcc\xb8\xef\xbc\x8e\xe2\x80\x8d", false); } // [C2]
15430test { try toAsciiFail("=\xcc\xb8\xef\xbc\x8e\xe2\x80\x8d", true); } // [A4_2]
624515431test { try toUnicodeFail("\xe2\x89\xa0.\xe2\x80\x8d"); } // [C2]
15432test { try toAsciiFail("\xe2\x89\xa0.\xe2\x80\x8d", false); } // [C2]
15433test { try toAsciiFail("\xe2\x89\xa0.\xe2\x80\x8d", true); } // [A4_2]
624615434test { try toUnicodeFail("=\xcc\xb8.\xe2\x80\x8d"); } // [C2]
15435test { try toAsciiFail("=\xcc\xb8.\xe2\x80\x8d", false); } // [C2]
15436test { try toAsciiFail("=\xcc\xb8.\xe2\x80\x8d", true); } // [A4_2]
624715437test { try toUnicodePass("xn--1ch.", "\xe2\x89\xa0."); }
15438test { try toAsciiFail("xn--1ch.", false); } // [A4_2]
15439test { try toAsciiFail("xn--1ch.", true); } // [A4_2]
624815440test { try toUnicodePass("\xe2\x89\xa0.", "\xe2\x89\xa0."); }
15441test { try toAsciiFail("\xe2\x89\xa0.", false); } // [A4_2]
15442test { try toAsciiFail("\xe2\x89\xa0.", true); } // [A4_2]
624915443test { try toUnicodePass("=\xcc\xb8.", "\xe2\x89\xa0."); }
15444test { try toAsciiFail("=\xcc\xb8.", false); } // [A4_2]
15445test { try toAsciiFail("=\xcc\xb8.", true); } // [A4_2]
625015446test { try toUnicodeFail("xn--1ch.xn--1ug"); } // [C2]
15447test { try toAsciiFail("xn--1ch.xn--1ug", false); } // [C2]
15448test { try toAsciiFail("xn--1ch.xn--1ug", true); } // [C2]
625115449test { try toUnicodeFail("\xef\xb0\x81\xef\xbd\xa1\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b"); } // [B1, V6, V7]
15450test { try toAsciiFail("\xef\xb0\x81\xef\xbd\xa1\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b", false); } // [B1, V6, V7]
15451test { try toAsciiFail("\xef\xb0\x81\xef\xbd\xa1\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b", true); } // [B1, V6, V7]
625215452test { try toUnicodeFail("\xd8\xa6\xd8\xad\xe3\x80\x82\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b"); } // [B1, V6, V7]
15453test { try toAsciiFail("\xd8\xa6\xd8\xad\xe3\x80\x82\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b", false); } // [B1, V6, V7]
15454test { try toAsciiFail("\xd8\xa6\xd8\xad\xe3\x80\x82\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b", true); } // [B1, V6, V7]
625315455test { try toUnicodeFail("\xd9\x8a\xd9\x94\xd8\xad\xe3\x80\x82\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b"); } // [B1, V6, V7]
15456test { try toAsciiFail("\xd9\x8a\xd9\x94\xd8\xad\xe3\x80\x82\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b", false); } // [B1, V6, V7]
15457test { try toAsciiFail("\xd9\x8a\xd9\x94\xd8\xad\xe3\x80\x82\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b", true); } // [B1, V6, V7]
625415458test { try toUnicodeFail("xn--lgbo.xn--2rc021dcxkrx55t"); } // [B1, V6, V7]
15459test { try toAsciiFail("xn--lgbo.xn--2rc021dcxkrx55t", false); } // [B1, V6, V7]
15460test { try toAsciiFail("xn--lgbo.xn--2rc021dcxkrx55t", true); } // [B1, V6, V7]
625515461test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
15462test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf", false); } // [V7]
15463test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf", true); } // [V7]
625615464test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
15465test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82.\xcf\x82\xf0\x90\xa8\xbf", false); } // [V7]
15466test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82.\xcf\x82\xf0\x90\xa8\xbf", true); } // [V7]
625715467test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xce\xa3\xf0\x90\xa8\xbf"); } // [V7]
15468test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xce\xa3\xf0\x90\xa8\xbf", false); } // [V7]
15469test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xce\xa3\xf0\x90\xa8\xbf", true); } // [V7]
625815470test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
15471test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x82\xf0\x90\xa8\xbf", false); } // [V7]
15472test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x82\xf0\x90\xa8\xbf", true); } // [V7]
625915473test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x83\xf0\x90\xa8\xbf"); } // [V7]
15474test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x83\xf0\x90\xa8\xbf", false); } // [V7]
15475test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x83\xf0\x90\xa8\xbf", true); } // [V7]
626015476test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x83\xf0\x90\xa8\xbf"); } // [V7]
15477test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x83\xf0\x90\xa8\xbf", false); } // [V7]
15478test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x83\xf0\x90\xa8\xbf", true); } // [V7]
626115479test { try toUnicodeFail("xn--4xa502av8297a.xn--4xa6055k"); } // [V7]
15480test { try toAsciiFail("xn--4xa502av8297a.xn--4xa6055k", false); } // [V7]
15481test { try toAsciiFail("xn--4xa502av8297a.xn--4xa6055k", true); } // [V7]
626215482test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
15483test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x82\xf0\x90\xa8\xbf", false); } // [V7]
15484test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x82\xf0\x90\xa8\xbf", true); } // [V7]
626315485test { try toUnicodeFail("xn--4xa502av8297a.xn--3xa8055k"); } // [V7]
15486test { try toAsciiFail("xn--4xa502av8297a.xn--3xa8055k", false); } // [V7]
15487test { try toAsciiFail("xn--4xa502av8297a.xn--3xa8055k", true); } // [V7]
626415488test { try toUnicodeFail("xn--3xa702av8297a.xn--3xa8055k"); } // [V7]
15489test { try toAsciiFail("xn--3xa702av8297a.xn--3xa8055k", false); } // [V7]
15490test { try toAsciiFail("xn--3xa702av8297a.xn--3xa8055k", true); } // [V7]
626515491test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xce\xa3\xf0\x90\xa8\xbf"); } // [V7]
15492test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xce\xa3\xf0\x90\xa8\xbf", false); } // [V7]
15493test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xce\xa3\xf0\x90\xa8\xbf", true); } // [V7]
626615494test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
15495test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf", false); } // [V7]
15496test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf", true); } // [V7]
626715497test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf"); } // [V7]
15498test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf", false); } // [V7]
15499test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf", true); } // [V7]
626815500test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf"); } // [V7]
15501test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf", false); } // [V7]
15502test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf", true); } // [V7]
626915503test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
15504test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf", false); } // [V7]
15505test { try toAsciiFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf", true); } // [V7]
627015506test { try toUnicodeFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xef\xbd\xa1\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe1\x82\xb9"); } // [B2, B3, V7]
15507test { try toAsciiFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xef\xbd\xa1\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe1\x82\xb9", false); } // [B2, B3, V7]
15508test { try toAsciiFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xef\xbd\xa1\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe1\x82\xb9", true); } // [B2, B3, V7]
627115509test { try toUnicodeFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xe3\x80\x82\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe1\x82\xb9"); } // [B2, B3, V7]
15510test { try toAsciiFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xe3\x80\x82\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe1\x82\xb9", false); } // [B2, B3, V7]
15511test { try toAsciiFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xe3\x80\x82\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe1\x82\xb9", true); } // [B2, B3, V7]
627215512test { try toUnicodeFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xe3\x80\x82\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe2\xb4\x99"); } // [B2, B3, V7]
15513test { try toAsciiFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xe3\x80\x82\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe2\xb4\x99", false); } // [B2, B3, V7]
15514test { try toAsciiFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xe3\x80\x82\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe2\xb4\x99", true); } // [B2, B3, V7]
627315515test { try toUnicodeFail("xn--zsb09cu46vjs6f.xn--gmf469fr883am5r1e"); } // [B2, B3, V7]
15516test { try toAsciiFail("xn--zsb09cu46vjs6f.xn--gmf469fr883am5r1e", false); } // [B2, B3, V7]
15517test { try toAsciiFail("xn--zsb09cu46vjs6f.xn--gmf469fr883am5r1e", true); } // [B2, B3, V7]
627415518test { try toUnicodeFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xef\xbd\xa1\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe2\xb4\x99"); } // [B2, B3, V7]
15519test { try toAsciiFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xef\xbd\xa1\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe2\xb4\x99", false); } // [B2, B3, V7]
15520test { try toAsciiFail("\xf0\x90\xab\x93\xdf\x98\xe7\x89\x85\xe0\xa3\xb8\xef\xbd\xa1\xf0\x9e\xa6\xa4\xe1\xa8\x97\xf2\xb1\x8d\xb0\xe2\xb4\x99", true); } // [B2, B3, V7]
627515521test { try toUnicodeFail("xn--zsb09cu46vjs6f.xn--xnd909bv540bm5k9d"); } // [B2, B3, V7]
15522test { try toAsciiFail("xn--zsb09cu46vjs6f.xn--xnd909bv540bm5k9d", false); } // [B2, B3, V7]
15523test { try toAsciiFail("xn--zsb09cu46vjs6f.xn--xnd909bv540bm5k9d", true); } // [B2, B3, V7]
627615524test { try toUnicodeFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xeb\xa5\xa7"); } // [V7]
15525test { try toAsciiFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xeb\xa5\xa7", false); } // [V7]
15526test { try toAsciiFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xeb\xa5\xa7", true); } // [V7]
627715527test { try toUnicodeFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6"); } // [V7]
15528test { try toAsciiFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6", false); } // [V7]
15529test { try toAsciiFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6", true); } // [V7]
627815530test { try toUnicodeFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xeb\xa5\xa7"); } // [V7]
15531test { try toAsciiFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xeb\xa5\xa7", false); } // [V7]
15532test { try toAsciiFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xeb\xa5\xa7", true); } // [V7]
627915533test { try toUnicodeFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6"); } // [V7]
15534test { try toAsciiFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6", false); } // [V7]
15535test { try toAsciiFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6", true); } // [V7]
628015536test { try toUnicodeFail("xn--s264a.xn--pw2b"); } // [V7]
15537test { try toAsciiFail("xn--s264a.xn--pw2b", false); } // [V7]
15538test { try toAsciiFail("xn--s264a.xn--pw2b", true); } // [V7]
628115539test { try toUnicodeFail("\xf0\x90\xb9\xb7\xe2\x80\x8d\xe3\x80\x82\xf3\x89\xb5\xa2"); } // [B1, C2, V7]
15540test { try toAsciiFail("\xf0\x90\xb9\xb7\xe2\x80\x8d\xe3\x80\x82\xf3\x89\xb5\xa2", false); } // [B1, C2, V7]
15541test { try toAsciiFail("\xf0\x90\xb9\xb7\xe2\x80\x8d\xe3\x80\x82\xf3\x89\xb5\xa2", true); } // [B1, V7]
628215542test { try toUnicodeFail("xn--vo0d.xn--8088d"); } // [B1, V7]
15543test { try toAsciiFail("xn--vo0d.xn--8088d", false); } // [B1, V7]
15544test { try toAsciiFail("xn--vo0d.xn--8088d", true); } // [B1, V7]
628315545test { try toUnicodeFail("xn--1ugx205g.xn--8088d"); } // [B1, C2, V7]
15546test { try toAsciiFail("xn--1ugx205g.xn--8088d", false); } // [B1, C2, V7]
15547test { try toAsciiFail("xn--1ugx205g.xn--8088d", true); } // [B1, C2, V7]
628415548test { try toUnicodeFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3]
15549test { try toAsciiFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-", false); } // [B1, B5, B6, V3]
15550test { try toAsciiFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-", true); } // [B1, B5, B6, V3]
628515551test { try toUnicodeFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3]
15552test { try toAsciiFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-", false); } // [B1, B5, B6, V3]
15553test { try toAsciiFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-", true); } // [B1, B5, B6, V3]
628615554test { try toUnicodeFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3]
15555test { try toAsciiFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-", false); } // [B1, B5, B6, V3]
15556test { try toAsciiFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-", true); } // [B1, B5, B6, V3]
628715557test { try toUnicodeFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3]
15558test { try toAsciiFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-", false); } // [B1, B5, B6, V3]
15559test { try toAsciiFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-", true); } // [B1, B5, B6, V3]
628815560test { try toUnicodeFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3]
15561test { try toAsciiFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-", false); } // [B1, B5, B6, V3]
15562test { try toAsciiFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-", true); } // [B1, B5, B6, V3]
628915563test { try toUnicodeFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3]
15564test { try toAsciiFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-", false); } // [B1, B5, B6, V3]
15565test { try toAsciiFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-", true); } // [B1, B5, B6, V3]
629015566test { try toUnicodeFail("xn--1kb147qfk3n.-"); } // [B1, B5, B6, V3]
15567test { try toAsciiFail("xn--1kb147qfk3n.-", false); } // [B1, B5, B6, V3]
15568test { try toAsciiFail("xn--1kb147qfk3n.-", true); } // [B1, B5, B6, V3]
629115569test { try toUnicodeFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3]
15570test { try toAsciiFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-", false); } // [B1, B5, B6, V3]
15571test { try toAsciiFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-", true); } // [B1, B5, B6, V3]
629215572test { try toUnicodeFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3]
15573test { try toAsciiFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-", false); } // [B1, B5, B6, V3]
15574test { try toAsciiFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-", true); } // [B1, B5, B6, V3]
629315575test { try toUnicodeFail("xn--1kb312c139t.-"); } // [B1, B5, B6, V3, V7]
15576test { try toAsciiFail("xn--1kb312c139t.-", false); } // [B1, B5, B6, V3, V7]
15577test { try toAsciiFail("xn--1kb312c139t.-", true); } // [B1, B5, B6, V3, V7]
629415578test { try toUnicodeFail("\xea\xa0\x86\xd9\xbb\xe2\x82\x86\xe1\xa1\x90\xe3\x80\x82\xf0\x9f\x9b\x87\xef\xb3\x9d"); } // [B1, V6]
15579test { try toAsciiFail("\xea\xa0\x86\xd9\xbb\xe2\x82\x86\xe1\xa1\x90\xe3\x80\x82\xf0\x9f\x9b\x87\xef\xb3\x9d", false); } // [B1, V6]
15580test { try toAsciiFail("\xea\xa0\x86\xd9\xbb\xe2\x82\x86\xe1\xa1\x90\xe3\x80\x82\xf0\x9f\x9b\x87\xef\xb3\x9d", true); } // [B1, V6]
629515581test { try toUnicodeFail("\xea\xa0\x86\xd9\xbb6\xe1\xa1\x90\xe3\x80\x82\xf0\x9f\x9b\x87\xd9\x8a\xd9\x85"); } // [B1, V6]
15582test { try toAsciiFail("\xea\xa0\x86\xd9\xbb6\xe1\xa1\x90\xe3\x80\x82\xf0\x9f\x9b\x87\xd9\x8a\xd9\x85", false); } // [B1, V6]
15583test { try toAsciiFail("\xea\xa0\x86\xd9\xbb6\xe1\xa1\x90\xe3\x80\x82\xf0\x9f\x9b\x87\xd9\x8a\xd9\x85", true); } // [B1, V6]
629615584test { try toUnicodeFail("xn--6-rrc018krt9k.xn--hhbj61429a"); } // [B1, V6]
15585test { try toAsciiFail("xn--6-rrc018krt9k.xn--hhbj61429a", false); } // [B1, V6]
15586test { try toAsciiFail("xn--6-rrc018krt9k.xn--hhbj61429a", true); } // [B1, V6]
629715587test { try toUnicodeFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa2"); } // [B1, V7]
15588test { try toAsciiFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa2", false); } // [B1, V7]
15589test { try toAsciiFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa2", true); } // [B1, V7]
629815590test { try toUnicodeFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa7\xd9\x93"); } // [B1, V7]
15591test { try toAsciiFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa7\xd9\x93", false); } // [B1, V7]
15592test { try toAsciiFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa7\xd9\x93", true); } // [B1, V7]
629915593test { try toUnicodeFail("xn--p292d.xn--hgb154ghrsvm2r"); } // [B1, V7]
15594test { try toAsciiFail("xn--p292d.xn--hgb154ghrsvm2r", false); } // [B1, V7]
15595test { try toAsciiFail("xn--p292d.xn--hgb154ghrsvm2r", true); } // [B1, V7]
630015596test { try toUnicodeFail("\xdf\x9f\xf2\xb5\x9a\x8c\xe3\x80\x82-\xdf\xa9"); } // [B1, B2, B3, V3, V7]
15597test { try toAsciiFail("\xdf\x9f\xf2\xb5\x9a\x8c\xe3\x80\x82-\xdf\xa9", false); } // [B1, B2, B3, V3, V7]
15598test { try toAsciiFail("\xdf\x9f\xf2\xb5\x9a\x8c\xe3\x80\x82-\xdf\xa9", true); } // [B1, B2, B3, V3, V7]
630115599test { try toUnicodeFail("xn--6sb88139l.xn----pdd"); } // [B1, B2, B3, V3, V7]
15600test { try toAsciiFail("xn--6sb88139l.xn----pdd", false); } // [B1, B2, B3, V3, V7]
15601test { try toAsciiFail("xn--6sb88139l.xn----pdd", true); } // [B1, B2, B3, V3, V7]
630215602test { try toUnicodeFail("\xcf\x82\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88"); } // [B1, B5, C1, V7]
15603test { try toAsciiFail("\xcf\x82\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88", false); } // [B1, B5, C1, V7]
15604test { try toAsciiFail("\xcf\x82\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88", true); } // [B5, V7]
630315605test { try toUnicodeFail("\xcf\x82\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1]
15606test { try toAsciiFail("\xcf\x82\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1.", false); } // [B1, B5, C1, A4_2]
15607test { try toAsciiFail("\xcf\x82\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1.", true); } // [B5, A4_2]
630415608test { try toUnicodeFail("\xce\xa3\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1]
15609test { try toAsciiFail("\xce\xa3\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1.", false); } // [B1, B5, C1, A4_2]
15610test { try toAsciiFail("\xce\xa3\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1.", true); } // [B5, A4_2]
630515611test { try toUnicodeFail("\xcf\x83\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1]
15612test { try toAsciiFail("\xcf\x83\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1.", false); } // [B1, B5, C1, A4_2]
15613test { try toAsciiFail("\xcf\x83\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1.", true); } // [B5, A4_2]
630615614test { try toUnicodeFail("xn--4xa49jux8r.xn--1-4ck."); } // [B5]
15615test { try toAsciiFail("xn--4xa49jux8r.xn--1-4ck.", false); } // [B5, A4_2]
15616test { try toAsciiFail("xn--4xa49jux8r.xn--1-4ck.", true); } // [B5, A4_2]
630715617test { try toUnicodeFail("xn--4xa49jux8r.xn--1-4ck691bba."); } // [B1, B5, C1]
15618test { try toAsciiFail("xn--4xa49jux8r.xn--1-4ck691bba.", false); } // [B1, B5, C1, A4_2]
15619test { try toAsciiFail("xn--4xa49jux8r.xn--1-4ck691bba.", true); } // [B1, B5, C1, A4_2]
630815620test { try toUnicodeFail("xn--3xa69jux8r.xn--1-4ck691bba."); } // [B1, B5, C1]
15621test { try toAsciiFail("xn--3xa69jux8r.xn--1-4ck691bba.", false); } // [B1, B5, C1, A4_2]
15622test { try toAsciiFail("xn--3xa69jux8r.xn--1-4ck691bba.", true); } // [B1, B5, C1, A4_2]
630915623test { try toUnicodeFail("\xce\xa3\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88"); } // [B1, B5, C1, V7]
15624test { try toAsciiFail("\xce\xa3\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88", false); } // [B1, B5, C1, V7]
15625test { try toAsciiFail("\xce\xa3\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88", true); } // [B5, V7]
631015626test { try toUnicodeFail("\xcf\x83\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88"); } // [B1, B5, C1, V7]
15627test { try toAsciiFail("\xcf\x83\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88", false); } // [B1, B5, C1, V7]
15628test { try toAsciiFail("\xcf\x83\xd9\x83\xe2\xbe\x91\xef\xbc\x8e\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c\xe2\x92\x88", true); } // [B5, V7]
631115629test { try toUnicodeFail("xn--4xa49jux8r.xn--pbf212d"); } // [B5, V7]
15630test { try toAsciiFail("xn--4xa49jux8r.xn--pbf212d", false); } // [B5, V7]
15631test { try toAsciiFail("xn--4xa49jux8r.xn--pbf212d", true); } // [B5, V7]
631215632test { try toUnicodeFail("xn--4xa49jux8r.xn--pbf519aba607b"); } // [B1, B5, C1, V7]
15633test { try toAsciiFail("xn--4xa49jux8r.xn--pbf519aba607b", false); } // [B1, B5, C1, V7]
15634test { try toAsciiFail("xn--4xa49jux8r.xn--pbf519aba607b", true); } // [B1, B5, C1, V7]
631315635test { try toUnicodeFail("xn--3xa69jux8r.xn--pbf519aba607b"); } // [B1, B5, C1, V7]
15636test { try toAsciiFail("xn--3xa69jux8r.xn--pbf519aba607b", false); } // [B1, B5, C1, V7]
15637test { try toAsciiFail("xn--3xa69jux8r.xn--pbf519aba607b", true); } // [B1, B5, C1, V7]
631415638test { try toUnicodeFail("\xe1\xa1\x86\xf0\x91\x93\x9d\xef\xbc\x8e\xf0\x9e\xb5\x86"); } // [V7]
15639test { try toAsciiFail("\xe1\xa1\x86\xf0\x91\x93\x9d\xef\xbc\x8e\xf0\x9e\xb5\x86", false); } // [V7]
15640test { try toAsciiFail("\xe1\xa1\x86\xf0\x91\x93\x9d\xef\xbc\x8e\xf0\x9e\xb5\x86", true); } // [V7]
631515641test { try toUnicodeFail("\xe1\xa1\x86\xf0\x91\x93\x9d.\xf0\x9e\xb5\x86"); } // [V7]
15642test { try toAsciiFail("\xe1\xa1\x86\xf0\x91\x93\x9d.\xf0\x9e\xb5\x86", false); } // [V7]
15643test { try toAsciiFail("\xe1\xa1\x86\xf0\x91\x93\x9d.\xf0\x9e\xb5\x86", true); } // [V7]
631615644test { try toUnicodeFail("xn--57e0440k.xn--k86h"); } // [V7]
15645test { try toAsciiFail("xn--57e0440k.xn--k86h", false); } // [V7]
15646test { try toAsciiFail("xn--57e0440k.xn--k86h", true); } // [V7]
631715647test { try toUnicodeFail("\xe0\xa9\x8d\xf0\xa6\x8d\x93\xe1\xb7\xae\xef\xbd\xa1\xe2\x80\x8c\xe0\xa2\xbd\xf1\x9d\xb9\xb2"); } // [B1, C1, V6, V7]
15648test { try toAsciiFail("\xe0\xa9\x8d\xf0\xa6\x8d\x93\xe1\xb7\xae\xef\xbd\xa1\xe2\x80\x8c\xe0\xa2\xbd\xf1\x9d\xb9\xb2", false); } // [B1, C1, V6, V7]
15649test { try toAsciiFail("\xe0\xa9\x8d\xf0\xa6\x8d\x93\xe1\xb7\xae\xef\xbd\xa1\xe2\x80\x8c\xe0\xa2\xbd\xf1\x9d\xb9\xb2", true); } // [B1, B2, B3, V6, V7]
631815650test { try toUnicodeFail("\xe0\xa9\x8d\xf0\xa6\x8d\x93\xe1\xb7\xae\xe3\x80\x82\xe2\x80\x8c\xe0\xa2\xbd\xf1\x9d\xb9\xb2"); } // [B1, C1, V6, V7]
15651test { try toAsciiFail("\xe0\xa9\x8d\xf0\xa6\x8d\x93\xe1\xb7\xae\xe3\x80\x82\xe2\x80\x8c\xe0\xa2\xbd\xf1\x9d\xb9\xb2", false); } // [B1, C1, V6, V7]
15652test { try toAsciiFail("\xe0\xa9\x8d\xf0\xa6\x8d\x93\xe1\xb7\xae\xe3\x80\x82\xe2\x80\x8c\xe0\xa2\xbd\xf1\x9d\xb9\xb2", true); } // [B1, B2, B3, V6, V7]
631915653test { try toUnicodeFail("xn--ybc461hph93b.xn--jzb29857e"); } // [B1, B2, B3, V6, V7]
15654test { try toAsciiFail("xn--ybc461hph93b.xn--jzb29857e", false); } // [B1, B2, B3, V6, V7]
15655test { try toAsciiFail("xn--ybc461hph93b.xn--jzb29857e", true); } // [B1, B2, B3, V6, V7]
632015656test { try toUnicodeFail("xn--ybc461hph93b.xn--jzb740j1y45h"); } // [B1, C1, V6, V7]
15657test { try toAsciiFail("xn--ybc461hph93b.xn--jzb740j1y45h", false); } // [B1, C1, V6, V7]
15658test { try toAsciiFail("xn--ybc461hph93b.xn--jzb740j1y45h", true); } // [B1, C1, V6, V7]
632115659test { try toUnicodeFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-\xef\xbc\x8e\xe2\x80\x8c\xeb\xa8\xbf"); } // [B1, B2, B3, C1, V3, V7]
15660test { try toAsciiFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-\xef\xbc\x8e\xe2\x80\x8c\xeb\xa8\xbf", false); } // [B1, B2, B3, C1, V3, V7]
15661test { try toAsciiFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-\xef\xbc\x8e\xe2\x80\x8c\xeb\xa8\xbf", true); } // [B2, B3, V3, V7]
632215662test { try toUnicodeFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-\xef\xbc\x8e\xe2\x80\x8c\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xae"); } // [B1, B2, B3, C1, V3, V7]
15663test { try toAsciiFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-\xef\xbc\x8e\xe2\x80\x8c\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xae", false); } // [B1, B2, B3, C1, V3, V7]
15664test { try toAsciiFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-\xef\xbc\x8e\xe2\x80\x8c\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xae", true); } // [B2, B3, V3, V7]
632315665test { try toUnicodeFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-.\xe2\x80\x8c\xeb\xa8\xbf"); } // [B1, B2, B3, C1, V3, V7]
15666test { try toAsciiFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-.\xe2\x80\x8c\xeb\xa8\xbf", false); } // [B1, B2, B3, C1, V3, V7]
15667test { try toAsciiFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-.\xe2\x80\x8c\xeb\xa8\xbf", true); } // [B2, B3, V3, V7]
632415668test { try toUnicodeFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-.\xe2\x80\x8c\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xae"); } // [B1, B2, B3, C1, V3, V7]
15669test { try toAsciiFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-.\xe2\x80\x8c\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xae", false); } // [B1, B2, B3, C1, V3, V7]
15670test { try toAsciiFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-.\xe2\x80\x8c\xe1\x84\x86\xe1\x85\xa5\xe1\x86\xae", true); } // [B2, B3, V3, V7]
632515671test { try toUnicodeFail("xn----dnc06f42153a.xn--v22b"); } // [B2, B3, V3, V7]
15672test { try toAsciiFail("xn----dnc06f42153a.xn--v22b", false); } // [B2, B3, V3, V7]
15673test { try toAsciiFail("xn----dnc06f42153a.xn--v22b", true); } // [B2, B3, V3, V7]
632615674test { try toUnicodeFail("xn----dnc06f42153a.xn--0ug1581d"); } // [B1, B2, B3, C1, V3, V7]
15675test { try toAsciiFail("xn----dnc06f42153a.xn--0ug1581d", false); } // [B1, B2, B3, C1, V3, V7]
15676test { try toAsciiFail("xn----dnc06f42153a.xn--0ug1581d", true); } // [B1, B2, B3, C1, V3, V7]
632715677test { try toUnicodeFail("\xf4\x8b\xbf\xa6\xef\xbd\xa1\xe1\xa0\xbd"); } // [V7]
15678test { try toAsciiFail("\xf4\x8b\xbf\xa6\xef\xbd\xa1\xe1\xa0\xbd", false); } // [V7]
15679test { try toAsciiFail("\xf4\x8b\xbf\xa6\xef\xbd\xa1\xe1\xa0\xbd", true); } // [V7]
632815680test { try toUnicodeFail("\xf4\x8b\xbf\xa6\xe3\x80\x82\xe1\xa0\xbd"); } // [V7]
15681test { try toAsciiFail("\xf4\x8b\xbf\xa6\xe3\x80\x82\xe1\xa0\xbd", false); } // [V7]
15682test { try toAsciiFail("\xf4\x8b\xbf\xa6\xe3\x80\x82\xe1\xa0\xbd", true); } // [V7]
632915683test { try toUnicodeFail("xn--j890g.xn--w7e"); } // [V7]
15684test { try toAsciiFail("xn--j890g.xn--w7e", false); } // [V7]
15685test { try toAsciiFail("xn--j890g.xn--w7e", true); } // [V7]
633015686test { try toUnicodeFail("\xe5\xac\x83\xf0\x9d\x8d\x8c\xef\xbc\x8e\xe2\x80\x8d\xe0\xad\x84"); } // [C2]
15687test { try toAsciiFail("\xe5\xac\x83\xf0\x9d\x8d\x8c\xef\xbc\x8e\xe2\x80\x8d\xe0\xad\x84", false); } // [C2]
15688test { try toAsciiFail("\xe5\xac\x83\xf0\x9d\x8d\x8c\xef\xbc\x8e\xe2\x80\x8d\xe0\xad\x84", true); } // [V6]
633115689test { try toUnicodeFail("\xe5\xac\x83\xf0\x9d\x8d\x8c.\xe2\x80\x8d\xe0\xad\x84"); } // [C2]
15690test { try toAsciiFail("\xe5\xac\x83\xf0\x9d\x8d\x8c.\xe2\x80\x8d\xe0\xad\x84", false); } // [C2]
15691test { try toAsciiFail("\xe5\xac\x83\xf0\x9d\x8d\x8c.\xe2\x80\x8d\xe0\xad\x84", true); } // [V6]
633215692test { try toUnicodeFail("xn--b6s0078f.xn--0ic"); } // [V6]
15693test { try toAsciiFail("xn--b6s0078f.xn--0ic", false); } // [V6]
15694test { try toAsciiFail("xn--b6s0078f.xn--0ic", true); } // [V6]
633315695test { try toUnicodeFail("xn--b6s0078f.xn--0ic557h"); } // [C2]
15696test { try toAsciiFail("xn--b6s0078f.xn--0ic557h", false); } // [C2]
15697test { try toAsciiFail("xn--b6s0078f.xn--0ic557h", true); } // [C2]
633415698test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7]
15699test { try toAsciiFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8", false); } // [B1, V7]
15700test { try toAsciiFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8", true); } // [B1, V7]
633515701test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7]
15702test { try toAsciiFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8", false); } // [B1, V7]
15703test { try toAsciiFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8", true); } // [B1, V7]
633615704test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7]
15705test { try toAsciiFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8", false); } // [B1, V7]
15706test { try toAsciiFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8", true); } // [B1, V7]
633715707test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7]
15708test { try toAsciiFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8", false); } // [B1, V7]
15709test { try toAsciiFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8", true); } // [B1, V7]
633815710test { try toUnicodeFail("xn--kfb866llx01a.xn--wp1gm3570b"); } // [B1, V7]
15711test { try toAsciiFail("xn--kfb866llx01a.xn--wp1gm3570b", false); } // [B1, V7]
15712test { try toAsciiFail("xn--kfb866llx01a.xn--wp1gm3570b", true); } // [B1, V7]
633915713test { try toUnicodeFail("\xf2\xab\xbe\xa5\xe0\xa2\xb7\xe1\x9f\x8c\xea\xa7\x80.\xf0\x9e\xbc\xa0"); } // [B5, V7]
15714test { try toAsciiFail("\xf2\xab\xbe\xa5\xe0\xa2\xb7\xe1\x9f\x8c\xea\xa7\x80.\xf0\x9e\xbc\xa0", false); } // [B5, V7]
15715test { try toAsciiFail("\xf2\xab\xbe\xa5\xe0\xa2\xb7\xe1\x9f\x8c\xea\xa7\x80.\xf0\x9e\xbc\xa0", true); } // [B5, V7]
634015716test { try toUnicodeFail("xn--dzb638ewm4i1iy1h.xn--3m7h"); } // [B5, V7]
15717test { try toAsciiFail("xn--dzb638ewm4i1iy1h.xn--3m7h", false); } // [B5, V7]
15718test { try toAsciiFail("xn--dzb638ewm4i1iy1h.xn--3m7h", true); } // [B5, V7]
634115719test { try toUnicodeFail("\xe2\x80\x8c.\xf1\x9f\x9b\xa4"); } // [C1, V7]
15720test { try toAsciiFail("\xe2\x80\x8c.\xf1\x9f\x9b\xa4", false); } // [C1, V7]
15721test { try toAsciiFail("\xe2\x80\x8c.\xf1\x9f\x9b\xa4", true); } // [V7, A4_2]
634215722test { try toUnicodeFail(".xn--q823a"); } // [V7, X4_2]
15723test { try toAsciiFail(".xn--q823a", false); } // [V7, A4_2]
15724test { try toAsciiFail(".xn--q823a", true); } // [V7, A4_2]
634315725test { try toUnicodeFail("xn--0ug.xn--q823a"); } // [C1, V7]
15726test { try toAsciiFail("xn--0ug.xn--q823a", false); } // [C1, V7]
15727test { try toAsciiFail("xn--0ug.xn--q823a", true); } // [C1, V7]
634415728test { try toUnicodeFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91"); } // [V7]
15729test { try toAsciiFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91", false); } // [V7]
15730test { try toAsciiFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91", true); } // [V7]
634515731test { try toUnicodeFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85.\xf0\x90\xb8\x91"); } // [V7]
15732test { try toAsciiFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85.\xf0\x90\xb8\x91", false); } // [V7]
15733test { try toAsciiFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85.\xf0\x90\xb8\x91", true); } // [V7]
634615734test { try toUnicodeFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85.\xf0\x90\xb8\x91"); } // [V7]
15735test { try toAsciiFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85.\xf0\x90\xb8\x91", false); } // [V7]
15736test { try toAsciiFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85.\xf0\x90\xb8\x91", true); } // [V7]
634715737test { try toUnicodeFail("xn--ukju77frl47r.xn--yl0d"); } // [V7]
15738test { try toAsciiFail("xn--ukju77frl47r.xn--yl0d", false); } // [V7]
15739test { try toAsciiFail("xn--ukju77frl47r.xn--yl0d", true); } // [V7]
634815740test { try toUnicodeFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91"); } // [V7]
15741test { try toAsciiFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91", false); } // [V7]
15742test { try toAsciiFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91", true); } // [V7]
634915743test { try toUnicodeFail("xn--bnd074zr557n.xn--yl0d"); } // [V7]
15744test { try toAsciiFail("xn--bnd074zr557n.xn--yl0d", false); } // [V7]
15745test { try toAsciiFail("xn--bnd074zr557n.xn--yl0d", true); } // [V7]
635015746test { try toUnicodeFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe1\x82\xa5"); } // [B1, V6]
15747test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe1\x82\xa5", false); } // [B1, V6]
15748test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe1\x82\xa5", true); } // [B1, V6]
635115749test { try toUnicodeFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xe3\x80\x826\xe1\x82\xa5"); } // [B1, V6]
15750test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xe3\x80\x826\xe1\x82\xa5", false); } // [B1, V6]
15751test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xe3\x80\x826\xe1\x82\xa5", true); } // [B1, V6]
635215752test { try toUnicodeFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\xbc\xe3\x80\x826\xe2\xb4\x85"); } // [B1, V6]
15753test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\xbc\xe3\x80\x826\xe2\xb4\x85", false); } // [B1, V6]
15754test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\xbc\xe3\x80\x826\xe2\xb4\x85", true); } // [B1, V6]
635315755test { try toUnicodeFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xe3\x80\x826\xe2\xb4\x85"); } // [B1, V6]
15756test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xe3\x80\x826\xe2\xb4\x85", false); } // [B1, V6]
15757test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xe3\x80\x826\xe2\xb4\x85", true); } // [B1, V6]
635415758test { try toUnicodeFail("xn--zzfy954hga2415t.xn--6-kvs"); } // [B1, V6]
15759test { try toAsciiFail("xn--zzfy954hga2415t.xn--6-kvs", false); } // [B1, V6]
15760test { try toAsciiFail("xn--zzfy954hga2415t.xn--6-kvs", true); } // [B1, V6]
635515761test { try toUnicodeFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\xbc\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe2\xb4\x85"); } // [B1, V6]
15762test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\xbc\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe2\xb4\x85", false); } // [B1, V6]
15763test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\xbc\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe2\xb4\x85", true); } // [B1, V6]
635615764test { try toUnicodeFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe2\xb4\x85"); } // [B1, V6]
15765test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe2\xb4\x85", false); } // [B1, V6]
15766test { try toAsciiFail("\xe1\xaf\xb1\xf0\x90\xb9\xb3\xf0\x90\xb9\xb5\xf0\x9e\xa4\x9a\xef\xbd\xa1\xf0\x9d\x9f\xa8\xe2\xb4\x85", true); } // [B1, V6]
635715767test { try toUnicodeFail("xn--zzfy954hga2415t.xn--6-h0g"); } // [B1, V6, V7]
15768test { try toAsciiFail("xn--zzfy954hga2415t.xn--6-h0g", false); } // [B1, V6, V7]
15769test { try toAsciiFail("xn--zzfy954hga2415t.xn--6-h0g", true); } // [B1, V6, V7]
635815770test { try toUnicodeFail("-\xef\xbd\xa1\xef\xb8\x92"); } // [V3, V7]
15771test { try toAsciiFail("-\xef\xbd\xa1\xef\xb8\x92", false); } // [V3, V7]
15772test { try toAsciiFail("-\xef\xbd\xa1\xef\xb8\x92", true); } // [V3, V7]
635915773test { try toUnicodeFail("-\xe3\x80\x82\xe3\x80\x82"); } // [V3, X4_2]
15774test { try toAsciiFail("-\xe3\x80\x82\xe3\x80\x82", false); } // [V3, A4_2]
15775test { try toAsciiFail("-\xe3\x80\x82\xe3\x80\x82", true); } // [V3, A4_2]
636015776test { try toUnicodeFail("-.."); } // [V3, X4_2]
15777test { try toAsciiFail("-..", false); } // [V3, A4_2]
15778test { try toAsciiFail("-..", true); } // [V3, A4_2]
636115779test { try toUnicodeFail("-.xn--y86c"); } // [V3, V7]
15780test { try toAsciiFail("-.xn--y86c", false); } // [V3, V7]
15781test { try toAsciiFail("-.xn--y86c", true); } // [V3, V7]
636215782test { try toUnicodeFail("\xdf\x9b\xe1\x83\x80\xef\xbd\xa1-\xe2\x81\xb5--"); } // [B1, B2, B3, V2, V3]
15783test { try toAsciiFail("\xdf\x9b\xe1\x83\x80\xef\xbd\xa1-\xe2\x81\xb5--", false); } // [B1, B2, B3, V2, V3]
15784test { try toAsciiFail("\xdf\x9b\xe1\x83\x80\xef\xbd\xa1-\xe2\x81\xb5--", true); } // [B1, B2, B3, V2, V3]
636315785test { try toUnicodeFail("\xdf\x9b\xe1\x83\x80\xe3\x80\x82-5--"); } // [B1, B2, B3, V2, V3]
15786test { try toAsciiFail("\xdf\x9b\xe1\x83\x80\xe3\x80\x82-5--", false); } // [B1, B2, B3, V2, V3]
15787test { try toAsciiFail("\xdf\x9b\xe1\x83\x80\xe3\x80\x82-5--", true); } // [B1, B2, B3, V2, V3]
636415788test { try toUnicodeFail("\xdf\x9b\xe2\xb4\xa0\xe3\x80\x82-5--"); } // [B1, B2, B3, V2, V3]
15789test { try toAsciiFail("\xdf\x9b\xe2\xb4\xa0\xe3\x80\x82-5--", false); } // [B1, B2, B3, V2, V3]
15790test { try toAsciiFail("\xdf\x9b\xe2\xb4\xa0\xe3\x80\x82-5--", true); } // [B1, B2, B3, V2, V3]
636515791test { try toUnicodeFail("xn--2sb691q.-5--"); } // [B1, B2, B3, V2, V3]
15792test { try toAsciiFail("xn--2sb691q.-5--", false); } // [B1, B2, B3, V2, V3]
15793test { try toAsciiFail("xn--2sb691q.-5--", true); } // [B1, B2, B3, V2, V3]
636615794test { try toUnicodeFail("\xdf\x9b\xe2\xb4\xa0\xef\xbd\xa1-\xe2\x81\xb5--"); } // [B1, B2, B3, V2, V3]
15795test { try toAsciiFail("\xdf\x9b\xe2\xb4\xa0\xef\xbd\xa1-\xe2\x81\xb5--", false); } // [B1, B2, B3, V2, V3]
15796test { try toAsciiFail("\xdf\x9b\xe2\xb4\xa0\xef\xbd\xa1-\xe2\x81\xb5--", true); } // [B1, B2, B3, V2, V3]
636715797test { try toUnicodeFail("xn--2sb866b.-5--"); } // [B1, B2, B3, V2, V3, V7]
15798test { try toAsciiFail("xn--2sb866b.-5--", false); } // [B1, B2, B3, V2, V3, V7]
15799test { try toAsciiFail("xn--2sb866b.-5--", true); } // [B1, B2, B3, V2, V3, V7]
636815800test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95\xef\xbd\xa1\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb\xe2\x89\xaf\xf0\x90\xb7\x92"); } // [B1, V7, U1]
15801test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95\xef\xbd\xa1\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb\xe2\x89\xaf\xf0\x90\xb7\x92", false); } // [B1, V7, U1]
15802test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95\xef\xbd\xa1\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb\xe2\x89\xaf\xf0\x90\xb7\x92", true); } // [B1, V7, U1]
636915803test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95\xef\xbd\xa1\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb>\xcc\xb8\xf0\x90\xb7\x92"); } // [B1, V7, U1]
15804test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95\xef\xbd\xa1\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb>\xcc\xb8\xf0\x90\xb7\x92", false); } // [B1, V7, U1]
15805test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95\xef\xbd\xa1\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb>\xcc\xb8\xf0\x90\xb7\x92", true); } // [B1, V7, U1]
637015806test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95\xe3\x80\x82\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb\xe2\x89\xaf\xf0\x90\xb7\x92"); } // [B1, V7, U1]
15807test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95\xe3\x80\x82\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb\xe2\x89\xaf\xf0\x90\xb7\x92", false); } // [B1, V7, U1]
15808test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95\xe3\x80\x82\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb\xe2\x89\xaf\xf0\x90\xb7\x92", true); } // [B1, V7, U1]
637115809test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95\xe3\x80\x82\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb>\xcc\xb8\xf0\x90\xb7\x92"); } // [B1, V7, U1]
15810test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95\xe3\x80\x82\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb>\xcc\xb8\xf0\x90\xb7\x92", false); } // [B1, V7, U1]
15811test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95\xe3\x80\x82\xf0\x90\xb9\xb7\xf0\x90\xb9\xbb>\xcc\xb8\xf0\x90\xb7\x92", true); } // [B1, V7, U1]
637215812test { try toUnicodeFail("xn--?-ogo25661n.xn--hdh8283gdoaqa"); } // [B1, V7, U1]
15813test { try toAsciiFail("xn--?-ogo25661n.xn--hdh8283gdoaqa", false); } // [B1, V7, U1]
15814test { try toAsciiFail("xn--?-ogo25661n.xn--hdh8283gdoaqa", true); } // [B1, V7, U1]
637315815test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa"); } // [B1, V7, U1]
15816test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa", false); } // [B1, V7, U1]
15817test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa", true); } // [B1, V7, U1]
637415818test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa"); } // [B1, V7, U1]
15819test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa", false); } // [B1, V7, U1]
15820test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa", true); } // [B1, V7, U1]
637515821test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA"); } // [B1, V7, U1]
15822test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA", false); } // [B1, V7, U1]
15823test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA", true); } // [B1, V7, U1]
637615824test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA"); } // [B1, V7, U1]
15825test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA", false); } // [B1, V7, U1]
15826test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA", true); } // [B1, V7, U1]
637715827test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa"); } // [B1, V7, U1]
15828test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa", false); } // [B1, V7, U1]
15829test { try toAsciiFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa", true); } // [B1, V7, U1]
637815830test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa"); } // [B1, V7, U1]
15831test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa", false); } // [B1, V7, U1]
15832test { try toAsciiFail(">\xcc\xb8?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa", true); } // [B1, V7, U1]
637915833test { try toUnicodeFail("\xe3\x8d\x94\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84"); } // [B1, B5, B6, C2, V6, V7]
15834test { try toAsciiFail("\xe3\x8d\x94\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84", false); } // [B1, B5, B6, C2, V6, V7]
15835test { try toAsciiFail("\xe3\x8d\x94\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84", true); } // [B1, B5, B6, V6, V7]
638015836test { try toUnicodeFail("\xe3\x83\xab\xe3\x83\xbc\xe3\x83\x96\xe3\x83\xab\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84"); } // [B1, B5, B6, C2, V6, V7]
15837test { try toAsciiFail("\xe3\x83\xab\xe3\x83\xbc\xe3\x83\x96\xe3\x83\xab\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84", false); } // [B1, B5, B6, C2, V6, V7]
15838test { try toAsciiFail("\xe3\x83\xab\xe3\x83\xbc\xe3\x83\x96\xe3\x83\xab\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84", true); } // [B1, B5, B6, V6, V7]
638115839test { try toUnicodeFail("\xe3\x83\xab\xe3\x83\xbc\xe3\x83\x95\xe3\x82\x99\xe3\x83\xab\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84"); } // [B1, B5, B6, C2, V6, V7]
15840test { try toAsciiFail("\xe3\x83\xab\xe3\x83\xbc\xe3\x83\x95\xe3\x82\x99\xe3\x83\xab\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84", false); } // [B1, B5, B6, C2, V6, V7]
15841test { try toAsciiFail("\xe3\x83\xab\xe3\x83\xbc\xe3\x83\x95\xe3\x82\x99\xe3\x83\xab\xe0\xa3\xa6\xdd\xbc\xe2\x80\x8d\xe3\x80\x82\xcd\x86\xf2\x81\xb3\x8a\xf0\x9d\x85\xb6\xd8\x84", true); } // [B1, B5, B6, V6, V7]
638215842test { try toUnicodeFail("xn--dqb73el09fncab4h.xn--kua81lx7141a"); } // [B1, B5, B6, V6, V7]
15843test { try toAsciiFail("xn--dqb73el09fncab4h.xn--kua81lx7141a", false); } // [B1, B5, B6, V6, V7]
15844test { try toAsciiFail("xn--dqb73el09fncab4h.xn--kua81lx7141a", true); } // [B1, B5, B6, V6, V7]
638315845test { try toUnicodeFail("xn--dqb73ec22c9kp8cb1j.xn--kua81lx7141a"); } // [B1, B5, B6, C2, V6, V7]
15846test { try toAsciiFail("xn--dqb73ec22c9kp8cb1j.xn--kua81lx7141a", false); } // [B1, B5, B6, C2, V6, V7]
15847test { try toAsciiFail("xn--dqb73ec22c9kp8cb1j.xn--kua81lx7141a", true); } // [B1, B5, B6, C2, V6, V7]
638415848test { try toUnicodeFail("xn--dqb73el09fncab4h.xn--kua81ls548d3608b"); } // [B1, B5, B6, V6, V7]
15849test { try toAsciiFail("xn--dqb73el09fncab4h.xn--kua81ls548d3608b", false); } // [B1, B5, B6, V6, V7]
15850test { try toAsciiFail("xn--dqb73el09fncab4h.xn--kua81ls548d3608b", true); } // [B1, B5, B6, V6, V7]
638515851test { try toUnicodeFail("xn--dqb73ec22c9kp8cb1j.xn--kua81ls548d3608b"); } // [B1, B5, B6, C2, V6, V7]
15852test { try toAsciiFail("xn--dqb73ec22c9kp8cb1j.xn--kua81ls548d3608b", false); } // [B1, B5, B6, C2, V6, V7]
15853test { try toAsciiFail("xn--dqb73ec22c9kp8cb1j.xn--kua81ls548d3608b", true); } // [B1, B5, B6, C2, V6, V7]
638615854test { try toUnicodeFail("\xe2\x80\x8d.F"); } // [C2]
15855test { try toAsciiFail("\xe2\x80\x8d.F", false); } // [C2]
15856test { try toAsciiFail("\xe2\x80\x8d.F", true); } // [A4_2]
638715857test { try toUnicodeFail("\xe2\x80\x8d.f"); } // [C2]
15858test { try toAsciiFail("\xe2\x80\x8d.f", false); } // [C2]
15859test { try toAsciiFail("\xe2\x80\x8d.f", true); } // [A4_2]
638815860test { try toUnicodeFail(".f"); } // [X4_2]
15861test { try toAsciiFail(".f", false); } // [A4_2]
15862test { try toAsciiFail(".f", true); } // [A4_2]
638915863test { try toUnicodeFail("xn--1ug.f"); } // [C2]
15864test { try toAsciiFail("xn--1ug.f", false); } // [C2]
15865test { try toAsciiFail("xn--1ug.f", true); } // [C2]
639015866test { try toUnicodePass("f", "f"); }
639115867test { try toAsciiPass("f", "f", false); }
639215868test { try toAsciiPass("f", "f", true); }
639315869test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1\xc3\x9f", "xn--9bm.ss", true); }
639415870test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1\xc3\x9f"); } // [C2]
15871test { try toAsciiFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1\xc3\x9f", false); } // [C2]
639515872test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82\xc3\x9f", "xn--9bm.ss", true); }
639615873test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82\xc3\x9f"); } // [C2]
15874test { try toAsciiFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82\xc3\x9f", false); } // [C2]
639715875test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82SS", "xn--9bm.ss", true); }
639815876test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82SS"); } // [C2]
15877test { try toAsciiFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82SS", false); } // [C2]
639915878test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82ss", "xn--9bm.ss", true); }
640015879test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82ss"); } // [C2]
15880test { try toAsciiFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82ss", false); } // [C2]
640115881test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82Ss", "xn--9bm.ss", true); }
640215882test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82Ss"); } // [C2]
15883test { try toAsciiFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82Ss", false); } // [C2]
640315884test { try toUnicodePass("xn--9bm.ss", "\xe3\xa8\xb2.ss"); }
640415885test { try toAsciiPass("xn--9bm.ss", "xn--9bm.ss", false); }
640515886test { try toAsciiPass("xn--9bm.ss", "xn--9bm.ss", true); }
......@@ -6413,84 +15894,233 @@ test { try toUnicodePass("\xe3\xa8\xb2.Ss", "\xe3\xa8\xb2.ss"); }
641315894test { try toAsciiPass("\xe3\xa8\xb2.Ss", "xn--9bm.ss", false); }
641415895test { try toAsciiPass("\xe3\xa8\xb2.Ss", "xn--9bm.ss", true); }
641515896test { try toUnicodeFail("xn--1ug914h.ss"); } // [C2]
15897test { try toAsciiFail("xn--1ug914h.ss", false); } // [C2]
15898test { try toAsciiFail("xn--1ug914h.ss", true); } // [C2]
641615899test { try toUnicodeFail("xn--1ug914h.xn--zca"); } // [C2]
15900test { try toAsciiFail("xn--1ug914h.xn--zca", false); } // [C2]
15901test { try toAsciiFail("xn--1ug914h.xn--zca", true); } // [C2]
641715902test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1SS", "xn--9bm.ss", true); }
641815903test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1SS"); } // [C2]
15904test { try toAsciiFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1SS", false); } // [C2]
641915905test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1ss", "xn--9bm.ss", true); }
642015906test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1ss"); } // [C2]
15907test { try toAsciiFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1ss", false); } // [C2]
642115908test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1Ss", "xn--9bm.ss", true); }
642215909test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1Ss"); } // [C2]
15910test { try toAsciiFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1Ss", false); } // [C2]
642315911test { try toUnicodeFail("\xd8\x85\xd9\xbe\xef\xbd\xa1\xe0\xa2\xa8"); } // [B1, V7]
15912test { try toAsciiFail("\xd8\x85\xd9\xbe\xef\xbd\xa1\xe0\xa2\xa8", false); } // [B1, V7]
15913test { try toAsciiFail("\xd8\x85\xd9\xbe\xef\xbd\xa1\xe0\xa2\xa8", true); } // [B1, V7]
642415914test { try toUnicodeFail("\xd8\x85\xd9\xbe\xe3\x80\x82\xe0\xa2\xa8"); } // [B1, V7]
15915test { try toAsciiFail("\xd8\x85\xd9\xbe\xe3\x80\x82\xe0\xa2\xa8", false); } // [B1, V7]
15916test { try toAsciiFail("\xd8\x85\xd9\xbe\xe3\x80\x82\xe0\xa2\xa8", true); } // [B1, V7]
642515917test { try toUnicodeFail("xn--nfb6v.xn--xyb"); } // [B1, V7]
15918test { try toAsciiFail("xn--nfb6v.xn--xyb", false); } // [B1, V7]
15919test { try toAsciiFail("xn--nfb6v.xn--xyb", true); } // [B1, V7]
642615920test { try toUnicodeFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6]
15921test { try toAsciiFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82", false); } // [B1, B5, B6]
15922test { try toAsciiFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82", true); } // [B1, B5, B6]
642715923test { try toUnicodeFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6]
15924test { try toAsciiFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82", false); } // [B1, B5, B6]
15925test { try toAsciiFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82", true); } // [B1, B5, B6]
642815926test { try toUnicodeFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6]
15927test { try toAsciiFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82", false); } // [B1, B5, B6]
15928test { try toAsciiFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82", true); } // [B1, B5, B6]
642915929test { try toUnicodeFail("xn--6ob9577deqwl.xn--7ib5526k"); } // [B1, B5, B6]
15930test { try toAsciiFail("xn--6ob9577deqwl.xn--7ib5526k", false); } // [B1, B5, B6]
15931test { try toAsciiFail("xn--6ob9577deqwl.xn--7ib5526k", true); } // [B1, B5, B6]
643015932test { try toUnicodeFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6]
15933test { try toAsciiFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82", false); } // [B1, B5, B6]
15934test { try toAsciiFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82", true); } // [B1, B5, B6]
643115935test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
15936test { try toAsciiFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b", false); } // [B2, B3, B6, V7]
15937test { try toAsciiFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b", true); } // [B2, B3, B6, V7]
643215938test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
15939test { try toAsciiFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b", false); } // [B2, B3, B6, V7]
15940test { try toAsciiFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b", true); } // [B2, B3, B6, V7]
643315941test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
15942test { try toAsciiFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b", false); } // [B2, B3, B6, V7]
15943test { try toAsciiFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b", true); } // [B2, B3, B6, V7]
643415944test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
15945test { try toAsciiFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b", false); } // [B2, B3, B6, V7]
15946test { try toAsciiFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b", true); } // [B2, B3, B6, V7]
643515947test { try toUnicodeFail("xn----zmb705tuo34l.xn----53c4874j"); } // [B2, B3, B6, V7]
15948test { try toAsciiFail("xn----zmb705tuo34l.xn----53c4874j", false); } // [B2, B3, B6, V7]
15949test { try toAsciiFail("xn----zmb705tuo34l.xn----53c4874j", true); } // [B2, B3, B6, V7]
643615950test { try toUnicodeFail("xn----xmb015tuo34l.xn----53c4874j"); } // [B2, B3, B6, V7]
15951test { try toAsciiFail("xn----xmb015tuo34l.xn----53c4874j", false); } // [B2, B3, B6, V7]
15952test { try toAsciiFail("xn----xmb015tuo34l.xn----53c4874j", true); } // [B2, B3, B6, V7]
643715953test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
15954test { try toAsciiFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b", false); } // [B2, B3, B6, V7]
15955test { try toAsciiFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b", true); } // [B2, B3, B6, V7]
643815956test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
15957test { try toAsciiFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b", false); } // [B2, B3, B6, V7]
15958test { try toAsciiFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b", true); } // [B2, B3, B6, V7]
643915959test { try toUnicodeFail("\xe2\x80\x8d\xef\xbc\x8e\xf4\x80\xb8\xa8"); } // [C2, V7]
15960test { try toAsciiFail("\xe2\x80\x8d\xef\xbc\x8e\xf4\x80\xb8\xa8", false); } // [C2, V7]
15961test { try toAsciiFail("\xe2\x80\x8d\xef\xbc\x8e\xf4\x80\xb8\xa8", true); } // [V7, A4_2]
644015962test { try toUnicodeFail("\xe2\x80\x8d.\xf4\x80\xb8\xa8"); } // [C2, V7]
15963test { try toAsciiFail("\xe2\x80\x8d.\xf4\x80\xb8\xa8", false); } // [C2, V7]
15964test { try toAsciiFail("\xe2\x80\x8d.\xf4\x80\xb8\xa8", true); } // [V7, A4_2]
644115965test { try toUnicodeFail(".xn--h327f"); } // [V7, X4_2]
15966test { try toAsciiFail(".xn--h327f", false); } // [V7, A4_2]
15967test { try toAsciiFail(".xn--h327f", true); } // [V7, A4_2]
644215968test { try toUnicodeFail("xn--1ug.xn--h327f"); } // [C2, V7]
15969test { try toAsciiFail("xn--1ug.xn--h327f", false); } // [C2, V7]
15970test { try toAsciiFail("xn--1ug.xn--h327f", true); } // [C2, V7]
644315971test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1\xe2\x89\xa0\xf0\x9d\x9f\xb2"); } // [V7]
15972test { try toAsciiFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1\xe2\x89\xa0\xf0\x9d\x9f\xb2", false); } // [V7]
15973test { try toAsciiFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1\xe2\x89\xa0\xf0\x9d\x9f\xb2", true); } // [V7]
644415974test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1=\xcc\xb8\xf0\x9d\x9f\xb2"); } // [V7]
15975test { try toAsciiFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1=\xcc\xb8\xf0\x9d\x9f\xb2", false); } // [V7]
15976test { try toAsciiFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1=\xcc\xb8\xf0\x9d\x9f\xb2", true); } // [V7]
644515977test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82\xe2\x89\xa06"); } // [V7]
15978test { try toAsciiFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82\xe2\x89\xa06", false); } // [V7]
15979test { try toAsciiFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82\xe2\x89\xa06", true); } // [V7]
644615980test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82=\xcc\xb86"); } // [V7]
15981test { try toAsciiFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82=\xcc\xb86", false); } // [V7]
15982test { try toAsciiFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82=\xcc\xb86", true); } // [V7]
644715983test { try toUnicodeFail("xn--h79w4z99a.xn--6-tfo"); } // [V7]
15984test { try toAsciiFail("xn--h79w4z99a.xn--6-tfo", false); } // [V7]
15985test { try toAsciiFail("xn--h79w4z99a.xn--6-tfo", true); } // [V7]
644815986test { try toUnicodeFail("\xf3\xa0\x85\x8a\xe1\xa1\xad\xe2\x80\x8d.\xf0\x90\xa5\xa1"); } // [B6, C2, V7]
15987test { try toAsciiFail("\xf3\xa0\x85\x8a\xe1\xa1\xad\xe2\x80\x8d.\xf0\x90\xa5\xa1", false); } // [B6, C2, V7]
15988test { try toAsciiFail("\xf3\xa0\x85\x8a\xe1\xa1\xad\xe2\x80\x8d.\xf0\x90\xa5\xa1", true); } // [V7]
644915989test { try toUnicodeFail("xn--98e.xn--om9c"); } // [V7]
15990test { try toAsciiFail("xn--98e.xn--om9c", false); } // [V7]
15991test { try toAsciiFail("xn--98e.xn--om9c", true); } // [V7]
645015992test { try toUnicodeFail("xn--98e810b.xn--om9c"); } // [B6, C2, V7]
15993test { try toAsciiFail("xn--98e810b.xn--om9c", false); } // [B6, C2, V7]
15994test { try toAsciiFail("xn--98e810b.xn--om9c", true); } // [B6, C2, V7]
645115995test { try toUnicodeFail("\xe0\xb1\x80\xe0\xa1\x95\xf0\x90\xa5\x9b\xf0\x91\x84\xb4\xef\xbc\x8e\xf3\xad\xb0\xb5"); } // [B1, V6, V7]
15996test { try toAsciiFail("\xe0\xb1\x80\xe0\xa1\x95\xf0\x90\xa5\x9b\xf0\x91\x84\xb4\xef\xbc\x8e\xf3\xad\xb0\xb5", false); } // [B1, V6, V7]
15997test { try toAsciiFail("\xe0\xb1\x80\xe0\xa1\x95\xf0\x90\xa5\x9b\xf0\x91\x84\xb4\xef\xbc\x8e\xf3\xad\xb0\xb5", true); } // [B1, V6, V7]
645215998test { try toUnicodeFail("\xe0\xb1\x80\xe0\xa1\x95\xf0\x90\xa5\x9b\xf0\x91\x84\xb4.\xf3\xad\xb0\xb5"); } // [B1, V6, V7]
15999test { try toAsciiFail("\xe0\xb1\x80\xe0\xa1\x95\xf0\x90\xa5\x9b\xf0\x91\x84\xb4.\xf3\xad\xb0\xb5", false); } // [B1, V6, V7]
16000test { try toAsciiFail("\xe0\xb1\x80\xe0\xa1\x95\xf0\x90\xa5\x9b\xf0\x91\x84\xb4.\xf3\xad\xb0\xb5", true); } // [B1, V6, V7]
645316001test { try toUnicodeFail("xn--kwb91r5112avtg.xn--o580f"); } // [B1, V6, V7]
16002test { try toAsciiFail("xn--kwb91r5112avtg.xn--o580f", false); } // [B1, V6, V7]
16003test { try toAsciiFail("xn--kwb91r5112avtg.xn--o580f", true); } // [B1, V6, V7]
645416004test { try toUnicodeFail("\xf0\x9e\xa4\xae\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c\xe2\x89\xaf\xe1\xb3\xa6"); } // [B1, C1, V6]
16005test { try toAsciiFail("\xf0\x9e\xa4\xae\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c\xe2\x89\xaf\xe1\xb3\xa6", false); } // [B1, C1, V6]
16006test { try toAsciiFail("\xf0\x9e\xa4\xae\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c\xe2\x89\xaf\xe1\xb3\xa6", true); } // [B1, V6]
645516007test { try toUnicodeFail("\xf0\x9e\xa4\xae\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6"); } // [B1, C1, V6]
16008test { try toAsciiFail("\xf0\x9e\xa4\xae\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6", false); } // [B1, C1, V6]
16009test { try toAsciiFail("\xf0\x9e\xa4\xae\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6", true); } // [B1, V6]
645616010test { try toUnicodeFail("\xf0\x9e\xa4\x8c\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6"); } // [B1, C1, V6]
16011test { try toAsciiFail("\xf0\x9e\xa4\x8c\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6", false); } // [B1, C1, V6]
16012test { try toAsciiFail("\xf0\x9e\xa4\x8c\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6", true); } // [B1, V6]
645716013test { try toUnicodeFail("\xf0\x9e\xa4\x8c\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c\xe2\x89\xaf\xe1\xb3\xa6"); } // [B1, C1, V6]
16014test { try toAsciiFail("\xf0\x9e\xa4\x8c\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c\xe2\x89\xaf\xe1\xb3\xa6", false); } // [B1, C1, V6]
16015test { try toAsciiFail("\xf0\x9e\xa4\x8c\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c\xe2\x89\xaf\xe1\xb3\xa6", true); } // [B1, V6]
645816016test { try toUnicodeFail("xn--me6h.xn--z6fz8ueq2v"); } // [B1, V6]
16017test { try toAsciiFail("xn--me6h.xn--z6fz8ueq2v", false); } // [B1, V6]
16018test { try toAsciiFail("xn--me6h.xn--z6fz8ueq2v", true); } // [B1, V6]
645916019test { try toUnicodeFail("xn--me6h.xn--z6f16kn9b2642b"); } // [B1, C1, V6]
16020test { try toAsciiFail("xn--me6h.xn--z6f16kn9b2642b", false); } // [B1, C1, V6]
16021test { try toAsciiFail("xn--me6h.xn--z6f16kn9b2642b", true); } // [B1, C1, V6]
646016022test { try toUnicodeFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe1\x82\xa9"); } // [B1, B2, B3, V7]
16023test { try toAsciiFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe1\x82\xa9", false); } // [B1, B2, B3, V7]
16024test { try toAsciiFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe1\x82\xa9", true); } // [B1, B2, B3, V7]
646116025test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe1\x82\xa9"); } // [B1, B2, B3, V7]
16026test { try toAsciiFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe1\x82\xa9", false); } // [B1, B2, B3, V7]
16027test { try toAsciiFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe1\x82\xa9", true); } // [B1, B2, B3, V7]
646216028test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\xae\xf1\x9b\x97\x93\xe2\xb4\x89"); } // [B1, B2, B3, V7]
16029test { try toAsciiFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\xae\xf1\x9b\x97\x93\xe2\xb4\x89", false); } // [B1, B2, B3, V7]
16030test { try toAsciiFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\xae\xf1\x9b\x97\x93\xe2\xb4\x89", true); } // [B1, B2, B3, V7]
646316031test { try toUnicodeFail("7.xn--0kjz523lv1vv"); } // [B1, B2, B3, V7]
16032test { try toAsciiFail("7.xn--0kjz523lv1vv", false); } // [B1, B2, B3, V7]
16033test { try toAsciiFail("7.xn--0kjz523lv1vv", true); } // [B1, B2, B3, V7]
646416034test { try toUnicodeFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\xae\xf1\x9b\x97\x93\xe2\xb4\x89"); } // [B1, B2, B3, V7]
16035test { try toAsciiFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\xae\xf1\x9b\x97\x93\xe2\xb4\x89", false); } // [B1, B2, B3, V7]
16036test { try toAsciiFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\xae\xf1\x9b\x97\x93\xe2\xb4\x89", true); } // [B1, B2, B3, V7]
646516037test { try toUnicodeFail("7.xn--hnd3403vv1vv"); } // [B1, B2, B3, V7]
16038test { try toAsciiFail("7.xn--hnd3403vv1vv", false); } // [B1, B2, B3, V7]
16039test { try toAsciiFail("7.xn--hnd3403vv1vv", true); } // [B1, B2, B3, V7]
646616040test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe2\xb4\x89"); } // [B1, B2, B3, V7]
16041test { try toAsciiFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe2\xb4\x89", false); } // [B1, B2, B3, V7]
16042test { try toAsciiFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe2\xb4\x89", true); } // [B1, B2, B3, V7]
646716043test { try toUnicodeFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe2\xb4\x89"); } // [B1, B2, B3, V7]
16044test { try toAsciiFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe2\xb4\x89", false); } // [B1, B2, B3, V7]
16045test { try toAsciiFail("\xf3\xa0\x84\x80\xf0\x9d\x9f\x95.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe2\xb4\x89", true); } // [B1, B2, B3, V7]
646816046test { try toUnicodeFail("\xe9\x96\x839\xf0\x9d\xa9\x8d\xe3\x80\x82\xe2\x86\x83\xd9\xa9\xe0\xa2\xb1\xe0\xad\x8d"); } // [B5, B6]
16047test { try toAsciiFail("\xe9\x96\x839\xf0\x9d\xa9\x8d\xe3\x80\x82\xe2\x86\x83\xd9\xa9\xe0\xa2\xb1\xe0\xad\x8d", false); } // [B5, B6]
16048test { try toAsciiFail("\xe9\x96\x839\xf0\x9d\xa9\x8d\xe3\x80\x82\xe2\x86\x83\xd9\xa9\xe0\xa2\xb1\xe0\xad\x8d", true); } // [B5, B6]
646916049test { try toUnicodeFail("\xe9\x96\x839\xf0\x9d\xa9\x8d\xe3\x80\x82\xe2\x86\x84\xd9\xa9\xe0\xa2\xb1\xe0\xad\x8d"); } // [B5, B6]
16050test { try toAsciiFail("\xe9\x96\x839\xf0\x9d\xa9\x8d\xe3\x80\x82\xe2\x86\x84\xd9\xa9\xe0\xa2\xb1\xe0\xad\x8d", false); } // [B5, B6]
16051test { try toAsciiFail("\xe9\x96\x839\xf0\x9d\xa9\x8d\xe3\x80\x82\xe2\x86\x84\xd9\xa9\xe0\xa2\xb1\xe0\xad\x8d", true); } // [B5, B6]
647016052test { try toUnicodeFail("xn--9-3j6dk517f.xn--iib28ij3c4t9a"); } // [B5, B6]
16053test { try toAsciiFail("xn--9-3j6dk517f.xn--iib28ij3c4t9a", false); } // [B5, B6]
16054test { try toAsciiFail("xn--9-3j6dk517f.xn--iib28ij3c4t9a", true); } // [B5, B6]
647116055test { try toUnicodeFail("xn--9-3j6dk517f.xn--iib28ij3c0t9a"); } // [B5, B6, V7]
16056test { try toAsciiFail("xn--9-3j6dk517f.xn--iib28ij3c0t9a", false); } // [B5, B6, V7]
16057test { try toAsciiFail("xn--9-3j6dk517f.xn--iib28ij3c0t9a", true); } // [B5, B6, V7]
647216058test { try toUnicodeFail("\xea\xab\xb6\xe1\xa2\x8f\xe0\xb8\xba\xef\xbc\x92.\xf0\x90\x8b\xa2\xdd\x85\xe0\xbe\x9f\xef\xb8\x92"); } // [V6, V7]
16059test { try toAsciiFail("\xea\xab\xb6\xe1\xa2\x8f\xe0\xb8\xba\xef\xbc\x92.\xf0\x90\x8b\xa2\xdd\x85\xe0\xbe\x9f\xef\xb8\x92", false); } // [V6, V7]
16060test { try toAsciiFail("\xea\xab\xb6\xe1\xa2\x8f\xe0\xb8\xba\xef\xbc\x92.\xf0\x90\x8b\xa2\xdd\x85\xe0\xbe\x9f\xef\xb8\x92", true); } // [V6, V7]
647316061test { try toUnicodeFail("\xea\xab\xb6\xe1\xa2\x8f\xe0\xb8\xba2.\xf0\x90\x8b\xa2\xdd\x85\xe0\xbe\x9f\xe3\x80\x82"); } // [V6]
16062test { try toAsciiFail("\xea\xab\xb6\xe1\xa2\x8f\xe0\xb8\xba2.\xf0\x90\x8b\xa2\xdd\x85\xe0\xbe\x9f\xe3\x80\x82", false); } // [V6, A4_2]
16063test { try toAsciiFail("\xea\xab\xb6\xe1\xa2\x8f\xe0\xb8\xba2.\xf0\x90\x8b\xa2\xdd\x85\xe0\xbe\x9f\xe3\x80\x82", true); } // [V6, A4_2]
647416064test { try toUnicodeFail("xn--2-2zf840fk16m.xn--sob093b2m7s."); } // [V6]
16065test { try toAsciiFail("xn--2-2zf840fk16m.xn--sob093b2m7s.", false); } // [V6, A4_2]
16066test { try toAsciiFail("xn--2-2zf840fk16m.xn--sob093b2m7s.", true); } // [V6, A4_2]
647516067test { try toUnicodeFail("xn--2-2zf840fk16m.xn--sob093bj62sz9d"); } // [V6, V7]
16068test { try toAsciiFail("xn--2-2zf840fk16m.xn--sob093bj62sz9d", false); } // [V6, V7]
16069test { try toAsciiFail("xn--2-2zf840fk16m.xn--sob093bj62sz9d", true); } // [V6, V7]
647616070test { try toUnicodeFail("\xf3\x85\xb4\xa7\xef\xbd\xa1\xe2\x89\xa0-\xf3\xa0\x99\x84\xe2\xbe\x9b"); } // [V7]
16071test { try toAsciiFail("\xf3\x85\xb4\xa7\xef\xbd\xa1\xe2\x89\xa0-\xf3\xa0\x99\x84\xe2\xbe\x9b", false); } // [V7]
16072test { try toAsciiFail("\xf3\x85\xb4\xa7\xef\xbd\xa1\xe2\x89\xa0-\xf3\xa0\x99\x84\xe2\xbe\x9b", true); } // [V7]
647716073test { try toUnicodeFail("\xf3\x85\xb4\xa7\xef\xbd\xa1=\xcc\xb8-\xf3\xa0\x99\x84\xe2\xbe\x9b"); } // [V7]
16074test { try toAsciiFail("\xf3\x85\xb4\xa7\xef\xbd\xa1=\xcc\xb8-\xf3\xa0\x99\x84\xe2\xbe\x9b", false); } // [V7]
16075test { try toAsciiFail("\xf3\x85\xb4\xa7\xef\xbd\xa1=\xcc\xb8-\xf3\xa0\x99\x84\xe2\xbe\x9b", true); } // [V7]
647816076test { try toUnicodeFail("\xf3\x85\xb4\xa7\xe3\x80\x82\xe2\x89\xa0-\xf3\xa0\x99\x84\xe8\xb5\xb0"); } // [V7]
16077test { try toAsciiFail("\xf3\x85\xb4\xa7\xe3\x80\x82\xe2\x89\xa0-\xf3\xa0\x99\x84\xe8\xb5\xb0", false); } // [V7]
16078test { try toAsciiFail("\xf3\x85\xb4\xa7\xe3\x80\x82\xe2\x89\xa0-\xf3\xa0\x99\x84\xe8\xb5\xb0", true); } // [V7]
647916079test { try toUnicodeFail("\xf3\x85\xb4\xa7\xe3\x80\x82=\xcc\xb8-\xf3\xa0\x99\x84\xe8\xb5\xb0"); } // [V7]
16080test { try toAsciiFail("\xf3\x85\xb4\xa7\xe3\x80\x82=\xcc\xb8-\xf3\xa0\x99\x84\xe8\xb5\xb0", false); } // [V7]
16081test { try toAsciiFail("\xf3\x85\xb4\xa7\xe3\x80\x82=\xcc\xb8-\xf3\xa0\x99\x84\xe8\xb5\xb0", true); } // [V7]
648016082test { try toUnicodeFail("xn--gm57d.xn----tfo4949b3664m"); } // [V7]
16083test { try toAsciiFail("xn--gm57d.xn----tfo4949b3664m", false); } // [V7]
16084test { try toAsciiFail("xn--gm57d.xn----tfo4949b3664m", true); } // [V7]
648116085test { try toUnicodeFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7]
16086test { try toAsciiFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0", false); } // [B1, B2, B3, V3, V7]
16087test { try toAsciiFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0", true); } // [B1, B2, B3, V3, V7]
648216088test { try toUnicodeFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7]
16089test { try toAsciiFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0", false); } // [B1, B2, B3, V3, V7]
16090test { try toAsciiFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0", true); } // [B1, B2, B3, V3, V7]
648316091test { try toUnicodeFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7]
16092test { try toAsciiFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0", false); } // [B1, B2, B3, V3, V7]
16093test { try toAsciiFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0", true); } // [B1, B2, B3, V3, V7]
648416094test { try toUnicodeFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7]
16095test { try toAsciiFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0", false); } // [B1, B2, B3, V3, V7]
16096test { try toAsciiFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0", true); } // [B1, B2, B3, V3, V7]
648516097test { try toUnicodeFail("xn--mfb73ek93f.xn----ufo"); } // [B1, B2, B3, V3, V7]
16098test { try toAsciiFail("xn--mfb73ek93f.xn----ufo", false); } // [B1, B2, B3, V3, V7]
16099test { try toAsciiFail("xn--mfb73ek93f.xn----ufo", true); } // [B1, B2, B3, V3, V7]
648616100test { try toUnicodeFail("xn--mfb73ek93f.xn----5bh589i"); } // [B1, B2, B3, V3, V7]
16101test { try toAsciiFail("xn--mfb73ek93f.xn----5bh589i", false); } // [B1, B2, B3, V3, V7]
16102test { try toAsciiFail("xn--mfb73ek93f.xn----5bh589i", true); } // [B1, B2, B3, V3, V7]
648716103test { try toUnicodeFail("xn--mfb73ex6r.xn----5bh589i"); } // [B1, B2, B3, V3, V7]
16104test { try toAsciiFail("xn--mfb73ex6r.xn----5bh589i", false); } // [B1, B2, B3, V3, V7]
16105test { try toAsciiFail("xn--mfb73ex6r.xn----5bh589i", true); } // [B1, B2, B3, V3, V7]
648816106test { try toUnicodeFail("\xef\xad\x8f\xf0\x90\xb9\xa7\xf0\x9d\x9f\x92\xe2\x89\xaf\xef\xbd\xa1\xe2\x80\x8c"); } // [B1, B3, B4, C1]
16107test { try toAsciiFail("\xef\xad\x8f\xf0\x90\xb9\xa7\xf0\x9d\x9f\x92\xe2\x89\xaf\xef\xbd\xa1\xe2\x80\x8c", false); } // [B1, B3, B4, C1]
16108test { try toAsciiFail("\xef\xad\x8f\xf0\x90\xb9\xa7\xf0\x9d\x9f\x92\xe2\x89\xaf\xef\xbd\xa1\xe2\x80\x8c", true); } // [B3, B4, A4_2]
648916109test { try toUnicodeFail("\xef\xad\x8f\xf0\x90\xb9\xa7\xf0\x9d\x9f\x92>\xcc\xb8\xef\xbd\xa1\xe2\x80\x8c"); } // [B1, B3, B4, C1]
16110test { try toAsciiFail("\xef\xad\x8f\xf0\x90\xb9\xa7\xf0\x9d\x9f\x92>\xcc\xb8\xef\xbd\xa1\xe2\x80\x8c", false); } // [B1, B3, B4, C1]
16111test { try toAsciiFail("\xef\xad\x8f\xf0\x90\xb9\xa7\xf0\x9d\x9f\x92>\xcc\xb8\xef\xbd\xa1\xe2\x80\x8c", true); } // [B3, B4, A4_2]
649016112test { try toUnicodeFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74\xe2\x89\xaf\xe3\x80\x82\xe2\x80\x8c"); } // [B1, B3, B4, C1]
16113test { try toAsciiFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74\xe2\x89\xaf\xe3\x80\x82\xe2\x80\x8c", false); } // [B1, B3, B4, C1]
16114test { try toAsciiFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74\xe2\x89\xaf\xe3\x80\x82\xe2\x80\x8c", true); } // [B3, B4, A4_2]
649116115test { try toUnicodeFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74>\xcc\xb8\xe3\x80\x82\xe2\x80\x8c"); } // [B1, B3, B4, C1]
16116test { try toAsciiFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74>\xcc\xb8\xe3\x80\x82\xe2\x80\x8c", false); } // [B1, B3, B4, C1]
16117test { try toAsciiFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74>\xcc\xb8\xe3\x80\x82\xe2\x80\x8c", true); } // [B3, B4, A4_2]
649216118test { try toUnicodeFail("xn--4-zhc0by36txt0w."); } // [B3, B4]
16119test { try toAsciiFail("xn--4-zhc0by36txt0w.", false); } // [B3, B4, A4_2]
16120test { try toAsciiFail("xn--4-zhc0by36txt0w.", true); } // [B3, B4, A4_2]
649316121test { try toUnicodeFail("xn--4-zhc0by36txt0w.xn--0ug"); } // [B1, B3, B4, C1]
16122test { try toAsciiFail("xn--4-zhc0by36txt0w.xn--0ug", false); } // [B1, B3, B4, C1]
16123test { try toAsciiFail("xn--4-zhc0by36txt0w.xn--0ug", true); } // [B1, B3, B4, C1]
649416124test { try toUnicodePass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.\xe7\x94\xaf"); }
649516125test { try toAsciiPass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.xn--qny", false); }
649616126test { try toAsciiPass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.xn--qny", true); }
......@@ -6504,11 +16134,23 @@ test { try toUnicodePass("0.\xe7\x94\xaf", "0.\xe7\x94\xaf"); }
650416134test { try toAsciiPass("0.\xe7\x94\xaf", "0.xn--qny", false); }
650516135test { try toAsciiPass("0.\xe7\x94\xaf", "0.xn--qny", true); }
650616136test { try toUnicodeFail("-\xe2\xbe\x86\xef\xbc\x8e\xea\xab\xb6"); } // [V3, V6]
16137test { try toAsciiFail("-\xe2\xbe\x86\xef\xbc\x8e\xea\xab\xb6", false); } // [V3, V6]
16138test { try toAsciiFail("-\xe2\xbe\x86\xef\xbc\x8e\xea\xab\xb6", true); } // [V3, V6]
650716139test { try toUnicodeFail("-\xe8\x88\x8c.\xea\xab\xb6"); } // [V3, V6]
16140test { try toAsciiFail("-\xe8\x88\x8c.\xea\xab\xb6", false); } // [V3, V6]
16141test { try toAsciiFail("-\xe8\x88\x8c.\xea\xab\xb6", true); } // [V3, V6]
650816142test { try toUnicodeFail("xn----ef8c.xn--2v9a"); } // [V3, V6]
16143test { try toAsciiFail("xn----ef8c.xn--2v9a", false); } // [V3, V6]
16144test { try toAsciiFail("xn----ef8c.xn--2v9a", true); } // [V3, V6]
650916145test { try toUnicodeFail("-\xef\xbd\xa1\xe1\xa2\x98"); } // [V3]
16146test { try toAsciiFail("-\xef\xbd\xa1\xe1\xa2\x98", false); } // [V3]
16147test { try toAsciiFail("-\xef\xbd\xa1\xe1\xa2\x98", true); } // [V3]
651016148test { try toUnicodeFail("-\xe3\x80\x82\xe1\xa2\x98"); } // [V3]
16149test { try toAsciiFail("-\xe3\x80\x82\xe1\xa2\x98", false); } // [V3]
16150test { try toAsciiFail("-\xe3\x80\x82\xe1\xa2\x98", true); } // [V3]
651116151test { try toUnicodeFail("-.xn--ibf"); } // [V3]
16152test { try toAsciiFail("-.xn--ibf", false); } // [V3]
16153test { try toAsciiFail("-.xn--ibf", true); } // [V3]
651216154test { try toUnicodePass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae"); }
651316155test { try toAsciiPass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "xn--2kj7565l.xn--gdh", false); }
651416156test { try toAsciiPass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "xn--2kj7565l.xn--gdh", true); }
......@@ -6525,20 +16167,44 @@ test { try toUnicodePass("xn--2kj7565l.xn--gdh", "\xf0\x9f\x82\xb4\xe2\xb4\x8b.\
652516167test { try toAsciiPass("xn--2kj7565l.xn--gdh", "xn--2kj7565l.xn--gdh", false); }
652616168test { try toAsciiPass("xn--2kj7565l.xn--gdh", "xn--2kj7565l.xn--gdh", true); }
652716169test { try toUnicodeFail("xn--jnd1986v.xn--gdh"); } // [V7]
16170test { try toAsciiFail("xn--jnd1986v.xn--gdh", false); } // [V7]
16171test { try toAsciiFail("xn--jnd1986v.xn--gdh", true); } // [V7]
652816172test { try toUnicodeFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xef\xbd\xa1\xe2\x80\x8c\xf3\xa0\x87\x9f"); } // [C1]
16173test { try toAsciiFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xef\xbd\xa1\xe2\x80\x8c\xf3\xa0\x87\x9f", false); } // [C1]
16174test { try toAsciiFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xef\xbd\xa1\xe2\x80\x8c\xf3\xa0\x87\x9f", true); } // [A4_2]
652916175test { try toUnicodeFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\x87\x9f"); } // [C1]
16176test { try toAsciiFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\x87\x9f", false); } // [C1]
16177test { try toAsciiFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\x87\x9f", true); } // [A4_2]
653016178test { try toUnicodePass("xn--gky8837e.", "\xe7\x92\xbc\xf0\x9d\xa8\xad."); }
16179test { try toAsciiFail("xn--gky8837e.", false); } // [A4_2]
16180test { try toAsciiFail("xn--gky8837e.", true); } // [A4_2]
653116181test { try toUnicodePass("\xe7\x92\xbc\xf0\x9d\xa8\xad.", "\xe7\x92\xbc\xf0\x9d\xa8\xad."); }
16182test { try toAsciiFail("\xe7\x92\xbc\xf0\x9d\xa8\xad.", false); } // [A4_2]
16183test { try toAsciiFail("\xe7\x92\xbc\xf0\x9d\xa8\xad.", true); } // [A4_2]
653216184test { try toUnicodeFail("xn--gky8837e.xn--0ug"); } // [C1]
16185test { try toAsciiFail("xn--gky8837e.xn--0ug", false); } // [C1]
16186test { try toAsciiFail("xn--gky8837e.xn--0ug", true); } // [C1]
653316187test { try toUnicodeFail("\xd9\xa98\xf1\x82\x8d\xbd\xef\xbd\xa1-5\xf0\x9f\x9e\xa5"); } // [B1, V3, V7]
16188test { try toAsciiFail("\xd9\xa98\xf1\x82\x8d\xbd\xef\xbd\xa1-5\xf0\x9f\x9e\xa5", false); } // [B1, V3, V7]
16189test { try toAsciiFail("\xd9\xa98\xf1\x82\x8d\xbd\xef\xbd\xa1-5\xf0\x9f\x9e\xa5", true); } // [B1, V3, V7]
653416190test { try toUnicodeFail("\xd9\xa98\xf1\x82\x8d\xbd\xe3\x80\x82-5\xf0\x9f\x9e\xa5"); } // [B1, V3, V7]
16191test { try toAsciiFail("\xd9\xa98\xf1\x82\x8d\xbd\xe3\x80\x82-5\xf0\x9f\x9e\xa5", false); } // [B1, V3, V7]
16192test { try toAsciiFail("\xd9\xa98\xf1\x82\x8d\xbd\xe3\x80\x82-5\xf0\x9f\x9e\xa5", true); } // [B1, V3, V7]
653516193test { try toUnicodeFail("xn--8-qqc97891f.xn---5-rp92a"); } // [B1, V3, V7]
16194test { try toAsciiFail("xn--8-qqc97891f.xn---5-rp92a", false); } // [B1, V3, V7]
16195test { try toAsciiFail("xn--8-qqc97891f.xn---5-rp92a", true); } // [B1, V3, V7]
653616196test { try toUnicodeFail("\xe2\x80\x8c.\xe2\x80\x8c"); } // [C1]
16197test { try toAsciiFail("\xe2\x80\x8c.\xe2\x80\x8c", false); } // [C1]
16198test { try toAsciiFail("\xe2\x80\x8c.\xe2\x80\x8c", true); } // [A4_1, A4_2]
653716199test { try toUnicodeFail("xn--0ug.xn--0ug"); } // [C1]
16200test { try toAsciiFail("xn--0ug.xn--0ug", false); } // [C1]
16201test { try toAsciiFail("xn--0ug.xn--0ug", true); } // [C1]
653816202test { try toAsciiPass("\xe2\x80\x8d\xed\x8a\x9b.\xdc\x96", "xn--157b.xn--gnb", true); }
653916203test { try toUnicodeFail("\xe2\x80\x8d\xed\x8a\x9b.\xdc\x96"); } // [B1, C2]
16204test { try toAsciiFail("\xe2\x80\x8d\xed\x8a\x9b.\xdc\x96", false); } // [B1, C2]
654016205test { try toAsciiPass("\xe2\x80\x8d\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", true); }
654116206test { try toUnicodeFail("\xe2\x80\x8d\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96"); } // [B1, C2]
16207test { try toAsciiFail("\xe2\x80\x8d\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", false); } // [B1, C2]
654216208test { try toUnicodePass("xn--157b.xn--gnb", "\xed\x8a\x9b.\xdc\x96"); }
654316209test { try toAsciiPass("xn--157b.xn--gnb", "xn--157b.xn--gnb", false); }
654416210test { try toAsciiPass("xn--157b.xn--gnb", "xn--157b.xn--gnb", true); }
......@@ -6549,81 +16215,227 @@ test { try toUnicodePass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "\xed\
654916215test { try toAsciiPass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", false); }
655016216test { try toAsciiPass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", true); }
655116217test { try toUnicodeFail("xn--1ug4441e.xn--gnb"); } // [B1, C2]
16218test { try toAsciiFail("xn--1ug4441e.xn--gnb", false); } // [B1, C2]
16219test { try toAsciiFail("xn--1ug4441e.xn--gnb", true); } // [B1, C2]
655216220test { try toUnicodeFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe2\xb4\x9e"); } // [B2, B3, B5, B6, V7]
16221test { try toAsciiFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe2\xb4\x9e", false); } // [B2, B3, B5, B6, V7]
16222test { try toAsciiFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe2\xb4\x9e", true); } // [B2, B3, B5, B6, V7]
655316223test { try toUnicodeFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe1\x82\xbe"); } // [B2, B3, B5, B6, V7]
16224test { try toAsciiFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe1\x82\xbe", false); } // [B2, B3, B5, B6, V7]
16225test { try toAsciiFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe1\x82\xbe", true); } // [B2, B3, B5, B6, V7]
655416226test { try toUnicodeFail("xn--b8e0417jocvf.xn--9pb883q"); } // [B2, B3, B5, B6, V7]
16227test { try toAsciiFail("xn--b8e0417jocvf.xn--9pb883q", false); } // [B2, B3, B5, B6, V7]
16228test { try toAsciiFail("xn--b8e0417jocvf.xn--9pb883q", true); } // [B2, B3, B5, B6, V7]
655516229test { try toUnicodeFail("xn--b8e0417jocvf.xn--9pb068b"); } // [B2, B3, B5, B6, V7]
16230test { try toAsciiFail("xn--b8e0417jocvf.xn--9pb068b", false); } // [B2, B3, B5, B6, V7]
16231test { try toAsciiFail("xn--b8e0417jocvf.xn--9pb068b", true); } // [B2, B3, B5, B6, V7]
655616232test { try toUnicodeFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb\xf0\x9d\x9f\xa7\xef\xbc\x8e\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe1\x82\xa7"); } // [B1, B4, V7]
16233test { try toAsciiFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb\xf0\x9d\x9f\xa7\xef\xbc\x8e\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe1\x82\xa7", false); } // [B1, B4, V7]
16234test { try toAsciiFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb\xf0\x9d\x9f\xa7\xef\xbc\x8e\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe1\x82\xa7", true); } // [B1, B4, V7]
655716235test { try toUnicodeFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb5.\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe1\x82\xa7"); } // [B1, B4, V7]
16236test { try toAsciiFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb5.\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe1\x82\xa7", false); } // [B1, B4, V7]
16237test { try toAsciiFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb5.\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe1\x82\xa7", true); } // [B1, B4, V7]
655816238test { try toUnicodeFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb5.\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe2\xb4\x87"); } // [B1, B4, V7]
16239test { try toAsciiFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb5.\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe2\xb4\x87", false); } // [B1, B4, V7]
16240test { try toAsciiFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb5.\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe2\xb4\x87", true); } // [B1, B4, V7]
655916241test { try toUnicodeFail("xn--5-cqc8833rhv7f.xn--ykjz523efa"); } // [B1, B4, V7]
16242test { try toAsciiFail("xn--5-cqc8833rhv7f.xn--ykjz523efa", false); } // [B1, B4, V7]
16243test { try toAsciiFail("xn--5-cqc8833rhv7f.xn--ykjz523efa", true); } // [B1, B4, V7]
656016244test { try toUnicodeFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb\xf0\x9d\x9f\xa7\xef\xbc\x8e\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe2\xb4\x87"); } // [B1, B4, V7]
16245test { try toAsciiFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb\xf0\x9d\x9f\xa7\xef\xbc\x8e\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe2\xb4\x87", false); } // [B1, B4, V7]
16246test { try toAsciiFail("\xf0\x90\xb7\x83\xd9\xa2\xf0\x9d\x85\xbb\xf0\x9d\x9f\xa7\xef\xbc\x8e\xf0\x90\xb9\xae\xf0\x90\xb9\xac\xe2\xb4\x87", true); } // [B1, B4, V7]
656116247test { try toUnicodeFail("xn--5-cqc8833rhv7f.xn--fnd3401kfa"); } // [B1, B4, V7]
16248test { try toAsciiFail("xn--5-cqc8833rhv7f.xn--fnd3401kfa", false); } // [B1, B4, V7]
16249test { try toAsciiFail("xn--5-cqc8833rhv7f.xn--fnd3401kfa", true); } // [B1, B4, V7]
656216250test { try toUnicodeFail("\xe1\x82\xb7\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
16251test { try toAsciiFail("\xe1\x82\xb7\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8", false); } // [V6, V7]
16252test { try toAsciiFail("\xe1\x82\xb7\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8", true); } // [V6, V7]
656316253test { try toUnicodeFail("\xe1\x82\xb7\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
16254test { try toAsciiFail("\xe1\x82\xb7\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8", false); } // [V6, V7]
16255test { try toAsciiFail("\xe1\x82\xb7\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8", true); } // [V6, V7]
656416256test { try toUnicodeFail("\xe1\x82\xb7.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
16257test { try toAsciiFail("\xe1\x82\xb7.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8", false); } // [V6, V7]
16258test { try toAsciiFail("\xe1\x82\xb7.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8", true); } // [V6, V7]
656516259test { try toUnicodeFail("\xe2\xb4\x97.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
16260test { try toAsciiFail("\xe2\xb4\x97.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8", false); } // [V6, V7]
16261test { try toAsciiFail("\xe2\xb4\x97.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8", true); } // [V6, V7]
656616262test { try toUnicodeFail("xn--flj.xn--qdb0605f14ycrms3c"); } // [V6, V7]
16263test { try toAsciiFail("xn--flj.xn--qdb0605f14ycrms3c", false); } // [V6, V7]
16264test { try toAsciiFail("xn--flj.xn--qdb0605f14ycrms3c", true); } // [V6, V7]
656716265test { try toUnicodeFail("\xe2\xb4\x97\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
16266test { try toAsciiFail("\xe2\xb4\x97\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8", false); } // [V6, V7]
16267test { try toAsciiFail("\xe2\xb4\x97\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8", true); } // [V6, V7]
656816268test { try toUnicodeFail("\xe2\xb4\x97\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
16269test { try toAsciiFail("\xe2\xb4\x97\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8", false); } // [V6, V7]
16270test { try toAsciiFail("\xe2\xb4\x97\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8", true); } // [V6, V7]
656916271test { try toUnicodeFail("xn--vnd.xn--qdb0605f14ycrms3c"); } // [V6, V7]
16272test { try toAsciiFail("xn--vnd.xn--qdb0605f14ycrms3c", false); } // [V6, V7]
16273test { try toAsciiFail("xn--vnd.xn--qdb0605f14ycrms3c", true); } // [V6, V7]
657016274test { try toUnicodeFail("\xf0\x9d\x9f\xbe\xf0\xbe\xa4\x98\xef\xbc\x8e\xf2\x87\x95\x9b\xd9\xac"); } // [B1, B5, B6, V7]
16275test { try toAsciiFail("\xf0\x9d\x9f\xbe\xf0\xbe\xa4\x98\xef\xbc\x8e\xf2\x87\x95\x9b\xd9\xac", false); } // [B1, B5, B6, V7]
16276test { try toAsciiFail("\xf0\x9d\x9f\xbe\xf0\xbe\xa4\x98\xef\xbc\x8e\xf2\x87\x95\x9b\xd9\xac", true); } // [B1, B5, B6, V7]
657116277test { try toUnicodeFail("8\xf0\xbe\xa4\x98.\xf2\x87\x95\x9b\xd9\xac"); } // [B1, B5, B6, V7]
16278test { try toAsciiFail("8\xf0\xbe\xa4\x98.\xf2\x87\x95\x9b\xd9\xac", false); } // [B1, B5, B6, V7]
16279test { try toAsciiFail("8\xf0\xbe\xa4\x98.\xf2\x87\x95\x9b\xd9\xac", true); } // [B1, B5, B6, V7]
657216280test { try toUnicodeFail("xn--8-kh23b.xn--lib78461i"); } // [B1, B5, B6, V7]
16281test { try toAsciiFail("xn--8-kh23b.xn--lib78461i", false); } // [B1, B5, B6, V7]
16282test { try toAsciiFail("xn--8-kh23b.xn--lib78461i", true); } // [B1, B5, B6, V7]
657316283test { try toUnicodeFail("\xe2\x92\x88\xe9\x85\xab\xef\xb8\x92\xe3\x80\x82\xe0\xa3\x96"); } // [V6, V7]
16284test { try toAsciiFail("\xe2\x92\x88\xe9\x85\xab\xef\xb8\x92\xe3\x80\x82\xe0\xa3\x96", false); } // [V6, V7]
16285test { try toAsciiFail("\xe2\x92\x88\xe9\x85\xab\xef\xb8\x92\xe3\x80\x82\xe0\xa3\x96", true); } // [V6, V7]
657416286test { try toUnicodeFail("1.\xe9\x85\xab\xe3\x80\x82\xe3\x80\x82\xe0\xa3\x96"); } // [V6, X4_2]
16287test { try toAsciiFail("1.\xe9\x85\xab\xe3\x80\x82\xe3\x80\x82\xe0\xa3\x96", false); } // [V6, A4_2]
16288test { try toAsciiFail("1.\xe9\x85\xab\xe3\x80\x82\xe3\x80\x82\xe0\xa3\x96", true); } // [V6, A4_2]
657516289test { try toUnicodeFail("1.xn--8j4a..xn--8zb"); } // [V6, X4_2]
16290test { try toAsciiFail("1.xn--8j4a..xn--8zb", false); } // [V6, A4_2]
16291test { try toAsciiFail("1.xn--8j4a..xn--8zb", true); } // [V6, A4_2]
657616292test { try toUnicodeFail("xn--tsh4490bfe8c.xn--8zb"); } // [V6, V7]
16293test { try toAsciiFail("xn--tsh4490bfe8c.xn--8zb", false); } // [V6, V7]
16294test { try toAsciiFail("xn--tsh4490bfe8c.xn--8zb", true); } // [V6, V7]
657716295test { try toUnicodeFail("\xe2\xb7\xa3\xe2\x80\x8c\xe2\x89\xae\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba"); } // [C1, V6]
16296test { try toAsciiFail("\xe2\xb7\xa3\xe2\x80\x8c\xe2\x89\xae\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba", false); } // [C1, V6]
16297test { try toAsciiFail("\xe2\xb7\xa3\xe2\x80\x8c\xe2\x89\xae\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba", true); } // [V6]
657816298test { try toUnicodeFail("\xe2\xb7\xa3\xe2\x80\x8c<\xcc\xb8\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba"); } // [C1, V6]
16299test { try toAsciiFail("\xe2\xb7\xa3\xe2\x80\x8c<\xcc\xb8\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba", false); } // [C1, V6]
16300test { try toAsciiFail("\xe2\xb7\xa3\xe2\x80\x8c<\xcc\xb8\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba", true); } // [V6]
657916301test { try toUnicodeFail("xn--uof548an0j.xn--o4c"); } // [V6]
16302test { try toAsciiFail("xn--uof548an0j.xn--o4c", false); } // [V6]
16303test { try toAsciiFail("xn--uof548an0j.xn--o4c", true); } // [V6]
658016304test { try toUnicodeFail("xn--uof63xk4bf3s.xn--o4c732g"); } // [C1, V6]
16305test { try toAsciiFail("xn--uof63xk4bf3s.xn--o4c732g", false); } // [C1, V6]
16306test { try toAsciiFail("xn--uof63xk4bf3s.xn--o4c732g", true); } // [C1, V6]
658116307test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7]
16308test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd\xc2\xb9\xe2\x80\x8d", false); } // [B6, C2, V7]
16309test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd\xc2\xb9\xe2\x80\x8d", true); } // [V7]
658216310test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd1\xe2\x80\x8d"); } // [B6, C2, V7]
16311test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd1\xe2\x80\x8d", false); } // [B6, C2, V7]
16312test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd1\xe2\x80\x8d", true); } // [V7]
658316313test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d1\xe2\x80\x8d"); } // [B6, C2, V7]
16314test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d1\xe2\x80\x8d", false); } // [B6, C2, V7]
16315test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d1\xe2\x80\x8d", true); } // [V7]
658416316test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d1\xe2\x80\x8d"); } // [B6, C2, V7]
16317test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d1\xe2\x80\x8d", false); } // [B6, C2, V7]
16318test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d1\xe2\x80\x8d", true); } // [V7]
658516319test { try toUnicodeFail("xn--co6h.xn--1-kwssa"); } // [V7]
16320test { try toAsciiFail("xn--co6h.xn--1-kwssa", false); } // [V7]
16321test { try toAsciiFail("xn--co6h.xn--1-kwssa", true); } // [V7]
658616322test { try toUnicodeFail("xn--co6h.xn--1-ugn710dya"); } // [B6, C2, V7]
16323test { try toAsciiFail("xn--co6h.xn--1-ugn710dya", false); } // [B6, C2, V7]
16324test { try toAsciiFail("xn--co6h.xn--1-ugn710dya", true); } // [B6, C2, V7]
658716325test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7]
16326test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d", false); } // [B6, C2, V7]
16327test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d", true); } // [V7]
658816328test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7]
16329test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d", false); } // [B6, C2, V7]
16330test { try toAsciiFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d", true); } // [V7]
658916331test { try toUnicodeFail("xn--co6h.xn--1-h1g429s"); } // [V7]
16332test { try toAsciiFail("xn--co6h.xn--1-h1g429s", false); } // [V7]
16333test { try toAsciiFail("xn--co6h.xn--1-h1g429s", true); } // [V7]
659016334test { try toUnicodeFail("xn--co6h.xn--1-h1g398iewm"); } // [B6, C2, V7]
16335test { try toAsciiFail("xn--co6h.xn--1-h1g398iewm", false); } // [B6, C2, V7]
16336test { try toAsciiFail("xn--co6h.xn--1-h1g398iewm", true); } // [B6, C2, V7]
659116337test { try toUnicodeFail("xn--co6h.xn--1-h1gs"); } // [V7]
16338test { try toAsciiFail("xn--co6h.xn--1-h1gs", false); } // [V7]
16339test { try toAsciiFail("xn--co6h.xn--1-h1gs", true); } // [V7]
659216340test { try toUnicodeFail("xn--co6h.xn--1-h1gs597m"); } // [B6, C2, V7]
16341test { try toAsciiFail("xn--co6h.xn--1-h1gs597m", false); } // [B6, C2, V7]
16342test { try toAsciiFail("xn--co6h.xn--1-h1gs597m", true); } // [B6, C2, V7]
659316343test { try toUnicodeFail("\xf0\x91\x84\xb4\xf0\x91\x84\xb32.\xf0\x9e\xb3\xbf\xf3\xa0\x80\xb3-"); } // [B1, B3, V3, V6, V7]
16344test { try toAsciiFail("\xf0\x91\x84\xb4\xf0\x91\x84\xb32.\xf0\x9e\xb3\xbf\xf3\xa0\x80\xb3-", false); } // [B1, B3, V3, V6, V7]
16345test { try toAsciiFail("\xf0\x91\x84\xb4\xf0\x91\x84\xb32.\xf0\x9e\xb3\xbf\xf3\xa0\x80\xb3-", true); } // [B1, B3, V3, V6, V7]
659416346test { try toUnicodeFail("xn--2-h87ic.xn----s39r33498d"); } // [B1, B3, V3, V6, V7]
16347test { try toAsciiFail("xn--2-h87ic.xn----s39r33498d", false); } // [B1, B3, V3, V6, V7]
16348test { try toAsciiFail("xn--2-h87ic.xn----s39r33498d", true); } // [B1, B3, V3, V6, V7]
659516349test { try toUnicodeFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xef\xbd\xa1\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\x83\xdc\x90"); } // [B1, B5, B6, V7]
16350test { try toAsciiFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xef\xbd\xa1\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\x83\xdc\x90", false); } // [B1, B5, B6, V7]
16351test { try toAsciiFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xef\xbd\xa1\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\x83\xdc\x90", true); } // [B1, B5, B6, V7]
659616352test { try toUnicodeFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xe3\x80\x82\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\x83\xdc\x90"); } // [B1, B5, B6, V7]
16353test { try toAsciiFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xe3\x80\x82\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\x83\xdc\x90", false); } // [B1, B5, B6, V7]
16354test { try toAsciiFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xe3\x80\x82\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\x83\xdc\x90", true); } // [B1, B5, B6, V7]
659716355test { try toUnicodeFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xe3\x80\x82\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\xa5\xdc\x90"); } // [B1, B5, B6, V7]
16356test { try toAsciiFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xe3\x80\x82\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\xa5\xdc\x90", false); } // [B1, B5, B6, V7]
16357test { try toAsciiFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xe3\x80\x82\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\xa5\xdc\x90", true); } // [B1, B5, B6, V7]
659816358test { try toUnicodeFail("xn--eib57614py3ea.xn--9mb5737kqnpfzkwr"); } // [B1, B5, B6, V7]
16359test { try toAsciiFail("xn--eib57614py3ea.xn--9mb5737kqnpfzkwr", false); } // [B1, B5, B6, V7]
16360test { try toAsciiFail("xn--eib57614py3ea.xn--9mb5737kqnpfzkwr", true); } // [B1, B5, B6, V7]
659916361test { try toUnicodeFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xef\xbd\xa1\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\xa5\xdc\x90"); } // [B1, B5, B6, V7]
16362test { try toAsciiFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xef\xbd\xa1\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\xa5\xdc\x90", false); } // [B1, B5, B6, V7]
16363test { try toAsciiFail("\xf3\xa0\x95\xb2\xf3\x9f\xb6\xb6\xd9\xa5\xef\xbd\xa1\xf1\x80\x81\x81\xf0\x91\x84\xb3\xf0\x9e\xa4\xa5\xdc\x90", true); } // [B1, B5, B6, V7]
660016364test { try toUnicodeFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xcf\x82\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c"); } // [B2, B6, C1, V7]
16365test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xcf\x82\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", false); } // [B2, B6, C1, V7]
16366test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xcf\x82\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", true); } // [B2, B6, V7]
660116367test { try toUnicodeFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xcf\x82\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c"); } // [B2, B6, C1, V7]
16368test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xcf\x82\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", false); } // [B2, B6, C1, V7]
16369test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xcf\x82\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", true); } // [B2, B6, V7]
660216370test { try toUnicodeFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xce\xa3\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c"); } // [B2, B6, C1, V7]
16371test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xce\xa3\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", false); } // [B2, B6, C1, V7]
16372test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xce\xa3\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", true); } // [B2, B6, V7]
660316373test { try toUnicodeFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xcf\x83\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c"); } // [B2, B6, C1, V7]
16374test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xcf\x83\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", false); } // [B2, B6, C1, V7]
16375test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xe3\x80\x82\xcf\x83\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", true); } // [B2, B6, V7]
660416376test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--4xa847hli46a"); } // [B2, B6, V7]
16377test { try toAsciiFail("xn--qnb616fis0qzt36f.xn--4xa847hli46a", false); } // [B2, B6, V7]
16378test { try toAsciiFail("xn--qnb616fis0qzt36f.xn--4xa847hli46a", true); } // [B2, B6, V7]
660516379test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--4xa847h6ofgl44c"); } // [B2, B6, C1, V7]
16380test { try toAsciiFail("xn--qnb616fis0qzt36f.xn--4xa847h6ofgl44c", false); } // [B2, B6, C1, V7]
16381test { try toAsciiFail("xn--qnb616fis0qzt36f.xn--4xa847h6ofgl44c", true); } // [B2, B6, C1, V7]
660616382test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--3xa057h6ofgl44c"); } // [B2, B6, C1, V7]
16383test { try toAsciiFail("xn--qnb616fis0qzt36f.xn--3xa057h6ofgl44c", false); } // [B2, B6, C1, V7]
16384test { try toAsciiFail("xn--qnb616fis0qzt36f.xn--3xa057h6ofgl44c", true); } // [B2, B6, C1, V7]
660716385test { try toUnicodeFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xce\xa3\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c"); } // [B2, B6, C1, V7]
16386test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xce\xa3\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", false); } // [B2, B6, C1, V7]
16387test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xce\xa3\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", true); } // [B2, B6, V7]
660816388test { try toUnicodeFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xcf\x83\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c"); } // [B2, B6, C1, V7]
16389test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xcf\x83\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", false); } // [B2, B6, C1, V7]
16390test { try toAsciiFail("\xdc\xa0\xf2\xb2\xa0\xbd\xf0\x90\xb9\xa2\xe1\x9e\xbb\xef\xbd\xa1\xcf\x83\xe1\xa2\x88\xf0\x9f\x9d\xad\xe2\x80\x8c", true); } // [B2, B6, V7]
660916391test { try toUnicodeFail("\xe2\x80\x8d--\xe2\x89\xae\xe3\x80\x82\xf0\x90\xb9\xa7"); } // [B1, C2]
16392test { try toAsciiFail("\xe2\x80\x8d--\xe2\x89\xae\xe3\x80\x82\xf0\x90\xb9\xa7", false); } // [B1, C2]
16393test { try toAsciiFail("\xe2\x80\x8d--\xe2\x89\xae\xe3\x80\x82\xf0\x90\xb9\xa7", true); } // [B1, V3]
661016394test { try toUnicodeFail("\xe2\x80\x8d--<\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xa7"); } // [B1, C2]
16395test { try toAsciiFail("\xe2\x80\x8d--<\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xa7", false); } // [B1, C2]
16396test { try toAsciiFail("\xe2\x80\x8d--<\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xa7", true); } // [B1, V3]
661116397test { try toUnicodeFail("xn-----ujv.xn--fo0d"); } // [B1, V3]
16398test { try toAsciiFail("xn-----ujv.xn--fo0d", false); } // [B1, V3]
16399test { try toAsciiFail("xn-----ujv.xn--fo0d", true); } // [B1, V3]
661216400test { try toUnicodeFail("xn-----l1tz1k.xn--fo0d"); } // [B1, C2]
16401test { try toAsciiFail("xn-----l1tz1k.xn--fo0d", false); } // [B1, C2]
16402test { try toAsciiFail("xn-----l1tz1k.xn--fo0d", true); } // [B1, C2]
661316403test { try toUnicodeFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb0\xe2\x92\x95"); } // [V6, V7]
16404test { try toAsciiFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb0\xe2\x92\x95", false); } // [V6, V7]
16405test { try toAsciiFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb0\xe2\x92\x95", true); } // [V6, V7]
661416406test { try toUnicodeFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb014."); } // [V6, V7]
16407test { try toAsciiFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb014.", false); } // [V6, V7, A4_2]
16408test { try toAsciiFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb014.", true); } // [V6, V7, A4_2]
661516409test { try toUnicodeFail("xn--l98a.xn--14-jsj57880f."); } // [V6, V7]
16410test { try toAsciiFail("xn--l98a.xn--14-jsj57880f.", false); } // [V6, V7, A4_2]
16411test { try toAsciiFail("xn--l98a.xn--14-jsj57880f.", true); } // [V6, V7, A4_2]
661616412test { try toUnicodeFail("xn--l98a.xn--dgd218hhp28d"); } // [V6, V7]
16413test { try toAsciiFail("xn--l98a.xn--dgd218hhp28d", false); } // [V6, V7]
16414test { try toAsciiFail("xn--l98a.xn--dgd218hhp28d", true); } // [V6, V7]
661716415test { try toUnicodeFail("\xf2\xae\x89\x82\xda\xbc\xef\xbc\x8e\xf0\x91\x86\xba\xd9\xa9"); } // [B1, B5, B6, V6, V7]
16416test { try toAsciiFail("\xf2\xae\x89\x82\xda\xbc\xef\xbc\x8e\xf0\x91\x86\xba\xd9\xa9", false); } // [B1, B5, B6, V6, V7]
16417test { try toAsciiFail("\xf2\xae\x89\x82\xda\xbc\xef\xbc\x8e\xf0\x91\x86\xba\xd9\xa9", true); } // [B1, B5, B6, V6, V7]
661816418test { try toUnicodeFail("\xf2\xae\x89\x82\xda\xbc.\xf0\x91\x86\xba\xd9\xa9"); } // [B1, B5, B6, V6, V7]
16419test { try toAsciiFail("\xf2\xae\x89\x82\xda\xbc.\xf0\x91\x86\xba\xd9\xa9", false); } // [B1, B5, B6, V6, V7]
16420test { try toAsciiFail("\xf2\xae\x89\x82\xda\xbc.\xf0\x91\x86\xba\xd9\xa9", true); } // [B1, B5, B6, V6, V7]
661916421test { try toUnicodeFail("xn--vkb92243l.xn--iib9797k"); } // [B1, B5, B6, V6, V7]
16422test { try toAsciiFail("xn--vkb92243l.xn--iib9797k", false); } // [B1, B5, B6, V6, V7]
16423test { try toAsciiFail("xn--vkb92243l.xn--iib9797k", true); } // [B1, B5, B6, V6, V7]
662016424test { try toUnicodeFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\xb4"); } // [B1, V3, V7]
16425test { try toAsciiFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\xb4", false); } // [B1, V3, V7]
16426test { try toAsciiFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\xb4", true); } // [B1, V3, V7]
662116427test { try toUnicodeFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\x92"); } // [B1, V3, V7]
16428test { try toAsciiFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\x92", false); } // [B1, V3, V7]
16429test { try toAsciiFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\x92", true); } // [B1, V3, V7]
662216430test { try toUnicodeFail("xn----mwc72685y.xn--se6h"); } // [B1, V3, V7]
16431test { try toAsciiFail("xn----mwc72685y.xn--se6h", false); } // [B1, V3, V7]
16432test { try toAsciiFail("xn----mwc72685y.xn--se6h", true); } // [B1, V3, V7]
662316433test { try toAsciiPass("\xf0\x9d\x9f\xa04\xf3\xa0\x87\x97\xf0\x9d\x88\xbb\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x8b\xb5\xe2\x9b\xa7\xe2\x80\x8d", "xn--84-s850a.xn--59h6326e", true); }
662416434test { try toUnicodeFail("\xf0\x9d\x9f\xa04\xf3\xa0\x87\x97\xf0\x9d\x88\xbb\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x8b\xb5\xe2\x9b\xa7\xe2\x80\x8d"); } // [C2]
16435test { try toAsciiFail("\xf0\x9d\x9f\xa04\xf3\xa0\x87\x97\xf0\x9d\x88\xbb\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x8b\xb5\xe2\x9b\xa7\xe2\x80\x8d", false); } // [C2]
662516436test { try toAsciiPass("84\xf3\xa0\x87\x97\xf0\x9d\x88\xbb.\xe2\x80\x8d\xf0\x90\x8b\xb5\xe2\x9b\xa7\xe2\x80\x8d", "xn--84-s850a.xn--59h6326e", true); }
662616437test { try toUnicodeFail("84\xf3\xa0\x87\x97\xf0\x9d\x88\xbb.\xe2\x80\x8d\xf0\x90\x8b\xb5\xe2\x9b\xa7\xe2\x80\x8d"); } // [C2]
16438test { try toAsciiFail("84\xf3\xa0\x87\x97\xf0\x9d\x88\xbb.\xe2\x80\x8d\xf0\x90\x8b\xb5\xe2\x9b\xa7\xe2\x80\x8d", false); } // [C2]
662716439test { try toUnicodePass("xn--84-s850a.xn--59h6326e", "84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7"); }
662816440test { try toAsciiPass("xn--84-s850a.xn--59h6326e", "xn--84-s850a.xn--59h6326e", false); }
662916441test { try toAsciiPass("xn--84-s850a.xn--59h6326e", "xn--84-s850a.xn--59h6326e", true); }
......@@ -6631,9 +16443,17 @@ test { try toUnicodePass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "84\
663116443test { try toAsciiPass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "xn--84-s850a.xn--59h6326e", false); }
663216444test { try toAsciiPass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "xn--84-s850a.xn--59h6326e", true); }
663316445test { try toUnicodeFail("xn--84-s850a.xn--1uga573cfq1w"); } // [C2]
16446test { try toAsciiFail("xn--84-s850a.xn--1uga573cfq1w", false); } // [C2]
16447test { try toAsciiFail("xn--84-s850a.xn--1uga573cfq1w", true); } // [C2]
663416448test { try toUnicodeFail("-\xd8\x81\xef\xbd\xa1\xe1\xa1\xaa"); } // [B1, V3, V7]
16449test { try toAsciiFail("-\xd8\x81\xef\xbd\xa1\xe1\xa1\xaa", false); } // [B1, V3, V7]
16450test { try toAsciiFail("-\xd8\x81\xef\xbd\xa1\xe1\xa1\xaa", true); } // [B1, V3, V7]
663516451test { try toUnicodeFail("-\xd8\x81\xe3\x80\x82\xe1\xa1\xaa"); } // [B1, V3, V7]
16452test { try toAsciiFail("-\xd8\x81\xe3\x80\x82\xe1\xa1\xaa", false); } // [B1, V3, V7]
16453test { try toAsciiFail("-\xd8\x81\xe3\x80\x82\xe1\xa1\xaa", true); } // [B1, V3, V7]
663616454test { try toUnicodeFail("xn----tkc.xn--68e"); } // [B1, V3, V7]
16455test { try toAsciiFail("xn----tkc.xn--68e", false); } // [B1, V3, V7]
16456test { try toAsciiFail("xn----tkc.xn--68e", true); } // [B1, V3, V7]
663716457test { try toUnicodePass("\xe2\x89\xae\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96\xc3\x9f\xe2\x89\xaf", "\xe2\x89\xae7.\xe8\xac\x96\xc3\x9f\xe2\x89\xaf"); }
663816458test { try toAsciiPass("\xe2\x89\xae\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96\xc3\x9f\xe2\x89\xaf", "xn--7-mgo.xn--zca892oly5e", false); }
663916459test { try toAsciiPass("\xe2\x89\xae\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96\xc3\x9f\xe2\x89\xaf", "xn--7-mgo.xn--ss-xjvv174c", true); }
......@@ -6689,45 +16509,125 @@ test { try toUnicodePass("\xe2\x89\xae\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96Ss
668916509test { try toAsciiPass("\xe2\x89\xae\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96Ss\xe2\x89\xaf", "xn--7-mgo.xn--ss-xjvv174c", false); }
669016510test { try toAsciiPass("\xe2\x89\xae\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96Ss\xe2\x89\xaf", "xn--7-mgo.xn--ss-xjvv174c", true); }
669116511test { try toUnicodeFail("\xe6\x9c\xb6\xe1\x82\xa9\xf0\x9e\xaa\xa1.\xf0\x9d\xa8\xbd\xe0\xa0\xa5\xf0\x9f\x93\xbb-"); } // [B1, B5, B6, V3, V6, V7]
16512test { try toAsciiFail("\xe6\x9c\xb6\xe1\x82\xa9\xf0\x9e\xaa\xa1.\xf0\x9d\xa8\xbd\xe0\xa0\xa5\xf0\x9f\x93\xbb-", false); } // [B1, B5, B6, V3, V6, V7]
16513test { try toAsciiFail("\xe6\x9c\xb6\xe1\x82\xa9\xf0\x9e\xaa\xa1.\xf0\x9d\xa8\xbd\xe0\xa0\xa5\xf0\x9f\x93\xbb-", true); } // [B1, B5, B6, V3, V6, V7]
669216514test { try toUnicodeFail("\xe6\x9c\xb6\xe2\xb4\x89\xf0\x9e\xaa\xa1.\xf0\x9d\xa8\xbd\xe0\xa0\xa5\xf0\x9f\x93\xbb-"); } // [B1, B5, B6, V3, V6, V7]
16515test { try toAsciiFail("\xe6\x9c\xb6\xe2\xb4\x89\xf0\x9e\xaa\xa1.\xf0\x9d\xa8\xbd\xe0\xa0\xa5\xf0\x9f\x93\xbb-", false); } // [B1, B5, B6, V3, V6, V7]
16516test { try toAsciiFail("\xe6\x9c\xb6\xe2\xb4\x89\xf0\x9e\xaa\xa1.\xf0\x9d\xa8\xbd\xe0\xa0\xa5\xf0\x9f\x93\xbb-", true); } // [B1, B5, B6, V3, V6, V7]
669316517test { try toUnicodeFail("xn--0kjz47pd57t.xn----3gd37096apmwa"); } // [B1, B5, B6, V3, V6, V7]
16518test { try toAsciiFail("xn--0kjz47pd57t.xn----3gd37096apmwa", false); } // [B1, B5, B6, V3, V6, V7]
16519test { try toAsciiFail("xn--0kjz47pd57t.xn----3gd37096apmwa", true); } // [B1, B5, B6, V3, V6, V7]
669416520test { try toUnicodeFail("xn--hnd7245bd56p.xn----3gd37096apmwa"); } // [B1, B5, B6, V3, V6, V7]
16521test { try toAsciiFail("xn--hnd7245bd56p.xn----3gd37096apmwa", false); } // [B1, B5, B6, V3, V6, V7]
16522test { try toAsciiFail("xn--hnd7245bd56p.xn----3gd37096apmwa", true); } // [B1, B5, B6, V3, V6, V7]
669516523test { try toUnicodeFail("\xf0\x90\xa4\x8e\xe3\x80\x82\xf3\x91\xbf\xb0\xe2\x80\x8c\xe2\x89\xae\xe2\x80\x8d"); } // [B6, C1, C2, V7]
16524test { try toAsciiFail("\xf0\x90\xa4\x8e\xe3\x80\x82\xf3\x91\xbf\xb0\xe2\x80\x8c\xe2\x89\xae\xe2\x80\x8d", false); } // [B6, C1, C2, V7]
16525test { try toAsciiFail("\xf0\x90\xa4\x8e\xe3\x80\x82\xf3\x91\xbf\xb0\xe2\x80\x8c\xe2\x89\xae\xe2\x80\x8d", true); } // [B6, V7]
669616526test { try toUnicodeFail("\xf0\x90\xa4\x8e\xe3\x80\x82\xf3\x91\xbf\xb0\xe2\x80\x8c<\xcc\xb8\xe2\x80\x8d"); } // [B6, C1, C2, V7]
16527test { try toAsciiFail("\xf0\x90\xa4\x8e\xe3\x80\x82\xf3\x91\xbf\xb0\xe2\x80\x8c<\xcc\xb8\xe2\x80\x8d", false); } // [B6, C1, C2, V7]
16528test { try toAsciiFail("\xf0\x90\xa4\x8e\xe3\x80\x82\xf3\x91\xbf\xb0\xe2\x80\x8c<\xcc\xb8\xe2\x80\x8d", true); } // [B6, V7]
669716529test { try toUnicodeFail("xn--bk9c.xn--gdhx6802k"); } // [B6, V7]
16530test { try toAsciiFail("xn--bk9c.xn--gdhx6802k", false); } // [B6, V7]
16531test { try toAsciiFail("xn--bk9c.xn--gdhx6802k", true); } // [B6, V7]
669816532test { try toUnicodeFail("xn--bk9c.xn--0ugc04p2u638c"); } // [B6, C1, C2, V7]
16533test { try toAsciiFail("xn--bk9c.xn--0ugc04p2u638c", false); } // [B6, C1, C2, V7]
16534test { try toAsciiFail("xn--bk9c.xn--0ugc04p2u638c", true); } // [B6, C1, C2, V7]
669916535test { try toUnicodeFail("\xf1\xad\x9c\x8e\xe2\x92\x88\xef\xbd\xa1\xe2\x80\x8c\xf0\x9d\x9f\xa4"); } // [C1, V7]
16536test { try toAsciiFail("\xf1\xad\x9c\x8e\xe2\x92\x88\xef\xbd\xa1\xe2\x80\x8c\xf0\x9d\x9f\xa4", false); } // [C1, V7]
16537test { try toAsciiFail("\xf1\xad\x9c\x8e\xe2\x92\x88\xef\xbd\xa1\xe2\x80\x8c\xf0\x9d\x9f\xa4", true); } // [V7]
670016538test { try toUnicodeFail("\xf1\xad\x9c\x8e1.\xe3\x80\x82\xe2\x80\x8c2"); } // [C1, V7, X4_2]
16539test { try toAsciiFail("\xf1\xad\x9c\x8e1.\xe3\x80\x82\xe2\x80\x8c2", false); } // [C1, V7, A4_2]
16540test { try toAsciiFail("\xf1\xad\x9c\x8e1.\xe3\x80\x82\xe2\x80\x8c2", true); } // [V7, A4_2]
670116541test { try toUnicodeFail("xn--1-ex54e..c"); } // [V7, X4_2]
16542test { try toAsciiFail("xn--1-ex54e..c", false); } // [V7, A4_2]
16543test { try toAsciiFail("xn--1-ex54e..c", true); } // [V7, A4_2]
670216544test { try toUnicodeFail("xn--1-ex54e..xn--2-rgn"); } // [C1, V7, X4_2]
16545test { try toAsciiFail("xn--1-ex54e..xn--2-rgn", false); } // [C1, V7, A4_2]
16546test { try toAsciiFail("xn--1-ex54e..xn--2-rgn", true); } // [C1, V7, A4_2]
670316547test { try toUnicodeFail("xn--tsh94183d.c"); } // [V7]
16548test { try toAsciiFail("xn--tsh94183d.c", false); } // [V7]
16549test { try toAsciiFail("xn--tsh94183d.c", true); } // [V7]
670416550test { try toUnicodeFail("xn--tsh94183d.xn--2-rgn"); } // [C1, V7]
16551test { try toAsciiFail("xn--tsh94183d.xn--2-rgn", false); } // [C1, V7]
16552test { try toAsciiFail("xn--tsh94183d.xn--2-rgn", true); } // [C1, V7]
670516553test { try toUnicodeFail("\xf3\xa0\x9f\x8a\xf0\x90\xb9\xa4\xe2\x80\x8d\xef\xbc\x8e\xf0\x90\xb9\xb3\xf3\x99\x84\xb5\xf0\x90\xb9\xb6"); } // [B1, C2, V7]
16554test { try toAsciiFail("\xf3\xa0\x9f\x8a\xf0\x90\xb9\xa4\xe2\x80\x8d\xef\xbc\x8e\xf0\x90\xb9\xb3\xf3\x99\x84\xb5\xf0\x90\xb9\xb6", false); } // [B1, C2, V7]
16555test { try toAsciiFail("\xf3\xa0\x9f\x8a\xf0\x90\xb9\xa4\xe2\x80\x8d\xef\xbc\x8e\xf0\x90\xb9\xb3\xf3\x99\x84\xb5\xf0\x90\xb9\xb6", true); } // [B1, V7]
670616556test { try toUnicodeFail("\xf3\xa0\x9f\x8a\xf0\x90\xb9\xa4\xe2\x80\x8d.\xf0\x90\xb9\xb3\xf3\x99\x84\xb5\xf0\x90\xb9\xb6"); } // [B1, C2, V7]
16557test { try toAsciiFail("\xf3\xa0\x9f\x8a\xf0\x90\xb9\xa4\xe2\x80\x8d.\xf0\x90\xb9\xb3\xf3\x99\x84\xb5\xf0\x90\xb9\xb6", false); } // [B1, C2, V7]
16558test { try toAsciiFail("\xf3\xa0\x9f\x8a\xf0\x90\xb9\xa4\xe2\x80\x8d.\xf0\x90\xb9\xb3\xf3\x99\x84\xb5\xf0\x90\xb9\xb6", true); } // [B1, V7]
670716559test { try toUnicodeFail("xn--co0d98977c.xn--ro0dga22807v"); } // [B1, V7]
16560test { try toAsciiFail("xn--co0d98977c.xn--ro0dga22807v", false); } // [B1, V7]
16561test { try toAsciiFail("xn--co0d98977c.xn--ro0dga22807v", true); } // [B1, V7]
670816562test { try toUnicodeFail("xn--1ugy994g7k93g.xn--ro0dga22807v"); } // [B1, C2, V7]
16563test { try toAsciiFail("xn--1ugy994g7k93g.xn--ro0dga22807v", false); } // [B1, C2, V7]
16564test { try toAsciiFail("xn--1ugy994g7k93g.xn--ro0dga22807v", true); } // [B1, C2, V7]
670916565test { try toUnicodeFail("\xf0\x9e\xa4\xb4\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d\xef\xbc\x8e\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf"); } // [B1, V6, V7]
16566test { try toAsciiFail("\xf0\x9e\xa4\xb4\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d\xef\xbc\x8e\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf", false); } // [B1, V6, V7]
16567test { try toAsciiFail("\xf0\x9e\xa4\xb4\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d\xef\xbc\x8e\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf", true); } // [B1, V6, V7]
671016568test { try toUnicodeFail("\xf0\x9e\xa4\xb4\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d.\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf"); } // [B1, V6, V7]
16569test { try toAsciiFail("\xf0\x9e\xa4\xb4\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d.\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf", false); } // [B1, V6, V7]
16570test { try toAsciiFail("\xf0\x9e\xa4\xb4\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d.\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf", true); } // [B1, V6, V7]
671116571test { try toUnicodeFail("\xf0\x9e\xa4\x92\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d.\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf"); } // [B1, V6, V7]
16572test { try toAsciiFail("\xf0\x9e\xa4\x92\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d.\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf", false); } // [B1, V6, V7]
16573test { try toAsciiFail("\xf0\x9e\xa4\x92\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d.\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf", true); } // [B1, V6, V7]
671216574test { try toUnicodeFail("xn--609c96c09grp2w.xn--n3b28708s"); } // [B1, V6, V7]
16575test { try toAsciiFail("xn--609c96c09grp2w.xn--n3b28708s", false); } // [B1, V6, V7]
16576test { try toAsciiFail("xn--609c96c09grp2w.xn--n3b28708s", true); } // [B1, V6, V7]
671316577test { try toUnicodeFail("\xf0\x9e\xa4\x92\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d\xef\xbc\x8e\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf"); } // [B1, V6, V7]
16578test { try toAsciiFail("\xf0\x9e\xa4\x92\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d\xef\xbc\x8e\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf", false); } // [B1, V6, V7]
16579test { try toAsciiFail("\xf0\x9e\xa4\x92\xf0\x90\xb9\xbb\xf0\x91\x93\x82\xf0\x90\xad\x9d\xef\xbc\x8e\xe0\xa5\x8d\xef\xb8\x87\xf4\x89\x9b\xaf", true); } // [B1, V6, V7]
671416580test { try toUnicodeFail("\xd9\xa8\xef\xbd\xa1\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6"); } // [B1, V7]
16581test { try toAsciiFail("\xd9\xa8\xef\xbd\xa1\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6", false); } // [B1, V7]
16582test { try toAsciiFail("\xd9\xa8\xef\xbd\xa1\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6", true); } // [B1, V7]
671516583test { try toUnicodeFail("\xd9\xa8\xe3\x80\x82\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6"); } // [B1, V7]
16584test { try toAsciiFail("\xd9\xa8\xe3\x80\x82\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6", false); } // [B1, V7]
16585test { try toAsciiFail("\xd9\xa8\xe3\x80\x82\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6", true); } // [B1, V7]
671616586test { try toUnicodeFail("xn--hib.xn--7n0d2bu9196b"); } // [B1, V7]
16587test { try toAsciiFail("xn--hib.xn--7n0d2bu9196b", false); } // [B1, V7]
16588test { try toAsciiFail("xn--hib.xn--7n0d2bu9196b", true); } // [B1, V7]
671716589test { try toUnicodeFail("\xe1\x85\xa0\xf1\x8d\x80\x9c.8\xf2\xb6\xbe\xb5\xda\x9c"); } // [B1, V7]
16590test { try toAsciiFail("\xe1\x85\xa0\xf1\x8d\x80\x9c.8\xf2\xb6\xbe\xb5\xda\x9c", false); } // [B1, V7]
16591test { try toAsciiFail("\xe1\x85\xa0\xf1\x8d\x80\x9c.8\xf2\xb6\xbe\xb5\xda\x9c", true); } // [B1, V7]
671816592test { try toUnicodeFail("xn--mn1x.xn--8-otc61545t"); } // [B1, V7]
16593test { try toAsciiFail("xn--mn1x.xn--8-otc61545t", false); } // [B1, V7]
16594test { try toAsciiFail("xn--mn1x.xn--8-otc61545t", true); } // [B1, V7]
671916595test { try toUnicodeFail("xn--psd85033d.xn--8-otc61545t"); } // [B1, V7]
16596test { try toAsciiFail("xn--psd85033d.xn--8-otc61545t", false); } // [B1, V7]
16597test { try toAsciiFail("xn--psd85033d.xn--8-otc61545t", true); } // [B1, V7]
672016598test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1\xc3\x9f\xf0\x91\x93\x83"); } // [C1, C2]
16599test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1\xc3\x9f\xf0\x91\x93\x83", false); } // [C1, C2]
16600test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1\xc3\x9f\xf0\x91\x93\x83", true); } // [A4_2]
672116601test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82\xc3\x9f\xf0\x91\x93\x83"); } // [C1, C2]
16602test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82\xc3\x9f\xf0\x91\x93\x83", false); } // [C1, C2]
16603test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82\xc3\x9f\xf0\x91\x93\x83", true); } // [A4_2]
672216604test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82SS\xf0\x91\x93\x83"); } // [C1, C2]
16605test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82SS\xf0\x91\x93\x83", false); } // [C1, C2]
16606test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82SS\xf0\x91\x93\x83", true); } // [A4_2]
672316607test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82ss\xf0\x91\x93\x83"); } // [C1, C2]
16608test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82ss\xf0\x91\x93\x83", false); } // [C1, C2]
16609test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82ss\xf0\x91\x93\x83", true); } // [A4_2]
672416610test { 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]
16612test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83", true); } // [A4_2]
672516613test { try toUnicodeFail(".xn--ss-bh7o"); } // [X4_2]
16614test { try toAsciiFail(".xn--ss-bh7o", false); } // [A4_2]
16615test { try toAsciiFail(".xn--ss-bh7o", true); } // [A4_2]
672616616test { try toUnicodeFail("xn--0ugb.xn--ss-bh7o"); } // [C1, C2]
16617test { try toAsciiFail("xn--0ugb.xn--ss-bh7o", false); } // [C1, C2]
16618test { try toAsciiFail("xn--0ugb.xn--ss-bh7o", true); } // [C1, C2]
672716619test { try toUnicodeFail("xn--0ugb.xn--zca0732l"); } // [C1, C2]
16620test { try toAsciiFail("xn--0ugb.xn--zca0732l", false); } // [C1, C2]
16621test { try toAsciiFail("xn--0ugb.xn--zca0732l", true); } // [C1, C2]
672816622test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1SS\xf0\x91\x93\x83"); } // [C1, C2]
16623test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1SS\xf0\x91\x93\x83", false); } // [C1, C2]
16624test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1SS\xf0\x91\x93\x83", true); } // [A4_2]
672916625test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1ss\xf0\x91\x93\x83"); } // [C1, C2]
16626test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1ss\xf0\x91\x93\x83", false); } // [C1, C2]
16627test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1ss\xf0\x91\x93\x83", true); } // [A4_2]
673016628test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1Ss\xf0\x91\x93\x83"); } // [C1, C2]
16629test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1Ss\xf0\x91\x93\x83", false); } // [C1, C2]
16630test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1Ss\xf0\x91\x93\x83", true); } // [A4_2]
673116631test { try toUnicodePass("xn--ss-bh7o", "ss\xf0\x91\x93\x83"); }
673216632test { try toAsciiPass("xn--ss-bh7o", "xn--ss-bh7o", false); }
673316633test { try toAsciiPass("xn--ss-bh7o", "xn--ss-bh7o", true); }
......@@ -6741,11 +16641,23 @@ test { try toUnicodePass("Ss\xf0\x91\x93\x83", "ss\xf0\x91\x93\x83"); }
674116641test { try toAsciiPass("Ss\xf0\x91\x93\x83", "xn--ss-bh7o", false); }
674216642test { try toAsciiPass("Ss\xf0\x91\x93\x83", "xn--ss-bh7o", true); }
674316643test { try toUnicodeFail("\xef\xb8\x92\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } // [C1, V7]
16644test { try toAsciiFail("\xef\xb8\x92\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", false); } // [C1, V7]
16645test { try toAsciiFail("\xef\xb8\x92\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", true); } // [V7]
674416646test { 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]
16648test { try toAsciiFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", true); } // [A4_2]
674516649test { try toUnicodeFail(".xn--qekw60d.xn--gd9a"); } // [X4_2]
16650test { try toAsciiFail(".xn--qekw60d.xn--gd9a", false); } // [A4_2]
16651test { try toAsciiFail(".xn--qekw60d.xn--gd9a", true); } // [A4_2]
674616652test { try toUnicodeFail(".xn--0ug287dj0o.xn--gd9a"); } // [C1, X4_2]
16653test { try toAsciiFail(".xn--0ug287dj0o.xn--gd9a", false); } // [C1, A4_2]
16654test { try toAsciiFail(".xn--0ug287dj0o.xn--gd9a", true); } // [C1, A4_2]
674716655test { try toUnicodeFail("xn--qekw60dns9k.xn--gd9a"); } // [V7]
16656test { try toAsciiFail("xn--qekw60dns9k.xn--gd9a", false); } // [V7]
16657test { try toAsciiFail("xn--qekw60dns9k.xn--gd9a", true); } // [V7]
674816658test { try toUnicodeFail("xn--0ug287dj0or48o.xn--gd9a"); } // [C1, V7]
16659test { try toAsciiFail("xn--0ug287dj0or48o.xn--gd9a", false); } // [C1, V7]
16660test { try toAsciiFail("xn--0ug287dj0or48o.xn--gd9a", true); } // [C1, V7]
674916661test { try toUnicodePass("xn--qekw60d.xn--gd9a", "\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); }
675016662test { try toAsciiPass("xn--qekw60d.xn--gd9a", "xn--qekw60d.xn--gd9a", false); }
675116663test { try toAsciiPass("xn--qekw60d.xn--gd9a", "xn--qekw60d.xn--gd9a", true); }
......@@ -6753,39 +16665,98 @@ test { try toUnicodePass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "\xe3\x83\xb6\
675316665test { try toAsciiPass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "xn--qekw60d.xn--gd9a", false); }
675416666test { try toAsciiPass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "xn--qekw60d.xn--gd9a", true); }
675516667test { try toUnicodeFail("\xe2\x80\x8c\xe2\x92\x88\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0"); } // [C1, V7]
16668test { try toAsciiFail("\xe2\x80\x8c\xe2\x92\x88\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0", false); } // [C1, V7]
16669test { try toAsciiFail("\xe2\x80\x8c\xe2\x92\x88\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0", true); } // [V7]
675616670test { try toUnicodeFail("\xe2\x80\x8c1.\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0"); } // [C1, V7]
16671test { try toAsciiFail("\xe2\x80\x8c1.\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0", false); } // [C1, V7]
16672test { try toAsciiFail("\xe2\x80\x8c1.\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0", true); } // [V7]
675716673test { try toUnicodeFail("1.xn--4x6j.xn--jof45148n"); } // [V7]
16674test { try toAsciiFail("1.xn--4x6j.xn--jof45148n", false); } // [V7]
16675test { try toAsciiFail("1.xn--4x6j.xn--jof45148n", true); } // [V7]
675816676test { try toUnicodeFail("xn--1-rgn.xn--4x6j.xn--jof45148n"); } // [C1, V7]
16677test { try toAsciiFail("xn--1-rgn.xn--4x6j.xn--jof45148n", false); } // [C1, V7]
16678test { try toAsciiFail("xn--1-rgn.xn--4x6j.xn--jof45148n", true); } // [C1, V7]
675916679test { try toUnicodeFail("xn--tshw462r.xn--jof45148n"); } // [V7]
16680test { try toAsciiFail("xn--tshw462r.xn--jof45148n", false); } // [V7]
16681test { try toAsciiFail("xn--tshw462r.xn--jof45148n", true); } // [V7]
676016682test { try toUnicodeFail("xn--0ug88o7471d.xn--jof45148n"); } // [C1, V7]
16683test { try toAsciiFail("xn--0ug88o7471d.xn--jof45148n", false); } // [C1, V7]
16684test { try toAsciiFail("xn--0ug88o7471d.xn--jof45148n", true); } // [C1, V7]
676116685test { try toUnicodeFail("\xe2\x92\x88\xe2\x80\x8c\xf0\x90\xab\x93\xf3\xa0\x80\xba\xe3\x80\x82\xe1\xa9\xa0\xf1\xa4\xb0\xb5\xe2\x80\x8d"); } // [B1, C1, C2, V6, V7]
16686test { try toAsciiFail("\xe2\x92\x88\xe2\x80\x8c\xf0\x90\xab\x93\xf3\xa0\x80\xba\xe3\x80\x82\xe1\xa9\xa0\xf1\xa4\xb0\xb5\xe2\x80\x8d", false); } // [B1, C1, C2, V6, V7]
16687test { try toAsciiFail("\xe2\x92\x88\xe2\x80\x8c\xf0\x90\xab\x93\xf3\xa0\x80\xba\xe3\x80\x82\xe1\xa9\xa0\xf1\xa4\xb0\xb5\xe2\x80\x8d", true); } // [B1, V6, V7]
676216688test { try toUnicodeFail("1.\xe2\x80\x8c\xf0\x90\xab\x93\xf3\xa0\x80\xba\xe3\x80\x82\xe1\xa9\xa0\xf1\xa4\xb0\xb5\xe2\x80\x8d"); } // [B1, C1, C2, V6, V7]
16689test { try toAsciiFail("1.\xe2\x80\x8c\xf0\x90\xab\x93\xf3\xa0\x80\xba\xe3\x80\x82\xe1\xa9\xa0\xf1\xa4\xb0\xb5\xe2\x80\x8d", false); } // [B1, C1, C2, V6, V7]
16690test { try toAsciiFail("1.\xe2\x80\x8c\xf0\x90\xab\x93\xf3\xa0\x80\xba\xe3\x80\x82\xe1\xa9\xa0\xf1\xa4\xb0\xb5\xe2\x80\x8d", true); } // [B1, B3, V6, V7]
676316691test { try toUnicodeFail("1.xn--8w9c40377c.xn--jofz5294e"); } // [B1, B3, V6, V7]
16692test { try toAsciiFail("1.xn--8w9c40377c.xn--jofz5294e", false); } // [B1, B3, V6, V7]
16693test { try toAsciiFail("1.xn--8w9c40377c.xn--jofz5294e", true); } // [B1, B3, V6, V7]
676416694test { try toUnicodeFail("1.xn--0ug8853gk263g.xn--jof95xex98m"); } // [B1, C1, C2, V6, V7]
16695test { try toAsciiFail("1.xn--0ug8853gk263g.xn--jof95xex98m", false); } // [B1, C1, C2, V6, V7]
16696test { try toAsciiFail("1.xn--0ug8853gk263g.xn--jof95xex98m", true); } // [B1, C1, C2, V6, V7]
676516697test { try toUnicodeFail("xn--tsh4435fk263g.xn--jofz5294e"); } // [B1, V6, V7]
16698test { try toAsciiFail("xn--tsh4435fk263g.xn--jofz5294e", false); } // [B1, V6, V7]
16699test { try toAsciiFail("xn--tsh4435fk263g.xn--jofz5294e", true); } // [B1, V6, V7]
676616700test { try toUnicodeFail("xn--0ug78ol75wzcx4i.xn--jof95xex98m"); } // [B1, C1, C2, V6, V7]
16701test { try toAsciiFail("xn--0ug78ol75wzcx4i.xn--jof95xex98m", false); } // [B1, C1, C2, V6, V7]
16702test { try toAsciiFail("xn--0ug78ol75wzcx4i.xn--jof95xex98m", true); } // [B1, C1, C2, V6, V7]
676716703test { 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]
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]
676816706test { 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]
16708test { try toAsciiFail("\xf0\x9d\x85\xb5\xe3\x80\x829\xf0\x9e\x80\x88\xe4\xac\xba1.", true); } // [A4_2]
676916709test { try toUnicodeFail(".xn--91-030c1650n."); } // [X4_2]
16710test { try toAsciiFail(".xn--91-030c1650n.", false); } // [A4_2]
16711test { try toAsciiFail(".xn--91-030c1650n.", true); } // [A4_2]
677016712test { try toUnicodeFail(".xn--9-ecp936non25a"); } // [V7, X4_2]
16713test { try toAsciiFail(".xn--9-ecp936non25a", false); } // [V7, A4_2]
16714test { try toAsciiFail(".xn--9-ecp936non25a", true); } // [V7, A4_2]
677116715test { try toUnicodeFail("xn--3f1h.xn--91-030c1650n."); } // [V7]
16716test { try toAsciiFail("xn--3f1h.xn--91-030c1650n.", false); } // [V7, A4_2]
16717test { try toAsciiFail("xn--3f1h.xn--91-030c1650n.", true); } // [V7, A4_2]
677216718test { try toUnicodeFail("xn--3f1h.xn--9-ecp936non25a"); } // [V7]
16719test { try toAsciiFail("xn--3f1h.xn--9-ecp936non25a", false); } // [V7]
16720test { try toAsciiFail("xn--3f1h.xn--9-ecp936non25a", true); } // [V7]
677316721test { try toUnicodeFail("\xf2\xa1\xbc\xba\xe2\x89\xaf\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5"); } // [B5, B6, V7]
16722test { try toAsciiFail("\xf2\xa1\xbc\xba\xe2\x89\xaf\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5", false); } // [B5, B6, V7]
16723test { try toAsciiFail("\xf2\xa1\xbc\xba\xe2\x89\xaf\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5", true); } // [B5, B6, V7]
677416724test { try toUnicodeFail("\xf2\xa1\xbc\xba>\xcc\xb8\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5"); } // [B5, B6, V7]
16725test { try toAsciiFail("\xf2\xa1\xbc\xba>\xcc\xb8\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5", false); } // [B5, B6, V7]
16726test { try toAsciiFail("\xf2\xa1\xbc\xba>\xcc\xb8\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5", true); } // [B5, B6, V7]
677516727test { try toUnicodeFail("xn--hdh30181h.xn--0gb7878c"); } // [B5, B6, V7]
16728test { try toAsciiFail("xn--hdh30181h.xn--0gb7878c", false); } // [B5, B6, V7]
16729test { try toAsciiFail("xn--hdh30181h.xn--0gb7878c", true); } // [B5, B6, V7]
677616730test { try toUnicodeFail("-\xf1\xbf\xb0\xad\xd6\xb4\xe3\x80\x82-\xf3\xa0\x81\x8a\xf0\x90\xa2\xb8\xe2\x89\xaf"); } // [B1, V3, V7]
16731test { try toAsciiFail("-\xf1\xbf\xb0\xad\xd6\xb4\xe3\x80\x82-\xf3\xa0\x81\x8a\xf0\x90\xa2\xb8\xe2\x89\xaf", false); } // [B1, V3, V7]
16732test { try toAsciiFail("-\xf1\xbf\xb0\xad\xd6\xb4\xe3\x80\x82-\xf3\xa0\x81\x8a\xf0\x90\xa2\xb8\xe2\x89\xaf", true); } // [B1, V3, V7]
677716733test { try toUnicodeFail("-\xf1\xbf\xb0\xad\xd6\xb4\xe3\x80\x82-\xf3\xa0\x81\x8a\xf0\x90\xa2\xb8>\xcc\xb8"); } // [B1, V3, V7]
16734test { try toAsciiFail("-\xf1\xbf\xb0\xad\xd6\xb4\xe3\x80\x82-\xf3\xa0\x81\x8a\xf0\x90\xa2\xb8>\xcc\xb8", false); } // [B1, V3, V7]
16735test { try toAsciiFail("-\xf1\xbf\xb0\xad\xd6\xb4\xe3\x80\x82-\xf3\xa0\x81\x8a\xf0\x90\xa2\xb8>\xcc\xb8", true); } // [B1, V3, V7]
677816736test { try toUnicodeFail("xn----fgc06667m.xn----pgoy615he5y4i"); } // [B1, V3, V7]
16737test { try toAsciiFail("xn----fgc06667m.xn----pgoy615he5y4i", false); } // [B1, V3, V7]
16738test { try toAsciiFail("xn----fgc06667m.xn----pgoy615he5y4i", true); } // [B1, V3, V7]
677916739test { try toUnicodeFail("\xf3\xbf\xad\x93\xe1\xad\x84\xe2\x80\x8c\xe0\xa9\x8d\xef\xbc\x8e\xf0\x90\xad\x9b\xf1\xb3\x8b\x94"); } // [B2, B3, B6, V7]
16740test { try toAsciiFail("\xf3\xbf\xad\x93\xe1\xad\x84\xe2\x80\x8c\xe0\xa9\x8d\xef\xbc\x8e\xf0\x90\xad\x9b\xf1\xb3\x8b\x94", false); } // [B2, B3, B6, V7]
16741test { try toAsciiFail("\xf3\xbf\xad\x93\xe1\xad\x84\xe2\x80\x8c\xe0\xa9\x8d\xef\xbc\x8e\xf0\x90\xad\x9b\xf1\xb3\x8b\x94", true); } // [B2, B3, V7]
678016742test { try toUnicodeFail("\xf3\xbf\xad\x93\xe1\xad\x84\xe2\x80\x8c\xe0\xa9\x8d.\xf0\x90\xad\x9b\xf1\xb3\x8b\x94"); } // [B2, B3, B6, V7]
16743test { try toAsciiFail("\xf3\xbf\xad\x93\xe1\xad\x84\xe2\x80\x8c\xe0\xa9\x8d.\xf0\x90\xad\x9b\xf1\xb3\x8b\x94", false); } // [B2, B3, B6, V7]
16744test { try toAsciiFail("\xf3\xbf\xad\x93\xe1\xad\x84\xe2\x80\x8c\xe0\xa9\x8d.\xf0\x90\xad\x9b\xf1\xb3\x8b\x94", true); } // [B2, B3, V7]
678116745test { try toUnicodeFail("xn--ybc997fb5881a.xn--409c6100y"); } // [B2, B3, V7]
16746test { try toAsciiFail("xn--ybc997fb5881a.xn--409c6100y", false); } // [B2, B3, V7]
16747test { try toAsciiFail("xn--ybc997fb5881a.xn--409c6100y", true); } // [B2, B3, V7]
678216748test { try toUnicodeFail("xn--ybc997f6rd2n772c.xn--409c6100y"); } // [B2, B3, B6, V7]
16749test { try toAsciiFail("xn--ybc997f6rd2n772c.xn--409c6100y", false); } // [B2, B3, B6, V7]
16750test { try toAsciiFail("xn--ybc997f6rd2n772c.xn--409c6100y", true); } // [B2, B3, B6, V7]
678316751test { try toAsciiPass("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }
678416752test { try toUnicodeFail("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d"); } // [B3, C2]
16753test { try toAsciiFail("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", false); } // [B3, C2]
678516754test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }
678616755test { try toUnicodeFail("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d"); } // [B3, C2]
16756test { try toAsciiFail("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", false); } // [B3, C2]
678716757test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }
678816758test { try toUnicodeFail("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d"); } // [B3, C2]
16759test { try toAsciiFail("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", false); } // [B3, C2]
678916760test { try toUnicodePass("xn--8c1a.xn--2ib8jn539l", "\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb"); }
679016761test { try toAsciiPass("xn--8c1a.xn--2ib8jn539l", "xn--8c1a.xn--2ib8jn539l", false); }
679116762test { try toAsciiPass("xn--8c1a.xn--2ib8jn539l", "xn--8c1a.xn--2ib8jn539l", true); }
......@@ -6796,376 +16767,1115 @@ test { try toUnicodePass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "\xe8\
679616767test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "xn--8c1a.xn--2ib8jn539l", false); }
679716768test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "xn--8c1a.xn--2ib8jn539l", true); }
679816769test { try toUnicodeFail("xn--8c1a.xn--2ib8jv19e6413b"); } // [B3, C2]
16770test { try toAsciiFail("xn--8c1a.xn--2ib8jv19e6413b", false); } // [B3, C2]
16771test { try toAsciiFail("xn--8c1a.xn--2ib8jv19e6413b", true); } // [B3, C2]
679916772test { try toAsciiPass("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }
680016773test { try toUnicodeFail("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d"); } // [B3, C2]
16774test { try toAsciiFail("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", false); } // [B3, C2]
680116775test { try toUnicodeFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7\xe2\x89\xaf"); } // [B1, B3, V7]
16776test { try toAsciiFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7\xe2\x89\xaf", false); } // [B1, B3, V7]
16777test { try toAsciiFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7\xe2\x89\xaf", true); } // [B1, B3, V7]
680216778test { try toUnicodeFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7>\xcc\xb8"); } // [B1, B3, V7]
16779test { try toAsciiFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7>\xcc\xb8", false); } // [B1, B3, V7]
16780test { try toAsciiFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7>\xcc\xb8", true); } // [B1, B3, V7]
680316781test { try toUnicodeFail("xn--4-xn17i.xn--rpb459k"); } // [B1, B3, V7]
16782test { try toAsciiFail("xn--4-xn17i.xn--rpb459k", false); } // [B1, B3, V7]
16783test { try toAsciiFail("xn--4-xn17i.xn--rpb459k", true); } // [B1, B3, V7]
680416784test { try toUnicodeFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2\xef\xbc\x8e\xda\xad"); } // [B5, V7]
16785test { try toAsciiFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2\xef\xbc\x8e\xda\xad", false); } // [B5, V7]
16786test { try toAsciiFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2\xef\xbc\x8e\xda\xad", true); } // [B5, V7]
680516787test { try toUnicodeFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2.\xda\xad"); } // [B5, V7]
16788test { try toAsciiFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2.\xda\xad", false); } // [B5, V7]
16789test { try toAsciiFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2.\xda\xad", true); } // [B5, V7]
680616790test { try toUnicodeFail("xn--lcz1610fn78gk609a.xn--gkb"); } // [B5, V7]
16791test { try toAsciiFail("xn--lcz1610fn78gk609a.xn--gkb", false); } // [B5, V7]
16792test { try toAsciiFail("xn--lcz1610fn78gk609a.xn--gkb", true); } // [B5, V7]
680716793test { try toUnicodeFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe1\x82\xa6\xe2\x84\xae"); } // [B1, C1]
16794test { try toAsciiFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe1\x82\xa6\xe2\x84\xae", false); } // [B1, C1]
16795test { try toAsciiFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe1\x82\xa6\xe2\x84\xae", true); } // [B1, A4_2]
680816796test { try toUnicodeFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe2\xb4\x86\xe2\x84\xae"); } // [B1, C1]
16797test { try toAsciiFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe2\xb4\x86\xe2\x84\xae", false); } // [B1, C1]
16798test { try toAsciiFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe2\xb4\x86\xe2\x84\xae", true); } // [B1, A4_2]
680916799test { try toUnicodeFail(".xn--fib628k4li"); } // [B1, X4_2]
16800test { try toAsciiFail(".xn--fib628k4li", false); } // [B1, A4_2]
16801test { try toAsciiFail(".xn--fib628k4li", true); } // [B1, A4_2]
681016802test { try toUnicodeFail("xn--0ug.xn--fib628k4li"); } // [B1, C1]
16803test { try toAsciiFail("xn--0ug.xn--fib628k4li", false); } // [B1, C1]
16804test { try toAsciiFail("xn--0ug.xn--fib628k4li", true); } // [B1, C1]
681116805test { try toUnicodeFail(".xn--fib263c0yn"); } // [B1, V7, X4_2]
16806test { try toAsciiFail(".xn--fib263c0yn", false); } // [B1, V7, A4_2]
16807test { try toAsciiFail(".xn--fib263c0yn", true); } // [B1, V7, A4_2]
681216808test { try toUnicodeFail("xn--0ug.xn--fib263c0yn"); } // [B1, C1, V7]
16809test { try toAsciiFail("xn--0ug.xn--fib263c0yn", false); } // [B1, C1, V7]
16810test { try toAsciiFail("xn--0ug.xn--fib263c0yn", true); } // [B1, C1, V7]
681316811test { try toUnicodeFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e"); } // [B1, V6]
16812test { try toAsciiFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e", false); } // [B1, V6]
16813test { try toAsciiFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e", true); } // [B1, V6]
681416814test { try toUnicodeFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e"); } // [B1, V6]
16815test { try toAsciiFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e", false); } // [B1, V6]
16816test { try toAsciiFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e", true); } // [B1, V6]
681516817test { try toUnicodeFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f"); } // [B1, V6]
16818test { try toAsciiFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f", false); } // [B1, V6]
16819test { try toAsciiFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f", true); } // [B1, V6]
681616820test { try toUnicodeFail("xn--5jb.xn--xya149b"); } // [B1, V6]
16821test { try toAsciiFail("xn--5jb.xn--xya149b", false); } // [B1, V6]
16822test { try toAsciiFail("xn--5jb.xn--xya149b", true); } // [B1, V6]
681716823test { try toUnicodeFail("xn--5jb.xn--xya149bpvp"); } // [B1, V6]
16824test { try toAsciiFail("xn--5jb.xn--xya149bpvp", false); } // [B1, V6]
16825test { try toAsciiFail("xn--5jb.xn--xya149bpvp", true); } // [B1, V6]
681816826test { try toUnicodeFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f"); } // [B1, V6]
16827test { try toAsciiFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f", false); } // [B1, V6]
16828test { try toAsciiFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f", true); } // [B1, V6]
681916829test { try toUnicodeFail("\xe2\x80\x8c\xf0\x9e\xb8\x87\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa3\xf0\x90\xae\x82-\xe8\x85\x8d"); } // [B1, B2, B3, C1]
16830test { try toAsciiFail("\xe2\x80\x8c\xf0\x9e\xb8\x87\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa3\xf0\x90\xae\x82-\xe8\x85\x8d", false); } // [B1, B2, B3, C1]
16831test { try toAsciiFail("\xe2\x80\x8c\xf0\x9e\xb8\x87\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa3\xf0\x90\xae\x82-\xe8\x85\x8d", true); } // [B2, B3]
682016832test { try toUnicodeFail("\xe2\x80\x8c\xf0\x9e\xb8\x87\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa7\xd9\x94\xf0\x90\xae\x82-\xe8\x85\x8d"); } // [B1, B2, B3, C1]
16833test { try toAsciiFail("\xe2\x80\x8c\xf0\x9e\xb8\x87\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa7\xd9\x94\xf0\x90\xae\x82-\xe8\x85\x8d", false); } // [B1, B2, B3, C1]
16834test { try toAsciiFail("\xe2\x80\x8c\xf0\x9e\xb8\x87\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa7\xd9\x94\xf0\x90\xae\x82-\xe8\x85\x8d", true); } // [B2, B3]
682116835test { try toUnicodeFail("\xe2\x80\x8c\xd8\xad\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa3\xf0\x90\xae\x82-\xe8\x85\x8d"); } // [B1, B2, B3, C1]
16836test { try toAsciiFail("\xe2\x80\x8c\xd8\xad\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa3\xf0\x90\xae\x82-\xe8\x85\x8d", false); } // [B1, B2, B3, C1]
16837test { try toAsciiFail("\xe2\x80\x8c\xd8\xad\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa3\xf0\x90\xae\x82-\xe8\x85\x8d", true); } // [B2, B3]
682216838test { try toUnicodeFail("\xe2\x80\x8c\xd8\xad\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa7\xd9\x94\xf0\x90\xae\x82-\xe8\x85\x8d"); } // [B1, B2, B3, C1]
16839test { try toAsciiFail("\xe2\x80\x8c\xd8\xad\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa7\xd9\x94\xf0\x90\xae\x82-\xe8\x85\x8d", false); } // [B1, B2, B3, C1]
16840test { try toAsciiFail("\xe2\x80\x8c\xd8\xad\xf0\x91\x98\xbf\xe3\x80\x82\xd8\xa7\xd9\x94\xf0\x90\xae\x82-\xe8\x85\x8d", true); } // [B2, B3]
682316841test { try toUnicodeFail("xn--sgb4140l.xn----qmc5075grs9e"); } // [B2, B3]
16842test { try toAsciiFail("xn--sgb4140l.xn----qmc5075grs9e", false); } // [B2, B3]
16843test { try toAsciiFail("xn--sgb4140l.xn----qmc5075grs9e", true); } // [B2, B3]
682416844test { try toUnicodeFail("xn--sgb953kmi8o.xn----qmc5075grs9e"); } // [B1, B2, B3, C1]
16845test { try toAsciiFail("xn--sgb953kmi8o.xn----qmc5075grs9e", false); } // [B1, B2, B3, C1]
16846test { try toAsciiFail("xn--sgb953kmi8o.xn----qmc5075grs9e", true); } // [B1, B2, B3, C1]
682516847test { try toUnicodeFail("-\xf2\xad\xb7\x99\xd9\xab\xe7\xba\x9b\xef\xbd\xa1\xf0\x9d\x9f\x9b\xf1\xad\xa4\x87\xf0\x9f\x84\x85"); } // [B1, V3, V7, U1]
16848test { try toAsciiFail("-\xf2\xad\xb7\x99\xd9\xab\xe7\xba\x9b\xef\xbd\xa1\xf0\x9d\x9f\x9b\xf1\xad\xa4\x87\xf0\x9f\x84\x85", false); } // [B1, V3, V7, U1]
16849test { try toAsciiFail("-\xf2\xad\xb7\x99\xd9\xab\xe7\xba\x9b\xef\xbd\xa1\xf0\x9d\x9f\x9b\xf1\xad\xa4\x87\xf0\x9f\x84\x85", true); } // [B1, V3, V7, U1]
682616850test { try toUnicodeFail("-\xf2\xad\xb7\x99\xd9\xab\xe7\xba\x9b\xe3\x80\x823\xf1\xad\xa4\x874,"); } // [B1, V3, V7, U1]
16851test { try toAsciiFail("-\xf2\xad\xb7\x99\xd9\xab\xe7\xba\x9b\xe3\x80\x823\xf1\xad\xa4\x874,", false); } // [B1, V3, V7, U1]
16852test { try toAsciiFail("-\xf2\xad\xb7\x99\xd9\xab\xe7\xba\x9b\xe3\x80\x823\xf1\xad\xa4\x874,", true); } // [B1, V3, V7, U1]
682716853test { try toUnicodeFail("xn----vqc8143g0tt4i.xn--34,-8787l"); } // [B1, V3, V7, U1]
16854test { try toAsciiFail("xn----vqc8143g0tt4i.xn--34,-8787l", false); } // [B1, V3, V7, U1]
16855test { try toAsciiFail("xn----vqc8143g0tt4i.xn--34,-8787l", true); } // [B1, V3, V7, U1]
682816856test { try toUnicodeFail("xn----vqc8143g0tt4i.xn--3-os1sn476y"); } // [B1, V3, V7]
16857test { try toAsciiFail("xn----vqc8143g0tt4i.xn--3-os1sn476y", false); } // [B1, V3, V7]
16858test { try toAsciiFail("xn----vqc8143g0tt4i.xn--3-os1sn476y", true); } // [B1, V3, V7]
682916859test { try toUnicodeFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5]
16860test { try toAsciiFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae", false); } // [B1, B5]
16861test { try toAsciiFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae", true); } // [B1, B5]
683016862test { try toUnicodeFail("\xf0\x9f\x94\x94.\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5]
16863test { try toAsciiFail("\xf0\x9f\x94\x94.\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae", false); } // [B1, B5]
16864test { try toAsciiFail("\xf0\x9f\x94\x94.\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae", true); } // [B1, B5]
683116865test { try toUnicodeFail("\xf0\x9f\x94\x94.\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5]
16866test { try toAsciiFail("\xf0\x9f\x94\x94.\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae", false); } // [B1, B5]
16867test { try toAsciiFail("\xf0\x9f\x94\x94.\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae", true); } // [B1, B5]
683216868test { try toUnicodeFail("xn--nv8h.xn--nsb46rvz1b222p"); } // [B1, B5]
16869test { try toAsciiFail("xn--nv8h.xn--nsb46rvz1b222p", false); } // [B1, B5]
16870test { try toAsciiFail("xn--nv8h.xn--nsb46rvz1b222p", true); } // [B1, B5]
683316871test { try toUnicodeFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5]
16872test { try toAsciiFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae", false); } // [B1, B5]
16873test { try toAsciiFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae", true); } // [B1, B5]
683416874test { try toUnicodeFail("xn--nv8h.xn--nsb46r83e8112a"); } // [B1, B5, V7]
16875test { try toAsciiFail("xn--nv8h.xn--nsb46r83e8112a", false); } // [B1, B5, V7]
16876test { try toAsciiFail("xn--nv8h.xn--nsb46r83e8112a", true); } // [B1, B5, V7]
683516877test { try toUnicodeFail("\xe8\xbb\xa5\xda\xb3.-\xf0\x96\xac\xb5"); } // [B1, B5, B6, V3]
16878test { try toAsciiFail("\xe8\xbb\xa5\xda\xb3.-\xf0\x96\xac\xb5", false); } // [B1, B5, B6, V3]
16879test { try toAsciiFail("\xe8\xbb\xa5\xda\xb3.-\xf0\x96\xac\xb5", true); } // [B1, B5, B6, V3]
683616880test { try toUnicodeFail("xn--mkb5480e.xn----6u5m"); } // [B1, B5, B6, V3]
16881test { try toAsciiFail("xn--mkb5480e.xn----6u5m", false); } // [B1, B5, B6, V3]
16882test { try toAsciiFail("xn--mkb5480e.xn----6u5m", true); } // [B1, B5, B6, V3]
683716883test { try toUnicodeFail("\xf0\x90\xb9\xa4\xdf\x8a\xda\xb6.\xf0\x90\xa8\x82-"); } // [B1, V3, V6]
16884test { try toAsciiFail("\xf0\x90\xb9\xa4\xdf\x8a\xda\xb6.\xf0\x90\xa8\x82-", false); } // [B1, V3, V6]
16885test { try toAsciiFail("\xf0\x90\xb9\xa4\xdf\x8a\xda\xb6.\xf0\x90\xa8\x82-", true); } // [B1, V3, V6]
683816886test { try toUnicodeFail("xn--pkb56cn614d.xn----974i"); } // [B1, V3, V6]
16887test { try toAsciiFail("xn--pkb56cn614d.xn----974i", false); } // [B1, V3, V6]
16888test { try toAsciiFail("xn--pkb56cn614d.xn----974i", true); } // [B1, V3, V6]
683916889test { try toUnicodeFail("-\xf3\xa0\x85\xb10\xef\xbd\xa1\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad"); } // [V3, V6]
16890test { try toAsciiFail("-\xf3\xa0\x85\xb10\xef\xbd\xa1\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad", false); } // [V3, V6]
16891test { try toAsciiFail("-\xf3\xa0\x85\xb10\xef\xbd\xa1\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad", true); } // [V3, V6]
684016892test { try toUnicodeFail("-\xf3\xa0\x85\xb10\xef\xbd\xa1\xe1\x9f\x8f\xe1\xb7\xbd\xe1\x84\x90\xe1\x85\xa8\xe1\x86\xaa\xe1\x84\x89\xe1\x85\xb5\xe1\x86\xb8"); } // [V3, V6]
16893test { try toAsciiFail("-\xf3\xa0\x85\xb10\xef\xbd\xa1\xe1\x9f\x8f\xe1\xb7\xbd\xe1\x84\x90\xe1\x85\xa8\xe1\x86\xaa\xe1\x84\x89\xe1\x85\xb5\xe1\x86\xb8", false); } // [V3, V6]
16894test { try toAsciiFail("-\xf3\xa0\x85\xb10\xef\xbd\xa1\xe1\x9f\x8f\xe1\xb7\xbd\xe1\x84\x90\xe1\x85\xa8\xe1\x86\xaa\xe1\x84\x89\xe1\x85\xb5\xe1\x86\xb8", true); } // [V3, V6]
684116895test { try toUnicodeFail("-\xf3\xa0\x85\xb10\xe3\x80\x82\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad"); } // [V3, V6]
16896test { try toAsciiFail("-\xf3\xa0\x85\xb10\xe3\x80\x82\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad", false); } // [V3, V6]
16897test { try toAsciiFail("-\xf3\xa0\x85\xb10\xe3\x80\x82\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad", true); } // [V3, V6]
684216898test { try toUnicodeFail("-\xf3\xa0\x85\xb10\xe3\x80\x82\xe1\x9f\x8f\xe1\xb7\xbd\xe1\x84\x90\xe1\x85\xa8\xe1\x86\xaa\xe1\x84\x89\xe1\x85\xb5\xe1\x86\xb8"); } // [V3, V6]
16899test { try toAsciiFail("-\xf3\xa0\x85\xb10\xe3\x80\x82\xe1\x9f\x8f\xe1\xb7\xbd\xe1\x84\x90\xe1\x85\xa8\xe1\x86\xaa\xe1\x84\x89\xe1\x85\xb5\xe1\x86\xb8", false); } // [V3, V6]
16900test { try toAsciiFail("-\xf3\xa0\x85\xb10\xe3\x80\x82\xe1\x9f\x8f\xe1\xb7\xbd\xe1\x84\x90\xe1\x85\xa8\xe1\x86\xaa\xe1\x84\x89\xe1\x85\xb5\xe1\x86\xb8", true); } // [V3, V6]
684316901test { try toUnicodeFail("-0.xn--r4e872ah77nghm"); } // [V3, V6]
16902test { try toAsciiFail("-0.xn--r4e872ah77nghm", false); } // [V3, V6]
16903test { try toAsciiFail("-0.xn--r4e872ah77nghm", true); } // [V3, V6]
684416904test { try toUnicodeFail("\xea\xa1\xb0\xef\xb8\x92--\xef\xbd\xa1\xe1\x9f\x8c\xe9\x9d\x88\xf0\x90\xb9\xa2\xf1\x98\xb3\xae"); } // [B1, B6, V2, V3, V6, V7]
16905test { try toAsciiFail("\xea\xa1\xb0\xef\xb8\x92--\xef\xbd\xa1\xe1\x9f\x8c\xe9\x9d\x88\xf0\x90\xb9\xa2\xf1\x98\xb3\xae", false); } // [B1, B6, V2, V3, V6, V7]
16906test { try toAsciiFail("\xea\xa1\xb0\xef\xb8\x92--\xef\xbd\xa1\xe1\x9f\x8c\xe9\x9d\x88\xf0\x90\xb9\xa2\xf1\x98\xb3\xae", true); } // [B1, B6, V2, V3, V6, V7]
684516907test { try toUnicodeFail("\xea\xa1\xb0\xe3\x80\x82--\xe3\x80\x82\xe1\x9f\x8c\xe9\x9d\x88\xf0\x90\xb9\xa2\xf1\x98\xb3\xae"); } // [B1, V3, V6, V7]
16908test { try toAsciiFail("\xea\xa1\xb0\xe3\x80\x82--\xe3\x80\x82\xe1\x9f\x8c\xe9\x9d\x88\xf0\x90\xb9\xa2\xf1\x98\xb3\xae", false); } // [B1, V3, V6, V7]
16909test { try toAsciiFail("\xea\xa1\xb0\xe3\x80\x82--\xe3\x80\x82\xe1\x9f\x8c\xe9\x9d\x88\xf0\x90\xb9\xa2\xf1\x98\xb3\xae", true); } // [B1, V3, V6, V7]
684616910test { try toUnicodeFail("xn--md9a.--.xn--o4e6836dpxudz0v1c"); } // [B1, V3, V6, V7]
16911test { try toAsciiFail("xn--md9a.--.xn--o4e6836dpxudz0v1c", false); } // [B1, V3, V6, V7]
16912test { try toAsciiFail("xn--md9a.--.xn--o4e6836dpxudz0v1c", true); } // [B1, V3, V6, V7]
684716913test { try toUnicodeFail("xn-----bk9hu24z.xn--o4e6836dpxudz0v1c"); } // [B1, B6, V2, V3, V6, V7]
16914test { try toAsciiFail("xn-----bk9hu24z.xn--o4e6836dpxudz0v1c", false); } // [B1, B6, V2, V3, V6, V7]
16915test { try toAsciiFail("xn-----bk9hu24z.xn--o4e6836dpxudz0v1c", true); } // [B1, B6, V2, V3, V6, V7]
684816916test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6]
16917test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d", false); } // [V6]
16918test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d", true); } // [V6]
684916919test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6]
16920test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d", false); } // [V6]
16921test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d", true); } // [V6]
685016922test { try toUnicodeFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6]
16923test { try toAsciiFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d", false); } // [V6]
16924test { try toAsciiFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d", true); } // [V6]
685116925test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6]
16926test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xe3\x80\x82\xe0\xad\x8d", false); } // [V6]
16927test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xe3\x80\x82\xe0\xad\x8d", true); } // [V6]
685216928test { try toUnicodeFail("xn--1od555l3a.xn--9ic"); } // [V6]
16929test { try toAsciiFail("xn--1od555l3a.xn--9ic", false); } // [V6]
16930test { try toAsciiFail("xn--1od555l3a.xn--9ic", true); } // [V6]
685316931test { try toUnicodeFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6]
16932test { try toAsciiFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d", false); } // [V6]
16933test { try toAsciiFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d", true); } // [V6]
685416934test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6]
16935test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xef\xbd\xa1\xe0\xad\x8d", false); } // [V6]
16936test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xef\xbd\xa1\xe0\xad\x8d", true); } // [V6]
685516937test { try toUnicodeFail("xn--tndt4hvw.xn--9ic"); } // [V6, V7]
16938test { try toAsciiFail("xn--tndt4hvw.xn--9ic", false); } // [V6, V7]
16939test { try toAsciiFail("xn--tndt4hvw.xn--9ic", true); } // [V6, V7]
685616940test { try toUnicodeFail("xn--1od7wz74eeb.xn--9ic"); } // [V6, V7]
16941test { try toAsciiFail("xn--1od7wz74eeb.xn--9ic", false); } // [V6, V7]
16942test { try toAsciiFail("xn--1od7wz74eeb.xn--9ic", true); } // [V6, V7]
685716943test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6]
16944test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d", false); } // [V6]
16945test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d", true); } // [V6]
685816946test { try toUnicodeFail("xn--3nd0etsm92g.xn--9ic"); } // [V6, V7]
16947test { try toAsciiFail("xn--3nd0etsm92g.xn--9ic", false); } // [V6, V7]
16948test { try toAsciiFail("xn--3nd0etsm92g.xn--9ic", true); } // [V6, V7]
685916949test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6]
16950test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d", false); } // [V6]
16951test { try toAsciiFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d", true); } // [V6]
686016952test { try toUnicodeFail("\xf0\x9f\x84\x83\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87"); } // [B1, U1]
16953test { try toAsciiFail("\xf0\x9f\x84\x83\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87", false); } // [B1, U1]
16954test { try toAsciiFail("\xf0\x9f\x84\x83\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87", true); } // [B1, U1]
686116955test { try toUnicodeFail("2,\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87"); } // [B1, U1]
16956test { try toAsciiFail("2,\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87", false); } // [B1, U1]
16957test { try toAsciiFail("2,\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87", true); } // [B1, U1]
686216958test { try toUnicodeFail("xn--2,-5g3o.xn--dib"); } // [B1, U1]
16959test { try toAsciiFail("xn--2,-5g3o.xn--dib", false); } // [B1, U1]
16960test { try toAsciiFail("xn--2,-5g3o.xn--dib", true); } // [B1, U1]
686316961test { try toUnicodeFail("xn--7n0d1189a.xn--dib"); } // [B1, V7]
16962test { try toAsciiFail("xn--7n0d1189a.xn--dib", false); } // [B1, V7]
16963test { try toAsciiFail("xn--7n0d1189a.xn--dib", true); } // [B1, V7]
686416964test { try toUnicodeFail("\xf2\xbb\xb2\xbc\xe2\x80\x8c\xef\xb1\x9b\xef\xbc\x8e\xdf\x92\xe0\xa1\x88\xe1\xaf\xb3"); } // [B2, B3, B5, B6, C1, V7]
16965test { try toAsciiFail("\xf2\xbb\xb2\xbc\xe2\x80\x8c\xef\xb1\x9b\xef\xbc\x8e\xdf\x92\xe0\xa1\x88\xe1\xaf\xb3", false); } // [B2, B3, B5, B6, C1, V7]
16966test { try toAsciiFail("\xf2\xbb\xb2\xbc\xe2\x80\x8c\xef\xb1\x9b\xef\xbc\x8e\xdf\x92\xe0\xa1\x88\xe1\xaf\xb3", true); } // [B2, B3, B5, B6, V7]
686516967test { try toUnicodeFail("\xf2\xbb\xb2\xbc\xe2\x80\x8c\xd8\xb0\xd9\xb0.\xdf\x92\xe0\xa1\x88\xe1\xaf\xb3"); } // [B2, B3, B5, B6, C1, V7]
16968test { try toAsciiFail("\xf2\xbb\xb2\xbc\xe2\x80\x8c\xd8\xb0\xd9\xb0.\xdf\x92\xe0\xa1\x88\xe1\xaf\xb3", false); } // [B2, B3, B5, B6, C1, V7]
16969test { try toAsciiFail("\xf2\xbb\xb2\xbc\xe2\x80\x8c\xd8\xb0\xd9\xb0.\xdf\x92\xe0\xa1\x88\xe1\xaf\xb3", true); } // [B2, B3, B5, B6, V7]
686616970test { try toUnicodeFail("xn--vgb2kp1223g.xn--tsb0vz43c"); } // [B2, B3, B5, B6, V7]
16971test { try toAsciiFail("xn--vgb2kp1223g.xn--tsb0vz43c", false); } // [B2, B3, B5, B6, V7]
16972test { try toAsciiFail("xn--vgb2kp1223g.xn--tsb0vz43c", true); } // [B2, B3, B5, B6, V7]
686716973test { try toUnicodeFail("xn--vgb2kq00fl213y.xn--tsb0vz43c"); } // [B2, B3, B5, B6, C1, V7]
16974test { try toAsciiFail("xn--vgb2kq00fl213y.xn--tsb0vz43c", false); } // [B2, B3, B5, B6, C1, V7]
16975test { try toAsciiFail("xn--vgb2kq00fl213y.xn--tsb0vz43c", true); } // [B2, B3, B5, B6, C1, V7]
686816976test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8d\xf0\x9e\xb5\xaa\xe2\x80\x8c\xe3\x80\x82\xe1\xa1\x98\xf0\x91\xb2\xad\xe1\x9e\xb5"); } // [B1, C1, C2, V7]
16977test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8d\xf0\x9e\xb5\xaa\xe2\x80\x8c\xe3\x80\x82\xe1\xa1\x98\xf0\x91\xb2\xad\xe1\x9e\xb5", false); } // [B1, C1, C2, V7]
16978test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8d\xf0\x9e\xb5\xaa\xe2\x80\x8c\xe3\x80\x82\xe1\xa1\x98\xf0\x91\xb2\xad\xe1\x9e\xb5", true); } // [V7]
686916979test { try toUnicodeFail("xn--l96h.xn--o8e4044k"); } // [V7]
16980test { try toAsciiFail("xn--l96h.xn--o8e4044k", false); } // [V7]
16981test { try toAsciiFail("xn--l96h.xn--o8e4044k", true); } // [V7]
687016982test { try toUnicodeFail("xn--0ugba05538b.xn--o8e4044k"); } // [B1, C1, C2, V7]
16983test { try toAsciiFail("xn--0ugba05538b.xn--o8e4044k", false); } // [B1, C1, C2, V7]
16984test { try toAsciiFail("xn--0ugba05538b.xn--o8e4044k", true); } // [B1, C1, C2, V7]
687116985test { try toUnicodeFail("xn--l96h.xn--03e93aq365d"); } // [V7]
16986test { try toAsciiFail("xn--l96h.xn--03e93aq365d", false); } // [V7]
16987test { try toAsciiFail("xn--l96h.xn--03e93aq365d", true); } // [V7]
687216988test { try toUnicodeFail("xn--0ugba05538b.xn--03e93aq365d"); } // [B1, C1, C2, V7]
16989test { try toAsciiFail("xn--0ugba05538b.xn--03e93aq365d", false); } // [B1, C1, C2, V7]
16990test { try toAsciiFail("xn--0ugba05538b.xn--03e93aq365d", true); } // [B1, C1, C2, V7]
687316991test { try toUnicodeFail("\xf0\x9e\xb7\xbb\xe3\x80\x82\xe2\x9a\x84\xf1\x97\x91\x87\xf0\x91\x81\xbf"); } // [B1, V7]
16992test { try toAsciiFail("\xf0\x9e\xb7\xbb\xe3\x80\x82\xe2\x9a\x84\xf1\x97\x91\x87\xf0\x91\x81\xbf", false); } // [B1, V7]
16993test { try toAsciiFail("\xf0\x9e\xb7\xbb\xe3\x80\x82\xe2\x9a\x84\xf1\x97\x91\x87\xf0\x91\x81\xbf", true); } // [B1, V7]
687416994test { try toUnicodeFail("xn--qe7h.xn--c7h2966f7so4a"); } // [B1, V7]
16995test { try toAsciiFail("xn--qe7h.xn--c7h2966f7so4a", false); } // [B1, V7]
16996test { try toAsciiFail("xn--qe7h.xn--c7h2966f7so4a", true); } // [B1, V7]
687516997test { try toUnicodeFail("\xea\xa3\x84\xe2\x89\xa0\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6]
16998test { try toAsciiFail("\xea\xa3\x84\xe2\x89\xa0\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7", false); } // [B1, V6]
16999test { try toAsciiFail("\xea\xa3\x84\xe2\x89\xa0\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7", true); } // [B1, V6]
687617000test { try toUnicodeFail("\xea\xa3\x84=\xcc\xb8\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6]
17001test { try toAsciiFail("\xea\xa3\x84=\xcc\xb8\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7", false); } // [B1, V6]
17002test { try toAsciiFail("\xea\xa3\x84=\xcc\xb8\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7", true); } // [B1, V6]
687717003test { try toUnicodeFail("\xea\xa3\x84\xe2\x89\xa0.\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6]
17004test { try toAsciiFail("\xea\xa3\x84\xe2\x89\xa0.\xf0\x9e\xa0\xa8\xd9\xa7", false); } // [B1, V6]
17005test { try toAsciiFail("\xea\xa3\x84\xe2\x89\xa0.\xf0\x9e\xa0\xa8\xd9\xa7", true); } // [B1, V6]
687817006test { try toUnicodeFail("\xea\xa3\x84=\xcc\xb8.\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6]
17007test { try toAsciiFail("\xea\xa3\x84=\xcc\xb8.\xf0\x9e\xa0\xa8\xd9\xa7", false); } // [B1, V6]
17008test { try toAsciiFail("\xea\xa3\x84=\xcc\xb8.\xf0\x9e\xa0\xa8\xd9\xa7", true); } // [B1, V6]
687917009test { try toUnicodeFail("xn--1chy504c.xn--gib1777v"); } // [B1, V6]
17010test { try toAsciiFail("xn--1chy504c.xn--gib1777v", false); } // [B1, V6]
17011test { try toAsciiFail("xn--1chy504c.xn--gib1777v", true); } // [B1, V6]
688017012test { try toUnicodeFail("\xf0\x9d\x9f\x9b\xf0\x9d\x86\xaa\xea\xa3\x84\xef\xbd\xa1\xea\xa3\xaa-"); } // [V3, V6]
17013test { try toAsciiFail("\xf0\x9d\x9f\x9b\xf0\x9d\x86\xaa\xea\xa3\x84\xef\xbd\xa1\xea\xa3\xaa-", false); } // [V3, V6]
17014test { try toAsciiFail("\xf0\x9d\x9f\x9b\xf0\x9d\x86\xaa\xea\xa3\x84\xef\xbd\xa1\xea\xa3\xaa-", true); } // [V3, V6]
688117015test { try toUnicodeFail("\xf0\x9d\x9f\x9b\xea\xa3\x84\xf0\x9d\x86\xaa\xef\xbd\xa1\xea\xa3\xaa-"); } // [V3, V6]
17016test { try toAsciiFail("\xf0\x9d\x9f\x9b\xea\xa3\x84\xf0\x9d\x86\xaa\xef\xbd\xa1\xea\xa3\xaa-", false); } // [V3, V6]
17017test { try toAsciiFail("\xf0\x9d\x9f\x9b\xea\xa3\x84\xf0\x9d\x86\xaa\xef\xbd\xa1\xea\xa3\xaa-", true); } // [V3, V6]
688217018test { try toUnicodeFail("3\xea\xa3\x84\xf0\x9d\x86\xaa\xe3\x80\x82\xea\xa3\xaa-"); } // [V3, V6]
17019test { try toAsciiFail("3\xea\xa3\x84\xf0\x9d\x86\xaa\xe3\x80\x82\xea\xa3\xaa-", false); } // [V3, V6]
17020test { try toAsciiFail("3\xea\xa3\x84\xf0\x9d\x86\xaa\xe3\x80\x82\xea\xa3\xaa-", true); } // [V3, V6]
688317021test { try toUnicodeFail("xn--3-sl4eu679e.xn----xn4e"); } // [V3, V6]
17022test { try toAsciiFail("xn--3-sl4eu679e.xn----xn4e", false); } // [V3, V6]
17023test { try toAsciiFail("xn--3-sl4eu679e.xn----xn4e", true); } // [V3, V6]
688417024test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.e"); } // [B2, B3]
17025test { try toAsciiFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.e", false); } // [B2, B3]
17026test { try toAsciiFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.e", true); } // [B2, B3]
688517027test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe2\xb4\x87.e"); } // [B2, B3]
17028test { try toAsciiFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe2\xb4\x87.e", false); } // [B2, B3]
17029test { try toAsciiFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe2\xb4\x87.e", true); } // [B2, B3]
688617030test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.E"); } // [B2, B3]
17031test { try toAsciiFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.E", false); } // [B2, B3]
17032test { try toAsciiFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.E", true); } // [B2, B3]
688717033test { try toUnicodeFail("xn--jpb846bjzj7pr.e"); } // [B2, B3]
17034test { try toAsciiFail("xn--jpb846bjzj7pr.e", false); } // [B2, B3]
17035test { try toAsciiFail("xn--jpb846bjzj7pr.e", true); } // [B2, B3]
688817036test { try toUnicodeFail("xn--jpb846bmjw88a.e"); } // [B2, B3, V7]
17037test { try toAsciiFail("xn--jpb846bmjw88a.e", false); } // [B2, B3, V7]
17038test { try toAsciiFail("xn--jpb846bmjw88a.e", true); } // [B2, B3, V7]
688917039test { try toUnicodeFail("\xe1\x84\xb9\xef\xbd\xa1\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e"); } // [V6, V7]
17040test { try toAsciiFail("\xe1\x84\xb9\xef\xbd\xa1\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e", false); } // [V6, V7]
17041test { try toAsciiFail("\xe1\x84\xb9\xef\xbd\xa1\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e", true); } // [V6, V7]
689017042test { try toUnicodeFail("\xe1\x84\xb9\xe3\x80\x82\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e"); } // [V6, V7]
17043test { try toAsciiFail("\xe1\x84\xb9\xe3\x80\x82\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e", false); } // [V6, V7]
17044test { try toAsciiFail("\xe1\x84\xb9\xe3\x80\x82\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e", true); } // [V6, V7]
689117045test { try toUnicodeFail("xn--lrd.xn--s8c05302k"); } // [V6, V7]
17046test { try toAsciiFail("xn--lrd.xn--s8c05302k", false); } // [V6, V7]
17047test { try toAsciiFail("xn--lrd.xn--s8c05302k", true); } // [V6, V7]
689217048test { try toUnicodeFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7]
17049test { try toAsciiFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d", false); } // [V7]
17050test { try toAsciiFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d", true); } // [V7]
689317051test { try toUnicodeFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7]
17052test { try toAsciiFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d", false); } // [V7]
17053test { try toAsciiFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d", true); } // [V7]
689417054test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf"); } // [V7]
17055test { try toAsciiFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf", false); } // [V7]
17056test { try toAsciiFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf", true); } // [V7]
689517057test { try toUnicodeFail("xn--xkjw3965g.xn--ne6h"); } // [V7]
17058test { try toAsciiFail("xn--xkjw3965g.xn--ne6h", false); } // [V7]
17059test { try toAsciiFail("xn--xkjw3965g.xn--ne6h", true); } // [V7]
689617060test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf"); } // [V7]
17061test { try toAsciiFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf", false); } // [V7]
17062test { try toAsciiFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf", true); } // [V7]
689717063test { try toUnicodeFail("xn--end82983m.xn--ne6h"); } // [V7]
17064test { try toAsciiFail("xn--end82983m.xn--ne6h", false); } // [V7]
17065test { try toAsciiFail("xn--end82983m.xn--ne6h", true); } // [V7]
689817066test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7]
17067test { try toAsciiFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d", false); } // [V7]
17068test { try toAsciiFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d", true); } // [V7]
689917069test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7]
17070test { try toAsciiFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d", false); } // [V7]
17071test { try toAsciiFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d", true); } // [V7]
690017072test { try toUnicodeFail("\xc3\x9f\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c"); } // [B5, B6, C1, V7]
17073test { try toAsciiFail("\xc3\x9f\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
17074test { try toAsciiFail("\xc3\x9f\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c", true); } // [B5, B6, V7]
690117075test { try toUnicodeFail("\xc3\x9f\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c"); } // [B5, B6, C1]
17076test { try toAsciiFail("\xc3\x9f\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", false); } // [B5, B6, C1]
17077test { try toAsciiFail("\xc3\x9f\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", true); } // [B5, B6]
690217078test { try toUnicodeFail("\xc3\x9f\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcf\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c"); } // [B5, B6, C1]
17079test { try toAsciiFail("\xc3\x9f\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcf\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", false); } // [B5, B6, C1]
17080test { try toAsciiFail("\xc3\x9f\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcf\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", true); } // [B5, B6]
690317081test { try toUnicodeFail("SS\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c"); } // [B5, B6, C1]
17082test { try toAsciiFail("SS\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", false); } // [B5, B6, C1]
17083test { try toAsciiFail("SS\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", true); } // [B5, B6]
690417084test { try toUnicodeFail("ss\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcf\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c"); } // [B5, B6, C1]
17085test { try toAsciiFail("ss\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcf\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", false); } // [B5, B6, C1]
17086test { try toAsciiFail("ss\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcf\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", true); } // [B5, B6]
690517087test { try toUnicodeFail("Ss\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c"); } // [B5, B6, C1]
17088test { try toAsciiFail("Ss\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", false); } // [B5, B6, C1]
17089test { try toAsciiFail("Ss\xe0\xa0\x8b\xe3\x80\x82\xd9\xbb.\xe5\xb8\xbcF\xe2\x88\xab\xe2\x88\xab\xe2\x80\x8c", true); } // [B5, B6]
690617090test { try toUnicodeFail("xn--ss-uze.xn--0ib.xn--f-tcoa9162d"); } // [B5, B6]
17091test { try toAsciiFail("xn--ss-uze.xn--0ib.xn--f-tcoa9162d", false); } // [B5, B6]
17092test { try toAsciiFail("xn--ss-uze.xn--0ib.xn--f-tcoa9162d", true); } // [B5, B6]
690717093test { try toUnicodeFail("xn--ss-uze.xn--0ib.xn--f-sgn48ga6997e"); } // [B5, B6, C1]
17094test { try toAsciiFail("xn--ss-uze.xn--0ib.xn--f-sgn48ga6997e", false); } // [B5, B6, C1]
17095test { try toAsciiFail("xn--ss-uze.xn--0ib.xn--f-sgn48ga6997e", true); } // [B5, B6, C1]
690817096test { try toUnicodeFail("xn--zca687a.xn--0ib.xn--f-sgn48ga6997e"); } // [B5, B6, C1]
17097test { try toAsciiFail("xn--zca687a.xn--0ib.xn--f-sgn48ga6997e", false); } // [B5, B6, C1]
17098test { try toAsciiFail("xn--zca687a.xn--0ib.xn--f-sgn48ga6997e", true); } // [B5, B6, C1]
690917099test { try toUnicodeFail("\xc3\x9f\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcf\xe2\x88\xac\xe2\x80\x8c"); } // [B5, B6, C1, V7]
17100test { try toAsciiFail("\xc3\x9f\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcf\xe2\x88\xac\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
17101test { try toAsciiFail("\xc3\x9f\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcf\xe2\x88\xac\xe2\x80\x8c", true); } // [B5, B6, V7]
691017102test { try toUnicodeFail("SS\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c"); } // [B5, B6, C1, V7]
17103test { try toAsciiFail("SS\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
17104test { try toAsciiFail("SS\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c", true); } // [B5, B6, V7]
691117105test { try toUnicodeFail("ss\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcf\xe2\x88\xac\xe2\x80\x8c"); } // [B5, B6, C1, V7]
17106test { try toAsciiFail("ss\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcf\xe2\x88\xac\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
17107test { try toAsciiFail("ss\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcf\xe2\x88\xac\xe2\x80\x8c", true); } // [B5, B6, V7]
691217108test { try toUnicodeFail("Ss\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c"); } // [B5, B6, C1, V7]
17109test { try toAsciiFail("Ss\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c", false); } // [B5, B6, C1, V7]
17110test { try toAsciiFail("Ss\xe0\xa0\x8b\xef\xb8\x92\xd9\xbb\xef\xbc\x8e\xe5\xb8\xbcF\xe2\x88\xac\xe2\x80\x8c", true); } // [B5, B6, V7]
691317111test { try toUnicodeFail("xn--ss-k0d31nu121d.xn--f-tcoa9162d"); } // [B5, B6, V7]
17112test { try toAsciiFail("xn--ss-k0d31nu121d.xn--f-tcoa9162d", false); } // [B5, B6, V7]
17113test { try toAsciiFail("xn--ss-k0d31nu121d.xn--f-tcoa9162d", true); } // [B5, B6, V7]
691417114test { try toUnicodeFail("xn--ss-k0d31nu121d.xn--f-sgn48ga6997e"); } // [B5, B6, C1, V7]
17115test { try toAsciiFail("xn--ss-k0d31nu121d.xn--f-sgn48ga6997e", false); } // [B5, B6, C1, V7]
17116test { try toAsciiFail("xn--ss-k0d31nu121d.xn--f-sgn48ga6997e", true); } // [B5, B6, C1, V7]
691517117test { try toUnicodeFail("xn--zca68zj8ac956c.xn--f-sgn48ga6997e"); } // [B5, B6, C1, V7]
17118test { try toAsciiFail("xn--zca68zj8ac956c.xn--f-sgn48ga6997e", false); } // [B5, B6, C1, V7]
17119test { try toAsciiFail("xn--zca68zj8ac956c.xn--f-sgn48ga6997e", true); } // [B5, B6, C1, V7]
691617120test { try toUnicodeFail("\xf3\x98\xaa\x97\xef\xbd\xa1\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d"); } // [B1, C2, V7]
17121test { try toAsciiFail("\xf3\x98\xaa\x97\xef\xbd\xa1\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d", false); } // [B1, C2, V7]
17122test { try toAsciiFail("\xf3\x98\xaa\x97\xef\xbd\xa1\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d", true); } // [B1, V7]
691717123test { try toUnicodeFail("\xf3\x98\xaa\x97\xe3\x80\x82\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d"); } // [B1, C2, V7]
17124test { try toAsciiFail("\xf3\x98\xaa\x97\xe3\x80\x82\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d", false); } // [B1, C2, V7]
17125test { try toAsciiFail("\xf3\x98\xaa\x97\xe3\x80\x82\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d", true); } // [B1, V7]
691817126test { try toUnicodeFail("xn--8l83e.xn--so0dw168a"); } // [B1, V7]
17127test { try toAsciiFail("xn--8l83e.xn--so0dw168a", false); } // [B1, V7]
17128test { try toAsciiFail("xn--8l83e.xn--so0dw168a", true); } // [B1, V7]
691917129test { try toUnicodeFail("xn--8l83e.xn--1ug4105gsxwf"); } // [B1, C2, V7]
17130test { try toAsciiFail("xn--8l83e.xn--1ug4105gsxwf", false); } // [B1, C2, V7]
17131test { try toAsciiFail("xn--8l83e.xn--1ug4105gsxwf", true); } // [B1, C2, V7]
692017132test { try toUnicodeFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa2\xf0\x9d\x9f\xa8\xea\xa3\x84"); } // [V7]
17133test { try toAsciiFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa2\xf0\x9d\x9f\xa8\xea\xa3\x84", false); } // [V7]
17134test { try toAsciiFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa2\xf0\x9d\x9f\xa8\xea\xa3\x84", true); } // [V7]
692117135test { try toUnicodeFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa26\xea\xa3\x84"); } // [V7]
17136test { try toAsciiFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa26\xea\xa3\x84", false); } // [V7]
17137test { try toAsciiFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa26\xea\xa3\x84", true); } // [V7]
692217138test { try toUnicodeFail("xn--mi60a.xn--6-sl4es8023c"); } // [V7]
17139test { try toAsciiFail("xn--mi60a.xn--6-sl4es8023c", false); } // [V7]
17140test { try toAsciiFail("xn--mi60a.xn--6-sl4es8023c", true); } // [V7]
692317141test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe1\x82\xa8"); } // [B1, V3, V6]
17142test { try toAsciiFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe1\x82\xa8", false); } // [B1, V3, V6]
17143test { try toAsciiFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe1\x82\xa8", true); } // [B1, V3, V6]
692417144test { try toUnicodeFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe1\x82\xa8"); } // [B1, V3, V6]
17145test { try toAsciiFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe1\x82\xa8", false); } // [B1, V3, V6]
17146test { try toAsciiFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe1\x82\xa8", true); } // [B1, V3, V6]
692517147test { try toUnicodeFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe2\xb4\x91\xe2\xb4\x88"); } // [B1, V3, V6]
17148test { try toAsciiFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe2\xb4\x91\xe2\xb4\x88", false); } // [B1, V3, V6]
17149test { try toAsciiFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe2\xb4\x91\xe2\xb4\x88", true); } // [B1, V3, V6]
692617150test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc3430a9a"); } // [B1, V3, V6]
17151test { try toAsciiFail("xn--rgbd2e831i.xn----zyc3430a9a", false); } // [B1, V3, V6]
17152test { try toAsciiFail("xn--rgbd2e831i.xn----zyc3430a9a", true); } // [B1, V3, V6]
692717153test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe2\xb4\x91\xe2\xb4\x88"); } // [B1, V3, V6]
17154test { try toAsciiFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe2\xb4\x91\xe2\xb4\x88", false); } // [B1, V3, V6]
17155test { try toAsciiFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe2\xb4\x91\xe2\xb4\x88", true); } // [B1, V3, V6]
692817156test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc155e9a"); } // [B1, V3, V6, V7]
17157test { try toAsciiFail("xn--rgbd2e831i.xn----zyc155e9a", false); } // [B1, V3, V6, V7]
17158test { try toAsciiFail("xn--rgbd2e831i.xn----zyc155e9a", true); } // [B1, V3, V6, V7]
692917159test { try toUnicodeFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe2\xb4\x88"); } // [B1, V3, V6]
17160test { try toAsciiFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe2\xb4\x88", false); } // [B1, V3, V6]
17161test { try toAsciiFail("\xe1\xaa\xb2\xd9\x85\xd8\xae\xd8\xac\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe2\xb4\x88", true); } // [B1, V3, V6]
693017162test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc875efr3a"); } // [B1, V3, V6, V7]
17163test { try toAsciiFail("xn--rgbd2e831i.xn----zyc875efr3a", false); } // [B1, V3, V6, V7]
17164test { try toAsciiFail("xn--rgbd2e831i.xn----zyc875efr3a", true); } // [B1, V3, V6, V7]
693117165test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe2\xb4\x88"); } // [B1, V3, V6]
17166test { try toAsciiFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe2\xb4\x88", false); } // [B1, V3, V6]
17167test { try toAsciiFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe2\xb4\x88", true); } // [B1, V3, V6]
693217168test { try toUnicodeFail("\xf0\x9e\xa4\xa4\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92"); } // [B1, V3, V7]
17169test { try toAsciiFail("\xf0\x9e\xa4\xa4\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92", false); } // [B1, V3, V7]
17170test { try toAsciiFail("\xf0\x9e\xa4\xa4\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92", true); } // [B1, V3, V7]
693317171test { try toUnicodeFail("\xf0\x9e\xa4\xa4.-\xe0\xa2\xa3\xe3\x80\x82"); } // [B1, V3]
17172test { try toAsciiFail("\xf0\x9e\xa4\xa4.-\xe0\xa2\xa3\xe3\x80\x82", false); } // [B1, V3, A4_2]
17173test { try toAsciiFail("\xf0\x9e\xa4\xa4.-\xe0\xa2\xa3\xe3\x80\x82", true); } // [B1, V3, A4_2]
693417174test { try toUnicodeFail("\xf0\x9e\xa4\x82.-\xe0\xa2\xa3\xe3\x80\x82"); } // [B1, V3]
17175test { try toAsciiFail("\xf0\x9e\xa4\x82.-\xe0\xa2\xa3\xe3\x80\x82", false); } // [B1, V3, A4_2]
17176test { try toAsciiFail("\xf0\x9e\xa4\x82.-\xe0\xa2\xa3\xe3\x80\x82", true); } // [B1, V3, A4_2]
693517177test { try toUnicodeFail("xn--ce6h.xn----cod."); } // [B1, V3]
17178test { try toAsciiFail("xn--ce6h.xn----cod.", false); } // [B1, V3, A4_2]
17179test { try toAsciiFail("xn--ce6h.xn----cod.", true); } // [B1, V3, A4_2]
693617180test { try toUnicodeFail("\xf0\x9e\xa4\x82\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92"); } // [B1, V3, V7]
17181test { try toAsciiFail("\xf0\x9e\xa4\x82\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92", false); } // [B1, V3, V7]
17182test { try toAsciiFail("\xf0\x9e\xa4\x82\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92", true); } // [B1, V3, V7]
693717183test { try toUnicodeFail("xn--ce6h.xn----cod7069p"); } // [B1, V3, V7]
17184test { try toAsciiFail("xn--ce6h.xn----cod7069p", false); } // [B1, V3, V7]
17185test { try toAsciiFail("xn--ce6h.xn----cod7069p", true); } // [B1, V3, V7]
693817186test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xba\xa8.\xe0\xa1\x99--"); } // [B1, C1, V3, V6]
17187test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xba\xa8.\xe0\xa1\x99--", false); } // [B1, C1, V3, V6]
17188test { try toAsciiFail("\xe2\x80\x8c\xf0\x90\xba\xa8.\xe0\xa1\x99--", true); } // [B1, V3, V6]
693917189test { try toUnicodeFail("xn--9p0d.xn-----h6e"); } // [B1, V3, V6]
17190test { try toAsciiFail("xn--9p0d.xn-----h6e", false); } // [B1, V3, V6]
17191test { try toAsciiFail("xn--9p0d.xn-----h6e", true); } // [B1, V3, V6]
694017192test { try toUnicodeFail("xn--0ug7905g.xn-----h6e"); } // [B1, C1, V3, V6]
17193test { try toAsciiFail("xn--0ug7905g.xn-----h6e", false); } // [B1, C1, V3, V6]
17194test { try toAsciiFail("xn--0ug7905g.xn-----h6e", true); } // [B1, C1, V3, V6]
694117195test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe1\x82\xa1"); } // [V7]
17196test { try toAsciiFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe1\x82\xa1", false); } // [V7]
17197test { try toAsciiFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe1\x82\xa1", true); } // [V7]
694217198test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe2\xb4\xa2.\xe2\xb4\x81"); } // [V7]
17199test { try toAsciiFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe2\xb4\xa2.\xe2\xb4\x81", false); } // [V7]
17200test { try toAsciiFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe2\xb4\xa2.\xe2\xb4\x81", true); } // [V7]
694317201test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe2\xb4\x81"); } // [V7]
17202test { try toAsciiFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe2\xb4\x81", false); } // [V7]
17203test { try toAsciiFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe2\xb4\x81", true); } // [V7]
694417204test { try toUnicodeFail("xn--qlj1559dr224h.xn--skj"); } // [V7]
17205test { try toAsciiFail("xn--qlj1559dr224h.xn--skj", false); } // [V7]
17206test { try toAsciiFail("xn--qlj1559dr224h.xn--skj", true); } // [V7]
694517207test { try toUnicodeFail("xn--6nd5215jr2u0h.xn--skj"); } // [V7]
17208test { try toAsciiFail("xn--6nd5215jr2u0h.xn--skj", false); } // [V7]
17209test { try toAsciiFail("xn--6nd5215jr2u0h.xn--skj", true); } // [V7]
694617210test { try toUnicodeFail("xn--6nd5215jr2u0h.xn--8md"); } // [V7]
17211test { try toAsciiFail("xn--6nd5215jr2u0h.xn--8md", false); } // [V7]
17212test { try toAsciiFail("xn--6nd5215jr2u0h.xn--8md", true); } // [V7]
694717213test { try toUnicodeFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x82"); } // [V7]
17214test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x82", false); } // [V7]
17215test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x82", true); } // [V7]
694817216test { try toUnicodeFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x82"); } // [V7]
17217test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x82", false); } // [V7]
17218test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x82", true); } // [V7]
694917219test { try toUnicodeFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xce\xa3"); } // [V7]
17220test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xce\xa3", false); } // [V7]
17221test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xce\xa3", true); } // [V7]
695017222test { try toUnicodeFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x83"); } // [V7]
17223test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x83", false); } // [V7]
17224test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x864\xf2\xa9\x9e\x86\xe3\x80\x82\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x83", true); } // [V7]
695117225test { try toUnicodeFail("xn--4-w93ej7463a9io5a.xn--4xa31142bk3f0d"); } // [V7]
17226test { try toAsciiFail("xn--4-w93ej7463a9io5a.xn--4xa31142bk3f0d", false); } // [V7]
17227test { try toAsciiFail("xn--4-w93ej7463a9io5a.xn--4xa31142bk3f0d", true); } // [V7]
695217228test { try toUnicodeFail("xn--4-w93ej7463a9io5a.xn--3xa51142bk3f0d"); } // [V7]
17229test { try toAsciiFail("xn--4-w93ej7463a9io5a.xn--3xa51142bk3f0d", false); } // [V7]
17230test { try toAsciiFail("xn--4-w93ej7463a9io5a.xn--3xa51142bk3f0d", true); } // [V7]
695317231test { try toUnicodeFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xce\xa3"); } // [V7]
17232test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xce\xa3", false); } // [V7]
17233test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xce\xa3", true); } // [V7]
695417234test { try toUnicodeFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x83"); } // [V7]
17235test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x83", false); } // [V7]
17236test { try toAsciiFail("\xf1\x97\x91\xbf\xea\xa0\x86\xe2\x82\x84\xf2\xa9\x9e\x86\xef\xbd\xa1\xf0\xb2\xa9\xa7\xf3\xa0\x92\xb9\xcf\x83", true); } // [V7]
695517237test { try toUnicodeFail("\xf3\xa0\x86\x80\xdc\xa3\xe3\x80\x82\xe1\xb7\xb4\xdd\xb5"); } // [B1, V6]
17238test { try toAsciiFail("\xf3\xa0\x86\x80\xdc\xa3\xe3\x80\x82\xe1\xb7\xb4\xdd\xb5", false); } // [B1, V6]
17239test { try toAsciiFail("\xf3\xa0\x86\x80\xdc\xa3\xe3\x80\x82\xe1\xb7\xb4\xdd\xb5", true); } // [B1, V6]
695617240test { try toUnicodeFail("xn--tnb.xn--5pb136i"); } // [B1, V6]
17241test { try toAsciiFail("xn--tnb.xn--5pb136i", false); } // [B1, V6]
17242test { try toAsciiFail("xn--tnb.xn--5pb136i", true); } // [B1, V6]
695717243test { try toUnicodeFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xef\xbd\xa1\xf0\xac\xbc\x96\xe1\x82\xb1\xe2\x80\x8d"); } // [B1, B6, C2]
17244test { try toAsciiFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xef\xbd\xa1\xf0\xac\xbc\x96\xe1\x82\xb1\xe2\x80\x8d", false); } // [B1, B6, C2]
17245test { try toAsciiFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xef\xbd\xa1\xf0\xac\xbc\x96\xe1\x82\xb1\xe2\x80\x8d", true); } // [B1]
695817246test { try toUnicodeFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xe3\x80\x82\xf0\xac\xbc\x96\xe1\x82\xb1\xe2\x80\x8d"); } // [B1, B6, C2]
17247test { try toAsciiFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xe3\x80\x82\xf0\xac\xbc\x96\xe1\x82\xb1\xe2\x80\x8d", false); } // [B1, B6, C2]
17248test { try toAsciiFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xe3\x80\x82\xf0\xac\xbc\x96\xe1\x82\xb1\xe2\x80\x8d", true); } // [B1]
695917249test { try toUnicodeFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xe3\x80\x82\xf0\xac\xbc\x96\xe2\xb4\x91\xe2\x80\x8d"); } // [B1, B6, C2]
17250test { try toAsciiFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xe3\x80\x82\xf0\xac\xbc\x96\xe2\xb4\x91\xe2\x80\x8d", false); } // [B1, B6, C2]
17251test { try toAsciiFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xe3\x80\x82\xf0\xac\xbc\x96\xe2\xb4\x91\xe2\x80\x8d", true); } // [B1]
696017252test { try toUnicodeFail("xn--0vb1535kdb6e.xn--8kjz186s"); } // [B1]
17253test { try toAsciiFail("xn--0vb1535kdb6e.xn--8kjz186s", false); } // [B1]
17254test { try toAsciiFail("xn--0vb1535kdb6e.xn--8kjz186s", true); } // [B1]
696117255test { try toUnicodeFail("xn--0vb1535kdb6e.xn--1ug742c5714c"); } // [B1, B6, C2]
17256test { try toAsciiFail("xn--0vb1535kdb6e.xn--1ug742c5714c", false); } // [B1, B6, C2]
17257test { try toAsciiFail("xn--0vb1535kdb6e.xn--1ug742c5714c", true); } // [B1, B6, C2]
696217258test { try toUnicodeFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xef\xbd\xa1\xf0\xac\xbc\x96\xe2\xb4\x91\xe2\x80\x8d"); } // [B1, B6, C2]
17259test { try toAsciiFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xef\xbd\xa1\xf0\xac\xbc\x96\xe2\xb4\x91\xe2\x80\x8d", false); } // [B1, B6, C2]
17260test { try toAsciiFail("\xf0\x90\xb9\xb1\xe0\xa1\x82\xf0\x9d\xaa\xa8\xef\xbd\xa1\xf0\xac\xbc\x96\xe2\xb4\x91\xe2\x80\x8d", true); } // [B1]
696317261test { try toUnicodeFail("xn--0vb1535kdb6e.xn--pnd93707a"); } // [B1, V7]
17262test { try toAsciiFail("xn--0vb1535kdb6e.xn--pnd93707a", false); } // [B1, V7]
17263test { try toAsciiFail("xn--0vb1535kdb6e.xn--pnd93707a", true); } // [B1, V7]
696417264test { try toUnicodeFail("xn--0vb1535kdb6e.xn--pnd879eqy33c"); } // [B1, B6, C2, V7]
17265test { try toAsciiFail("xn--0vb1535kdb6e.xn--pnd879eqy33c", false); } // [B1, B6, C2, V7]
17266test { try toAsciiFail("xn--0vb1535kdb6e.xn--pnd879eqy33c", true); } // [B1, B6, C2, V7]
696517267test { try toUnicodeFail("\xe1\x9c\x94\xf0\x90\xad\xaa\xf3\xa0\x99\x98\xe2\x80\x8d\xef\xbd\xa1-\xf0\x90\xb9\xb4"); } // [B1, C2, V3, V6, V7]
17268test { try toAsciiFail("\xe1\x9c\x94\xf0\x90\xad\xaa\xf3\xa0\x99\x98\xe2\x80\x8d\xef\xbd\xa1-\xf0\x90\xb9\xb4", false); } // [B1, C2, V3, V6, V7]
17269test { try toAsciiFail("\xe1\x9c\x94\xf0\x90\xad\xaa\xf3\xa0\x99\x98\xe2\x80\x8d\xef\xbd\xa1-\xf0\x90\xb9\xb4", true); } // [B1, V3, V6, V7]
696617270test { try toUnicodeFail("\xe1\x9c\x94\xf0\x90\xad\xaa\xf3\xa0\x99\x98\xe2\x80\x8d\xe3\x80\x82-\xf0\x90\xb9\xb4"); } // [B1, C2, V3, V6, V7]
17271test { try toAsciiFail("\xe1\x9c\x94\xf0\x90\xad\xaa\xf3\xa0\x99\x98\xe2\x80\x8d\xe3\x80\x82-\xf0\x90\xb9\xb4", false); } // [B1, C2, V3, V6, V7]
17272test { try toAsciiFail("\xe1\x9c\x94\xf0\x90\xad\xaa\xf3\xa0\x99\x98\xe2\x80\x8d\xe3\x80\x82-\xf0\x90\xb9\xb4", true); } // [B1, V3, V6, V7]
696717273test { try toUnicodeFail("xn--fze4126jujt0g.xn----c36i"); } // [B1, V3, V6, V7]
17274test { try toAsciiFail("xn--fze4126jujt0g.xn----c36i", false); } // [B1, V3, V6, V7]
17275test { try toAsciiFail("xn--fze4126jujt0g.xn----c36i", true); } // [B1, V3, V6, V7]
696817276test { try toUnicodeFail("xn--fze807bso0spy14i.xn----c36i"); } // [B1, C2, V3, V6, V7]
17277test { try toAsciiFail("xn--fze807bso0spy14i.xn----c36i", false); } // [B1, C2, V3, V6, V7]
17278test { try toAsciiFail("xn--fze807bso0spy14i.xn----c36i", true); } // [B1, C2, V3, V6, V7]
696917279test { try toUnicodeFail("\xf0\xbe\xa2\xac\xef\xbd\xa1\xdc\xa9\xef\xb8\x92\xec\xaf\x99\xf0\x9d\x9f\xa7"); } // [B2, V7]
17280test { try toAsciiFail("\xf0\xbe\xa2\xac\xef\xbd\xa1\xdc\xa9\xef\xb8\x92\xec\xaf\x99\xf0\x9d\x9f\xa7", false); } // [B2, V7]
17281test { try toAsciiFail("\xf0\xbe\xa2\xac\xef\xbd\xa1\xdc\xa9\xef\xb8\x92\xec\xaf\x99\xf0\x9d\x9f\xa7", true); } // [B2, V7]
697017282test { try toUnicodeFail("\xf0\xbe\xa2\xac\xef\xbd\xa1\xdc\xa9\xef\xb8\x92\xe1\x84\x8d\xe1\x85\xb3\xe1\x86\xac\xf0\x9d\x9f\xa7"); } // [B2, V7]
17283test { try toAsciiFail("\xf0\xbe\xa2\xac\xef\xbd\xa1\xdc\xa9\xef\xb8\x92\xe1\x84\x8d\xe1\x85\xb3\xe1\x86\xac\xf0\x9d\x9f\xa7", false); } // [B2, V7]
17284test { try toAsciiFail("\xf0\xbe\xa2\xac\xef\xbd\xa1\xdc\xa9\xef\xb8\x92\xe1\x84\x8d\xe1\x85\xb3\xe1\x86\xac\xf0\x9d\x9f\xa7", true); } // [B2, V7]
697117285test { try toUnicodeFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xec\xaf\x995"); } // [V7]
17286test { try toAsciiFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xec\xaf\x995", false); } // [V7]
17287test { try toAsciiFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xec\xaf\x995", true); } // [V7]
697217288test { try toUnicodeFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xb3\xe1\x86\xac5"); } // [V7]
17289test { try toAsciiFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xb3\xe1\x86\xac5", false); } // [V7]
17290test { try toAsciiFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xb3\xe1\x86\xac5", true); } // [V7]
697317291test { try toUnicodeFail("xn--t92s.xn--znb.xn--5-y88f"); } // [V7]
17292test { try toAsciiFail("xn--t92s.xn--znb.xn--5-y88f", false); } // [V7]
17293test { try toAsciiFail("xn--t92s.xn--znb.xn--5-y88f", true); } // [V7]
697417294test { try toUnicodeFail("xn--t92s.xn--5-p1c0712mm8rb"); } // [B2, V7]
17295test { try toAsciiFail("xn--t92s.xn--5-p1c0712mm8rb", false); } // [B2, V7]
17296test { try toAsciiFail("xn--t92s.xn--5-p1c0712mm8rb", true); } // [B2, V7]
697517297test { try toUnicodeFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90"); } // [B2, B3, V3]
17298test { try toAsciiFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90", false); } // [B2, B3, V3]
17299test { try toAsciiFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90", true); } // [B2, B3, V3]
697617300test { try toUnicodeFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5"); } // [B2, B3, V3]
17301test { try toAsciiFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5", false); } // [B2, B3, V3]
17302test { try toAsciiFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5", true); } // [B2, B3, V3]
697717303test { try toUnicodeFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5"); } // [B2, B3, V3]
17304test { try toAsciiFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5", false); } // [B2, B3, V3]
17305test { try toAsciiFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5", true); } // [B2, B3, V3]
697817306test { try toUnicodeFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90"); } // [B2, B3, V3]
17307test { try toAsciiFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90", false); } // [B2, B3, V3]
17308test { try toAsciiFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90", true); } // [B2, B3, V3]
697917309test { try toUnicodeFail("xn----1j8r.xn--mpb269krv4i"); } // [B2, B3, V3]
17310test { try toAsciiFail("xn----1j8r.xn--mpb269krv4i", false); } // [B2, B3, V3]
17311test { try toAsciiFail("xn----1j8r.xn--mpb269krv4i", true); } // [B2, B3, V3]
698017312test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4\xe2\x89\xa0"); } // [B2, B3, V7]
17313test { try toAsciiFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4\xe2\x89\xa0", false); } // [B2, B3, V7]
17314test { try toAsciiFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4\xe2\x89\xa0", true); } // [B2, B3, V7]
698117315test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4=\xcc\xb8"); } // [B2, B3, V7]
17316test { try toAsciiFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4=\xcc\xb8", false); } // [B2, B3, V7]
17317test { try toAsciiFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4=\xcc\xb8", true); } // [B2, B3, V7]
698217318test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4\xe2\x89\xa0"); } // [B2, B3, V7]
17319test { try toAsciiFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4\xe2\x89\xa0", false); } // [B2, B3, V7]
17320test { try toAsciiFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4\xe2\x89\xa0", true); } // [B2, B3, V7]
698317321test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4=\xcc\xb8"); } // [B2, B3, V7]
17322test { try toAsciiFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4=\xcc\xb8", false); } // [B2, B3, V7]
17323test { try toAsciiFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4=\xcc\xb8", true); } // [B2, B3, V7]
698417324test { try toUnicodeFail("xn----cm8rp3609a.xn--9yb852k"); } // [B2, B3, V7]
17325test { try toAsciiFail("xn----cm8rp3609a.xn--9yb852k", false); } // [B2, B3, V7]
17326test { try toAsciiFail("xn----cm8rp3609a.xn--9yb852k", true); } // [B2, B3, V7]
698517327test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
17328test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1", false); } // [B1, V3, V7]
17329test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1", true); } // [B1, V3, V7]
698617330test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc.\xd9\xa1"); } // [B1, V3, V7]
17331test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc.\xd9\xa1", false); } // [B1, V3, V7]
17332test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc.\xd9\xa1", true); } // [B1, V3, V7]
698717333test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7]
17334test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c.\xd9\xa1", false); } // [B1, V3, V7]
17335test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c.\xd9\xa1", true); } // [B1, V3, V7]
698817336test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc.\xd9\xa1"); } // [B1, V3, V7]
17337test { try toAsciiFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc.\xd9\xa1", false); } // [B1, V3, V7]
17338test { try toAsciiFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc.\xd9\xa1", true); } // [B1, V3, V7]
698917339test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7]
17340test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c.\xd9\xa1", false); } // [B1, V3, V7]
17341test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c.\xd9\xa1", true); } // [B1, V3, V7]
699017342test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7]
17343test { try toAsciiFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c.\xd9\xa1", false); } // [B1, V3, V7]
17344test { try toAsciiFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c.\xd9\xa1", true); } // [B1, V3, V7]
699117345test { try toUnicodeFail("xn----0mb9682aov12f.xn--9hb"); } // [B1, V3, V7]
17346test { try toAsciiFail("xn----0mb9682aov12f.xn--9hb", false); } // [B1, V3, V7]
17347test { try toAsciiFail("xn----0mb9682aov12f.xn--9hb", true); } // [B1, V3, V7]
699217348test { try toUnicodeFail("xn----ymb2782aov12f.xn--9hb"); } // [B1, V3, V7]
17349test { try toAsciiFail("xn----ymb2782aov12f.xn--9hb", false); } // [B1, V3, V7]
17350test { try toAsciiFail("xn----ymb2782aov12f.xn--9hb", true); } // [B1, V3, V7]
699317351test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
17352test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1", false); } // [B1, V3, V7]
17353test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1", true); } // [B1, V3, V7]
699417354test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
17355test { try toAsciiFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1", false); } // [B1, V3, V7]
17356test { try toAsciiFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1", true); } // [B1, V3, V7]
699517357test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
17358test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1", false); } // [B1, V3, V7]
17359test { try toAsciiFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1", true); } // [B1, V3, V7]
699617360test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
17361test { try toAsciiFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1", false); } // [B1, V3, V7]
17362test { try toAsciiFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1", true); } // [B1, V3, V7]
699717363test { try toUnicodeFail("xn----0mb770hun11i.xn--9hb"); } // [B1, V3, V7]
17364test { try toAsciiFail("xn----0mb770hun11i.xn--9hb", false); } // [B1, V3, V7]
17365test { try toAsciiFail("xn----0mb770hun11i.xn--9hb", true); } // [B1, V3, V7]
699817366test { try toUnicodeFail("xn----ymb080hun11i.xn--9hb"); } // [B1, V3, V7]
17367test { try toAsciiFail("xn----ymb080hun11i.xn--9hb", false); } // [B1, V3, V7]
17368test { try toAsciiFail("xn----ymb080hun11i.xn--9hb", true); } // [B1, V3, V7]
699917369test { try toUnicodeFail("\xe1\x9f\x8a.\xe2\x80\x8d\xf0\x9d\x9f\xae\xf0\x91\x80\xbf"); } // [C2, V6]
17370test { try toAsciiFail("\xe1\x9f\x8a.\xe2\x80\x8d\xf0\x9d\x9f\xae\xf0\x91\x80\xbf", false); } // [C2, V6]
17371test { try toAsciiFail("\xe1\x9f\x8a.\xe2\x80\x8d\xf0\x9d\x9f\xae\xf0\x91\x80\xbf", true); } // [V6]
700017372test { try toUnicodeFail("\xe1\x9f\x8a.\xe2\x80\x8d2\xf0\x91\x80\xbf"); } // [C2, V6]
17373test { try toAsciiFail("\xe1\x9f\x8a.\xe2\x80\x8d2\xf0\x91\x80\xbf", false); } // [C2, V6]
17374test { try toAsciiFail("\xe1\x9f\x8a.\xe2\x80\x8d2\xf0\x91\x80\xbf", true); } // [V6]
700117375test { try toUnicodeFail("xn--m4e.xn--2-ku7i"); } // [V6]
17376test { try toAsciiFail("xn--m4e.xn--2-ku7i", false); } // [V6]
17377test { try toAsciiFail("xn--m4e.xn--2-ku7i", true); } // [V6]
700217378test { try toUnicodeFail("xn--m4e.xn--2-tgnv469h"); } // [C2, V6]
17379test { try toAsciiFail("xn--m4e.xn--2-tgnv469h", false); } // [C2, V6]
17380test { try toAsciiFail("xn--m4e.xn--2-tgnv469h", true); } // [C2, V6]
700317381test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9d\x9f\x96\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91"); } // [B1, V6, V7]
17382test { try toAsciiFail("\xe2\x89\xaf\xf0\x9d\x9f\x96\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91", false); } // [B1, V6, V7]
17383test { try toAsciiFail("\xe2\x89\xaf\xf0\x9d\x9f\x96\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91", true); } // [B1, V6, V7]
700417384test { try toUnicodeFail(">\xcc\xb8\xf0\x9d\x9f\x96\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91"); } // [B1, V6, V7]
17385test { try toAsciiFail(">\xcc\xb8\xf0\x9d\x9f\x96\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91", false); } // [B1, V6, V7]
17386test { try toAsciiFail(">\xcc\xb8\xf0\x9d\x9f\x96\xef\xbd\xa1\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91", true); } // [B1, V6, V7]
700517387test { try toUnicodeFail("\xe2\x89\xaf8\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91"); } // [B1, V6, V7]
17388test { try toAsciiFail("\xe2\x89\xaf8\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91", false); } // [B1, V6, V7]
17389test { try toAsciiFail("\xe2\x89\xaf8\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91", true); } // [B1, V6, V7]
700617390test { try toUnicodeFail(">\xcc\xb88\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91"); } // [B1, V6, V7]
17391test { try toAsciiFail(">\xcc\xb88\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91", false); } // [B1, V6, V7]
17392test { try toAsciiFail(">\xcc\xb88\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91", true); } // [B1, V6, V7]
700717393test { try toUnicodeFail("xn--8-ogo.xn--jof5303iv1z5d"); } // [B1, V6, V7]
17394test { try toAsciiFail("xn--8-ogo.xn--jof5303iv1z5d", false); } // [B1, V6, V7]
17395test { try toAsciiFail("xn--8-ogo.xn--jof5303iv1z5d", true); } // [B1, V6, V7]
700817396test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c"); } // [B1, C1, V6]
17397test { try toAsciiFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c", false); } // [B1, C1, V6]
17398test { try toAsciiFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c", true); } // [B1, V6, A4_2]
700917399test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xe3\x80\x82\xe2\x80\x8c"); } // [B1, C1, V6]
17400test { try toAsciiFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xe3\x80\x82\xe2\x80\x8c", false); } // [B1, C1, V6]
17401test { try toAsciiFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xe3\x80\x82\xe2\x80\x8c", true); } // [B1, V6, A4_2]
701017402test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xe3\x80\x82\xe2\x80\x8c"); } // [B1, C1, V6]
17403test { try toAsciiFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xe3\x80\x82\xe2\x80\x8c", false); } // [B1, C1, V6]
17404test { try toAsciiFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xe3\x80\x82\xe2\x80\x8c", true); } // [B1, V6, A4_2]
701117405test { try toUnicodeFail("xn--dib100l8x1p."); } // [B1, V6]
17406test { try toAsciiFail("xn--dib100l8x1p.", false); } // [B1, V6, A4_2]
17407test { try toAsciiFail("xn--dib100l8x1p.", true); } // [B1, V6, A4_2]
701217408test { try toUnicodeFail("xn--dib100l8x1p.xn--0ug"); } // [B1, C1, V6]
17409test { try toAsciiFail("xn--dib100l8x1p.xn--0ug", false); } // [B1, C1, V6]
17410test { try toAsciiFail("xn--dib100l8x1p.xn--0ug", true); } // [B1, C1, V6]
701317411test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c"); } // [B1, C1, V6]
17412test { try toAsciiFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c", false); } // [B1, C1, V6]
17413test { try toAsciiFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c", true); } // [B1, V6, A4_2]
701417414test { try toUnicodeFail("xn--dib999kcy1p."); } // [B1, V6, V7]
17415test { try toAsciiFail("xn--dib999kcy1p.", false); } // [B1, V6, V7, A4_2]
17416test { try toAsciiFail("xn--dib999kcy1p.", true); } // [B1, V6, V7, A4_2]
701517417test { try toUnicodeFail("xn--dib999kcy1p.xn--0ug"); } // [B1, C1, V6, V7]
17418test { try toAsciiFail("xn--dib999kcy1p.xn--0ug", false); } // [B1, C1, V6, V7]
17419test { try toAsciiFail("xn--dib999kcy1p.xn--0ug", true); } // [B1, C1, V6, V7]
701617420test { try toUnicodeFail("\xe0\xb0\x80\xf0\x9d\x9f\xb5\xe2\x80\x8d\xef\xb2\x9d.\xe2\x80\x8d\xdd\x90\xe2\x92\x88"); } // [B1, C2, V6, V7]
17421test { try toAsciiFail("\xe0\xb0\x80\xf0\x9d\x9f\xb5\xe2\x80\x8d\xef\xb2\x9d.\xe2\x80\x8d\xdd\x90\xe2\x92\x88", false); } // [B1, C2, V6, V7]
17422test { try toAsciiFail("\xe0\xb0\x80\xf0\x9d\x9f\xb5\xe2\x80\x8d\xef\xb2\x9d.\xe2\x80\x8d\xdd\x90\xe2\x92\x88", true); } // [B1, V6, V7]
701717423test { try toUnicodeFail("\xe0\xb0\x809\xe2\x80\x8d\xd8\xa8\xd8\xad.\xe2\x80\x8d\xdd\x901."); } // [B1, C2, V6]
17424test { try toAsciiFail("\xe0\xb0\x809\xe2\x80\x8d\xd8\xa8\xd8\xad.\xe2\x80\x8d\xdd\x901.", false); } // [B1, C2, V6, A4_2]
17425test { try toAsciiFail("\xe0\xb0\x809\xe2\x80\x8d\xd8\xa8\xd8\xad.\xe2\x80\x8d\xdd\x901.", true); } // [B1, V6, A4_2]
701817426test { try toUnicodeFail("xn--9-1mcp570d.xn--1-x3c."); } // [B1, V6]
17427test { try toAsciiFail("xn--9-1mcp570d.xn--1-x3c.", false); } // [B1, V6, A4_2]
17428test { try toAsciiFail("xn--9-1mcp570d.xn--1-x3c.", true); } // [B1, V6, A4_2]
701917429test { try toUnicodeFail("xn--9-1mcp570dl51a.xn--1-x3c211q."); } // [B1, C2, V6]
17430test { try toAsciiFail("xn--9-1mcp570dl51a.xn--1-x3c211q.", false); } // [B1, C2, V6, A4_2]
17431test { try toAsciiFail("xn--9-1mcp570dl51a.xn--1-x3c211q.", true); } // [B1, C2, V6, A4_2]
702017432test { try toUnicodeFail("xn--9-1mcp570d.xn--3ob470m"); } // [B1, V6, V7]
17433test { try toAsciiFail("xn--9-1mcp570d.xn--3ob470m", false); } // [B1, V6, V7]
17434test { try toAsciiFail("xn--9-1mcp570d.xn--3ob470m", true); } // [B1, V6, V7]
702117435test { try toUnicodeFail("xn--9-1mcp570dl51a.xn--3ob977jmfd"); } // [B1, C2, V6, V7]
17436test { try toAsciiFail("xn--9-1mcp570dl51a.xn--3ob977jmfd", false); } // [B1, C2, V6, V7]
17437test { try toAsciiFail("xn--9-1mcp570dl51a.xn--3ob977jmfd", true); } // [B1, C2, V6, V7]
702217438test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6\xc3\x9f\xe8\x91\xbd"); } // [V6]
17439test { try toAsciiFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6\xc3\x9f\xe8\x91\xbd", false); } // [V6]
17440test { try toAsciiFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6\xc3\x9f\xe8\x91\xbd", true); } // [V6]
702317441test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6SS\xe8\x91\xbd"); } // [V6]
17442test { try toAsciiFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6SS\xe8\x91\xbd", false); } // [V6]
17443test { try toAsciiFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6SS\xe8\x91\xbd", true); } // [V6]
702417444test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6ss\xe8\x91\xbd"); } // [V6]
17445test { try toAsciiFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6ss\xe8\x91\xbd", false); } // [V6]
17446test { try toAsciiFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6ss\xe8\x91\xbd", true); } // [V6]
702517447test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6Ss\xe8\x91\xbd"); } // [V6]
17448test { try toAsciiFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6Ss\xe8\x91\xbd", false); } // [V6]
17449test { try toAsciiFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6Ss\xe8\x91\xbd", true); } // [V6]
702617450test { try toUnicodeFail("xn--2v9a.xn--ss-q40dp97m"); } // [V6]
17451test { try toAsciiFail("xn--2v9a.xn--ss-q40dp97m", false); } // [V6]
17452test { try toAsciiFail("xn--2v9a.xn--ss-q40dp97m", true); } // [V6]
702717453test { try toUnicodeFail("xn--2v9a.xn--zca7637b14za"); } // [V6]
17454test { try toAsciiFail("xn--2v9a.xn--zca7637b14za", false); } // [V6]
17455test { try toAsciiFail("xn--2v9a.xn--zca7637b14za", true); } // [V6]
702817456test { try toUnicodeFail("\xf0\x91\x9a\xb6\xe2\x92\x88\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba"); } // [B5, B6, V6, V7]
17457test { try toAsciiFail("\xf0\x91\x9a\xb6\xe2\x92\x88\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba", false); } // [B5, B6, V6, V7]
17458test { try toAsciiFail("\xf0\x91\x9a\xb6\xe2\x92\x88\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba", true); } // [B5, B6, V6, V7]
702917459test { try toUnicodeFail("\xf0\x91\x9a\xb61.\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba"); } // [B5, B6, V6, V7, X4_2]
17460test { try toAsciiFail("\xf0\x91\x9a\xb61.\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba", false); } // [B5, B6, V6, V7, A4_2]
17461test { try toAsciiFail("\xf0\x91\x9a\xb61.\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba", true); } // [B5, B6, V6, V7, A4_2]
703017462test { try toUnicodeFail("xn--1-3j0j..xn--yo0d5914s"); } // [B5, B6, V6, V7, X4_2]
17463test { try toAsciiFail("xn--1-3j0j..xn--yo0d5914s", false); } // [B5, B6, V6, V7, A4_2]
17464test { try toAsciiFail("xn--1-3j0j..xn--yo0d5914s", true); } // [B5, B6, V6, V7, A4_2]
703117465test { try toUnicodeFail("xn--tshz969f.xn--yo0d5914s"); } // [B5, B6, V6, V7]
17466test { try toAsciiFail("xn--tshz969f.xn--yo0d5914s", false); } // [B5, B6, V6, V7]
17467test { try toAsciiFail("xn--tshz969f.xn--yo0d5914s", true); } // [B5, B6, V6, V7]
703217468test { try toUnicodeFail("\xf0\x91\x9c\xa4\xef\xb8\x92\xe2\x89\xae\xef\xbc\x8e\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9"); } // [B1, B5, B6, V6, V7]
17469test { try toAsciiFail("\xf0\x91\x9c\xa4\xef\xb8\x92\xe2\x89\xae\xef\xbc\x8e\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9", false); } // [B1, B5, B6, V6, V7]
17470test { try toAsciiFail("\xf0\x91\x9c\xa4\xef\xb8\x92\xe2\x89\xae\xef\xbc\x8e\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9", true); } // [B1, B5, B6, V6, V7]
703317471test { try toUnicodeFail("\xf0\x91\x9c\xa4\xef\xb8\x92<\xcc\xb8\xef\xbc\x8e\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9"); } // [B1, B5, B6, V6, V7]
17472test { try toAsciiFail("\xf0\x91\x9c\xa4\xef\xb8\x92<\xcc\xb8\xef\xbc\x8e\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9", false); } // [B1, B5, B6, V6, V7]
17473test { try toAsciiFail("\xf0\x91\x9c\xa4\xef\xb8\x92<\xcc\xb8\xef\xbc\x8e\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9", true); } // [B1, B5, B6, V6, V7]
703417474test { try toUnicodeFail("\xf0\x91\x9c\xa4\xe3\x80\x82\xe2\x89\xae.\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9"); } // [B1, B5, B6, V6, V7]
17475test { try toAsciiFail("\xf0\x91\x9c\xa4\xe3\x80\x82\xe2\x89\xae.\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9", false); } // [B1, B5, B6, V6, V7]
17476test { try toAsciiFail("\xf0\x91\x9c\xa4\xe3\x80\x82\xe2\x89\xae.\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9", true); } // [B1, B5, B6, V6, V7]
703517477test { try toUnicodeFail("\xf0\x91\x9c\xa4\xe3\x80\x82<\xcc\xb8.\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9"); } // [B1, B5, B6, V6, V7]
17478test { try toAsciiFail("\xf0\x91\x9c\xa4\xe3\x80\x82<\xcc\xb8.\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9", false); } // [B1, B5, B6, V6, V7]
17479test { try toAsciiFail("\xf0\x91\x9c\xa4\xe3\x80\x82<\xcc\xb8.\xf1\x9a\x95\xbd\xd7\x98\xf0\x9e\xbe\xa9", true); } // [B1, B5, B6, V6, V7]
703617480test { try toUnicodeFail("xn--ci2d.xn--gdh.xn--deb0091w5q9u"); } // [B1, B5, B6, V6, V7]
17481test { try toAsciiFail("xn--ci2d.xn--gdh.xn--deb0091w5q9u", false); } // [B1, B5, B6, V6, V7]
17482test { try toAsciiFail("xn--ci2d.xn--gdh.xn--deb0091w5q9u", true); } // [B1, B5, B6, V6, V7]
703717483test { try toUnicodeFail("xn--gdh5267fdzpa.xn--deb0091w5q9u"); } // [B1, B5, B6, V6, V7]
17484test { try toAsciiFail("xn--gdh5267fdzpa.xn--deb0091w5q9u", false); } // [B1, B5, B6, V6, V7]
17485test { try toAsciiFail("xn--gdh5267fdzpa.xn--deb0091w5q9u", true); } // [B1, B5, B6, V6, V7]
703817486test { try toUnicodeFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xcf\x82\xf2\x8f\x8b\x88\xf2\xba\x87\xa5"); } // [B1, V7]
17487test { try toAsciiFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xcf\x82\xf2\x8f\x8b\x88\xf2\xba\x87\xa5", false); } // [B1, V7]
17488test { try toAsciiFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xcf\x82\xf2\x8f\x8b\x88\xf2\xba\x87\xa5", true); } // [B1, V7]
703917489test { try toUnicodeFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xce\xa3\xf2\x8f\x8b\x88\xf2\xba\x87\xa5"); } // [B1, V7]
17490test { try toAsciiFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xce\xa3\xf2\x8f\x8b\x88\xf2\xba\x87\xa5", false); } // [B1, V7]
17491test { try toAsciiFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xce\xa3\xf2\x8f\x8b\x88\xf2\xba\x87\xa5", true); } // [B1, V7]
704017492test { try toUnicodeFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xcf\x83\xf2\x8f\x8b\x88\xf2\xba\x87\xa5"); } // [B1, V7]
17493test { try toAsciiFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xcf\x83\xf2\x8f\x8b\x88\xf2\xba\x87\xa5", false); } // [B1, V7]
17494test { try toAsciiFail("\xf3\xa0\x86\x8b\xd8\x83\xf1\x8f\xa6\xa4.\xe2\x87\x81\xcf\x83\xf2\x8f\x8b\x88\xf2\xba\x87\xa5", true); } // [B1, V7]
704117495test { try toUnicodeFail("xn--lfb04106d.xn--4xa964mxv16m8moq"); } // [B1, V7]
17496test { try toAsciiFail("xn--lfb04106d.xn--4xa964mxv16m8moq", false); } // [B1, V7]
17497test { try toAsciiFail("xn--lfb04106d.xn--4xa964mxv16m8moq", true); } // [B1, V7]
704217498test { try toUnicodeFail("xn--lfb04106d.xn--3xa174mxv16m8moq"); } // [B1, V7]
17499test { try toAsciiFail("xn--lfb04106d.xn--3xa174mxv16m8moq", false); } // [B1, V7]
17500test { try toAsciiFail("xn--lfb04106d.xn--3xa174mxv16m8moq", true); } // [B1, V7]
704317501test { try toUnicodeFail("\xcf\x82\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84"); } // [C1, V7]
17502test { try toAsciiFail("\xcf\x82\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", false); } // [C1, V7]
17503test { try toAsciiFail("\xcf\x82\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", true); } // [V7]
704417504test { try toUnicodeFail("\xcf\x82\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84"); } // [C1, V7]
17505test { try toAsciiFail("\xcf\x82\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", false); } // [C1, V7]
17506test { try toAsciiFail("\xcf\x82\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", true); } // [V7]
704517507test { try toUnicodeFail("\xce\xa3\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84"); } // [C1, V7]
17508test { try toAsciiFail("\xce\xa3\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", false); } // [C1, V7]
17509test { try toAsciiFail("\xce\xa3\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", true); } // [V7]
704617510test { try toUnicodeFail("\xcf\x83\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84"); } // [C1, V7]
17511test { try toAsciiFail("\xcf\x83\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", false); } // [C1, V7]
17512test { try toAsciiFail("\xcf\x83\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xe3\x80\x82\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", true); } // [V7]
704717513test { try toUnicodeFail("xn--4xa2260lk3b8z15g.xn--tw9ct349a"); } // [V7]
17514test { try toAsciiFail("xn--4xa2260lk3b8z15g.xn--tw9ct349a", false); } // [V7]
17515test { try toAsciiFail("xn--4xa2260lk3b8z15g.xn--tw9ct349a", true); } // [V7]
704817516test { try toUnicodeFail("xn--4xa2260lk3b8z15g.xn--0ug4653g2xzf"); } // [C1, V7]
17517test { try toAsciiFail("xn--4xa2260lk3b8z15g.xn--0ug4653g2xzf", false); } // [C1, V7]
17518test { try toAsciiFail("xn--4xa2260lk3b8z15g.xn--0ug4653g2xzf", true); } // [C1, V7]
704917519test { try toUnicodeFail("xn--3xa4260lk3b8z15g.xn--0ug4653g2xzf"); } // [C1, V7]
17520test { try toAsciiFail("xn--3xa4260lk3b8z15g.xn--0ug4653g2xzf", false); } // [C1, V7]
17521test { try toAsciiFail("xn--3xa4260lk3b8z15g.xn--0ug4653g2xzf", true); } // [C1, V7]
705017522test { try toUnicodeFail("\xce\xa3\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84"); } // [C1, V7]
17523test { try toAsciiFail("\xce\xa3\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", false); } // [C1, V7]
17524test { try toAsciiFail("\xce\xa3\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", true); } // [V7]
705117525test { try toUnicodeFail("\xcf\x83\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84"); } // [C1, V7]
17526test { try toAsciiFail("\xcf\x83\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", false); } // [C1, V7]
17527test { try toAsciiFail("\xcf\x83\xf0\x91\x90\xbd\xf0\xb5\xa2\x88\xf0\x91\x9c\xab\xef\xbd\xa1\xf0\x9e\xac\xa9\xe2\x80\x8c\xf0\x90\xab\x84", true); } // [V7]
705217528test { try toUnicodeFail("-\xf2\xb5\x8f\xbd\xef\xbd\xa1-\xef\xb1\x8c\xdd\x9b"); } // [B1, V3, V7]
17529test { try toAsciiFail("-\xf2\xb5\x8f\xbd\xef\xbd\xa1-\xef\xb1\x8c\xdd\x9b", false); } // [B1, V3, V7]
17530test { try toAsciiFail("-\xf2\xb5\x8f\xbd\xef\xbd\xa1-\xef\xb1\x8c\xdd\x9b", true); } // [B1, V3, V7]
705317531test { try toUnicodeFail("-\xf2\xb5\x8f\xbd\xe3\x80\x82-\xd9\x86\xd8\xad\xdd\x9b"); } // [B1, V3, V7]
17532test { try toAsciiFail("-\xf2\xb5\x8f\xbd\xe3\x80\x82-\xd9\x86\xd8\xad\xdd\x9b", false); } // [B1, V3, V7]
17533test { try toAsciiFail("-\xf2\xb5\x8f\xbd\xe3\x80\x82-\xd9\x86\xd8\xad\xdd\x9b", true); } // [B1, V3, V7]
705417534test { try toUnicodeFail("xn----o452j.xn----cnc8e38c"); } // [B1, V3, V7]
17535test { try toAsciiFail("xn----o452j.xn----cnc8e38c", false); } // [B1, V3, V7]
17536test { try toAsciiFail("xn----o452j.xn----cnc8e38c", true); } // [B1, V3, V7]
705517537test { try toUnicodeFail("\xe2\xba\xa2\xf2\x87\xba\x85\xf0\x9d\x9f\xa4\xef\xbd\xa1\xe2\x80\x8d\xf0\x9f\x9a\xb7"); } // [C2, V7]
17538test { try toAsciiFail("\xe2\xba\xa2\xf2\x87\xba\x85\xf0\x9d\x9f\xa4\xef\xbd\xa1\xe2\x80\x8d\xf0\x9f\x9a\xb7", false); } // [C2, V7]
17539test { try toAsciiFail("\xe2\xba\xa2\xf2\x87\xba\x85\xf0\x9d\x9f\xa4\xef\xbd\xa1\xe2\x80\x8d\xf0\x9f\x9a\xb7", true); } // [V7]
705617540test { try toUnicodeFail("\xe2\xba\xa2\xf2\x87\xba\x852\xe3\x80\x82\xe2\x80\x8d\xf0\x9f\x9a\xb7"); } // [C2, V7]
17541test { try toAsciiFail("\xe2\xba\xa2\xf2\x87\xba\x852\xe3\x80\x82\xe2\x80\x8d\xf0\x9f\x9a\xb7", false); } // [C2, V7]
17542test { try toAsciiFail("\xe2\xba\xa2\xf2\x87\xba\x852\xe3\x80\x82\xe2\x80\x8d\xf0\x9f\x9a\xb7", true); } // [V7]
705717543test { try toUnicodeFail("xn--2-4jtr4282f.xn--m78h"); } // [V7]
17544test { try toAsciiFail("xn--2-4jtr4282f.xn--m78h", false); } // [V7]
17545test { try toAsciiFail("xn--2-4jtr4282f.xn--m78h", true); } // [V7]
705817546test { try toUnicodeFail("xn--2-4jtr4282f.xn--1ugz946p"); } // [C2, V7]
17547test { try toAsciiFail("xn--2-4jtr4282f.xn--1ugz946p", false); } // [C2, V7]
17548test { try toAsciiFail("xn--2-4jtr4282f.xn--1ugz946p", true); } // [C2, V7]
705917549test { try toUnicodeFail("\xe0\xb3\xb8\xe2\x80\x8d\xe2\xb7\xbe\xf0\x90\xb9\xb2\xef\xbd\xa1\xf2\xa4\x90\xb6"); } // [B5, B6, C2, V7]
17550test { try toAsciiFail("\xe0\xb3\xb8\xe2\x80\x8d\xe2\xb7\xbe\xf0\x90\xb9\xb2\xef\xbd\xa1\xf2\xa4\x90\xb6", false); } // [B5, B6, C2, V7]
17551test { try toAsciiFail("\xe0\xb3\xb8\xe2\x80\x8d\xe2\xb7\xbe\xf0\x90\xb9\xb2\xef\xbd\xa1\xf2\xa4\x90\xb6", true); } // [B5, B6, V7]
706017552test { try toUnicodeFail("\xe0\xb3\xb8\xe2\x80\x8d\xe2\xb7\xbe\xf0\x90\xb9\xb2\xe3\x80\x82\xf2\xa4\x90\xb6"); } // [B5, B6, C2, V7]
17553test { try toAsciiFail("\xe0\xb3\xb8\xe2\x80\x8d\xe2\xb7\xbe\xf0\x90\xb9\xb2\xe3\x80\x82\xf2\xa4\x90\xb6", false); } // [B5, B6, C2, V7]
17554test { try toAsciiFail("\xe0\xb3\xb8\xe2\x80\x8d\xe2\xb7\xbe\xf0\x90\xb9\xb2\xe3\x80\x82\xf2\xa4\x90\xb6", true); } // [B5, B6, V7]
706117555test { try toUnicodeFail("xn--hvc220of37m.xn--3e36c"); } // [B5, B6, V7]
17556test { try toAsciiFail("xn--hvc220of37m.xn--3e36c", false); } // [B5, B6, V7]
17557test { try toAsciiFail("xn--hvc220of37m.xn--3e36c", true); } // [B5, B6, V7]
706217558test { try toUnicodeFail("xn--hvc488g69j402t.xn--3e36c"); } // [B5, B6, C2, V7]
17559test { try toAsciiFail("xn--hvc488g69j402t.xn--3e36c", false); } // [B5, B6, C2, V7]
17560test { try toAsciiFail("xn--hvc488g69j402t.xn--3e36c", true); } // [B5, B6, C2, V7]
706317561test { try toUnicodeFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe1\x82\xad\xe2\x82\x89\xe2\x81\xb8"); } // [B1]
17562test { try toAsciiFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe1\x82\xad\xe2\x82\x89\xe2\x81\xb8", false); } // [B1]
17563test { try toAsciiFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe1\x82\xad\xe2\x82\x89\xe2\x81\xb8", true); } // [B1]
706417564test { try toUnicodeFail("\xf0\x90\xb9\xa2.\xe1\x82\xad98"); } // [B1]
17565test { try toAsciiFail("\xf0\x90\xb9\xa2.\xe1\x82\xad98", false); } // [B1]
17566test { try toAsciiFail("\xf0\x90\xb9\xa2.\xe1\x82\xad98", true); } // [B1]
706517567test { try toUnicodeFail("\xf0\x90\xb9\xa2.\xe2\xb4\x8d98"); } // [B1]
17568test { try toAsciiFail("\xf0\x90\xb9\xa2.\xe2\xb4\x8d98", false); } // [B1]
17569test { try toAsciiFail("\xf0\x90\xb9\xa2.\xe2\xb4\x8d98", true); } // [B1]
706617570test { try toUnicodeFail("xn--9n0d.xn--98-u61a"); } // [B1]
17571test { try toAsciiFail("xn--9n0d.xn--98-u61a", false); } // [B1]
17572test { try toAsciiFail("xn--9n0d.xn--98-u61a", true); } // [B1]
706717573test { try toUnicodeFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe2\xb4\x8d\xe2\x82\x89\xe2\x81\xb8"); } // [B1]
17574test { try toAsciiFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe2\xb4\x8d\xe2\x82\x89\xe2\x81\xb8", false); } // [B1]
17575test { try toAsciiFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe2\xb4\x8d\xe2\x82\x89\xe2\x81\xb8", true); } // [B1]
706817576test { try toUnicodeFail("xn--9n0d.xn--98-7ek"); } // [B1, V7]
17577test { try toAsciiFail("xn--9n0d.xn--98-7ek", false); } // [B1, V7]
17578test { try toAsciiFail("xn--9n0d.xn--98-7ek", true); } // [B1, V7]
706917579test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1\xc3\x9f\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7]
17580test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1\xc3\x9f\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf", false); } // [B1, B5, B6, C1, V7]
17581test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1\xc3\x9f\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf", true); } // [B5, B6, V7, A4_2]
707017582test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1\xc3\x9f\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7]
17583test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1\xc3\x9f\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8", false); } // [B1, B5, B6, C1, V7]
17584test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1\xc3\x9f\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8", true); } // [B5, B6, V7, A4_2]
707117585test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7]
17586test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.\xe2\x89\xaf", false); } // [B1, B5, C1, V7]
17587test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.\xe2\x89\xaf", true); } // [B1, B5, V7, A4_2]
707217588test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7]
17589test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.>\xcc\xb8", false); } // [B1, B5, C1, V7]
17590test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.>\xcc\xb8", true); } // [B1, B5, V7, A4_2]
707317591test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7]
17592test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.>\xcc\xb8", false); } // [B1, B5, C1, V7]
17593test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.>\xcc\xb8", true); } // [B1, B5, V7, A4_2]
707417594test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7]
17595test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.\xe2\x89\xaf", false); } // [B1, B5, C1, V7]
17596test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.\xe2\x89\xaf", true); } // [B1, B5, V7, A4_2]
707517597test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7]
17598test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.\xe2\x89\xaf", false); } // [B1, B5, C1, V7]
17599test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.\xe2\x89\xaf", true); } // [B1, B5, V7, A4_2]
707617600test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7]
17601test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.>\xcc\xb8", false); } // [B1, B5, C1, V7]
17602test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.>\xcc\xb8", true); } // [B1, B5, V7, A4_2]
707717603test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7]
17604test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.>\xcc\xb8", false); } // [B1, B5, C1, V7]
17605test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.>\xcc\xb8", true); } // [B1, B5, V7, A4_2]
707817606test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7]
17607test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.\xe2\x89\xaf", false); } // [B1, B5, C1, V7]
17608test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.\xe2\x89\xaf", true); } // [B1, B5, V7, A4_2]
707917609test { try toUnicodeFail(".xn--ss19-w0i.xn--hdh"); } // [B1, B5, V7, X4_2]
17610test { try toAsciiFail(".xn--ss19-w0i.xn--hdh", false); } // [B1, B5, V7, A4_2]
17611test { try toAsciiFail(".xn--ss19-w0i.xn--hdh", true); } // [B1, B5, V7, A4_2]
708017612test { try toUnicodeFail("xn--0ug.xn--ss19-w0i.xn--hdh"); } // [B1, B5, C1, V7]
17613test { try toAsciiFail("xn--0ug.xn--ss19-w0i.xn--hdh", false); } // [B1, B5, C1, V7]
17614test { try toAsciiFail("xn--0ug.xn--ss19-w0i.xn--hdh", true); } // [B1, B5, C1, V7]
708117615test { try toUnicodeFail("xn--0ug.xn--19-fia813f.xn--hdh"); } // [B1, B5, C1, V7]
17616test { try toAsciiFail("xn--0ug.xn--19-fia813f.xn--hdh", false); } // [B1, B5, C1, V7]
17617test { try toAsciiFail("xn--0ug.xn--19-fia813f.xn--hdh", true); } // [B1, B5, C1, V7]
708217618test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7]
17619test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8", false); } // [B1, B5, B6, C1, V7]
17620test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8", true); } // [B5, B6, V7, A4_2]
708317621test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7]
17622test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf", false); } // [B1, B5, B6, C1, V7]
17623test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf", true); } // [B5, B6, V7, A4_2]
708417624test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7]
17625test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf", false); } // [B1, B5, B6, C1, V7]
17626test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf", true); } // [B5, B6, V7, A4_2]
708517627test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7]
17628test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8", false); } // [B1, B5, B6, C1, V7]
17629test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8", true); } // [B5, B6, V7, A4_2]
708617630test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7]
17631test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8", false); } // [B1, B5, B6, C1, V7]
17632test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8", true); } // [B5, B6, V7, A4_2]
708717633test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7]
17634test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf", false); } // [B1, B5, B6, C1, V7]
17635test { try toAsciiFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf", true); } // [B5, B6, V7, A4_2]
708817636test { try toUnicodeFail(".xn--ss-9if872xjjc"); } // [B5, B6, V7, X4_2]
17637test { try toAsciiFail(".xn--ss-9if872xjjc", false); } // [B5, B6, V7, A4_2]
17638test { try toAsciiFail(".xn--ss-9if872xjjc", true); } // [B5, B6, V7, A4_2]
708917639test { try toUnicodeFail("xn--0ug.xn--ss-9if872xjjc"); } // [B1, B5, B6, C1, V7]
17640test { try toAsciiFail("xn--0ug.xn--ss-9if872xjjc", false); } // [B1, B5, B6, C1, V7]
17641test { try toAsciiFail("xn--0ug.xn--ss-9if872xjjc", true); } // [B1, B5, B6, C1, V7]
709017642test { try toUnicodeFail("xn--0ug.xn--zca612bx9vo5b"); } // [B1, B5, B6, C1, V7]
17643test { try toAsciiFail("xn--0ug.xn--zca612bx9vo5b", false); } // [B1, B5, B6, C1, V7]
17644test { try toAsciiFail("xn--0ug.xn--zca612bx9vo5b", true); } // [B1, B5, B6, C1, V7]
709117645test { try toUnicodeFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c\xef\xbc\x8e\xf0\xa3\x83\x94"); } // [B1, C1, V7]
17646test { try toAsciiFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c\xef\xbc\x8e\xf0\xa3\x83\x94", false); } // [B1, C1, V7]
17647test { try toAsciiFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c\xef\xbc\x8e\xf0\xa3\x83\x94", true); } // [B2, B3, V7]
709217648test { try toUnicodeFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c.\xf0\xa3\x83\x94"); } // [B1, C1, V7]
17649test { try toAsciiFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c.\xf0\xa3\x83\x94", false); } // [B1, C1, V7]
17650test { try toAsciiFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c.\xf0\xa3\x83\x94", true); } // [B2, B3, V7]
709317651test { try toUnicodeFail("xn--c8e5919u.xn--od1j"); } // [B2, B3, V7]
17652test { try toAsciiFail("xn--c8e5919u.xn--od1j", false); } // [B2, B3, V7]
17653test { try toAsciiFail("xn--c8e5919u.xn--od1j", true); } // [B2, B3, V7]
709417654test { try toUnicodeFail("xn--c8e180bqz13b.xn--od1j"); } // [B1, C1, V7]
17655test { try toAsciiFail("xn--c8e180bqz13b.xn--od1j", false); } // [B1, C1, V7]
17656test { try toAsciiFail("xn--c8e180bqz13b.xn--od1j", true); } // [B1, C1, V7]
709517657test { try toUnicodeFail("\xdf\x90\xf2\x9c\xac\x9d-\xf1\xa1\xa2\xac\xe3\x80\x82\xe0\xbe\xa0\xe1\x82\xbb\xf0\x9e\xb7\x8f\xf0\x9d\x86\xac"); } // [B1, B2, B3, V6, V7]
17658test { try toAsciiFail("\xdf\x90\xf2\x9c\xac\x9d-\xf1\xa1\xa2\xac\xe3\x80\x82\xe0\xbe\xa0\xe1\x82\xbb\xf0\x9e\xb7\x8f\xf0\x9d\x86\xac", false); } // [B1, B2, B3, V6, V7]
17659test { try toAsciiFail("\xdf\x90\xf2\x9c\xac\x9d-\xf1\xa1\xa2\xac\xe3\x80\x82\xe0\xbe\xa0\xe1\x82\xbb\xf0\x9e\xb7\x8f\xf0\x9d\x86\xac", true); } // [B1, B2, B3, V6, V7]
709617660test { try toUnicodeFail("\xdf\x90\xf2\x9c\xac\x9d-\xf1\xa1\xa2\xac\xe3\x80\x82\xe0\xbe\xa0\xe2\xb4\x9b\xf0\x9e\xb7\x8f\xf0\x9d\x86\xac"); } // [B1, B2, B3, V6, V7]
17661test { try toAsciiFail("\xdf\x90\xf2\x9c\xac\x9d-\xf1\xa1\xa2\xac\xe3\x80\x82\xe0\xbe\xa0\xe2\xb4\x9b\xf0\x9e\xb7\x8f\xf0\x9d\x86\xac", false); } // [B1, B2, B3, V6, V7]
17662test { try toAsciiFail("\xdf\x90\xf2\x9c\xac\x9d-\xf1\xa1\xa2\xac\xe3\x80\x82\xe0\xbe\xa0\xe2\xb4\x9b\xf0\x9e\xb7\x8f\xf0\x9d\x86\xac", true); } // [B1, B2, B3, V6, V7]
709717663test { try toUnicodeFail("xn----8bd11730jefvw.xn--wfd802mpm20agsxa"); } // [B1, B2, B3, V6, V7]
17664test { try toAsciiFail("xn----8bd11730jefvw.xn--wfd802mpm20agsxa", false); } // [B1, B2, B3, V6, V7]
17665test { try toAsciiFail("xn----8bd11730jefvw.xn--wfd802mpm20agsxa", true); } // [B1, B2, B3, V6, V7]
709817666test { try toUnicodeFail("xn----8bd11730jefvw.xn--wfd08cd265hgsxa"); } // [B1, B2, B3, V6, V7]
17667test { try toAsciiFail("xn----8bd11730jefvw.xn--wfd08cd265hgsxa", false); } // [B1, B2, B3, V6, V7]
17668test { try toAsciiFail("xn----8bd11730jefvw.xn--wfd08cd265hgsxa", true); } // [B1, B2, B3, V6, V7]
709917669test { try toUnicodeFail("\xf0\x9d\xa8\xa5\xe3\x80\x82\xe2\xab\x9f\xf0\x91\x88\xbe"); } // [V6]
17670test { try toAsciiFail("\xf0\x9d\xa8\xa5\xe3\x80\x82\xe2\xab\x9f\xf0\x91\x88\xbe", false); } // [V6]
17671test { try toAsciiFail("\xf0\x9d\xa8\xa5\xe3\x80\x82\xe2\xab\x9f\xf0\x91\x88\xbe", true); } // [V6]
710017672test { try toUnicodeFail("xn--n82h.xn--63iw010f"); } // [V6]
17673test { try toAsciiFail("xn--n82h.xn--63iw010f", false); } // [V6]
17674test { try toAsciiFail("xn--n82h.xn--63iw010f", true); } // [V6]
710117675test { try toUnicodeFail("\xe2\xbe\x9b\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7]
17676test { try toAsciiFail("\xe2\xbe\x9b\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d", false); } // [B5, B6, C2, V7]
17677test { try toAsciiFail("\xe2\xbe\x9b\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d", true); } // [B5, B6, V7]
710217678test { try toUnicodeFail("\xe8\xb5\xb0\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7]
17679test { try toAsciiFail("\xe8\xb5\xb0\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d", false); } // [B5, B6, C2, V7]
17680test { try toAsciiFail("\xe8\xb5\xb0\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d", true); } // [B5, B6, V7]
710317681test { try toUnicodeFail("\xe8\xb5\xb0\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7]
17682test { try toAsciiFail("\xe8\xb5\xb0\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d", false); } // [B5, B6, C2, V7]
17683test { try toAsciiFail("\xe8\xb5\xb0\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d", true); } // [B5, B6, V7]
710417684test { try toUnicodeFail("xn--6ob9779d.xn--mfb511rxu80a"); } // [B5, B6, V7]
17685test { try toAsciiFail("xn--6ob9779d.xn--mfb511rxu80a", false); } // [B5, B6, V7]
17686test { try toAsciiFail("xn--6ob9779d.xn--mfb511rxu80a", true); } // [B5, B6, V7]
710517687test { try toUnicodeFail("xn--6ob9779d.xn--mfb444k5gjt754b"); } // [B5, B6, C2, V7]
17688test { try toAsciiFail("xn--6ob9779d.xn--mfb444k5gjt754b", false); } // [B5, B6, C2, V7]
17689test { try toAsciiFail("xn--6ob9779d.xn--mfb444k5gjt754b", true); } // [B5, B6, C2, V7]
710617690test { try toUnicodeFail("\xe2\xbe\x9b\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7]
17691test { try toAsciiFail("\xe2\xbe\x9b\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d", false); } // [B5, B6, C2, V7]
17692test { try toAsciiFail("\xe2\xbe\x9b\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d", true); } // [B5, B6, V7]
710717693test { try toUnicodeFail("xn--6ob9779d.xn--mfb785ck569a"); } // [B5, B6, V7]
17694test { try toAsciiFail("xn--6ob9779d.xn--mfb785ck569a", false); } // [B5, B6, V7]
17695test { try toAsciiFail("xn--6ob9779d.xn--mfb785ck569a", true); } // [B5, B6, V7]
710817696test { try toUnicodeFail("xn--6ob9779d.xn--mfb785czmm0y85b"); } // [B5, B6, C2, V7]
17697test { try toAsciiFail("xn--6ob9779d.xn--mfb785czmm0y85b", false); } // [B5, B6, C2, V7]
17698test { try toAsciiFail("xn--6ob9779d.xn--mfb785czmm0y85b", true); } // [B5, B6, C2, V7]
710917699test { try toUnicodeFail("-\xe1\xa2\x97\xe2\x80\x8c\xf0\x9f\x84\x84.\xf0\x91\x9c\xa2"); } // [C1, V3, V6, U1]
17700test { try toAsciiFail("-\xe1\xa2\x97\xe2\x80\x8c\xf0\x9f\x84\x84.\xf0\x91\x9c\xa2", false); } // [C1, V3, V6, U1]
17701test { try toAsciiFail("-\xe1\xa2\x97\xe2\x80\x8c\xf0\x9f\x84\x84.\xf0\x91\x9c\xa2", true); } // [V3, V6, U1]
711017702test { try toUnicodeFail("-\xe1\xa2\x97\xe2\x80\x8c3,.\xf0\x91\x9c\xa2"); } // [C1, V3, V6, U1]
17703test { try toAsciiFail("-\xe1\xa2\x97\xe2\x80\x8c3,.\xf0\x91\x9c\xa2", false); } // [C1, V3, V6, U1]
17704test { try toAsciiFail("-\xe1\xa2\x97\xe2\x80\x8c3,.\xf0\x91\x9c\xa2", true); } // [V3, V6, U1]
711117705test { try toUnicodeFail("xn---3,-3eu.xn--9h2d"); } // [V3, V6, U1]
17706test { try toAsciiFail("xn---3,-3eu.xn--9h2d", false); } // [V3, V6, U1]
17707test { try toAsciiFail("xn---3,-3eu.xn--9h2d", true); } // [V3, V6, U1]
711217708test { try toUnicodeFail("xn---3,-3eu051c.xn--9h2d"); } // [C1, V3, V6, U1]
17709test { try toAsciiFail("xn---3,-3eu051c.xn--9h2d", false); } // [C1, V3, V6, U1]
17710test { try toAsciiFail("xn---3,-3eu051c.xn--9h2d", true); } // [C1, V3, V6, U1]
711317711test { try toUnicodeFail("xn----pck1820x.xn--9h2d"); } // [V3, V6, V7]
17712test { try toAsciiFail("xn----pck1820x.xn--9h2d", false); } // [V3, V6, V7]
17713test { try toAsciiFail("xn----pck1820x.xn--9h2d", true); } // [V3, V6, V7]
711417714test { try toUnicodeFail("xn----pck312bx563c.xn--9h2d"); } // [C1, V3, V6, V7]
17715test { try toAsciiFail("xn----pck312bx563c.xn--9h2d", false); } // [C1, V3, V6, V7]
17716test { try toAsciiFail("xn----pck312bx563c.xn--9h2d", true); } // [C1, V3, V6, V7]
711517717test { try toUnicodeFail("\xe2\x89\xa0\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe1\x82\xba\xf2\xb3\x84\xa0"); } // [B1, C1, V7]
17718test { try toAsciiFail("\xe2\x89\xa0\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe1\x82\xba\xf2\xb3\x84\xa0", false); } // [B1, C1, V7]
17719test { try toAsciiFail("\xe2\x89\xa0\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe1\x82\xba\xf2\xb3\x84\xa0", true); } // [B1, V7]
711617720test { try toUnicodeFail("=\xcc\xb8\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe1\x82\xba\xf2\xb3\x84\xa0"); } // [B1, C1, V7]
17721test { try toAsciiFail("=\xcc\xb8\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe1\x82\xba\xf2\xb3\x84\xa0", false); } // [B1, C1, V7]
17722test { try toAsciiFail("=\xcc\xb8\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe1\x82\xba\xf2\xb3\x84\xa0", true); } // [B1, V7]
711717723test { try toUnicodeFail("=\xcc\xb8\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe2\xb4\x9a\xf2\xb3\x84\xa0"); } // [B1, C1, V7]
17724test { try toAsciiFail("=\xcc\xb8\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe2\xb4\x9a\xf2\xb3\x84\xa0", false); } // [B1, C1, V7]
17725test { try toAsciiFail("=\xcc\xb8\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe2\xb4\x9a\xf2\xb3\x84\xa0", true); } // [B1, V7]
711817726test { try toUnicodeFail("\xe2\x89\xa0\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe2\xb4\x9a\xf2\xb3\x84\xa0"); } // [B1, C1, V7]
17727test { try toAsciiFail("\xe2\x89\xa0\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe2\xb4\x9a\xf2\xb3\x84\xa0", false); } // [B1, C1, V7]
17728test { try toAsciiFail("\xe2\x89\xa0\xf0\x90\xb8\x81\xf0\xb9\x8f\x81\xe2\x80\x8c.\xe2\xb4\x9a\xf2\xb3\x84\xa0", true); } // [B1, V7]
711917729test { try toUnicodeFail("xn--1ch2293gv3nr.xn--ilj23531g"); } // [B1, V7]
17730test { try toAsciiFail("xn--1ch2293gv3nr.xn--ilj23531g", false); } // [B1, V7]
17731test { try toAsciiFail("xn--1ch2293gv3nr.xn--ilj23531g", true); } // [B1, V7]
712017732test { try toUnicodeFail("xn--0ug83gn618a21ov.xn--ilj23531g"); } // [B1, C1, V7]
17733test { try toAsciiFail("xn--0ug83gn618a21ov.xn--ilj23531g", false); } // [B1, C1, V7]
17734test { try toAsciiFail("xn--0ug83gn618a21ov.xn--ilj23531g", true); } // [B1, C1, V7]
712117735test { try toUnicodeFail("xn--1ch2293gv3nr.xn--ynd49496l"); } // [B1, V7]
17736test { try toAsciiFail("xn--1ch2293gv3nr.xn--ynd49496l", false); } // [B1, V7]
17737test { try toAsciiFail("xn--1ch2293gv3nr.xn--ynd49496l", true); } // [B1, V7]
712217738test { try toUnicodeFail("xn--0ug83gn618a21ov.xn--ynd49496l"); } // [B1, C1, V7]
17739test { try toAsciiFail("xn--0ug83gn618a21ov.xn--ynd49496l", false); } // [B1, C1, V7]
17740test { try toAsciiFail("xn--0ug83gn618a21ov.xn--ynd49496l", true); } // [B1, C1, V7]
712317741test { try toUnicodeFail("\xd9\xa9\xef\xbd\xa1\xf3\xa0\x87\x80\xf0\x91\x87\x8a"); } // [B1, V6]
17742test { try toAsciiFail("\xd9\xa9\xef\xbd\xa1\xf3\xa0\x87\x80\xf0\x91\x87\x8a", false); } // [B1, V6]
17743test { try toAsciiFail("\xd9\xa9\xef\xbd\xa1\xf3\xa0\x87\x80\xf0\x91\x87\x8a", true); } // [B1, V6]
712417744test { try toUnicodeFail("\xd9\xa9\xe3\x80\x82\xf3\xa0\x87\x80\xf0\x91\x87\x8a"); } // [B1, V6]
17745test { try toAsciiFail("\xd9\xa9\xe3\x80\x82\xf3\xa0\x87\x80\xf0\x91\x87\x8a", false); } // [B1, V6]
17746test { try toAsciiFail("\xd9\xa9\xe3\x80\x82\xf3\xa0\x87\x80\xf0\x91\x87\x8a", true); } // [B1, V6]
712517747test { try toUnicodeFail("xn--iib.xn--6d1d"); } // [B1, V6]
17748test { try toAsciiFail("xn--iib.xn--6d1d", false); } // [B1, V6]
17749test { try toAsciiFail("xn--iib.xn--6d1d", true); } // [B1, V6]
712617750test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf\xe2\x92\x8d\xe3\x80\x82-"); } // [B1, V3, V6, V7]
17751test { try toAsciiFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf\xe2\x92\x8d\xe3\x80\x82-", false); } // [B1, V3, V6, V7]
17752test { try toAsciiFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf\xe2\x92\x8d\xe3\x80\x82-", true); } // [B1, V3, V6, V7]
712717753test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb8\xe2\x92\x8d\xe3\x80\x82-"); } // [B1, V3, V6, V7]
17754test { try toAsciiFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb8\xe2\x92\x8d\xe3\x80\x82-", false); } // [B1, V3, V6, V7]
17755test { try toAsciiFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb8\xe2\x92\x8d\xe3\x80\x82-", true); } // [B1, V3, V6, V7]
712817756test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf6.\xe3\x80\x82-"); } // [B1, V3, V6, V7, X4_2]
17757test { try toAsciiFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf6.\xe3\x80\x82-", false); } // [B1, V3, V6, V7, A4_2]
17758test { try toAsciiFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf6.\xe3\x80\x82-", true); } // [B1, V3, V6, V7, A4_2]
712917759test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb86.\xe3\x80\x82-"); } // [B1, V3, V6, V7, X4_2]
17760test { try toAsciiFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb86.\xe3\x80\x82-", false); } // [B1, V3, V6, V7, A4_2]
17761test { try toAsciiFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb86.\xe3\x80\x82-", true); } // [B1, V3, V6, V7, A4_2]
713017762test { try toUnicodeFail("xn--6-oyg968k7h74b..-"); } // [B1, V3, V6, V7, X4_2]
17763test { try toAsciiFail("xn--6-oyg968k7h74b..-", false); } // [B1, V3, V6, V7, A4_2]
17764test { try toAsciiFail("xn--6-oyg968k7h74b..-", true); } // [B1, V3, V6, V7, A4_2]
713117765test { try toUnicodeFail("xn--hmd482gqqb8730g.-"); } // [B1, V3, V6, V7]
17766test { try toAsciiFail("xn--hmd482gqqb8730g.-", false); } // [B1, V3, V6, V7]
17767test { try toAsciiFail("xn--hmd482gqqb8730g.-", true); } // [B1, V3, V6, V7]
713217768test { try toUnicodeFail("\xe1\x9e\xb4.\xec\xae\x87-"); } // [V3, X4_2]
17769test { try toAsciiFail("\xe1\x9e\xb4.\xec\xae\x87-", false); } // [V3, A4_2]
17770test { try toAsciiFail("\xe1\x9e\xb4.\xec\xae\x87-", true); } // [V3, A4_2]
713317771test { try toUnicodeFail("\xe1\x9e\xb4.\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xae-"); } // [V3, X4_2]
17772test { try toAsciiFail("\xe1\x9e\xb4.\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xae-", false); } // [V3, A4_2]
17773test { try toAsciiFail("\xe1\x9e\xb4.\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xae-", true); } // [V3, A4_2]
713417774test { try toUnicodeFail(".xn----938f"); } // [V3, X4_2]
17775test { try toAsciiFail(".xn----938f", false); } // [V3, A4_2]
17776test { try toAsciiFail(".xn----938f", true); } // [V3, A4_2]
713517777test { try toUnicodeFail("xn--z3e.xn----938f"); } // [V3, V6, V7]
17778test { try toAsciiFail("xn--z3e.xn----938f", false); } // [V3, V6, V7]
17779test { try toAsciiFail("xn--z3e.xn----938f", true); } // [V3, V6, V7]
713617780test { try toUnicodeFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x82\xe2\x92\x88-\xf4\x80\xaa\x9b"); } // [C1, V7]
17781test { try toAsciiFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x82\xe2\x92\x88-\xf4\x80\xaa\x9b", false); } // [C1, V7]
17782test { try toAsciiFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x82\xe2\x92\x88-\xf4\x80\xaa\x9b", true); } // [V6, V7]
713717783test { try toUnicodeFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x821.-\xf4\x80\xaa\x9b"); } // [C1, V3, V7]
17784test { try toAsciiFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x821.-\xf4\x80\xaa\x9b", false); } // [C1, V3, V7]
17785test { try toAsciiFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x821.-\xf4\x80\xaa\x9b", true); } // [V3, V6, V7]
713817786test { try toUnicodeFail("xn--wz1d.1.xn----rg03o"); } // [V3, V6, V7]
17787test { try toAsciiFail("xn--wz1d.1.xn----rg03o", false); } // [V3, V6, V7]
17788test { try toAsciiFail("xn--wz1d.1.xn----rg03o", true); } // [V3, V6, V7]
713917789test { try toUnicodeFail("xn--0ugy057g.1.xn----rg03o"); } // [C1, V3, V7]
17790test { try toAsciiFail("xn--0ugy057g.1.xn----rg03o", false); } // [C1, V3, V7]
17791test { try toAsciiFail("xn--0ugy057g.1.xn----rg03o", true); } // [C1, V3, V7]
714017792test { try toUnicodeFail("xn--wz1d.xn----dcp29674o"); } // [V6, V7]
17793test { try toAsciiFail("xn--wz1d.xn----dcp29674o", false); } // [V6, V7]
17794test { try toAsciiFail("xn--wz1d.xn----dcp29674o", true); } // [V6, V7]
714117795test { try toUnicodeFail("xn--0ugy057g.xn----dcp29674o"); } // [C1, V7]
17796test { try toAsciiFail("xn--0ugy057g.xn----dcp29674o", false); } // [C1, V7]
17797test { try toAsciiFail("xn--0ugy057g.xn----dcp29674o", true); } // [C1, V7]
714217798test { try toUnicodeFail("\xe2\x92\x88\xef\xba\xae\xe2\x80\x8c\xe3\x80\x82\xe2\x83\xa9\xf0\x9f\x96\x9e\xe2\x80\x8c\xf0\x96\xac\xb4"); } // [B1, C1, V6, V7]
17799test { try toAsciiFail("\xe2\x92\x88\xef\xba\xae\xe2\x80\x8c\xe3\x80\x82\xe2\x83\xa9\xf0\x9f\x96\x9e\xe2\x80\x8c\xf0\x96\xac\xb4", false); } // [B1, C1, V6, V7]
17800test { try toAsciiFail("\xe2\x92\x88\xef\xba\xae\xe2\x80\x8c\xe3\x80\x82\xe2\x83\xa9\xf0\x9f\x96\x9e\xe2\x80\x8c\xf0\x96\xac\xb4", true); } // [B1, V6, V7]
714317801test { try toUnicodeFail("1.\xd8\xb1\xe2\x80\x8c\xe3\x80\x82\xe2\x83\xa9\xf0\x9f\x96\x9e\xe2\x80\x8c\xf0\x96\xac\xb4"); } // [B1, B3, C1, V6]
17802test { try toAsciiFail("1.\xd8\xb1\xe2\x80\x8c\xe3\x80\x82\xe2\x83\xa9\xf0\x9f\x96\x9e\xe2\x80\x8c\xf0\x96\xac\xb4", false); } // [B1, B3, C1, V6]
17803test { try toAsciiFail("1.\xd8\xb1\xe2\x80\x8c\xe3\x80\x82\xe2\x83\xa9\xf0\x9f\x96\x9e\xe2\x80\x8c\xf0\x96\xac\xb4", true); } // [B1, V6]
714417804test { try toUnicodeFail("1.xn--wgb.xn--c1g6021kg18c"); } // [B1, V6]
17805test { try toAsciiFail("1.xn--wgb.xn--c1g6021kg18c", false); } // [B1, V6]
17806test { try toAsciiFail("1.xn--wgb.xn--c1g6021kg18c", true); } // [B1, V6]
714517807test { try toUnicodeFail("1.xn--wgb253k.xn--0ugz6a8040fty5d"); } // [B1, B3, C1, V6]
17808test { try toAsciiFail("1.xn--wgb253k.xn--0ugz6a8040fty5d", false); } // [B1, B3, C1, V6]
17809test { try toAsciiFail("1.xn--wgb253k.xn--0ugz6a8040fty5d", true); } // [B1, B3, C1, V6]
714617810test { try toUnicodeFail("xn--wgb746m.xn--c1g6021kg18c"); } // [B1, V6, V7]
17811test { try toAsciiFail("xn--wgb746m.xn--c1g6021kg18c", false); } // [B1, V6, V7]
17812test { try toAsciiFail("xn--wgb746m.xn--c1g6021kg18c", true); } // [B1, V6, V7]
714717813test { try toUnicodeFail("xn--wgb253kmfd.xn--0ugz6a8040fty5d"); } // [B1, C1, V6, V7]
17814test { try toAsciiFail("xn--wgb253kmfd.xn--0ugz6a8040fty5d", false); } // [B1, C1, V6, V7]
17815test { try toAsciiFail("xn--wgb253kmfd.xn--0ugz6a8040fty5d", true); } // [B1, C1, V6, V7]
714817816test { try toUnicodeFail("\xf3\x8c\xad\x87\xef\xbd\xa1\xf0\x9d\x9f\x90\xe1\xae\xa8\xdf\x94"); } // [B1, V7]
17817test { try toAsciiFail("\xf3\x8c\xad\x87\xef\xbd\xa1\xf0\x9d\x9f\x90\xe1\xae\xa8\xdf\x94", false); } // [B1, V7]
17818test { try toAsciiFail("\xf3\x8c\xad\x87\xef\xbd\xa1\xf0\x9d\x9f\x90\xe1\xae\xa8\xdf\x94", true); } // [B1, V7]
714917819test { try toUnicodeFail("\xf3\x8c\xad\x87\xe3\x80\x822\xe1\xae\xa8\xdf\x94"); } // [B1, V7]
17820test { try toAsciiFail("\xf3\x8c\xad\x87\xe3\x80\x822\xe1\xae\xa8\xdf\x94", false); } // [B1, V7]
17821test { try toAsciiFail("\xf3\x8c\xad\x87\xe3\x80\x822\xe1\xae\xa8\xdf\x94", true); } // [B1, V7]
715017822test { try toUnicodeFail("xn--xm89d.xn--2-icd143m"); } // [B1, V7]
17823test { try toAsciiFail("xn--xm89d.xn--2-icd143m", false); } // [B1, V7]
17824test { try toAsciiFail("xn--xm89d.xn--2-icd143m", true); } // [B1, V7]
715117825test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
17826test { try toAsciiFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xb7", false); } // [B2, B3, B5, B6, C2, V7]
17827test { try toAsciiFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xb7", true); } // [B2, B3, B5, B6, V7]
715217828test { try toUnicodeFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
17829test { try toAsciiFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xb7", false); } // [B2, B3, B5, B6, C2, V7]
17830test { try toAsciiFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xb7", true); } // [B2, B3, B5, B6, V7]
715317831test { try toUnicodeFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
17832test { try toAsciiFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xb7", false); } // [B2, B3, B5, B6, C2, V7]
17833test { try toAsciiFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xb7", true); } // [B2, B3, B5, B6, V7]
715417834test { try toUnicodeFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
17835test { try toAsciiFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xb7", false); } // [B2, B3, B5, B6, C2, V7]
17836test { try toAsciiFail("\xd9\x85\xd8\xae\xd9\x85\xf2\xab\xb3\xba.\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xb7", true); } // [B2, B3, B5, B6, V7]
715517837test { try toUnicodeFail("xn--tgb9bb64691z.xn--4xa6667k"); } // [B2, B3, B5, B6, V7]
17838test { try toAsciiFail("xn--tgb9bb64691z.xn--4xa6667k", false); } // [B2, B3, B5, B6, V7]
17839test { try toAsciiFail("xn--tgb9bb64691z.xn--4xa6667k", true); } // [B2, B3, B5, B6, V7]
715617840test { try toUnicodeFail("xn--tgb9bb64691z.xn--4xa895lrp7n"); } // [B2, B3, B5, B6, C2, V7]
17841test { try toAsciiFail("xn--tgb9bb64691z.xn--4xa895lrp7n", false); } // [B2, B3, B5, B6, C2, V7]
17842test { try toAsciiFail("xn--tgb9bb64691z.xn--4xa895lrp7n", true); } // [B2, B3, B5, B6, C2, V7]
715717843test { try toUnicodeFail("xn--tgb9bb64691z.xn--3xa006lrp7n"); } // [B2, B3, B5, B6, C2, V7]
17844test { try toAsciiFail("xn--tgb9bb64691z.xn--3xa006lrp7n", false); } // [B2, B3, B5, B6, C2, V7]
17845test { try toAsciiFail("xn--tgb9bb64691z.xn--3xa006lrp7n", true); } // [B2, B3, B5, B6, C2, V7]
715817846test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
17847test { try toAsciiFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xb7", false); } // [B2, B3, B5, B6, C2, V7]
17848test { try toAsciiFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xb7", true); } // [B2, B3, B5, B6, V7]
715917849test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
17850test { try toAsciiFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xb7", false); } // [B2, B3, B5, B6, C2, V7]
17851test { try toAsciiFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xb7", true); } // [B2, B3, B5, B6, V7]
716017852test { try toUnicodeFail("\xe2\x92\x8e\xdb\x81\xd8\x85\xef\xbd\xa1\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd"); } // [B1, V6, V7]
17853test { try toAsciiFail("\xe2\x92\x8e\xdb\x81\xd8\x85\xef\xbd\xa1\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd", false); } // [B1, V6, V7]
17854test { try toAsciiFail("\xe2\x92\x8e\xdb\x81\xd8\x85\xef\xbd\xa1\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd", true); } // [B1, V6, V7]
716117855test { try toUnicodeFail("7.\xdb\x81\xd8\x85\xe3\x80\x82\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd"); } // [B1, V6, V7]
17856test { try toAsciiFail("7.\xdb\x81\xd8\x85\xe3\x80\x82\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd", false); } // [B1, V6, V7]
17857test { try toAsciiFail("7.\xdb\x81\xd8\x85\xe3\x80\x82\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd", true); } // [B1, V6, V7]
716217858test { try toUnicodeFail("7.xn--nfb98a.xn--imb3805fxt8b"); } // [B1, V6, V7]
17859test { try toAsciiFail("7.xn--nfb98a.xn--imb3805fxt8b", false); } // [B1, V6, V7]
17860test { try toAsciiFail("7.xn--nfb98a.xn--imb3805fxt8b", true); } // [B1, V6, V7]
716317861test { try toUnicodeFail("xn--nfb98ai25e.xn--imb3805fxt8b"); } // [B1, V6, V7]
17862test { try toAsciiFail("xn--nfb98ai25e.xn--imb3805fxt8b", false); } // [B1, V6, V7]
17863test { try toAsciiFail("xn--nfb98ai25e.xn--imb3805fxt8b", true); } // [B1, V6, V7]
716417864test { try toUnicodeFail("-\xe1\xa1\xa5\xe1\xa0\x86\xf3\x8d\xb2\xad\xe3\x80\x82\xd8\x85\xe1\xa9\x9d\xf0\x90\xb9\xa1"); } // [B1, V3, V7]
17865test { try toAsciiFail("-\xe1\xa1\xa5\xe1\xa0\x86\xf3\x8d\xb2\xad\xe3\x80\x82\xd8\x85\xe1\xa9\x9d\xf0\x90\xb9\xa1", false); } // [B1, V3, V7]
17866test { try toAsciiFail("-\xe1\xa1\xa5\xe1\xa0\x86\xf3\x8d\xb2\xad\xe3\x80\x82\xd8\x85\xe1\xa9\x9d\xf0\x90\xb9\xa1", true); } // [B1, V3, V7]
716517867test { try toUnicodeFail("xn----f3j6s87156i.xn--nfb035hoo2p"); } // [B1, V3, V7]
17868test { try toAsciiFail("xn----f3j6s87156i.xn--nfb035hoo2p", false); } // [B1, V3, V7]
17869test { try toAsciiFail("xn----f3j6s87156i.xn--nfb035hoo2p", true); } // [B1, V3, V7]
716617870test { 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]
17872test { try toAsciiFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96", true); } // [A4_2]
716717873test { try toUnicodeFail(".xn--hcb32bni"); } // [X4_2]
17874test { try toAsciiFail(".xn--hcb32bni", false); } // [A4_2]
17875test { try toAsciiFail(".xn--hcb32bni", true); } // [A4_2]
716817876test { try toUnicodeFail("xn--1ug.xn--hcb32bni"); } // [B1, C2]
17877test { try toAsciiFail("xn--1ug.xn--hcb32bni", false); } // [B1, C2]
17878test { try toAsciiFail("xn--1ug.xn--hcb32bni", true); } // [B1, C2]
716917879test { try toUnicodePass("xn--hcb32bni", "\xda\xbd\xd9\xa3\xd6\x96"); }
717017880test { try toAsciiPass("xn--hcb32bni", "xn--hcb32bni", false); }
717117881test { try toAsciiPass("xn--hcb32bni", "xn--hcb32bni", true); }
......@@ -7173,129 +17883,371 @@ test { try toUnicodePass("\xda\xbd\xd9\xa3\xd6\x96", "\xda\xbd\xd9\xa3\xd6\x96")
717317883test { try toAsciiPass("\xda\xbd\xd9\xa3\xd6\x96", "xn--hcb32bni", false); }
717417884test { try toAsciiPass("\xda\xbd\xd9\xa3\xd6\x96", "xn--hcb32bni", true); }
717517885test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\xb8\xe2\x80\x8d"); } // [B5, B6, C2]
17886test { try toAsciiFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\xb8\xe2\x80\x8d", false); } // [B5, B6, C2]
17887test { try toAsciiFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\xb8\xe2\x80\x8d", true); } // [B5, B6]
717617888test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\x8a\xd9\xb4\xe2\x80\x8d"); } // [B5, B6, C2]
17889test { try toAsciiFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\x8a\xd9\xb4\xe2\x80\x8d", false); } // [B5, B6, C2]
17890test { try toAsciiFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\x8a\xd9\xb4\xe2\x80\x8d", true); } // [B5, B6]
717717891test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\x8a\xd9\xb4\xe2\x80\x8d"); } // [B5, B6, C2]
17892test { try toAsciiFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\x8a\xd9\xb4\xe2\x80\x8d", false); } // [B5, B6, C2]
17893test { try toAsciiFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\x8a\xd9\xb4\xe2\x80\x8d", true); } // [B5, B6]
717817894test { try toUnicodeFail("xn--emb715u.xn--mhb8fy26k"); } // [B5, B6]
17895test { try toAsciiFail("xn--emb715u.xn--mhb8fy26k", false); } // [B5, B6]
17896test { try toAsciiFail("xn--emb715u.xn--mhb8fy26k", true); } // [B5, B6]
717917897test { try toUnicodeFail("xn--emb715u.xn--mhb8f960g03l"); } // [B5, B6, C2]
17898test { try toAsciiFail("xn--emb715u.xn--mhb8f960g03l", false); } // [B5, B6, C2]
17899test { try toAsciiFail("xn--emb715u.xn--mhb8f960g03l", true); } // [B5, B6, C2]
718017900test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\xb8\xe2\x80\x8d"); } // [B5, B6, C2]
17901test { try toAsciiFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\xb8\xe2\x80\x8d", false); } // [B5, B6, C2]
17902test { try toAsciiFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\xb8\xe2\x80\x8d", true); } // [B5, B6]
718117903test { try toUnicodeFail("xn--emb715u.xn--mhb8f817a"); } // [B5, B6, V7]
17904test { try toAsciiFail("xn--emb715u.xn--mhb8f817a", false); } // [B5, B6, V7]
17905test { try toAsciiFail("xn--emb715u.xn--mhb8f817a", true); } // [B5, B6, V7]
718217906test { try toUnicodeFail("xn--emb715u.xn--mhb8f817ao2p"); } // [B5, B6, C2, V7]
17907test { try toAsciiFail("xn--emb715u.xn--mhb8f817ao2p", false); } // [B5, B6, C2, V7]
17908test { try toAsciiFail("xn--emb715u.xn--mhb8f817ao2p", true); } // [B5, B6, C2, V7]
718317909test { try toUnicodeFail("\xe0\xbe\x94\xea\xa1\x8b-\xef\xbc\x8e-\xf0\x96\xac\xb4"); } // [V3, V6]
17910test { try toAsciiFail("\xe0\xbe\x94\xea\xa1\x8b-\xef\xbc\x8e-\xf0\x96\xac\xb4", false); } // [V3, V6]
17911test { try toAsciiFail("\xe0\xbe\x94\xea\xa1\x8b-\xef\xbc\x8e-\xf0\x96\xac\xb4", true); } // [V3, V6]
718417912test { try toUnicodeFail("\xe0\xbe\x94\xea\xa1\x8b-.-\xf0\x96\xac\xb4"); } // [V3, V6]
17913test { try toAsciiFail("\xe0\xbe\x94\xea\xa1\x8b-.-\xf0\x96\xac\xb4", false); } // [V3, V6]
17914test { try toAsciiFail("\xe0\xbe\x94\xea\xa1\x8b-.-\xf0\x96\xac\xb4", true); } // [V3, V6]
718517915test { try toUnicodeFail("xn----ukg9938i.xn----4u5m"); } // [V3, V6]
17916test { try toAsciiFail("xn----ukg9938i.xn----4u5m", false); } // [V3, V6]
17917test { try toAsciiFail("xn----ukg9938i.xn----4u5m", true); } // [V3, V6]
718617918test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-"); } // [C1, V3, V7]
17919test { try toAsciiFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-", false); } // [C1, V3, V7]
17920test { try toAsciiFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-", true); } // [V3, V7]
718717921test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-"); } // [C1, V3, V7]
17922test { try toAsciiFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-", false); } // [C1, V3, V7]
17923test { try toAsciiFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-", true); } // [V3, V7]
718817924test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c.\xe6\xa0\x87-"); } // [C1, V3, V7]
17925test { try toAsciiFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c.\xe6\xa0\x87-", false); } // [C1, V3, V7]
17926test { try toAsciiFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c.\xe6\xa0\x87-", true); } // [V3, V7]
718917927test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c.\xe6\xa0\x87-"); } // [C1, V3, V7]
17928test { try toAsciiFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c.\xe6\xa0\x87-", false); } // [C1, V3, V7]
17929test { try toAsciiFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c.\xe6\xa0\x87-", true); } // [V3, V7]
719017930test { try toUnicodeFail("xn----9mo67451g.xn----qj7b"); } // [V3, V7]
17931test { try toAsciiFail("xn----9mo67451g.xn----qj7b", false); } // [V3, V7]
17932test { try toAsciiFail("xn----9mo67451g.xn----qj7b", true); } // [V3, V7]
719117933test { try toUnicodeFail("xn----sgn90kn5663a.xn----qj7b"); } // [C1, V3, V7]
17934test { try toAsciiFail("xn----sgn90kn5663a.xn----qj7b", false); } // [C1, V3, V7]
17935test { try toAsciiFail("xn----sgn90kn5663a.xn----qj7b", true); } // [C1, V3, V7]
719217936test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xcf\x82\xdf\x9c"); } // [B5, B6]
17937test { try toAsciiFail("\xd9\xb1\xef\xbc\x8e\xcf\x82\xdf\x9c", false); } // [B5, B6]
17938test { try toAsciiFail("\xd9\xb1\xef\xbc\x8e\xcf\x82\xdf\x9c", true); } // [B5, B6]
719317939test { try toUnicodeFail("\xd9\xb1.\xcf\x82\xdf\x9c"); } // [B5, B6]
17940test { try toAsciiFail("\xd9\xb1.\xcf\x82\xdf\x9c", false); } // [B5, B6]
17941test { try toAsciiFail("\xd9\xb1.\xcf\x82\xdf\x9c", true); } // [B5, B6]
719417942test { try toUnicodeFail("\xd9\xb1.\xce\xa3\xdf\x9c"); } // [B5, B6]
17943test { try toAsciiFail("\xd9\xb1.\xce\xa3\xdf\x9c", false); } // [B5, B6]
17944test { try toAsciiFail("\xd9\xb1.\xce\xa3\xdf\x9c", true); } // [B5, B6]
719517945test { try toUnicodeFail("\xd9\xb1.\xcf\x83\xdf\x9c"); } // [B5, B6]
17946test { try toAsciiFail("\xd9\xb1.\xcf\x83\xdf\x9c", false); } // [B5, B6]
17947test { try toAsciiFail("\xd9\xb1.\xcf\x83\xdf\x9c", true); } // [B5, B6]
719617948test { try toUnicodeFail("xn--qib.xn--4xa21s"); } // [B5, B6]
17949test { try toAsciiFail("xn--qib.xn--4xa21s", false); } // [B5, B6]
17950test { try toAsciiFail("xn--qib.xn--4xa21s", true); } // [B5, B6]
719717951test { try toUnicodeFail("xn--qib.xn--3xa41s"); } // [B5, B6]
17952test { try toAsciiFail("xn--qib.xn--3xa41s", false); } // [B5, B6]
17953test { try toAsciiFail("xn--qib.xn--3xa41s", true); } // [B5, B6]
719817954test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xce\xa3\xdf\x9c"); } // [B5, B6]
17955test { try toAsciiFail("\xd9\xb1\xef\xbc\x8e\xce\xa3\xdf\x9c", false); } // [B5, B6]
17956test { try toAsciiFail("\xd9\xb1\xef\xbc\x8e\xce\xa3\xdf\x9c", true); } // [B5, B6]
719917957test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xcf\x83\xdf\x9c"); } // [B5, B6]
17958test { try toAsciiFail("\xd9\xb1\xef\xbc\x8e\xcf\x83\xdf\x9c", false); } // [B5, B6]
17959test { try toAsciiFail("\xd9\xb1\xef\xbc\x8e\xcf\x83\xdf\x9c", true); } // [B5, B6]
720017960test { try toUnicodeFail("\xf1\xbc\x88\xb6\xd8\x85\xef\xbc\x8e\xe0\xa3\x81\xe2\x80\x8d\xf0\x91\x91\x82\xf0\xb1\xbc\xb1"); } // [B2, B3, B5, B6, C2, V7]
17961test { try toAsciiFail("\xf1\xbc\x88\xb6\xd8\x85\xef\xbc\x8e\xe0\xa3\x81\xe2\x80\x8d\xf0\x91\x91\x82\xf0\xb1\xbc\xb1", false); } // [B2, B3, B5, B6, C2, V7]
17962test { try toAsciiFail("\xf1\xbc\x88\xb6\xd8\x85\xef\xbc\x8e\xe0\xa3\x81\xe2\x80\x8d\xf0\x91\x91\x82\xf0\xb1\xbc\xb1", true); } // [B2, B3, B5, B6, V7]
720117963test { try toUnicodeFail("\xf1\xbc\x88\xb6\xd8\x85.\xe0\xa3\x81\xe2\x80\x8d\xf0\x91\x91\x82\xf0\xb1\xbc\xb1"); } // [B2, B3, B5, B6, C2, V7]
17964test { try toAsciiFail("\xf1\xbc\x88\xb6\xd8\x85.\xe0\xa3\x81\xe2\x80\x8d\xf0\x91\x91\x82\xf0\xb1\xbc\xb1", false); } // [B2, B3, B5, B6, C2, V7]
17965test { try toAsciiFail("\xf1\xbc\x88\xb6\xd8\x85.\xe0\xa3\x81\xe2\x80\x8d\xf0\x91\x91\x82\xf0\xb1\xbc\xb1", true); } // [B2, B3, B5, B6, V7]
720217966test { try toUnicodeFail("xn--nfb17942h.xn--nzb6708kx3pn"); } // [B2, B3, B5, B6, V7]
17967test { try toAsciiFail("xn--nfb17942h.xn--nzb6708kx3pn", false); } // [B2, B3, B5, B6, V7]
17968test { try toAsciiFail("xn--nfb17942h.xn--nzb6708kx3pn", true); } // [B2, B3, B5, B6, V7]
720317969test { try toUnicodeFail("xn--nfb17942h.xn--nzb240jv06otevq"); } // [B2, B3, B5, B6, C2, V7]
17970test { try toAsciiFail("xn--nfb17942h.xn--nzb240jv06otevq", false); } // [B2, B3, B5, B6, C2, V7]
17971test { try toAsciiFail("xn--nfb17942h.xn--nzb240jv06otevq", true); } // [B2, B3, B5, B6, C2, V7]
720417972test { try toUnicodeFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xef\xbd\xa1\xe1\xaf\xb2"); } // [B1, V6, V7]
17973test { try toAsciiFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xef\xbd\xa1\xe1\xaf\xb2", false); } // [B1, V6, V7]
17974test { try toAsciiFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xef\xbd\xa1\xe1\xaf\xb2", true); } // [B1, V6, V7]
720517975test { try toUnicodeFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xe3\x80\x82\xe1\xaf\xb2"); } // [B1, V6, V7]
17976test { try toAsciiFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xe3\x80\x82\xe1\xaf\xb2", false); } // [B1, V6, V7]
17977test { try toAsciiFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xe3\x80\x82\xe1\xaf\xb2", true); } // [B1, V6, V7]
720617978test { try toUnicodeFail("xn--d97cn8rn44p.xn--0zf"); } // [B1, V6, V7]
17979test { try toAsciiFail("xn--d97cn8rn44p.xn--0zf", false); } // [B1, V6, V7]
17980test { try toAsciiFail("xn--d97cn8rn44p.xn--0zf", true); } // [B1, V6, V7]
720717981test { try toUnicodeFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xcf\x82"); } // [B1, B5, V7]
17982test { try toAsciiFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xcf\x82", false); } // [B1, B5, V7]
17983test { try toAsciiFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xcf\x82", true); } // [B1, B5, V7]
720817984test { try toUnicodeFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xce\xa3"); } // [B1, B5, V7]
17985test { try toAsciiFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xce\xa3", false); } // [B1, B5, V7]
17986test { try toAsciiFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xce\xa3", true); } // [B1, B5, V7]
720917987test { try toUnicodeFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xcf\x83"); } // [B1, B5, V7]
17988test { try toAsciiFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xcf\x83", false); } // [B1, B5, V7]
17989test { try toAsciiFail("6\xe1\x85\xa0\xe1\xb0\xb3\xf3\xa0\xb8\xa7.\xf2\x9f\x9c\x8a\xe9\x94\xb0\xdc\xac\xcf\x83", true); } // [B1, B5, V7]
721017990test { try toUnicodeFail("xn--6-iuly4983p.xn--4xa95ohw6pk078g"); } // [B1, B5, V7]
17991test { try toAsciiFail("xn--6-iuly4983p.xn--4xa95ohw6pk078g", false); } // [B1, B5, V7]
17992test { try toAsciiFail("xn--6-iuly4983p.xn--4xa95ohw6pk078g", true); } // [B1, B5, V7]
721117993test { try toUnicodeFail("xn--6-iuly4983p.xn--3xa16ohw6pk078g"); } // [B1, B5, V7]
17994test { try toAsciiFail("xn--6-iuly4983p.xn--3xa16ohw6pk078g", false); } // [B1, B5, V7]
17995test { try toAsciiFail("xn--6-iuly4983p.xn--3xa16ohw6pk078g", true); } // [B1, B5, V7]
721217996test { try toUnicodeFail("xn--6-5bh476ewr517a.xn--4xa95ohw6pk078g"); } // [B1, B5, V7]
17997test { try toAsciiFail("xn--6-5bh476ewr517a.xn--4xa95ohw6pk078g", false); } // [B1, B5, V7]
17998test { try toAsciiFail("xn--6-5bh476ewr517a.xn--4xa95ohw6pk078g", true); } // [B1, B5, V7]
721317999test { try toUnicodeFail("xn--6-5bh476ewr517a.xn--3xa16ohw6pk078g"); } // [B1, B5, V7]
18000test { try toAsciiFail("xn--6-5bh476ewr517a.xn--3xa16ohw6pk078g", false); } // [B1, B5, V7]
18001test { try toAsciiFail("xn--6-5bh476ewr517a.xn--3xa16ohw6pk078g", true); } // [B1, B5, V7]
721418002test { try toUnicodeFail("\xda\xb3\xef\xb8\x84\xf1\x85\x8e\xa6\xf0\x9d\x9f\xbd\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B2, V7]
18003test { try toAsciiFail("\xda\xb3\xef\xb8\x84\xf1\x85\x8e\xa6\xf0\x9d\x9f\xbd\xef\xbd\xa1\xf0\x90\xb9\xbd", false); } // [B1, B2, V7]
18004test { try toAsciiFail("\xda\xb3\xef\xb8\x84\xf1\x85\x8e\xa6\xf0\x9d\x9f\xbd\xef\xbd\xa1\xf0\x90\xb9\xbd", true); } // [B1, B2, V7]
721518005test { try toUnicodeFail("\xda\xb3\xef\xb8\x84\xf1\x85\x8e\xa67\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B2, V7]
18006test { try toAsciiFail("\xda\xb3\xef\xb8\x84\xf1\x85\x8e\xa67\xe3\x80\x82\xf0\x90\xb9\xbd", false); } // [B1, B2, V7]
18007test { try toAsciiFail("\xda\xb3\xef\xb8\x84\xf1\x85\x8e\xa67\xe3\x80\x82\xf0\x90\xb9\xbd", true); } // [B1, B2, V7]
721618008test { try toUnicodeFail("xn--7-yuc34665f.xn--1o0d"); } // [B1, B2, V7]
18009test { try toAsciiFail("xn--7-yuc34665f.xn--1o0d", false); } // [B1, B2, V7]
18010test { try toAsciiFail("xn--7-yuc34665f.xn--1o0d", true); } // [B1, B2, V7]
721718011test { try toUnicodeFail("\xf0\x9e\xae\xa7\xef\xbc\x8e\xe2\x80\x8c\xe2\xab\x9e"); } // [B1, C1, V7]
18012test { try toAsciiFail("\xf0\x9e\xae\xa7\xef\xbc\x8e\xe2\x80\x8c\xe2\xab\x9e", false); } // [B1, C1, V7]
18013test { try toAsciiFail("\xf0\x9e\xae\xa7\xef\xbc\x8e\xe2\x80\x8c\xe2\xab\x9e", true); } // [B1, V7]
721818014test { try toUnicodeFail("\xf0\x9e\xae\xa7.\xe2\x80\x8c\xe2\xab\x9e"); } // [B1, C1, V7]
18015test { try toAsciiFail("\xf0\x9e\xae\xa7.\xe2\x80\x8c\xe2\xab\x9e", false); } // [B1, C1, V7]
18016test { try toAsciiFail("\xf0\x9e\xae\xa7.\xe2\x80\x8c\xe2\xab\x9e", true); } // [B1, V7]
721918017test { try toUnicodeFail("xn--pw6h.xn--53i"); } // [B1, V7]
18018test { try toAsciiFail("xn--pw6h.xn--53i", false); } // [B1, V7]
18019test { try toAsciiFail("xn--pw6h.xn--53i", true); } // [B1, V7]
722018020test { try toUnicodeFail("xn--pw6h.xn--0ug283b"); } // [B1, C1, V7]
18021test { try toAsciiFail("xn--pw6h.xn--0ug283b", false); } // [B1, C1, V7]
18022test { try toAsciiFail("xn--pw6h.xn--0ug283b", true); } // [B1, C1, V7]
722118023test { try toUnicodeFail("-\xf1\x95\x89\xb4.\xdb\xa0\xe1\xa2\x9a-"); } // [V3, V6, V7]
18024test { try toAsciiFail("-\xf1\x95\x89\xb4.\xdb\xa0\xe1\xa2\x9a-", false); } // [V3, V6, V7]
18025test { try toAsciiFail("-\xf1\x95\x89\xb4.\xdb\xa0\xe1\xa2\x9a-", true); } // [V3, V6, V7]
722218026test { try toUnicodeFail("xn----qi38c.xn----jxc827k"); } // [V3, V6, V7]
18027test { try toAsciiFail("xn----qi38c.xn----jxc827k", false); } // [V3, V6, V7]
18028test { try toAsciiFail("xn----qi38c.xn----jxc827k", true); } // [V3, V6, V7]
722318029test { try toUnicodeFail("\xe2\x8c\x81\xe2\x80\x8d\xf0\x91\x84\xb4\xef\xbc\x8e\xe2\x80\x8c\xf0\x9d\x9f\xa9\xd9\xac"); } // [B1, C1, C2]
18030test { try toAsciiFail("\xe2\x8c\x81\xe2\x80\x8d\xf0\x91\x84\xb4\xef\xbc\x8e\xe2\x80\x8c\xf0\x9d\x9f\xa9\xd9\xac", false); } // [B1, C1, C2]
18031test { try toAsciiFail("\xe2\x8c\x81\xe2\x80\x8d\xf0\x91\x84\xb4\xef\xbc\x8e\xe2\x80\x8c\xf0\x9d\x9f\xa9\xd9\xac", true); } // [B1]
722418032test { try toUnicodeFail("\xe2\x8c\x81\xe2\x80\x8d\xf0\x91\x84\xb4.\xe2\x80\x8c7\xd9\xac"); } // [B1, C1, C2]
18033test { try toAsciiFail("\xe2\x8c\x81\xe2\x80\x8d\xf0\x91\x84\xb4.\xe2\x80\x8c7\xd9\xac", false); } // [B1, C1, C2]
18034test { try toAsciiFail("\xe2\x8c\x81\xe2\x80\x8d\xf0\x91\x84\xb4.\xe2\x80\x8c7\xd9\xac", true); } // [B1]
722518035test { try toUnicodeFail("xn--nhh5394g.xn--7-xqc"); } // [B1]
18036test { try toAsciiFail("xn--nhh5394g.xn--7-xqc", false); } // [B1]
18037test { try toAsciiFail("xn--nhh5394g.xn--7-xqc", true); } // [B1]
722618038test { try toUnicodeFail("xn--1ug38i2093a.xn--7-xqc297q"); } // [B1, C1, C2]
18039test { try toAsciiFail("xn--1ug38i2093a.xn--7-xqc297q", false); } // [B1, C1, C2]
18040test { try toAsciiFail("xn--1ug38i2093a.xn--7-xqc297q", true); } // [B1, C1, C2]
722718041test { try toUnicodeFail("\xef\xb8\x92\xef\xb4\x85\xe0\xb8\xb7\xef\xbb\xbc\xe3\x80\x82\xe5\xb2\x93\xe1\xaf\xb2\xf3\xa0\xbe\x83\xe1\xa1\x82"); } // [B1, V7]
18042test { try toAsciiFail("\xef\xb8\x92\xef\xb4\x85\xe0\xb8\xb7\xef\xbb\xbc\xe3\x80\x82\xe5\xb2\x93\xe1\xaf\xb2\xf3\xa0\xbe\x83\xe1\xa1\x82", false); } // [B1, V7]
18043test { try toAsciiFail("\xef\xb8\x92\xef\xb4\x85\xe0\xb8\xb7\xef\xbb\xbc\xe3\x80\x82\xe5\xb2\x93\xe1\xaf\xb2\xf3\xa0\xbe\x83\xe1\xa1\x82", true); } // [B1, V7]
722818044test { try toUnicodeFail("\xe3\x80\x82\xd8\xb5\xd9\x89\xe0\xb8\xb7\xd9\x84\xd8\xa7\xe3\x80\x82\xe5\xb2\x93\xe1\xaf\xb2\xf3\xa0\xbe\x83\xe1\xa1\x82"); } // [V7, X4_2]
18045test { try toAsciiFail("\xe3\x80\x82\xd8\xb5\xd9\x89\xe0\xb8\xb7\xd9\x84\xd8\xa7\xe3\x80\x82\xe5\xb2\x93\xe1\xaf\xb2\xf3\xa0\xbe\x83\xe1\xa1\x82", false); } // [V7, A4_2]
18046test { try toAsciiFail("\xe3\x80\x82\xd8\xb5\xd9\x89\xe0\xb8\xb7\xd9\x84\xd8\xa7\xe3\x80\x82\xe5\xb2\x93\xe1\xaf\xb2\xf3\xa0\xbe\x83\xe1\xa1\x82", true); } // [V7, A4_2]
722918047test { try toUnicodeFail(".xn--mgb1a7bt462h.xn--17e10qe61f9r71s"); } // [V7, X4_2]
18048test { try toAsciiFail(".xn--mgb1a7bt462h.xn--17e10qe61f9r71s", false); } // [V7, A4_2]
18049test { try toAsciiFail(".xn--mgb1a7bt462h.xn--17e10qe61f9r71s", true); } // [V7, A4_2]
723018050test { try toUnicodeFail("xn--mgb1a7bt462hf267a.xn--17e10qe61f9r71s"); } // [B1, V7]
18051test { try toAsciiFail("xn--mgb1a7bt462hf267a.xn--17e10qe61f9r71s", false); } // [B1, V7]
18052test { try toAsciiFail("xn--mgb1a7bt462hf267a.xn--17e10qe61f9r71s", true); } // [B1, V7]
723118053test { try toUnicodeFail("\xf0\x90\xb9\xa8\xe3\x80\x828\xf0\x91\x81\x86"); } // [B1]
18054test { try toAsciiFail("\xf0\x90\xb9\xa8\xe3\x80\x828\xf0\x91\x81\x86", false); } // [B1]
18055test { try toAsciiFail("\xf0\x90\xb9\xa8\xe3\x80\x828\xf0\x91\x81\x86", true); } // [B1]
723218056test { try toUnicodeFail("xn--go0d.xn--8-yu7i"); } // [B1]
18057test { try toAsciiFail("xn--go0d.xn--8-yu7i", false); } // [B1]
18058test { try toAsciiFail("xn--go0d.xn--8-yu7i", true); } // [B1]
723318059test { try toUnicodeFail("\xf0\x9e\x80\x95\xe0\xb5\x83\xef\xbc\x8e\xea\xa1\x9a\xe0\xa3\xba\xf0\x90\xb9\xb0\xe0\xb5\x84"); } // [B1, B5, B6, V6]
18060test { try toAsciiFail("\xf0\x9e\x80\x95\xe0\xb5\x83\xef\xbc\x8e\xea\xa1\x9a\xe0\xa3\xba\xf0\x90\xb9\xb0\xe0\xb5\x84", false); } // [B1, B5, B6, V6]
18061test { try toAsciiFail("\xf0\x9e\x80\x95\xe0\xb5\x83\xef\xbc\x8e\xea\xa1\x9a\xe0\xa3\xba\xf0\x90\xb9\xb0\xe0\xb5\x84", true); } // [B1, B5, B6, V6]
723418062test { try toUnicodeFail("\xf0\x9e\x80\x95\xe0\xb5\x83.\xea\xa1\x9a\xe0\xa3\xba\xf0\x90\xb9\xb0\xe0\xb5\x84"); } // [B1, B5, B6, V6]
18063test { try toAsciiFail("\xf0\x9e\x80\x95\xe0\xb5\x83.\xea\xa1\x9a\xe0\xa3\xba\xf0\x90\xb9\xb0\xe0\xb5\x84", false); } // [B1, B5, B6, V6]
18064test { try toAsciiFail("\xf0\x9e\x80\x95\xe0\xb5\x83.\xea\xa1\x9a\xe0\xa3\xba\xf0\x90\xb9\xb0\xe0\xb5\x84", true); } // [B1, B5, B6, V6]
723518065test { try toUnicodeFail("xn--mxc5210v.xn--90b01t8u2p1ltd"); } // [B1, B5, B6, V6]
18066test { try toAsciiFail("xn--mxc5210v.xn--90b01t8u2p1ltd", false); } // [B1, B5, B6, V6]
18067test { try toAsciiFail("xn--mxc5210v.xn--90b01t8u2p1ltd", true); } // [B1, B5, B6, V6]
723618068test { try toUnicodeFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xef\xbd\xa1\xf3\xa0\x8d\x85"); } // [B1, B5, B6, V7]
18069test { try toAsciiFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xef\xbd\xa1\xf3\xa0\x8d\x85", false); } // [B1, B5, B6, V7]
18070test { try toAsciiFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xef\xbd\xa1\xf3\xa0\x8d\x85", true); } // [B1, B5, B6, V7]
723718071test { try toUnicodeFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xe3\x80\x82\xf3\xa0\x8d\x85"); } // [B1, B5, B6, V7]
18072test { try toAsciiFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xe3\x80\x82\xf3\xa0\x8d\x85", false); } // [B1, B5, B6, V7]
18073test { try toAsciiFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xe3\x80\x82\xf3\xa0\x8d\x85", true); } // [B1, B5, B6, V7]
723818074test { try toUnicodeFail("xn--nsa1265kp9z9e.xn--xt36e"); } // [B1, B5, B6, V7]
18075test { try toAsciiFail("xn--nsa1265kp9z9e.xn--xt36e", false); } // [B1, B5, B6, V7]
18076test { try toAsciiFail("xn--nsa1265kp9z9e.xn--xt36e", true); } // [B1, B5, B6, V7]
723918077test { try toUnicodeFail("\xe1\xa2\x8c\xef\xbc\x8e-\xe0\xa1\x9a"); } // [V3]
18078test { try toAsciiFail("\xe1\xa2\x8c\xef\xbc\x8e-\xe0\xa1\x9a", false); } // [V3]
18079test { try toAsciiFail("\xe1\xa2\x8c\xef\xbc\x8e-\xe0\xa1\x9a", true); } // [V3]
724018080test { try toUnicodeFail("\xe1\xa2\x8c.-\xe0\xa1\x9a"); } // [V3]
18081test { try toAsciiFail("\xe1\xa2\x8c.-\xe0\xa1\x9a", false); } // [V3]
18082test { try toAsciiFail("\xe1\xa2\x8c.-\xe0\xa1\x9a", true); } // [V3]
724118083test { try toUnicodeFail("xn--59e.xn----5jd"); } // [V3]
18084test { try toAsciiFail("xn--59e.xn----5jd", false); } // [V3]
18085test { try toAsciiFail("xn--59e.xn----5jd", true); } // [V3]
724218086test { try toUnicodeFail("\xf0\xa5\x9b\x9b\xf0\x91\x98\xb6\xef\xbd\xa1\xf0\x90\xb9\xac\xf0\x90\xb2\xb8\xe0\xaf\x8d"); } // [B1, V7]
18087test { try toAsciiFail("\xf0\xa5\x9b\x9b\xf0\x91\x98\xb6\xef\xbd\xa1\xf0\x90\xb9\xac\xf0\x90\xb2\xb8\xe0\xaf\x8d", false); } // [B1, V7]
18088test { try toAsciiFail("\xf0\xa5\x9b\x9b\xf0\x91\x98\xb6\xef\xbd\xa1\xf0\x90\xb9\xac\xf0\x90\xb2\xb8\xe0\xaf\x8d", true); } // [B1, V7]
724318089test { try toUnicodeFail("\xf0\xa5\x9b\x9b\xf0\x91\x98\xb6\xe3\x80\x82\xf0\x90\xb9\xac\xf0\x90\xb2\xb8\xe0\xaf\x8d"); } // [B1, V7]
18090test { try toAsciiFail("\xf0\xa5\x9b\x9b\xf0\x91\x98\xb6\xe3\x80\x82\xf0\x90\xb9\xac\xf0\x90\xb2\xb8\xe0\xaf\x8d", false); } // [B1, V7]
18091test { try toAsciiFail("\xf0\xa5\x9b\x9b\xf0\x91\x98\xb6\xe3\x80\x82\xf0\x90\xb9\xac\xf0\x90\xb2\xb8\xe0\xaf\x8d", true); } // [B1, V7]
724418092test { try toUnicodeFail("xn--jb2dj685c.xn--xmc5562kmcb"); } // [B1, V7]
18093test { try toAsciiFail("xn--jb2dj685c.xn--xmc5562kmcb", false); } // [B1, V7]
18094test { try toAsciiFail("xn--jb2dj685c.xn--xmc5562kmcb", true); } // [B1, V7]
724518095test { try toUnicodeFail("\xe1\x82\xb0\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c"); } // [B1, B5, B6, C1]
18096test { try toAsciiFail("\xe1\x82\xb0\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c", false); } // [B1, B5, B6, C1]
18097test { try toAsciiFail("\xe1\x82\xb0\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c", true); } // [B5, B6, A4_2]
724618098test { try toUnicodeFail("\xe1\x82\xb0\xdd\xbf.\xe2\x80\x8c"); } // [B1, B5, B6, C1]
18099test { try toAsciiFail("\xe1\x82\xb0\xdd\xbf.\xe2\x80\x8c", false); } // [B1, B5, B6, C1]
18100test { try toAsciiFail("\xe1\x82\xb0\xdd\xbf.\xe2\x80\x8c", true); } // [B5, B6, A4_2]
724718101test { try toUnicodeFail("\xe2\xb4\x90\xdd\xbf.\xe2\x80\x8c"); } // [B1, B5, B6, C1]
18102test { try toAsciiFail("\xe2\xb4\x90\xdd\xbf.\xe2\x80\x8c", false); } // [B1, B5, B6, C1]
18103test { try toAsciiFail("\xe2\xb4\x90\xdd\xbf.\xe2\x80\x8c", true); } // [B5, B6, A4_2]
724818104test { try toUnicodeFail("xn--gqb743q."); } // [B5, B6]
18105test { try toAsciiFail("xn--gqb743q.", false); } // [B5, B6, A4_2]
18106test { try toAsciiFail("xn--gqb743q.", true); } // [B5, B6, A4_2]
724918107test { try toUnicodeFail("xn--gqb743q.xn--0ug"); } // [B1, B5, B6, C1]
18108test { try toAsciiFail("xn--gqb743q.xn--0ug", false); } // [B1, B5, B6, C1]
18109test { try toAsciiFail("xn--gqb743q.xn--0ug", true); } // [B1, B5, B6, C1]
725018110test { try toUnicodeFail("\xe2\xb4\x90\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c"); } // [B1, B5, B6, C1]
18111test { try toAsciiFail("\xe2\xb4\x90\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c", false); } // [B1, B5, B6, C1]
18112test { try toAsciiFail("\xe2\xb4\x90\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c", true); } // [B5, B6, A4_2]
725118113test { try toUnicodeFail("xn--gqb918b."); } // [B5, B6, V7]
18114test { try toAsciiFail("xn--gqb918b.", false); } // [B5, B6, V7, A4_2]
18115test { try toAsciiFail("xn--gqb918b.", true); } // [B5, B6, V7, A4_2]
725218116test { try toUnicodeFail("xn--gqb918b.xn--0ug"); } // [B1, B5, B6, C1, V7]
18117test { try toAsciiFail("xn--gqb918b.xn--0ug", false); } // [B1, B5, B6, C1, V7]
18118test { try toAsciiFail("xn--gqb918b.xn--0ug", true); } // [B1, B5, B6, C1, V7]
725318119test { try toUnicodeFail("\xf0\x9f\x84\x85\xf0\x91\xb2\x9e-\xe2\x92\x88\xe3\x80\x82\xe2\x80\x8d\xe1\xa0\xa9\xda\xa5"); } // [B1, C2, V7, U1]
18120test { try toAsciiFail("\xf0\x9f\x84\x85\xf0\x91\xb2\x9e-\xe2\x92\x88\xe3\x80\x82\xe2\x80\x8d\xe1\xa0\xa9\xda\xa5", false); } // [B1, C2, V7, U1]
18121test { try toAsciiFail("\xf0\x9f\x84\x85\xf0\x91\xb2\x9e-\xe2\x92\x88\xe3\x80\x82\xe2\x80\x8d\xe1\xa0\xa9\xda\xa5", true); } // [B1, B5, B6, V7, U1]
725418122test { try toUnicodeFail("4,\xf0\x91\xb2\x9e-1.\xe3\x80\x82\xe2\x80\x8d\xe1\xa0\xa9\xda\xa5"); } // [B1, C2, U1, X4_2]
18123test { try toAsciiFail("4,\xf0\x91\xb2\x9e-1.\xe3\x80\x82\xe2\x80\x8d\xe1\xa0\xa9\xda\xa5", false); } // [B1, C2, U1, A4_2]
18124test { try toAsciiFail("4,\xf0\x91\xb2\x9e-1.\xe3\x80\x82\xe2\x80\x8d\xe1\xa0\xa9\xda\xa5", true); } // [B1, B5, B6, U1, A4_2]
725518125test { try toUnicodeFail("xn--4,-1-w401a..xn--7jb180g"); } // [B1, B5, B6, U1, X4_2]
18126test { try toAsciiFail("xn--4,-1-w401a..xn--7jb180g", false); } // [B1, B5, B6, U1, A4_2]
18127test { try toAsciiFail("xn--4,-1-w401a..xn--7jb180g", true); } // [B1, B5, B6, U1, A4_2]
725618128test { try toUnicodeFail("xn--4,-1-w401a..xn--7jb180gexf"); } // [B1, C2, U1, X4_2]
18129test { try toAsciiFail("xn--4,-1-w401a..xn--7jb180gexf", false); } // [B1, C2, U1, A4_2]
18130test { try toAsciiFail("xn--4,-1-w401a..xn--7jb180gexf", true); } // [B1, C2, U1, A4_2]
725718131test { try toUnicodeFail("xn--4,--je4aw745l.xn--7jb180g"); } // [B1, B5, B6, V7, U1]
18132test { try toAsciiFail("xn--4,--je4aw745l.xn--7jb180g", false); } // [B1, B5, B6, V7, U1]
18133test { try toAsciiFail("xn--4,--je4aw745l.xn--7jb180g", true); } // [B1, B5, B6, V7, U1]
725818134test { try toUnicodeFail("xn--4,--je4aw745l.xn--7jb180gexf"); } // [B1, C2, V7, U1]
18135test { try toAsciiFail("xn--4,--je4aw745l.xn--7jb180gexf", false); } // [B1, C2, V7, U1]
18136test { try toAsciiFail("xn--4,--je4aw745l.xn--7jb180gexf", true); } // [B1, C2, V7, U1]
725918137test { try toUnicodeFail("xn----ecp8796hjtvg.xn--7jb180g"); } // [B1, B5, B6, V7]
18138test { try toAsciiFail("xn----ecp8796hjtvg.xn--7jb180g", false); } // [B1, B5, B6, V7]
18139test { try toAsciiFail("xn----ecp8796hjtvg.xn--7jb180g", true); } // [B1, B5, B6, V7]
726018140test { try toUnicodeFail("xn----ecp8796hjtvg.xn--7jb180gexf"); } // [B1, C2, V7]
18141test { try toAsciiFail("xn----ecp8796hjtvg.xn--7jb180gexf", false); } // [B1, C2, V7]
18142test { try toAsciiFail("xn----ecp8796hjtvg.xn--7jb180gexf", true); } // [B1, C2, V7]
726118143test { try toUnicodeFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\xaa\xf2\xae\xbf\x8b"); } // [B2, B3, V7]
18144test { try toAsciiFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\xaa\xf2\xae\xbf\x8b", false); } // [B2, B3, V7]
18145test { try toAsciiFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\xaa\xf2\xae\xbf\x8b", true); } // [B2, B3, V7]
726218146test { try toUnicodeFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\x88\xf2\xae\xbf\x8b"); } // [B2, B3, V7]
18147test { try toAsciiFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\x88\xf2\xae\xbf\x8b", false); } // [B2, B3, V7]
18148test { try toAsciiFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\x88\xf2\xae\xbf\x8b", true); } // [B2, B3, V7]
726318149test { try toUnicodeFail("xn--4240a.xn--ie6h83808a"); } // [B2, B3, V7]
18150test { try toAsciiFail("xn--4240a.xn--ie6h83808a", false); } // [B2, B3, V7]
18151test { try toAsciiFail("xn--4240a.xn--ie6h83808a", true); } // [B2, B3, V7]
726418152test { try toUnicodeFail("\xd7\x81\xdb\xb2\xef\xbd\xa1\xf0\x90\xae\x8a\xd9\xac\xf0\x9d\xa8\x8a\xe9\x84\xa8"); } // [B1, B2, B3, V6]
18153test { try toAsciiFail("\xd7\x81\xdb\xb2\xef\xbd\xa1\xf0\x90\xae\x8a\xd9\xac\xf0\x9d\xa8\x8a\xe9\x84\xa8", false); } // [B1, B2, B3, V6]
18154test { try toAsciiFail("\xd7\x81\xdb\xb2\xef\xbd\xa1\xf0\x90\xae\x8a\xd9\xac\xf0\x9d\xa8\x8a\xe9\x84\xa8", true); } // [B1, B2, B3, V6]
726518155test { try toUnicodeFail("\xd7\x81\xdb\xb2\xe3\x80\x82\xf0\x90\xae\x8a\xd9\xac\xf0\x9d\xa8\x8a\xe9\x84\xa8"); } // [B1, B2, B3, V6]
18156test { try toAsciiFail("\xd7\x81\xdb\xb2\xe3\x80\x82\xf0\x90\xae\x8a\xd9\xac\xf0\x9d\xa8\x8a\xe9\x84\xa8", false); } // [B1, B2, B3, V6]
18157test { try toAsciiFail("\xd7\x81\xdb\xb2\xe3\x80\x82\xf0\x90\xae\x8a\xd9\xac\xf0\x9d\xa8\x8a\xe9\x84\xa8", true); } // [B1, B2, B3, V6]
726618158test { try toUnicodeFail("xn--pdb42d.xn--lib6412enztdwv6h"); } // [B1, B2, B3, V6]
18159test { try toAsciiFail("xn--pdb42d.xn--lib6412enztdwv6h", false); } // [B1, B2, B3, V6]
18160test { try toAsciiFail("xn--pdb42d.xn--lib6412enztdwv6h", true); } // [B1, B2, B3, V6]
726718161test { try toUnicodeFail("\xf0\x9e\xad\xb3-\xea\xa1\x81\xe3\x80\x82\xe1\xa9\xa9\xe0\xaf\x8d-"); } // [B1, B2, B3, V3, V6, V7]
18162test { try toAsciiFail("\xf0\x9e\xad\xb3-\xea\xa1\x81\xe3\x80\x82\xe1\xa9\xa9\xe0\xaf\x8d-", false); } // [B1, B2, B3, V3, V6, V7]
18163test { try toAsciiFail("\xf0\x9e\xad\xb3-\xea\xa1\x81\xe3\x80\x82\xe1\xa9\xa9\xe0\xaf\x8d-", true); } // [B1, B2, B3, V3, V6, V7]
726818164test { try toUnicodeFail("xn----be4e4276f.xn----lze333i"); } // [B1, B2, B3, V3, V6, V7]
18165test { try toAsciiFail("xn----be4e4276f.xn----lze333i", false); } // [B1, B2, B3, V3, V6, V7]
18166test { try toAsciiFail("xn----be4e4276f.xn----lze333i", true); } // [B1, B2, B3, V3, V6, V7]
726918167test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8e\xc3\x9f"); } // [V6, V7]
18168test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8e\xc3\x9f", false); } // [V6, V7]
18169test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8e\xc3\x9f", true); } // [V6, V7]
727018170test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.\xc3\x9f"); } // [V6, V7]
18171test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.\xc3\x9f", false); } // [V6, V7]
18172test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.\xc3\x9f", true); } // [V6, V7]
727118173test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.SS"); } // [V6, V7]
18174test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.SS", false); } // [V6, V7]
18175test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.SS", true); } // [V6, V7]
727218176test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.ss"); } // [V6, V7]
18177test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.ss", false); } // [V6, V7]
18178test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.ss", true); } // [V6, V7]
727318179test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.Ss"); } // [V6, V7]
18180test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.Ss", false); } // [V6, V7]
18181test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.Ss", true); } // [V6, V7]
727418182test { try toUnicodeFail("xn----9tg11172akr8b.ss"); } // [V6, V7]
18183test { try toAsciiFail("xn----9tg11172akr8b.ss", false); } // [V6, V7]
18184test { try toAsciiFail("xn----9tg11172akr8b.ss", true); } // [V6, V7]
727518185test { try toUnicodeFail("xn----9tg11172akr8b.xn--zca"); } // [V6, V7]
18186test { try toAsciiFail("xn----9tg11172akr8b.xn--zca", false); } // [V6, V7]
18187test { try toAsciiFail("xn----9tg11172akr8b.xn--zca", true); } // [V6, V7]
727618188test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSS"); } // [V6, V7]
18189test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSS", false); } // [V6, V7]
18190test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSS", true); } // [V6, V7]
727718191test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8ess"); } // [V6, V7]
18192test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8ess", false); } // [V6, V7]
18193test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8ess", true); } // [V6, V7]
727818194test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSs"); } // [V6, V7]
18195test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSs", false); } // [V6, V7]
18196test { try toAsciiFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSs", true); } // [V6, V7]
727918197test { try toUnicodeFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe1\x82\xbf\xe2\x80\x8c\xe2\x90\xa3"); } // [B3, B6, C1]
18198test { try toAsciiFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe1\x82\xbf\xe2\x80\x8c\xe2\x90\xa3", false); } // [B3, B6, C1]
18199test { try toAsciiFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe1\x82\xbf\xe2\x80\x8c\xe2\x90\xa3", true); } // [B3, B6, V3]
728018200test { try toUnicodeFail("\xd9\x80\xd9\x8e\xd9\x91-\xe2\x80\x8c\xe3\x80\x82\xe1\x82\xbf\xe2\x80\x8c\xe2\x90\xa3"); } // [B3, B6, C1]
18201test { try toAsciiFail("\xd9\x80\xd9\x8e\xd9\x91-\xe2\x80\x8c\xe3\x80\x82\xe1\x82\xbf\xe2\x80\x8c\xe2\x90\xa3", false); } // [B3, B6, C1]
18202test { try toAsciiFail("\xd9\x80\xd9\x8e\xd9\x91-\xe2\x80\x8c\xe3\x80\x82\xe1\x82\xbf\xe2\x80\x8c\xe2\x90\xa3", true); } // [B3, B6, V3]
728118203test { try toUnicodeFail("\xd9\x80\xd9\x8e\xd9\x91-\xe2\x80\x8c\xe3\x80\x82\xe2\xb4\x9f\xe2\x80\x8c\xe2\x90\xa3"); } // [B3, B6, C1]
18204test { try toAsciiFail("\xd9\x80\xd9\x8e\xd9\x91-\xe2\x80\x8c\xe3\x80\x82\xe2\xb4\x9f\xe2\x80\x8c\xe2\x90\xa3", false); } // [B3, B6, C1]
18205test { try toAsciiFail("\xd9\x80\xd9\x8e\xd9\x91-\xe2\x80\x8c\xe3\x80\x82\xe2\xb4\x9f\xe2\x80\x8c\xe2\x90\xa3", true); } // [B3, B6, V3]
728218206test { try toUnicodeFail("xn----eoc6bm.xn--xph904a"); } // [B3, B6, V3]
18207test { try toAsciiFail("xn----eoc6bm.xn--xph904a", false); } // [B3, B6, V3]
18208test { try toAsciiFail("xn----eoc6bm.xn--xph904a", true); } // [B3, B6, V3]
728318209test { try toUnicodeFail("xn----eoc6bm0504a.xn--0ug13nd0j"); } // [B3, B6, C1]
18210test { try toAsciiFail("xn----eoc6bm0504a.xn--0ug13nd0j", false); } // [B3, B6, C1]
18211test { try toAsciiFail("xn----eoc6bm0504a.xn--0ug13nd0j", true); } // [B3, B6, C1]
728418212test { try toUnicodeFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe2\xb4\x9f\xe2\x80\x8c\xe2\x90\xa3"); } // [B3, B6, C1]
18213test { try toAsciiFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe2\xb4\x9f\xe2\x80\x8c\xe2\x90\xa3", false); } // [B3, B6, C1]
18214test { try toAsciiFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe2\xb4\x9f\xe2\x80\x8c\xe2\x90\xa3", true); } // [B3, B6, V3]
728518215test { try toUnicodeFail("xn----eoc6bm.xn--3nd240h"); } // [B3, B6, V3, V7]
18216test { try toAsciiFail("xn----eoc6bm.xn--3nd240h", false); } // [B3, B6, V3, V7]
18217test { try toAsciiFail("xn----eoc6bm.xn--3nd240h", true); } // [B3, B6, V3, V7]
728618218test { try toUnicodeFail("xn----eoc6bm0504a.xn--3nd849e05c"); } // [B3, B6, C1, V7]
18219test { try toAsciiFail("xn----eoc6bm0504a.xn--3nd849e05c", false); } // [B3, B6, C1, V7]
18220test { try toAsciiFail("xn----eoc6bm0504a.xn--3nd849e05c", true); } // [B3, B6, C1, V7]
728718221test { try toUnicodeFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xef\xbd\xa1\xf1\xa5\x9e\xa7\xe2\x82\x85\xe2\x89\xa0"); } // [C1, C2, V6, V7]
18222test { try toAsciiFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xef\xbd\xa1\xf1\xa5\x9e\xa7\xe2\x82\x85\xe2\x89\xa0", false); } // [C1, C2, V6, V7]
18223test { try toAsciiFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xef\xbd\xa1\xf1\xa5\x9e\xa7\xe2\x82\x85\xe2\x89\xa0", true); } // [V3, V6, V7]
728818224test { try toUnicodeFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xef\xbd\xa1\xf1\xa5\x9e\xa7\xe2\x82\x85=\xcc\xb8"); } // [C1, C2, V6, V7]
18225test { try toAsciiFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xef\xbd\xa1\xf1\xa5\x9e\xa7\xe2\x82\x85=\xcc\xb8", false); } // [C1, C2, V6, V7]
18226test { try toAsciiFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xef\xbd\xa1\xf1\xa5\x9e\xa7\xe2\x82\x85=\xcc\xb8", true); } // [V3, V6, V7]
728918227test { try toUnicodeFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xf1\xa5\x9e\xa75\xe2\x89\xa0"); } // [C1, C2, V6, V7]
18228test { try toAsciiFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xf1\xa5\x9e\xa75\xe2\x89\xa0", false); } // [C1, C2, V6, V7]
18229test { try toAsciiFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xf1\xa5\x9e\xa75\xe2\x89\xa0", true); } // [V3, V6, V7]
729018230test { try toUnicodeFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xf1\xa5\x9e\xa75=\xcc\xb8"); } // [C1, C2, V6, V7]
18231test { try toAsciiFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xf1\xa5\x9e\xa75=\xcc\xb8", false); } // [C1, C2, V6, V7]
18232test { try toAsciiFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xf1\xa5\x9e\xa75=\xcc\xb8", true); } // [V3, V6, V7]
729118233test { try toUnicodeFail("xn----jmf.xn--5-ufo50192e"); } // [V3, V6, V7]
18234test { try toAsciiFail("xn----jmf.xn--5-ufo50192e", false); } // [V3, V6, V7]
18235test { try toAsciiFail("xn----jmf.xn--5-ufo50192e", true); } // [V3, V6, V7]
729218236test { try toUnicodeFail("xn----jmf215lda.xn--5-ufo50192e"); } // [C1, C2, V6, V7]
18237test { try toAsciiFail("xn----jmf215lda.xn--5-ufo50192e", false); } // [C1, C2, V6, V7]
18238test { try toAsciiFail("xn----jmf215lda.xn--5-ufo50192e", true); } // [C1, C2, V6, V7]
729318239test { try toUnicodeFail("\xe9\x94\xa3\xe3\x80\x82\xe0\xa9\x8d\xf3\xa0\x98\xbb\xf3\xa0\x9a\x86"); } // [V6, V7]
18240test { try toAsciiFail("\xe9\x94\xa3\xe3\x80\x82\xe0\xa9\x8d\xf3\xa0\x98\xbb\xf3\xa0\x9a\x86", false); } // [V6, V7]
18241test { try toAsciiFail("\xe9\x94\xa3\xe3\x80\x82\xe0\xa9\x8d\xf3\xa0\x98\xbb\xf3\xa0\x9a\x86", true); } // [V6, V7]
729418242test { try toUnicodeFail("xn--gc5a.xn--ybc83044ppga"); } // [V6, V7]
18243test { try toAsciiFail("xn--gc5a.xn--ybc83044ppga", false); } // [V6, V7]
18244test { try toAsciiFail("xn--gc5a.xn--ybc83044ppga", true); } // [V6, V7]
729518245test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe\xef\xbc\x8e\xd9\x89\xe2\x80\x8d\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }
729618246test { try toUnicodeFail("\xd8\xbd\xf0\x91\x88\xbe\xef\xbc\x8e\xd9\x89\xe2\x80\x8d\xea\xa4\xab"); } // [B3, C2]
18247test { try toAsciiFail("\xd8\xbd\xf0\x91\x88\xbe\xef\xbc\x8e\xd9\x89\xe2\x80\x8d\xea\xa4\xab", false); } // [B3, C2]
729718248test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xe2\x80\x8d\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }
729818249test { try toUnicodeFail("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xe2\x80\x8d\xea\xa4\xab"); } // [B3, C2]
18250test { try toAsciiFail("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xe2\x80\x8d\xea\xa4\xab", false); } // [B3, C2]
729918251test { try toUnicodePass("xn--8gb2338k.xn--lhb0154f", "\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab"); }
730018252test { try toAsciiPass("xn--8gb2338k.xn--lhb0154f", "xn--8gb2338k.xn--lhb0154f", false); }
730118253test { try toAsciiPass("xn--8gb2338k.xn--lhb0154f", "xn--8gb2338k.xn--lhb0154f", true); }
......@@ -7303,14 +18255,32 @@ test { try toUnicodePass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "\xd8\
730318255test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", false); }
730418256test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }
730518257test { try toUnicodeFail("xn--8gb2338k.xn--lhb603k060h"); } // [B3, C2]
18258test { try toAsciiFail("xn--8gb2338k.xn--lhb603k060h", false); } // [B3, C2]
18259test { try toAsciiFail("xn--8gb2338k.xn--lhb603k060h", true); } // [B3, C2]
730618260test { try toUnicodeFail("\xd9\xa6\xe2\x81\xb4\xe1\x82\xa5\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1]
18261test { try toAsciiFail("\xd9\xa6\xe2\x81\xb4\xe1\x82\xa5\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c", false); } // [B1, B3, C1]
18262test { try toAsciiFail("\xd9\xa6\xe2\x81\xb4\xe1\x82\xa5\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c", true); } // [B1]
730718263test { try toUnicodeFail("\xd9\xa64\xe1\x82\xa5.\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1]
18264test { try toAsciiFail("\xd9\xa64\xe1\x82\xa5.\xe0\xa2\xbd\xe2\x80\x8c", false); } // [B1, B3, C1]
18265test { try toAsciiFail("\xd9\xa64\xe1\x82\xa5.\xe0\xa2\xbd\xe2\x80\x8c", true); } // [B1]
730818266test { try toUnicodeFail("\xd9\xa64\xe2\xb4\x85.\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1]
18267test { try toAsciiFail("\xd9\xa64\xe2\xb4\x85.\xe0\xa2\xbd\xe2\x80\x8c", false); } // [B1, B3, C1]
18268test { try toAsciiFail("\xd9\xa64\xe2\xb4\x85.\xe0\xa2\xbd\xe2\x80\x8c", true); } // [B1]
730918269test { try toUnicodeFail("xn--4-kqc6770a.xn--jzb"); } // [B1]
18270test { try toAsciiFail("xn--4-kqc6770a.xn--jzb", false); } // [B1]
18271test { try toAsciiFail("xn--4-kqc6770a.xn--jzb", true); } // [B1]
731018272test { try toUnicodeFail("xn--4-kqc6770a.xn--jzb840j"); } // [B1, B3, C1]
18273test { try toAsciiFail("xn--4-kqc6770a.xn--jzb840j", false); } // [B1, B3, C1]
18274test { try toAsciiFail("xn--4-kqc6770a.xn--jzb840j", true); } // [B1, B3, C1]
731118275test { try toUnicodeFail("\xd9\xa6\xe2\x81\xb4\xe2\xb4\x85\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1]
18276test { try toAsciiFail("\xd9\xa6\xe2\x81\xb4\xe2\xb4\x85\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c", false); } // [B1, B3, C1]
18277test { try toAsciiFail("\xd9\xa6\xe2\x81\xb4\xe2\xb4\x85\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c", true); } // [B1]
731218278test { try toUnicodeFail("xn--4-kqc489e.xn--jzb"); } // [B1, V7]
18279test { try toAsciiFail("xn--4-kqc489e.xn--jzb", false); } // [B1, V7]
18280test { try toAsciiFail("xn--4-kqc489e.xn--jzb", true); } // [B1, V7]
731318281test { try toUnicodeFail("xn--4-kqc489e.xn--jzb840j"); } // [B1, B3, C1, V7]
18282test { try toAsciiFail("xn--4-kqc489e.xn--jzb840j", false); } // [B1, B3, C1, V7]
18283test { try toAsciiFail("xn--4-kqc489e.xn--jzb840j", true); } // [B1, B3, C1, V7]
731418284test { try toUnicodePass("\xe1\x83\x81\xe1\x82\xb16\xcc\x98\xe3\x80\x82\xc3\x9f\xe1\xac\x83", "\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83"); }
731518285test { try toAsciiPass("\xe1\x83\x81\xe1\x82\xb16\xcc\x98\xe3\x80\x82\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--zca894k", false); }
731618286test { try toAsciiPass("\xe1\x83\x81\xe1\x82\xb16\xcc\x98\xe3\x80\x82\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--ss-2vq", true); }
......@@ -7345,117 +18315,329 @@ test { try toUnicodePass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83
734518315test { try toAsciiPass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--zca894k", false); }
734618316test { try toAsciiPass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--ss-2vq", true); }
734718317test { try toUnicodeFail("xn--6-8cb306hms1a.xn--ss-2vq"); } // [V7]
18318test { try toAsciiFail("xn--6-8cb306hms1a.xn--ss-2vq", false); } // [V7]
18319test { try toAsciiFail("xn--6-8cb306hms1a.xn--ss-2vq", true); } // [V7]
734818320test { try toUnicodeFail("xn--6-8cb555h2b.xn--ss-2vq"); } // [V7]
18321test { try toAsciiFail("xn--6-8cb555h2b.xn--ss-2vq", false); } // [V7]
18322test { try toAsciiFail("xn--6-8cb555h2b.xn--ss-2vq", true); } // [V7]
734918323test { try toUnicodeFail("xn--6-8cb555h2b.xn--zca894k"); } // [V7]
18324test { try toAsciiFail("xn--6-8cb555h2b.xn--zca894k", false); } // [V7]
18325test { try toAsciiFail("xn--6-8cb555h2b.xn--zca894k", true); } // [V7]
735018326test { try toUnicodeFail("\xf2\x8b\xa1\x90\xef\xbd\xa1\xe2\x89\xaf\xf0\x91\x8b\xaa"); } // [V7]
18327test { try toAsciiFail("\xf2\x8b\xa1\x90\xef\xbd\xa1\xe2\x89\xaf\xf0\x91\x8b\xaa", false); } // [V7]
18328test { try toAsciiFail("\xf2\x8b\xa1\x90\xef\xbd\xa1\xe2\x89\xaf\xf0\x91\x8b\xaa", true); } // [V7]
735118329test { try toUnicodeFail("\xf2\x8b\xa1\x90\xef\xbd\xa1>\xcc\xb8\xf0\x91\x8b\xaa"); } // [V7]
18330test { try toAsciiFail("\xf2\x8b\xa1\x90\xef\xbd\xa1>\xcc\xb8\xf0\x91\x8b\xaa", false); } // [V7]
18331test { try toAsciiFail("\xf2\x8b\xa1\x90\xef\xbd\xa1>\xcc\xb8\xf0\x91\x8b\xaa", true); } // [V7]
735218332test { try toUnicodeFail("\xf2\x8b\xa1\x90\xe3\x80\x82\xe2\x89\xaf\xf0\x91\x8b\xaa"); } // [V7]
18333test { try toAsciiFail("\xf2\x8b\xa1\x90\xe3\x80\x82\xe2\x89\xaf\xf0\x91\x8b\xaa", false); } // [V7]
18334test { try toAsciiFail("\xf2\x8b\xa1\x90\xe3\x80\x82\xe2\x89\xaf\xf0\x91\x8b\xaa", true); } // [V7]
735318335test { try toUnicodeFail("\xf2\x8b\xa1\x90\xe3\x80\x82>\xcc\xb8\xf0\x91\x8b\xaa"); } // [V7]
18336test { try toAsciiFail("\xf2\x8b\xa1\x90\xe3\x80\x82>\xcc\xb8\xf0\x91\x8b\xaa", false); } // [V7]
18337test { try toAsciiFail("\xf2\x8b\xa1\x90\xe3\x80\x82>\xcc\xb8\xf0\x91\x8b\xaa", true); } // [V7]
735418338test { try toUnicodeFail("xn--eo08b.xn--hdh3385g"); } // [V7]
18339test { try toAsciiFail("xn--eo08b.xn--hdh3385g", false); } // [V7]
18340test { try toAsciiFail("xn--eo08b.xn--hdh3385g", true); } // [V7]
735518341test { try toUnicodeFail("\xd9\x9a\xdb\xb2\xe3\x80\x82\xe2\x80\x8c-\xe1\xaf\xb3\xe0\xa3\xa2"); } // [B1, C1, V6, V7]
18342test { try toAsciiFail("\xd9\x9a\xdb\xb2\xe3\x80\x82\xe2\x80\x8c-\xe1\xaf\xb3\xe0\xa3\xa2", false); } // [B1, C1, V6, V7]
18343test { try toAsciiFail("\xd9\x9a\xdb\xb2\xe3\x80\x82\xe2\x80\x8c-\xe1\xaf\xb3\xe0\xa3\xa2", true); } // [B1, V3, V6, V7]
735618344test { try toUnicodeFail("xn--2hb81a.xn----xrd657l"); } // [B1, V3, V6, V7]
18345test { try toAsciiFail("xn--2hb81a.xn----xrd657l", false); } // [B1, V3, V6, V7]
18346test { try toAsciiFail("xn--2hb81a.xn----xrd657l", true); } // [B1, V3, V6, V7]
735718347test { try toUnicodeFail("xn--2hb81a.xn----xrd657l30d"); } // [B1, C1, V6, V7]
18348test { try toAsciiFail("xn--2hb81a.xn----xrd657l30d", false); } // [B1, C1, V6, V7]
18349test { try toAsciiFail("xn--2hb81a.xn----xrd657l30d", true); } // [B1, C1, V6, V7]
735818350test { try toUnicodeFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xef\xbd\xa1\xef\xbe\xa0"); } // [V6, V7]
18351test { try toAsciiFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xef\xbd\xa1\xef\xbe\xa0", false); } // [V6, V7, A4_2]
18352test { try toAsciiFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xef\xbd\xa1\xef\xbe\xa0", true); } // [V6, V7, A4_2]
735918353test { try toUnicodeFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xe3\x80\x82\xe1\x85\xa0"); } // [V6, V7]
18354test { try toAsciiFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xe3\x80\x82\xe1\x85\xa0", false); } // [V6, V7, A4_2]
18355test { try toAsciiFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xe3\x80\x82\xe1\x85\xa0", true); } // [V6, V7, A4_2]
736018356test { try toUnicodeFail("xn--619ep9154c."); } // [V6, V7]
18357test { try toAsciiFail("xn--619ep9154c.", false); } // [V6, V7, A4_2]
18358test { try toAsciiFail("xn--619ep9154c.", true); } // [V6, V7, A4_2]
736118359test { try toUnicodeFail("xn--619ep9154c.xn--psd"); } // [V6, V7]
18360test { try toAsciiFail("xn--619ep9154c.xn--psd", false); } // [V6, V7]
18361test { try toAsciiFail("xn--619ep9154c.xn--psd", true); } // [V6, V7]
736218362test { try toUnicodeFail("xn--619ep9154c.xn--cl7c"); } // [V6, V7]
18363test { try toAsciiFail("xn--619ep9154c.xn--cl7c", false); } // [V6, V7]
18364test { try toAsciiFail("xn--619ep9154c.xn--cl7c", true); } // [V6, V7]
736318365test { try toUnicodeFail("\xc3\x9f\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf"); } // [B5, V7]
18366test { try toAsciiFail("\xc3\x9f\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", false); } // [B5, V7]
18367test { try toAsciiFail("\xc3\x9f\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", true); } // [B5, V7]
736418368test { try toUnicodeFail("\xc3\x9f1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf"); } // [B2, B3, B5, V7]
18369test { try toAsciiFail("\xc3\x9f1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", false); } // [B2, B3, B5, V7]
18370test { try toAsciiFail("\xc3\x9f1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", true); } // [B2, B3, B5, V7]
736518371test { try toUnicodeFail("SS1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf"); } // [B2, B3, B5, V7]
18372test { try toAsciiFail("SS1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", false); } // [B2, B3, B5, V7]
18373test { try toAsciiFail("SS1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", true); } // [B2, B3, B5, V7]
736618374test { try toUnicodeFail("ss1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf"); } // [B2, B3, B5, V7]
18375test { try toAsciiFail("ss1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", false); } // [B2, B3, B5, V7]
18376test { try toAsciiFail("ss1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", true); } // [B2, B3, B5, V7]
736718377test { try toUnicodeFail("Ss1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf"); } // [B2, B3, B5, V7]
18378test { try toAsciiFail("Ss1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", false); } // [B2, B3, B5, V7]
18379test { try toAsciiFail("Ss1.\xdd\xa0\xed\x9e\xae.\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", true); } // [B2, B3, B5, V7]
736818380test { try toUnicodeFail("ss1.xn--kpb6677h.xn--nfb09923ifkyyb"); } // [B2, B3, B5, V7]
18381test { try toAsciiFail("ss1.xn--kpb6677h.xn--nfb09923ifkyyb", false); } // [B2, B3, B5, V7]
18382test { try toAsciiFail("ss1.xn--kpb6677h.xn--nfb09923ifkyyb", true); } // [B2, B3, B5, V7]
736918383test { try toUnicodeFail("xn--1-pfa.xn--kpb6677h.xn--nfb09923ifkyyb"); } // [B2, B3, B5, V7]
18384test { try toAsciiFail("xn--1-pfa.xn--kpb6677h.xn--nfb09923ifkyyb", false); } // [B2, B3, B5, V7]
18385test { try toAsciiFail("xn--1-pfa.xn--kpb6677h.xn--nfb09923ifkyyb", true); } // [B2, B3, B5, V7]
737018386test { try toUnicodeFail("SS\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf"); } // [B5, V7]
18387test { try toAsciiFail("SS\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", false); } // [B5, V7]
18388test { try toAsciiFail("SS\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", true); } // [B5, V7]
737118389test { try toUnicodeFail("ss\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf"); } // [B5, V7]
18390test { try toAsciiFail("ss\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", false); } // [B5, V7]
18391test { try toAsciiFail("ss\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", true); } // [B5, V7]
737218392test { try toUnicodeFail("Ss\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf"); } // [B5, V7]
18393test { try toAsciiFail("Ss\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", false); } // [B5, V7]
18394test { try toAsciiFail("Ss\xe2\x92\x88\xdd\xa0\xed\x9e\xae\xef\xbc\x8e\xf4\x89\x96\xb2\xf3\xa0\x85\x84\xd8\x85\xf2\x89\x94\xaf", true); } // [B5, V7]
737318395test { try toUnicodeFail("xn--ss-6ke9690a0g1q.xn--nfb09923ifkyyb"); } // [B5, V7]
18396test { try toAsciiFail("xn--ss-6ke9690a0g1q.xn--nfb09923ifkyyb", false); } // [B5, V7]
18397test { try toAsciiFail("xn--ss-6ke9690a0g1q.xn--nfb09923ifkyyb", true); } // [B5, V7]
737418398test { try toUnicodeFail("xn--zca444a0s1ao12n.xn--nfb09923ifkyyb"); } // [B5, V7]
18399test { try toAsciiFail("xn--zca444a0s1ao12n.xn--nfb09923ifkyyb", false); } // [B5, V7]
18400test { try toAsciiFail("xn--zca444a0s1ao12n.xn--nfb09923ifkyyb", true); } // [B5, V7]
737518401test { try toUnicodeFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb1\xe2\x82\x82"); } // [V7]
18402test { try toAsciiFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb1\xe2\x82\x82", false); } // [V7]
18403test { try toAsciiFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb1\xe2\x82\x82", true); } // [V7]
737618404test { try toUnicodeFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb12"); } // [V7]
18405test { try toAsciiFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb12", false); } // [V7]
18406test { try toAsciiFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb12", true); } // [V7]
737718407test { try toUnicodeFail("xn--vi56e.xn--2-w91i"); } // [V7]
18408test { try toAsciiFail("xn--vi56e.xn--2-w91i", false); } // [V7]
18409test { try toAsciiFail("xn--vi56e.xn--2-w91i", true); } // [V7]
737818410test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-\xc3\x9f\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3]
18411test { try toAsciiFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-\xc3\x9f\xda\xa5\xe2\x80\x8c", false); } // [B1, C1, V3]
18412test { try toAsciiFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-\xc3\x9f\xda\xa5\xe2\x80\x8c", true); } // [B1, V3]
737918413test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-SS\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3]
18414test { try toAsciiFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-SS\xda\xa5\xe2\x80\x8c", false); } // [B1, C1, V3]
18415test { try toAsciiFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-SS\xda\xa5\xe2\x80\x8c", true); } // [B1, V3]
738018416test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-ss\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3]
18417test { try toAsciiFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-ss\xda\xa5\xe2\x80\x8c", false); } // [B1, C1, V3]
18418test { try toAsciiFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-ss\xda\xa5\xe2\x80\x8c", true); } // [B1, V3]
738118419test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-Ss\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3]
18420test { try toAsciiFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-Ss\xda\xa5\xe2\x80\x8c", false); } // [B1, C1, V3]
18421test { try toAsciiFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-Ss\xda\xa5\xe2\x80\x8c", true); } // [B1, V3]
738218422test { try toUnicodeFail("xn--gnb63i.xn---ss-4ef"); } // [B1, V3]
18423test { try toAsciiFail("xn--gnb63i.xn---ss-4ef", false); } // [B1, V3]
18424test { try toAsciiFail("xn--gnb63i.xn---ss-4ef", true); } // [B1, V3]
738318425test { try toUnicodeFail("xn--gnb63i.xn---ss-4ef9263a"); } // [B1, C1, V3]
18426test { try toAsciiFail("xn--gnb63i.xn---ss-4ef9263a", false); } // [B1, C1, V3]
18427test { try toAsciiFail("xn--gnb63i.xn---ss-4ef9263a", true); } // [B1, C1, V3]
738418428test { try toUnicodeFail("xn--gnb63i.xn----qfa845bhx4a"); } // [B1, C1, V3]
18429test { try toAsciiFail("xn--gnb63i.xn----qfa845bhx4a", false); } // [B1, C1, V3]
18430test { try toAsciiFail("xn--gnb63i.xn----qfa845bhx4a", true); } // [B1, C1, V3]
738518431test { try toUnicodeFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88\xef\xbc\x8e\xe1\xb3\x95\xe4\xb7\x89\xe1\x83\x81"); } // [B1, C2, V6, V7]
18432test { try toAsciiFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88\xef\xbc\x8e\xe1\xb3\x95\xe4\xb7\x89\xe1\x83\x81", false); } // [B1, C2, V6, V7]
18433test { try toAsciiFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88\xef\xbc\x8e\xe1\xb3\x95\xe4\xb7\x89\xe1\x83\x81", true); } // [B1, V6, V7]
738618434test { try toUnicodeFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88.\xe1\xb3\x95\xe4\xb7\x89\xe1\x83\x81"); } // [B1, C2, V6, V7]
18435test { try toAsciiFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88.\xe1\xb3\x95\xe4\xb7\x89\xe1\x83\x81", false); } // [B1, C2, V6, V7]
18436test { try toAsciiFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88.\xe1\xb3\x95\xe4\xb7\x89\xe1\x83\x81", true); } // [B1, V6, V7]
738718437test { try toUnicodeFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88.\xe1\xb3\x95\xe4\xb7\x89\xe2\xb4\xa1"); } // [B1, C2, V6, V7]
18438test { try toAsciiFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88.\xe1\xb3\x95\xe4\xb7\x89\xe2\xb4\xa1", false); } // [B1, C2, V6, V7]
18439test { try toAsciiFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88.\xe1\xb3\x95\xe4\xb7\x89\xe2\xb4\xa1", true); } // [B1, V6, V7]
738818440test { try toUnicodeFail("xn--pgb911izv33i.xn--i6f270etuy"); } // [B1, V6, V7]
18441test { try toAsciiFail("xn--pgb911izv33i.xn--i6f270etuy", false); } // [B1, V6, V7]
18442test { try toAsciiFail("xn--pgb911izv33i.xn--i6f270etuy", true); } // [B1, V6, V7]
738918443test { try toUnicodeFail("xn--pgb911imgdrw34r.xn--i6f270etuy"); } // [B1, C2, V6, V7]
18444test { try toAsciiFail("xn--pgb911imgdrw34r.xn--i6f270etuy", false); } // [B1, C2, V6, V7]
18445test { try toAsciiFail("xn--pgb911imgdrw34r.xn--i6f270etuy", true); } // [B1, C2, V6, V7]
739018446test { try toUnicodeFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88\xef\xbc\x8e\xe1\xb3\x95\xe4\xb7\x89\xe2\xb4\xa1"); } // [B1, C2, V6, V7]
18447test { try toAsciiFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88\xef\xbc\x8e\xe1\xb3\x95\xe4\xb7\x89\xe2\xb4\xa1", false); } // [B1, C2, V6, V7]
18448test { try toAsciiFail("\xe1\xae\xa9\xe2\x80\x8d\xd8\xaa\xf1\xa1\x9a\x88\xef\xbc\x8e\xe1\xb3\x95\xe4\xb7\x89\xe2\xb4\xa1", true); } // [B1, V6, V7]
739118449test { try toUnicodeFail("xn--pgb911izv33i.xn--5nd792dgv3b"); } // [B1, V6, V7]
18450test { try toAsciiFail("xn--pgb911izv33i.xn--5nd792dgv3b", false); } // [B1, V6, V7]
18451test { try toAsciiFail("xn--pgb911izv33i.xn--5nd792dgv3b", true); } // [B1, V6, V7]
739218452test { try toUnicodeFail("xn--pgb911imgdrw34r.xn--5nd792dgv3b"); } // [B1, C2, V6, V7]
18453test { try toAsciiFail("xn--pgb911imgdrw34r.xn--5nd792dgv3b", false); } // [B1, C2, V6, V7]
18454test { try toAsciiFail("xn--pgb911imgdrw34r.xn--5nd792dgv3b", true); } // [B1, C2, V6, V7]
739318455test { try toUnicodeFail("\xe2\xb6\xbf.\xc3\x9f\xe2\x80\x8d"); } // [C2, V7]
18456test { try toAsciiFail("\xe2\xb6\xbf.\xc3\x9f\xe2\x80\x8d", false); } // [C2, V7]
18457test { try toAsciiFail("\xe2\xb6\xbf.\xc3\x9f\xe2\x80\x8d", true); } // [V7]
739418458test { try toUnicodeFail("\xe2\xb6\xbf.SS\xe2\x80\x8d"); } // [C2, V7]
18459test { try toAsciiFail("\xe2\xb6\xbf.SS\xe2\x80\x8d", false); } // [C2, V7]
18460test { try toAsciiFail("\xe2\xb6\xbf.SS\xe2\x80\x8d", true); } // [V7]
739518461test { try toUnicodeFail("\xe2\xb6\xbf.ss\xe2\x80\x8d"); } // [C2, V7]
18462test { try toAsciiFail("\xe2\xb6\xbf.ss\xe2\x80\x8d", false); } // [C2, V7]
18463test { try toAsciiFail("\xe2\xb6\xbf.ss\xe2\x80\x8d", true); } // [V7]
739618464test { try toUnicodeFail("\xe2\xb6\xbf.Ss\xe2\x80\x8d"); } // [C2, V7]
18465test { try toAsciiFail("\xe2\xb6\xbf.Ss\xe2\x80\x8d", false); } // [C2, V7]
18466test { try toAsciiFail("\xe2\xb6\xbf.Ss\xe2\x80\x8d", true); } // [V7]
739718467test { try toUnicodeFail("xn--7pj.ss"); } // [V7]
18468test { try toAsciiFail("xn--7pj.ss", false); } // [V7]
18469test { try toAsciiFail("xn--7pj.ss", true); } // [V7]
739818470test { try toUnicodeFail("xn--7pj.xn--ss-n1t"); } // [C2, V7]
18471test { try toAsciiFail("xn--7pj.xn--ss-n1t", false); } // [C2, V7]
18472test { try toAsciiFail("xn--7pj.xn--ss-n1t", true); } // [C2, V7]
739918473test { try toUnicodeFail("xn--7pj.xn--zca870n"); } // [C2, V7]
18474test { try toAsciiFail("xn--7pj.xn--zca870n", false); } // [C2, V7]
18475test { try toAsciiFail("xn--7pj.xn--zca870n", true); } // [C2, V7]
740018476test { try toUnicodeFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82"); } // [B2, B3, B6, V6, V7]
18477test { try toAsciiFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82", false); } // [B2, B3, B6, V6, V7]
18478test { try toAsciiFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82", true); } // [B2, B3, B6, V6, V7]
740118479test { try toUnicodeFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa>\xcc\xb8\xea\xa1\x82"); } // [B2, B3, B6, V6, V7]
18480test { try toAsciiFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa>\xcc\xb8\xea\xa1\x82", false); } // [B2, B3, B6, V6, V7]
18481test { try toAsciiFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa>\xcc\xb8\xea\xa1\x82", true); } // [B2, B3, B6, V6, V7]
740218482test { try toUnicodeFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82"); } // [B2, B3, V6, X4_2]
18483test { try toAsciiFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82", false); } // [B2, B3, V6, A4_2]
18484test { try toAsciiFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82", true); } // [B2, B3, V6, A4_2]
740318485test { try toUnicodeFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa>\xcc\xb8\xea\xa1\x82"); } // [B2, B3, V6, X4_2]
18486test { try toAsciiFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa>\xcc\xb8\xea\xa1\x82", false); } // [B2, B3, V6, A4_2]
18487test { try toAsciiFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa>\xcc\xb8\xea\xa1\x82", true); } // [B2, B3, V6, A4_2]
740418488test { try toUnicodeFail("xn--1zf..xn--pgb885lry5g"); } // [B2, B3, V6, X4_2]
18489test { try toAsciiFail("xn--1zf..xn--pgb885lry5g", false); } // [B2, B3, V6, A4_2]
18490test { try toAsciiFail("xn--1zf..xn--pgb885lry5g", true); } // [B2, B3, V6, A4_2]
740518491test { try toUnicodeFail("xn--1zf8957g.xn--pgb885lry5g"); } // [B2, B3, B6, V6, V7]
18492test { try toAsciiFail("xn--1zf8957g.xn--pgb885lry5g", false); } // [B2, B3, B6, V6, V7]
18493test { try toAsciiFail("xn--1zf8957g.xn--pgb885lry5g", true); } // [B2, B3, B6, V6, V7]
740618494test { try toUnicodeFail("\xe2\x89\xae\xe2\x89\xa0\xf1\x8f\xbb\x83\xef\xbd\xa1-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa"); } // [B1, V3, V7]
18495test { try toAsciiFail("\xe2\x89\xae\xe2\x89\xa0\xf1\x8f\xbb\x83\xef\xbd\xa1-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa", false); } // [B1, V3, V7]
18496test { try toAsciiFail("\xe2\x89\xae\xe2\x89\xa0\xf1\x8f\xbb\x83\xef\xbd\xa1-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa", true); } // [B1, V3, V7]
740718497test { try toUnicodeFail("<\xcc\xb8=\xcc\xb8\xf1\x8f\xbb\x83\xef\xbd\xa1-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa"); } // [B1, V3, V7]
18498test { try toAsciiFail("<\xcc\xb8=\xcc\xb8\xf1\x8f\xbb\x83\xef\xbd\xa1-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa", false); } // [B1, V3, V7]
18499test { try toAsciiFail("<\xcc\xb8=\xcc\xb8\xf1\x8f\xbb\x83\xef\xbd\xa1-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa", true); } // [B1, V3, V7]
740818500test { try toUnicodeFail("\xe2\x89\xae\xe2\x89\xa0\xf1\x8f\xbb\x83\xe3\x80\x82-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa"); } // [B1, V3, V7]
18501test { try toAsciiFail("\xe2\x89\xae\xe2\x89\xa0\xf1\x8f\xbb\x83\xe3\x80\x82-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa", false); } // [B1, V3, V7]
18502test { try toAsciiFail("\xe2\x89\xae\xe2\x89\xa0\xf1\x8f\xbb\x83\xe3\x80\x82-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa", true); } // [B1, V3, V7]
740918503test { try toUnicodeFail("<\xcc\xb8=\xcc\xb8\xf1\x8f\xbb\x83\xe3\x80\x82-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa"); } // [B1, V3, V7]
18504test { try toAsciiFail("<\xcc\xb8=\xcc\xb8\xf1\x8f\xbb\x83\xe3\x80\x82-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa", false); } // [B1, V3, V7]
18505test { try toAsciiFail("<\xcc\xb8=\xcc\xb8\xf1\x8f\xbb\x83\xe3\x80\x82-\xf0\xab\xa0\x86\xda\xb7\xf0\x90\xb9\xaa", true); } // [B1, V3, V7]
741018506test { try toUnicodeFail("xn--1ch1a29470f.xn----7uc5363rc1rn"); } // [B1, V3, V7]
18507test { try toAsciiFail("xn--1ch1a29470f.xn----7uc5363rc1rn", false); } // [B1, V3, V7]
18508test { try toAsciiFail("xn--1ch1a29470f.xn----7uc5363rc1rn", true); } // [B1, V3, V7]
741118509test { try toUnicodeFail("\xf0\x90\xb9\xa1\xdd\xb7\xe3\x80\x82\xea\xa1\x82"); } // [B1]
18510test { try toAsciiFail("\xf0\x90\xb9\xa1\xdd\xb7\xe3\x80\x82\xea\xa1\x82", false); } // [B1]
18511test { try toAsciiFail("\xf0\x90\xb9\xa1\xdd\xb7\xe3\x80\x82\xea\xa1\x82", true); } // [B1]
741218512test { try toUnicodeFail("xn--7pb5275k.xn--bc9a"); } // [B1]
18513test { try toAsciiFail("xn--7pb5275k.xn--bc9a", false); } // [B1]
18514test { try toAsciiFail("xn--7pb5275k.xn--bc9a", true); } // [B1]
741318515test { try toUnicodeFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.\xc3\x9f\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5"); } // [B5, B6, V7]
18516test { try toAsciiFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.\xc3\x9f\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", false); } // [B5, B6, V7]
18517test { try toAsciiFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.\xc3\x9f\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", true); } // [B5, B6, V7]
741418518test { try toUnicodeFail("\xe2\xb4\x89\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.\xc3\x9f\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5"); } // [B5, B6, V7]
18519test { try toAsciiFail("\xe2\xb4\x89\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.\xc3\x9f\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", false); } // [B5, B6, V7]
18520test { try toAsciiFail("\xe2\xb4\x89\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.\xc3\x9f\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", true); } // [B5, B6, V7]
741518521test { try toUnicodeFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.SS\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5"); } // [B5, B6, V7]
18522test { try toAsciiFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.SS\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", false); } // [B5, B6, V7]
18523test { try toAsciiFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.SS\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", true); } // [B5, B6, V7]
741618524test { try toUnicodeFail("\xe2\xb4\x89\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.ss\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5"); } // [B5, B6, V7]
18525test { try toAsciiFail("\xe2\xb4\x89\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.ss\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", false); } // [B5, B6, V7]
18526test { try toAsciiFail("\xe2\xb4\x89\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.ss\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", true); } // [B5, B6, V7]
741718527test { try toUnicodeFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.Ss\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5"); } // [B5, B6, V7]
18528test { try toAsciiFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.Ss\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", false); } // [B5, B6, V7]
18529test { try toAsciiFail("\xe1\x82\xa9\xf0\x9d\x86\x85\xf1\x94\xbb\x85\xd8\x99.Ss\xf0\x90\xa7\xa6\xf0\x90\xb9\xb3\xdd\xb5", true); } // [B5, B6, V7]
741818530test { try toUnicodeFail("xn--7fb940rwt3z7xvz.xn--ss-zme7575xp0e"); } // [B5, B6, V7]
18531test { try toAsciiFail("xn--7fb940rwt3z7xvz.xn--ss-zme7575xp0e", false); } // [B5, B6, V7]
18532test { try toAsciiFail("xn--7fb940rwt3z7xvz.xn--ss-zme7575xp0e", true); } // [B5, B6, V7]
741918533test { try toUnicodeFail("xn--7fb940rwt3z7xvz.xn--zca684a699vf2d"); } // [B5, B6, V7]
18534test { try toAsciiFail("xn--7fb940rwt3z7xvz.xn--zca684a699vf2d", false); } // [B5, B6, V7]
18535test { try toAsciiFail("xn--7fb940rwt3z7xvz.xn--zca684a699vf2d", true); } // [B5, B6, V7]
742018536test { try toUnicodeFail("xn--7fb125cjv87a7xvz.xn--ss-zme7575xp0e"); } // [B5, B6, V7]
18537test { try toAsciiFail("xn--7fb125cjv87a7xvz.xn--ss-zme7575xp0e", false); } // [B5, B6, V7]
18538test { try toAsciiFail("xn--7fb125cjv87a7xvz.xn--ss-zme7575xp0e", true); } // [B5, B6, V7]
742118539test { try toUnicodeFail("xn--7fb125cjv87a7xvz.xn--zca684a699vf2d"); } // [B5, B6, V7]
18540test { try toAsciiFail("xn--7fb125cjv87a7xvz.xn--zca684a699vf2d", false); } // [B5, B6, V7]
18541test { try toAsciiFail("xn--7fb125cjv87a7xvz.xn--zca684a699vf2d", true); } // [B5, B6, V7]
742218542test { try toUnicodeFail("\xe2\x80\x8d\xd9\x83\xf0\x90\xa7\xbe\xe2\x86\x99.\xf1\x8a\xbd\xa1"); } // [B1, C2, V7]
18543test { try toAsciiFail("\xe2\x80\x8d\xd9\x83\xf0\x90\xa7\xbe\xe2\x86\x99.\xf1\x8a\xbd\xa1", false); } // [B1, C2, V7]
18544test { try toAsciiFail("\xe2\x80\x8d\xd9\x83\xf0\x90\xa7\xbe\xe2\x86\x99.\xf1\x8a\xbd\xa1", true); } // [B3, V7]
742318545test { try toUnicodeFail("xn--fhb011lnp8n.xn--7s4w"); } // [B3, V7]
18546test { try toAsciiFail("xn--fhb011lnp8n.xn--7s4w", false); } // [B3, V7]
18547test { try toAsciiFail("xn--fhb011lnp8n.xn--7s4w", true); } // [B3, V7]
742418548test { try toUnicodeFail("xn--fhb713k87ag053c.xn--7s4w"); } // [B1, C2, V7]
18549test { try toAsciiFail("xn--fhb713k87ag053c.xn--7s4w", false); } // [B1, C2, V7]
18550test { try toAsciiFail("xn--fhb713k87ag053c.xn--7s4w", true); } // [B1, C2, V7]
742518551test { try toUnicodeFail("\xe6\xa2\x89\xe3\x80\x82\xe2\x80\x8c"); } // [C1]
18552test { try toAsciiFail("\xe6\xa2\x89\xe3\x80\x82\xe2\x80\x8c", false); } // [C1]
18553test { try toAsciiFail("\xe6\xa2\x89\xe3\x80\x82\xe2\x80\x8c", true); } // [A4_2]
742618554test { try toUnicodePass("xn--7zv.", "\xe6\xa2\x89."); }
18555test { try toAsciiFail("xn--7zv.", false); } // [A4_2]
18556test { try toAsciiFail("xn--7zv.", true); } // [A4_2]
742718557test { try toUnicodePass("\xe6\xa2\x89.", "\xe6\xa2\x89."); }
18558test { try toAsciiFail("\xe6\xa2\x89.", false); } // [A4_2]
18559test { try toAsciiFail("\xe6\xa2\x89.", true); } // [A4_2]
742818560test { try toUnicodeFail("xn--7zv.xn--0ug"); } // [C1]
18561test { try toAsciiFail("xn--7zv.xn--0ug", false); } // [C1]
18562test { try toAsciiFail("xn--7zv.xn--0ug", true); } // [C1]
742918563test { try toUnicodeFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x83"); } // [B1, B6, C2]
18564test { try toAsciiFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x83", false); } // [B1, B6, C2]
18565test { try toAsciiFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x83", true); } // [B2, B3, B6]
743018566test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x83"); } // [B1, B6, C2]
18567test { try toAsciiFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x83", false); } // [B1, B6, C2]
18568test { try toAsciiFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x83", true); } // [B2, B3, B6]
743118569test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\xb9\xf0\x90\x85\xa2\xe2\x86\x84"); } // [B1, B6, C2]
18570test { try toAsciiFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\xb9\xf0\x90\x85\xa2\xe2\x86\x84", false); } // [B1, B6, C2]
18571test { try toAsciiFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\xb9\xf0\x90\x85\xa2\xe2\x86\x84", true); } // [B2, B3, B6]
743218572test { try toUnicodeFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\xb9\xf0\x90\x85\xa2\xe2\x86\x84"); } // [B1, B6, C2]
18573test { try toAsciiFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\xb9\xf0\x90\x85\xa2\xe2\x86\x84", false); } // [B1, B6, C2]
18574test { try toAsciiFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\xb9\xf0\x90\x85\xa2\xe2\x86\x84", true); } // [B2, B3, B6]
743318575test { try toUnicodeFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x84"); } // [B1, B6, C2]
18576test { try toAsciiFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x84", false); } // [B1, B6, C2]
18577test { try toAsciiFail("\xea\xa1\xa3-\xe2\x89\xa0.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x84", true); } // [B2, B3, B6]
743418578test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x84"); } // [B1, B6, C2]
18579test { try toAsciiFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x84", false); } // [B1, B6, C2]
18580test { try toAsciiFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x84", true); } // [B2, B3, B6]
743518581test { try toUnicodeFail("xn----ufo9661d.xn--r5gy929fhm4f"); } // [B2, B3, B6]
18582test { try toAsciiFail("xn----ufo9661d.xn--r5gy929fhm4f", false); } // [B2, B3, B6]
18583test { try toAsciiFail("xn----ufo9661d.xn--r5gy929fhm4f", true); } // [B2, B3, B6]
743618584test { try toUnicodeFail("xn----ufo9661d.xn--1ug99cj620c71sh"); } // [B1, B6, C2]
18585test { try toAsciiFail("xn----ufo9661d.xn--1ug99cj620c71sh", false); } // [B1, B6, C2]
18586test { try toAsciiFail("xn----ufo9661d.xn--1ug99cj620c71sh", true); } // [B1, B6, C2]
743718587test { try toUnicodeFail("xn----ufo9661d.xn--q5g0929fhm4f"); } // [B2, B3, B6, V7]
18588test { try toAsciiFail("xn----ufo9661d.xn--q5g0929fhm4f", false); } // [B2, B3, B6, V7]
18589test { try toAsciiFail("xn----ufo9661d.xn--q5g0929fhm4f", true); } // [B2, B3, B6, V7]
743818590test { try toUnicodeFail("xn----ufo9661d.xn--1ug79cm620c71sh"); } // [B1, B6, C2, V7]
18591test { try toAsciiFail("xn----ufo9661d.xn--1ug79cm620c71sh", false); } // [B1, B6, C2, V7]
18592test { try toAsciiFail("xn----ufo9661d.xn--1ug79cm620c71sh", true); } // [B1, B6, C2, V7]
743918593test { try toUnicodeFail("\xcf\x82\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3"); } // [B6, V7, U1]
18594test { try toAsciiFail("\xcf\x82\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3", false); } // [B6, V7, U1]
18595test { try toAsciiFail("\xcf\x82\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3", true); } // [B6, V7, U1]
744018596test { try toUnicodeFail("\xcf\x829.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1]
18597test { try toAsciiFail("\xcf\x829.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7", false); } // [B1, V6, V7, U1]
18598test { try toAsciiFail("\xcf\x829.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7", true); } // [B1, V6, V7, U1]
744118599test { try toUnicodeFail("\xce\xa39.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1]
18600test { try toAsciiFail("\xce\xa39.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7", false); } // [B1, V6, V7, U1]
18601test { try toAsciiFail("\xce\xa39.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7", true); } // [B1, V6, V7, U1]
744218602test { try toUnicodeFail("\xcf\x839.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1]
18603test { try toAsciiFail("\xcf\x839.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7", false); } // [B1, V6, V7, U1]
18604test { try toAsciiFail("\xcf\x839.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7", true); } // [B1, V6, V7, U1]
744318605test { try toUnicodeFail("xn--9-zmb.xn--ltj1535k.xn--9,7-r67t"); } // [B1, V6, V7, U1]
18606test { try toAsciiFail("xn--9-zmb.xn--ltj1535k.xn--9,7-r67t", false); } // [B1, V6, V7, U1]
18607test { try toAsciiFail("xn--9-zmb.xn--ltj1535k.xn--9,7-r67t", true); } // [B1, V6, V7, U1]
744418608test { try toUnicodeFail("xn--9-xmb.xn--ltj1535k.xn--9,7-r67t"); } // [B1, V6, V7, U1]
18609test { try toAsciiFail("xn--9-xmb.xn--ltj1535k.xn--9,7-r67t", false); } // [B1, V6, V7, U1]
18610test { try toAsciiFail("xn--9-xmb.xn--ltj1535k.xn--9,7-r67t", true); } // [B1, V6, V7, U1]
744518611test { try toUnicodeFail("\xce\xa3\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3"); } // [B6, V7, U1]
18612test { try toAsciiFail("\xce\xa3\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3", false); } // [B6, V7, U1]
18613test { try toAsciiFail("\xce\xa3\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3", true); } // [B6, V7, U1]
744618614test { try toUnicodeFail("\xcf\x83\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3"); } // [B6, V7, U1]
18615test { try toAsciiFail("\xcf\x83\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3", false); } // [B6, V7, U1]
18616test { try toAsciiFail("\xcf\x83\xe2\x92\x90\xf0\x9d\x86\xab\xe2\xb8\xb5\xef\xbd\xa1\xf0\x90\xb1\xa2\xf0\x9f\x84\x8a\xf0\x9d\x9f\xb3", true); } // [B6, V7, U1]
744718617test { try toUnicodeFail("xn--4xa809nwtghi25b.xn--9,7-r67t"); } // [B6, V7, U1]
18618test { try toAsciiFail("xn--4xa809nwtghi25b.xn--9,7-r67t", false); } // [B6, V7, U1]
18619test { try toAsciiFail("xn--4xa809nwtghi25b.xn--9,7-r67t", true); } // [B6, V7, U1]
744818620test { try toUnicodeFail("xn--3xa019nwtghi25b.xn--9,7-r67t"); } // [B6, V7, U1]
18621test { try toAsciiFail("xn--3xa019nwtghi25b.xn--9,7-r67t", false); } // [B6, V7, U1]
18622test { try toAsciiFail("xn--3xa019nwtghi25b.xn--9,7-r67t", true); } // [B6, V7, U1]
744918623test { try toUnicodeFail("xn--4xa809nwtghi25b.xn--7-075iy877c"); } // [B6, V7]
18624test { try toAsciiFail("xn--4xa809nwtghi25b.xn--7-075iy877c", false); } // [B6, V7]
18625test { try toAsciiFail("xn--4xa809nwtghi25b.xn--7-075iy877c", true); } // [B6, V7]
745018626test { try toUnicodeFail("xn--3xa019nwtghi25b.xn--7-075iy877c"); } // [B6, V7]
18627test { try toAsciiFail("xn--3xa019nwtghi25b.xn--7-075iy877c", false); } // [B6, V7]
18628test { try toAsciiFail("xn--3xa019nwtghi25b.xn--7-075iy877c", true); } // [B6, V7]
745118629test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8c\xc3\x9f", "xn--iwb.ss", true); }
745218630test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8c\xc3\x9f"); } // [B1, C1]
18631test { try toAsciiFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8c\xc3\x9f", false); } // [B1, C1]
745318632test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8c\xc3\x9f", "xn--iwb.ss", true); }
745418633test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8c\xc3\x9f"); } // [B1, C1]
18634test { try toAsciiFail("\xe0\xa1\x93.\xe2\x80\x8c\xc3\x9f", false); } // [B1, C1]
745518635test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8cSS", "xn--iwb.ss", true); }
745618636test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8cSS"); } // [B1, C1]
18637test { try toAsciiFail("\xe0\xa1\x93.\xe2\x80\x8cSS", false); } // [B1, C1]
745718638test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8css", "xn--iwb.ss", true); }
745818639test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8css"); } // [B1, C1]
18640test { try toAsciiFail("\xe0\xa1\x93.\xe2\x80\x8css", false); } // [B1, C1]
745918641test { try toUnicodePass("xn--iwb.ss", "\xe0\xa1\x93.ss"); }
746018642test { try toAsciiPass("xn--iwb.ss", "xn--iwb.ss", false); }
746118643test { try toAsciiPass("xn--iwb.ss", "xn--iwb.ss", true); }
......@@ -7466,81 +18648,215 @@ test { try toUnicodePass("\xe0\xa1\x93.SS", "\xe0\xa1\x93.ss"); }
746618648test { try toAsciiPass("\xe0\xa1\x93.SS", "xn--iwb.ss", false); }
746718649test { try toAsciiPass("\xe0\xa1\x93.SS", "xn--iwb.ss", true); }
746818650test { try toUnicodeFail("xn--iwb.xn--ss-i1t"); } // [B1, C1]
18651test { try toAsciiFail("xn--iwb.xn--ss-i1t", false); } // [B1, C1]
18652test { try toAsciiFail("xn--iwb.xn--ss-i1t", true); } // [B1, C1]
746918653test { try toUnicodeFail("xn--iwb.xn--zca570n"); } // [B1, C1]
18654test { try toAsciiFail("xn--iwb.xn--zca570n", false); } // [B1, C1]
18655test { try toAsciiFail("xn--iwb.xn--zca570n", true); } // [B1, C1]
747018656test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSS", "xn--iwb.ss", true); }
747118657test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSS"); } // [B1, C1]
18658test { try toAsciiFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSS", false); } // [B1, C1]
747218659test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8css", "xn--iwb.ss", true); }
747318660test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8css"); } // [B1, C1]
18661test { try toAsciiFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8css", false); } // [B1, C1]
747418662test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8cSs", "xn--iwb.ss", true); }
747518663test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8cSs"); } // [B1, C1]
18664test { try toAsciiFail("\xe0\xa1\x93.\xe2\x80\x8cSs", false); } // [B1, C1]
747618665test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSs", "xn--iwb.ss", true); }
747718666test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSs"); } // [B1, C1]
18667test { try toAsciiFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSs", false); } // [B1, C1]
747818668test { try toUnicodeFail("\xf1\xaf\xb6\xa3-.\xe2\x80\x8d\xdd\x8e\xea\xa5\x8d\xf3\xa0\xbb\xa8"); } // [B1, B6, C2, V3, V7]
18669test { try toAsciiFail("\xf1\xaf\xb6\xa3-.\xe2\x80\x8d\xdd\x8e\xea\xa5\x8d\xf3\xa0\xbb\xa8", false); } // [B1, B6, C2, V3, V7]
18670test { try toAsciiFail("\xf1\xaf\xb6\xa3-.\xe2\x80\x8d\xdd\x8e\xea\xa5\x8d\xf3\xa0\xbb\xa8", true); } // [B3, B6, V3, V7]
747918671test { try toUnicodeFail("xn----s116e.xn--1ob6504fmf40i"); } // [B3, B6, V3, V7]
18672test { try toAsciiFail("xn----s116e.xn--1ob6504fmf40i", false); } // [B3, B6, V3, V7]
18673test { try toAsciiFail("xn----s116e.xn--1ob6504fmf40i", true); } // [B3, B6, V3, V7]
748018674test { try toUnicodeFail("xn----s116e.xn--1ob387jy90hq459k"); } // [B1, B6, C2, V3, V7]
18675test { try toAsciiFail("xn----s116e.xn--1ob387jy90hq459k", false); } // [B1, B6, C2, V3, V7]
18676test { try toAsciiFail("xn----s116e.xn--1ob387jy90hq459k", true); } // [B1, B6, C2, V3, V7]
748118677test { try toUnicodeFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x98\xe2\x92\x88"); } // [V3, V7]
18678test { try toAsciiFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x98\xe2\x92\x88", false); } // [V3, V7]
18679test { try toAsciiFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x98\xe2\x92\x88", true); } // [V3, V7]
748218680test { try toUnicodeFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x981."); } // [V3, V7]
18681test { try toAsciiFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x981.", false); } // [V3, V7, A4_2]
18682test { try toAsciiFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x981.", true); } // [V3, V7, A4_2]
748318683test { try toUnicodeFail("xn----n50a258u.xn---1-up07j."); } // [V3, V7]
18684test { try toAsciiFail("xn----n50a258u.xn---1-up07j.", false); } // [V3, V7, A4_2]
18685test { try toAsciiFail("xn----n50a258u.xn---1-up07j.", true); } // [V3, V7, A4_2]
748418686test { try toUnicodeFail("xn----n50a258u.xn----ecp33805f"); } // [V3, V7]
18687test { try toAsciiFail("xn----n50a258u.xn----ecp33805f", false); } // [V3, V7]
18688test { try toAsciiFail("xn----n50a258u.xn----ecp33805f", true); } // [V3, V7]
748518689test { try toUnicodeFail("\xf0\x90\xb9\xb8\xe4\x9a\xb5-\xea\xa1\xa1\xe3\x80\x82\xe2\xba\x87"); } // [B1]
18690test { try toAsciiFail("\xf0\x90\xb9\xb8\xe4\x9a\xb5-\xea\xa1\xa1\xe3\x80\x82\xe2\xba\x87", false); } // [B1]
18691test { try toAsciiFail("\xf0\x90\xb9\xb8\xe4\x9a\xb5-\xea\xa1\xa1\xe3\x80\x82\xe2\xba\x87", true); } // [B1]
748618692test { try toUnicodeFail("xn----bm3an932a1l5d.xn--xvj"); } // [B1]
18693test { try toAsciiFail("xn----bm3an932a1l5d.xn--xvj", false); } // [B1]
18694test { try toAsciiFail("xn----bm3an932a1l5d.xn--xvj", true); } // [B1]
748718695test { try toUnicodeFail("\xf0\x91\x84\xb3\xe3\x80\x82\xe1\xab\x9c\xf0\x90\xb9\xbb"); } // [B1, V6]
18696test { try toAsciiFail("\xf0\x91\x84\xb3\xe3\x80\x82\xe1\xab\x9c\xf0\x90\xb9\xbb", false); } // [B1, V6]
18697test { try toAsciiFail("\xf0\x91\x84\xb3\xe3\x80\x82\xe1\xab\x9c\xf0\x90\xb9\xbb", true); } // [B1, V6]
748818698test { try toUnicodeFail("xn--v80d.xn--2rf1154i"); } // [B1, V6]
18699test { try toAsciiFail("xn--v80d.xn--2rf1154i", false); } // [B1, V6]
18700test { try toAsciiFail("xn--v80d.xn--2rf1154i", true); } // [B1, V6]
748918701test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V7]
18702test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82", false); } // [B1, V7]
18703test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82", true); } // [B1, V7]
749018704test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V7]
18705test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82", false); } // [B1, V7]
18706test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82", true); } // [B1, V7]
749118707test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V6, V7]
18708test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82", false); } // [B1, V6, V7]
18709test { try toAsciiFail("\xe2\x89\xae\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82", true); } // [B1, V6, V7]
749218710test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V6, V7]
18711test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82", false); } // [B1, V6, V7]
18712test { try toAsciiFail("<\xcc\xb8\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82", true); } // [B1, V6, V7]
749318713test { try toUnicodeFail("xn--gdhx904g.7.xn--kfb18an307d"); } // [B1, V6, V7]
18714test { try toAsciiFail("xn--gdhx904g.7.xn--kfb18an307d", false); } // [B1, V6, V7]
18715test { try toAsciiFail("xn--gdhx904g.7.xn--kfb18an307d", true); } // [B1, V6, V7]
749418716test { try toUnicodeFail("xn--gdhx904g.xn--kfb18a325efm3s"); } // [B1, V7]
18717test { try toAsciiFail("xn--gdhx904g.xn--kfb18a325efm3s", false); } // [B1, V7]
18718test { try toAsciiFail("xn--gdhx904g.xn--kfb18a325efm3s", true); } // [B1, V7]
749518719test { try toUnicodeFail("\xe1\xa2\x94\xe2\x89\xa0\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2"); } // [C2, V7]
18720test { try toAsciiFail("\xe1\xa2\x94\xe2\x89\xa0\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2", false); } // [C2, V7]
18721test { try toAsciiFail("\xe1\xa2\x94\xe2\x89\xa0\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2", true); } // [V7]
749618722test { try toUnicodeFail("\xe1\xa2\x94=\xcc\xb8\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2"); } // [C2, V7]
18723test { try toAsciiFail("\xe1\xa2\x94=\xcc\xb8\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2", false); } // [C2, V7]
18724test { try toAsciiFail("\xe1\xa2\x94=\xcc\xb8\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2", true); } // [V7]
749718725test { try toUnicodeFail("xn--ebf031cf7196a.xn--587c"); } // [V7]
18726test { try toAsciiFail("xn--ebf031cf7196a.xn--587c", false); } // [V7]
18727test { try toAsciiFail("xn--ebf031cf7196a.xn--587c", true); } // [V7]
749818728test { try toUnicodeFail("xn--ebf031cf7196a.xn--1ug9540g"); } // [C2, V7]
18729test { try toAsciiFail("xn--ebf031cf7196a.xn--1ug9540g", false); } // [C2, V7]
18730test { try toAsciiFail("xn--ebf031cf7196a.xn--1ug9540g", true); } // [C2, V7]
749918731test { try toUnicodeFail("\xf0\x90\xa9\x81\xe2\x89\xae\xf1\xa3\x8a\x9b\xe2\x89\xaf\xef\xbc\x8e\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf"); } // [B1, B2, B3, V7]
18732test { try toAsciiFail("\xf0\x90\xa9\x81\xe2\x89\xae\xf1\xa3\x8a\x9b\xe2\x89\xaf\xef\xbc\x8e\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf", false); } // [B1, B2, B3, V7]
18733test { try toAsciiFail("\xf0\x90\xa9\x81\xe2\x89\xae\xf1\xa3\x8a\x9b\xe2\x89\xaf\xef\xbc\x8e\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf", true); } // [B1, B2, B3, V7]
750018734test { try toUnicodeFail("\xf0\x90\xa9\x81<\xcc\xb8\xf1\xa3\x8a\x9b>\xcc\xb8\xef\xbc\x8e\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf"); } // [B1, B2, B3, V7]
18735test { try toAsciiFail("\xf0\x90\xa9\x81<\xcc\xb8\xf1\xa3\x8a\x9b>\xcc\xb8\xef\xbc\x8e\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf", false); } // [B1, B2, B3, V7]
18736test { try toAsciiFail("\xf0\x90\xa9\x81<\xcc\xb8\xf1\xa3\x8a\x9b>\xcc\xb8\xef\xbc\x8e\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf", true); } // [B1, B2, B3, V7]
750118737test { try toUnicodeFail("\xf0\x90\xa9\x81\xe2\x89\xae\xf1\xa3\x8a\x9b\xe2\x89\xaf.\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf"); } // [B1, B2, B3, V7]
18738test { try toAsciiFail("\xf0\x90\xa9\x81\xe2\x89\xae\xf1\xa3\x8a\x9b\xe2\x89\xaf.\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf", false); } // [B1, B2, B3, V7]
18739test { try toAsciiFail("\xf0\x90\xa9\x81\xe2\x89\xae\xf1\xa3\x8a\x9b\xe2\x89\xaf.\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf", true); } // [B1, B2, B3, V7]
750218740test { try toUnicodeFail("\xf0\x90\xa9\x81<\xcc\xb8\xf1\xa3\x8a\x9b>\xcc\xb8.\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf"); } // [B1, B2, B3, V7]
18741test { try toAsciiFail("\xf0\x90\xa9\x81<\xcc\xb8\xf1\xa3\x8a\x9b>\xcc\xb8.\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf", false); } // [B1, B2, B3, V7]
18742test { try toAsciiFail("\xf0\x90\xa9\x81<\xcc\xb8\xf1\xa3\x8a\x9b>\xcc\xb8.\xd9\xac\xf0\x9e\xb5\x95\xe2\xb3\xbf", true); } // [B1, B2, B3, V7]
750318743test { try toUnicodeFail("xn--gdhc0519o0y27b.xn--lib468q0d21a"); } // [B1, B2, B3, V7]
18744test { try toAsciiFail("xn--gdhc0519o0y27b.xn--lib468q0d21a", false); } // [B1, B2, B3, V7]
18745test { try toAsciiFail("xn--gdhc0519o0y27b.xn--lib468q0d21a", true); } // [B1, B2, B3, V7]
750418746test { try toUnicodeFail("-\xef\xbd\xa1\xe2\xba\x90"); } // [V3]
18747test { try toAsciiFail("-\xef\xbd\xa1\xe2\xba\x90", false); } // [V3]
18748test { try toAsciiFail("-\xef\xbd\xa1\xe2\xba\x90", true); } // [V3]
750518749test { try toUnicodeFail("-\xe3\x80\x82\xe2\xba\x90"); } // [V3]
18750test { try toAsciiFail("-\xe3\x80\x82\xe2\xba\x90", false); } // [V3]
18751test { try toAsciiFail("-\xe3\x80\x82\xe2\xba\x90", true); } // [V3]
750618752test { try toUnicodeFail("-.xn--6vj"); } // [V3]
18753test { try toAsciiFail("-.xn--6vj", false); } // [V3]
18754test { try toAsciiFail("-.xn--6vj", true); } // [V3]
750718755test { try toUnicodeFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac\xef\xbc\x8e\xd9\x9c"); } // [V6, V7]
18756test { try toAsciiFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac\xef\xbc\x8e\xd9\x9c", false); } // [V6, V7]
18757test { try toAsciiFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac\xef\xbc\x8e\xd9\x9c", true); } // [V6, V7]
750818758test { try toUnicodeFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac.\xd9\x9c"); } // [V6, V7]
18759test { try toAsciiFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac.\xd9\x9c", false); } // [V6, V7]
18760test { try toAsciiFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac.\xd9\x9c", true); } // [V6, V7]
750918761test { try toUnicodeFail("xn--sn3d59267c.xn--4hb"); } // [V6, V7]
18762test { try toAsciiFail("xn--sn3d59267c.xn--4hb", false); } // [V6, V7]
18763test { try toAsciiFail("xn--sn3d59267c.xn--4hb", true); } // [V6, V7]
751018764test { try toUnicodeFail("\xf0\x90\x8d\xba.\xf1\x9a\x87\x83\xe2\x80\x8c"); } // [C1, V6, V7]
18765test { try toAsciiFail("\xf0\x90\x8d\xba.\xf1\x9a\x87\x83\xe2\x80\x8c", false); } // [C1, V6, V7]
18766test { try toAsciiFail("\xf0\x90\x8d\xba.\xf1\x9a\x87\x83\xe2\x80\x8c", true); } // [V6, V7]
751118767test { try toUnicodeFail("xn--ie8c.xn--2g51a"); } // [V6, V7]
18768test { try toAsciiFail("xn--ie8c.xn--2g51a", false); } // [V6, V7]
18769test { try toAsciiFail("xn--ie8c.xn--2g51a", true); } // [V6, V7]
751218770test { try toUnicodeFail("xn--ie8c.xn--0ug03366c"); } // [C1, V6, V7]
18771test { try toAsciiFail("xn--ie8c.xn--0ug03366c", false); } // [C1, V6, V7]
18772test { try toAsciiFail("xn--ie8c.xn--0ug03366c", true); } // [C1, V6, V7]
751318773test { try toUnicodeFail("\xd8\xbd\xdb\xa3.\xf0\x90\xa8\x8e"); } // [B1, V6]
18774test { try toAsciiFail("\xd8\xbd\xdb\xa3.\xf0\x90\xa8\x8e", false); } // [B1, V6]
18775test { try toAsciiFail("\xd8\xbd\xdb\xa3.\xf0\x90\xa8\x8e", true); } // [B1, V6]
751418776test { try toUnicodeFail("xn--8gb64a.xn--mr9c"); } // [B1, V6]
18777test { try toAsciiFail("xn--8gb64a.xn--mr9c", false); } // [B1, V6]
18778test { try toAsciiFail("xn--8gb64a.xn--mr9c", true); } // [B1, V6]
751518779test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
18780test { try toAsciiFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", false); } // [B5, B6, V7]
18781test { try toAsciiFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", true); } // [B5, B6, V7]
751618782test { try toUnicodeFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
18783test { try toAsciiFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", false); } // [B5, B6, V7]
18784test { try toAsciiFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", true); } // [B5, B6, V7]
751718785test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xce\xa3.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
18786test { try toAsciiFail("\xe6\xbc\xa6\xe1\x82\xb9\xce\xa3.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", false); } // [B5, B6, V7]
18787test { try toAsciiFail("\xe6\xbc\xa6\xe1\x82\xb9\xce\xa3.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", true); } // [B5, B6, V7]
751818788test { try toUnicodeFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
18789test { try toAsciiFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", false); } // [B5, B6, V7]
18790test { try toAsciiFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", true); } // [B5, B6, V7]
751918791test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
18792test { try toAsciiFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", false); } // [B5, B6, V7]
18793test { try toAsciiFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84", true); } // [B5, B6, V7]
752018794test { try toUnicodeFail("xn--4xa772sl47b.xn--9d0d3162t"); } // [B5, B6, V7]
18795test { try toAsciiFail("xn--4xa772sl47b.xn--9d0d3162t", false); } // [B5, B6, V7]
18796test { try toAsciiFail("xn--4xa772sl47b.xn--9d0d3162t", true); } // [B5, B6, V7]
752118797test { try toUnicodeFail("xn--3xa972sl47b.xn--9d0d3162t"); } // [B5, B6, V7]
18798test { try toAsciiFail("xn--3xa972sl47b.xn--9d0d3162t", false); } // [B5, B6, V7]
18799test { try toAsciiFail("xn--3xa972sl47b.xn--9d0d3162t", true); } // [B5, B6, V7]
752218800test { try toUnicodeFail("xn--4xa947d717e.xn--9d0d3162t"); } // [B5, B6, V7]
18801test { try toAsciiFail("xn--4xa947d717e.xn--9d0d3162t", false); } // [B5, B6, V7]
18802test { try toAsciiFail("xn--4xa947d717e.xn--9d0d3162t", true); } // [B5, B6, V7]
752318803test { try toUnicodeFail("xn--3xa157d717e.xn--9d0d3162t"); } // [B5, B6, V7]
18804test { try toAsciiFail("xn--3xa157d717e.xn--9d0d3162t", false); } // [B5, B6, V7]
18805test { try toAsciiFail("xn--3xa157d717e.xn--9d0d3162t", true); } // [B5, B6, V7]
752418806test { try toUnicodeFail("\xf0\x90\xb9\xab\xe8\xb8\xa7\xe0\xb3\x8d\xf2\xab\x9a\x87.\xf3\x9c\x80\x83\xe2\x92\x88\xf0\x9d\xa8\xa4"); } // [B1, V7]
18807test { try toAsciiFail("\xf0\x90\xb9\xab\xe8\xb8\xa7\xe0\xb3\x8d\xf2\xab\x9a\x87.\xf3\x9c\x80\x83\xe2\x92\x88\xf0\x9d\xa8\xa4", false); } // [B1, V7]
18808test { try toAsciiFail("\xf0\x90\xb9\xab\xe8\xb8\xa7\xe0\xb3\x8d\xf2\xab\x9a\x87.\xf3\x9c\x80\x83\xe2\x92\x88\xf0\x9d\xa8\xa4", true); } // [B1, V7]
752518809test { try toUnicodeFail("\xf0\x90\xb9\xab\xe8\xb8\xa7\xe0\xb3\x8d\xf2\xab\x9a\x87.\xf3\x9c\x80\x831.\xf0\x9d\xa8\xa4"); } // [B1, V6, V7]
18810test { try toAsciiFail("\xf0\x90\xb9\xab\xe8\xb8\xa7\xe0\xb3\x8d\xf2\xab\x9a\x87.\xf3\x9c\x80\x831.\xf0\x9d\xa8\xa4", false); } // [B1, V6, V7]
18811test { try toAsciiFail("\xf0\x90\xb9\xab\xe8\xb8\xa7\xe0\xb3\x8d\xf2\xab\x9a\x87.\xf3\x9c\x80\x831.\xf0\x9d\xa8\xa4", true); } // [B1, V6, V7]
752618812test { try toUnicodeFail("xn--8tc1437dro0d6q06h.xn--1-p948l.xn--m82h"); } // [B1, V6, V7]
18813test { try toAsciiFail("xn--8tc1437dro0d6q06h.xn--1-p948l.xn--m82h", false); } // [B1, V6, V7]
18814test { try toAsciiFail("xn--8tc1437dro0d6q06h.xn--1-p948l.xn--m82h", true); } // [B1, V6, V7]
752718815test { try toUnicodeFail("xn--8tc1437dro0d6q06h.xn--tsh2611ncu71e"); } // [B1, V7]
18816test { try toAsciiFail("xn--8tc1437dro0d6q06h.xn--tsh2611ncu71e", false); } // [B1, V7]
18817test { try toAsciiFail("xn--8tc1437dro0d6q06h.xn--tsh2611ncu71e", true); } // [B1, V7]
752818818test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xae\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7]
18819test { try toAsciiFail("\xe2\x80\x8d\xe2\x89\xae\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-", false); } // [C2, V3, V7]
18820test { try toAsciiFail("\xe2\x80\x8d\xe2\x89\xae\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-", true); } // [V3, V7]
752918821test { try toUnicodeFail("\xe2\x80\x8d<\xcc\xb8\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7]
18822test { try toAsciiFail("\xe2\x80\x8d<\xcc\xb8\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-", false); } // [C2, V3, V7]
18823test { try toAsciiFail("\xe2\x80\x8d<\xcc\xb8\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-", true); } // [V3, V7]
753018824test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xae.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7]
18825test { try toAsciiFail("\xe2\x80\x8d\xe2\x89\xae.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-", false); } // [C2, V3, V7]
18826test { try toAsciiFail("\xe2\x80\x8d\xe2\x89\xae.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-", true); } // [V3, V7]
753118827test { try toUnicodeFail("\xe2\x80\x8d<\xcc\xb8.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7]
18828test { try toAsciiFail("\xe2\x80\x8d<\xcc\xb8.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-", false); } // [C2, V3, V7]
18829test { try toAsciiFail("\xe2\x80\x8d<\xcc\xb8.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-", true); } // [V3, V7]
753218830test { try toUnicodeFail("xn--gdh.xn----cr99a1w710b"); } // [V3, V7]
18831test { try toAsciiFail("xn--gdh.xn----cr99a1w710b", false); } // [V3, V7]
18832test { try toAsciiFail("xn--gdh.xn----cr99a1w710b", true); } // [V3, V7]
753318833test { try toUnicodeFail("xn--1ug95g.xn----cr99a1w710b"); } // [C2, V3, V7]
18834test { try toAsciiFail("xn--1ug95g.xn----cr99a1w710b", false); } // [C2, V3, V7]
18835test { try toAsciiFail("xn--1ug95g.xn----cr99a1w710b", true); } // [C2, V3, V7]
753418836test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8d\xe8\xa5\x94\xe3\x80\x82\xe1\x82\xbc5\xea\xa1\xae\xf1\xb5\x9d\x8f"); } // [C2, V7]
18837test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8d\xe8\xa5\x94\xe3\x80\x82\xe1\x82\xbc5\xea\xa1\xae\xf1\xb5\x9d\x8f", false); } // [C2, V7]
18838test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8d\xe8\xa5\x94\xe3\x80\x82\xe1\x82\xbc5\xea\xa1\xae\xf1\xb5\x9d\x8f", true); } // [V7]
753518839test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8d\xe8\xa5\x94\xe3\x80\x82\xe2\xb4\x9c5\xea\xa1\xae\xf1\xb5\x9d\x8f"); } // [C2, V7]
18840test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8d\xe8\xa5\x94\xe3\x80\x82\xe2\xb4\x9c5\xea\xa1\xae\xf1\xb5\x9d\x8f", false); } // [C2, V7]
18841test { try toAsciiFail("\xe2\x80\x8d\xe2\x80\x8d\xe8\xa5\x94\xe3\x80\x82\xe2\xb4\x9c5\xea\xa1\xae\xf1\xb5\x9d\x8f", true); } // [V7]
753618842test { try toUnicodeFail("xn--2u2a.xn--5-uws5848bpf44e"); } // [V7]
18843test { try toAsciiFail("xn--2u2a.xn--5-uws5848bpf44e", false); } // [V7]
18844test { try toAsciiFail("xn--2u2a.xn--5-uws5848bpf44e", true); } // [V7]
753718845test { try toUnicodeFail("xn--1uga7691f.xn--5-uws5848bpf44e"); } // [C2, V7]
18846test { try toAsciiFail("xn--1uga7691f.xn--5-uws5848bpf44e", false); } // [C2, V7]
18847test { try toAsciiFail("xn--1uga7691f.xn--5-uws5848bpf44e", true); } // [C2, V7]
753818848test { try toUnicodeFail("xn--2u2a.xn--5-r1g7167ipfw8d"); } // [V7]
18849test { try toAsciiFail("xn--2u2a.xn--5-r1g7167ipfw8d", false); } // [V7]
18850test { try toAsciiFail("xn--2u2a.xn--5-r1g7167ipfw8d", true); } // [V7]
753918851test { try toUnicodeFail("xn--1uga7691f.xn--5-r1g7167ipfw8d"); } // [C2, V7]
18852test { try toAsciiFail("xn--1uga7691f.xn--5-r1g7167ipfw8d", false); } // [C2, V7]
18853test { try toAsciiFail("xn--1uga7691f.xn--5-r1g7167ipfw8d", true); } // [C2, V7]
754018854test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d\xef\xbc\x8e\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }
754118855test { try toUnicodeFail("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d\xef\xbc\x8e\xe5\xa9\x80"); } // [B3, C2]
18856test { try toAsciiFail("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d\xef\xbc\x8e\xe5\xa9\x80", false); } // [B3, C2]
754218857test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }
754318858test { try toUnicodeFail("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d.\xe5\xa9\x80"); } // [B3, C2]
18859test { try toAsciiFail("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d.\xe5\xa9\x80", false); } // [B3, C2]
754418860test { try toUnicodePass("xn--ix9c26l.xn--q0s", "\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80"); }
754518861test { try toAsciiPass("xn--ix9c26l.xn--q0s", "xn--ix9c26l.xn--q0s", false); }
754618862test { try toAsciiPass("xn--ix9c26l.xn--q0s", "xn--ix9c26l.xn--q0s", true); }
......@@ -7548,65 +18864,185 @@ test { try toUnicodePass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "\xf0\
754818864test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", false); }
754918865test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }
755018866test { try toUnicodeFail("xn--1ugx063g1if.xn--q0s"); } // [B3, C2]
18867test { try toAsciiFail("xn--1ugx063g1if.xn--q0s", false); } // [B3, C2]
18868test { try toAsciiFail("xn--1ugx063g1if.xn--q0s", true); } // [B3, C2]
755118869test { try toUnicodeFail("\xf3\xa0\x85\xbd\xef\xb8\x92\xef\xb8\x92\xf0\x90\xb9\xaf\xef\xbd\xa1\xe2\xac\xb3\xe1\xa9\xb8"); } // [B1, V7]
18870test { try toAsciiFail("\xf3\xa0\x85\xbd\xef\xb8\x92\xef\xb8\x92\xf0\x90\xb9\xaf\xef\xbd\xa1\xe2\xac\xb3\xe1\xa9\xb8", false); } // [B1, V7]
18871test { try toAsciiFail("\xf3\xa0\x85\xbd\xef\xb8\x92\xef\xb8\x92\xf0\x90\xb9\xaf\xef\xbd\xa1\xe2\xac\xb3\xe1\xa9\xb8", true); } // [B1, V7]
755218872test { try toUnicodeFail("\xf3\xa0\x85\xbd\xe3\x80\x82\xe3\x80\x82\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xac\xb3\xe1\xa9\xb8"); } // [B1, X4_2]
18873test { try toAsciiFail("\xf3\xa0\x85\xbd\xe3\x80\x82\xe3\x80\x82\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xac\xb3\xe1\xa9\xb8", false); } // [B1, A4_2]
18874test { try toAsciiFail("\xf3\xa0\x85\xbd\xe3\x80\x82\xe3\x80\x82\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xac\xb3\xe1\xa9\xb8", true); } // [B1, A4_2]
755318875test { try toUnicodeFail("..xn--no0d.xn--7of309e"); } // [B1, X4_2]
18876test { try toAsciiFail("..xn--no0d.xn--7of309e", false); } // [B1, A4_2]
18877test { try toAsciiFail("..xn--no0d.xn--7of309e", true); } // [B1, A4_2]
755418878test { try toUnicodeFail("xn--y86ca186j.xn--7of309e"); } // [B1, V7]
18879test { try toAsciiFail("xn--y86ca186j.xn--7of309e", false); } // [B1, V7]
18880test { try toAsciiFail("xn--y86ca186j.xn--7of309e", true); } // [B1, V7]
755518881test { try toUnicodeFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
18882test { try toAsciiFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf", false); } // [V3, U1]
18883test { try toAsciiFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf", true); } // [V3, U1]
755618884test { try toUnicodeFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
18885test { try toAsciiFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe1\x82\xaf", false); } // [V3, U1]
18886test { try toAsciiFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe1\x82\xaf", true); } // [V3, U1]
755718887test { try toUnicodeFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1]
18888test { try toAsciiFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe2\xb4\x8f", false); } // [V3, U1]
18889test { try toAsciiFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe2\xb4\x8f", true); } // [V3, U1]
755818890test { try toUnicodeFail("8SS.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
18891test { try toAsciiFail("8SS.\xf3\xa0\x84\x90-?\xe1\x82\xaf", false); } // [V3, U1]
18892test { try toAsciiFail("8SS.\xf3\xa0\x84\x90-?\xe1\x82\xaf", true); } // [V3, U1]
755918893test { try toUnicodeFail("8ss.\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1]
18894test { try toAsciiFail("8ss.\xf3\xa0\x84\x90-?\xe2\xb4\x8f", false); } // [V3, U1]
18895test { try toAsciiFail("8ss.\xf3\xa0\x84\x90-?\xe2\xb4\x8f", true); } // [V3, U1]
756018896test { try toUnicodeFail("8ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
18897test { try toAsciiFail("8ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf", false); } // [V3, U1]
18898test { try toAsciiFail("8ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf", true); } // [V3, U1]
756118899test { try toUnicodeFail("8ss.xn---?-261a"); } // [V3, U1]
18900test { try toAsciiFail("8ss.xn---?-261a", false); } // [V3, U1]
18901test { try toAsciiFail("8ss.xn---?-261a", true); } // [V3, U1]
756218902test { try toUnicodeFail("xn--8-qfa.xn---?-261a"); } // [V3, U1]
18903test { try toAsciiFail("xn--8-qfa.xn---?-261a", false); } // [V3, U1]
18904test { try toAsciiFail("xn--8-qfa.xn---?-261a", true); } // [V3, U1]
756318905test { try toUnicodeFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1]
18906test { try toAsciiFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f", false); } // [V3, U1]
18907test { try toAsciiFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f", true); } // [V3, U1]
756418908test { try toUnicodeFail("\xf0\x9d\x9f\x96SS\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
18909test { try toAsciiFail("\xf0\x9d\x9f\x96SS\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf", false); } // [V3, U1]
18910test { try toAsciiFail("\xf0\x9d\x9f\x96SS\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf", true); } // [V3, U1]
756518911test { try toUnicodeFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1]
18912test { try toAsciiFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f", false); } // [V3, U1]
18913test { try toAsciiFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f", true); } // [V3, U1]
756618914test { try toUnicodeFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
18915test { try toAsciiFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf", false); } // [V3, U1]
18916test { try toAsciiFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf", true); } // [V3, U1]
756718917test { try toUnicodeFail("8ss.xn---?-gfk"); } // [V3, V7, U1]
18918test { try toAsciiFail("8ss.xn---?-gfk", false); } // [V3, V7, U1]
18919test { try toAsciiFail("8ss.xn---?-gfk", true); } // [V3, V7, U1]
756818920test { try toUnicodeFail("xn--8-qfa.xn---?-gfk"); } // [V3, V7, U1]
18921test { try toAsciiFail("xn--8-qfa.xn---?-gfk", false); } // [V3, V7, U1]
18922test { try toAsciiFail("xn--8-qfa.xn---?-gfk", true); } // [V3, V7, U1]
756918923test { try toUnicodeFail("8ss.-?\xe1\x82\xaf"); } // [V3, U1]
18924test { try toAsciiFail("8ss.-?\xe1\x82\xaf", false); } // [V3, U1]
18925test { try toAsciiFail("8ss.-?\xe1\x82\xaf", true); } // [V3, U1]
757018926test { try toUnicodeFail("8ss.-?\xe2\xb4\x8f"); } // [V3, U1]
18927test { try toAsciiFail("8ss.-?\xe2\xb4\x8f", false); } // [V3, U1]
18928test { try toAsciiFail("8ss.-?\xe2\xb4\x8f", true); } // [V3, U1]
757118929test { try toUnicodeFail("8SS.-?\xe1\x82\xaf"); } // [V3, U1]
18930test { try toAsciiFail("8SS.-?\xe1\x82\xaf", false); } // [V3, U1]
18931test { try toAsciiFail("8SS.-?\xe1\x82\xaf", true); } // [V3, U1]
757218932test { try toUnicodeFail("xn--8-qfa.-?\xe2\xb4\x8f"); } // [V3, U1]
18933test { try toAsciiFail("xn--8-qfa.-?\xe2\xb4\x8f", false); } // [V3, U1]
18934test { try toAsciiFail("xn--8-qfa.-?\xe2\xb4\x8f", true); } // [V3, U1]
757318935test { try toUnicodeFail("XN--8-QFA.-?\xe1\x82\xaf"); } // [V3, U1]
18936test { try toAsciiFail("XN--8-QFA.-?\xe1\x82\xaf", false); } // [V3, U1]
18937test { try toAsciiFail("XN--8-QFA.-?\xe1\x82\xaf", true); } // [V3, U1]
757418938test { try toUnicodeFail("Xn--8-Qfa.-?\xe1\x82\xaf"); } // [V3, U1]
18939test { try toAsciiFail("Xn--8-Qfa.-?\xe1\x82\xaf", false); } // [V3, U1]
18940test { try toAsciiFail("Xn--8-Qfa.-?\xe1\x82\xaf", true); } // [V3, U1]
757518941test { try toUnicodeFail("xn--8-qfa.-?\xe1\x82\xaf"); } // [V3, U1]
18942test { try toAsciiFail("xn--8-qfa.-?\xe1\x82\xaf", false); } // [V3, U1]
18943test { try toAsciiFail("xn--8-qfa.-?\xe1\x82\xaf", true); } // [V3, U1]
757618944test { try toUnicodeFail("\xf0\x9d\x9f\x96Ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
18945test { try toAsciiFail("\xf0\x9d\x9f\x96Ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf", false); } // [V3, U1]
18946test { try toAsciiFail("\xf0\x9d\x9f\x96Ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf", true); } // [V3, U1]
757718947test { try toUnicodeFail("8Ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
18948test { try toAsciiFail("8Ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf", false); } // [V3, U1]
18949test { try toAsciiFail("8Ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf", true); } // [V3, U1]
757818950test { try toUnicodeFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe1\x82\xa5"); } // [B1, C1, C2, V3, V7]
18951test { try toAsciiFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe1\x82\xa5", false); } // [B1, C1, C2, V3, V7]
18952test { try toAsciiFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe1\x82\xa5", true); } // [B1, V3, V7]
757918953test { try toUnicodeFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe2\xb4\x85"); } // [B1, C1, C2, V3, V7]
18954test { try toAsciiFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe2\xb4\x85", false); } // [B1, C1, C2, V3, V7]
18955test { try toAsciiFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe2\xb4\x85", true); } // [B1, V3, V7]
758018956test { try toUnicodeFail("xn----s721m.xn--wkj1423e"); } // [B1, V3, V7]
18957test { try toAsciiFail("xn----s721m.xn--wkj1423e", false); } // [B1, V3, V7]
18958test { try toAsciiFail("xn----s721m.xn--wkj1423e", true); } // [B1, V3, V7]
758118959test { try toUnicodeFail("xn----ugnv7071n.xn--0ugz32cgr0p"); } // [B1, C1, C2, V3, V7]
18960test { try toAsciiFail("xn----ugnv7071n.xn--0ugz32cgr0p", false); } // [B1, C1, C2, V3, V7]
18961test { try toAsciiFail("xn----ugnv7071n.xn--0ugz32cgr0p", true); } // [B1, C1, C2, V3, V7]
758218962test { try toUnicodeFail("xn----s721m.xn--dnd9201k"); } // [B1, V3, V7]
18963test { try toAsciiFail("xn----s721m.xn--dnd9201k", false); } // [B1, V3, V7]
18964test { try toAsciiFail("xn----s721m.xn--dnd9201k", true); } // [B1, V3, V7]
758318965test { try toUnicodeFail("xn----ugnv7071n.xn--dnd999e4j4p"); } // [B1, C1, C2, V3, V7]
18966test { try toAsciiFail("xn----ugnv7071n.xn--dnd999e4j4p", false); } // [B1, C1, C2, V3, V7]
18967test { try toAsciiFail("xn----ugnv7071n.xn--dnd999e4j4p", true); } // [B1, C1, C2, V3, V7]
758418968test { try toUnicodeFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xef\xbd\xa1\xe2\x82\x82"); } // [C2, V6, V7]
18969test { try toAsciiFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xef\xbd\xa1\xe2\x82\x82", false); } // [C2, V6, V7]
18970test { try toAsciiFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xef\xbd\xa1\xe2\x82\x82", true); } // [V6, V7]
758518971test { try toUnicodeFail("\xea\xa6\xb9\xe2\x80\x8d\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xb2\xf0\xbb\xb6\xa1\xef\xbd\xa1\xe2\x82\x82"); } // [C2, V6, V7]
18972test { try toAsciiFail("\xea\xa6\xb9\xe2\x80\x8d\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xb2\xf0\xbb\xb6\xa1\xef\xbd\xa1\xe2\x82\x82", false); } // [C2, V6, V7]
18973test { try toAsciiFail("\xea\xa6\xb9\xe2\x80\x8d\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xb2\xf0\xbb\xb6\xa1\xef\xbd\xa1\xe2\x82\x82", true); } // [V6, V7]
758618974test { try toUnicodeFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xe3\x80\x822"); } // [C2, V6, V7]
18975test { try toAsciiFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xe3\x80\x822", false); } // [C2, V6, V7]
18976test { try toAsciiFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xe3\x80\x822", true); } // [V6, V7]
758718977test { try toUnicodeFail("\xea\xa6\xb9\xe2\x80\x8d\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xb2\xf0\xbb\xb6\xa1\xe3\x80\x822"); } // [C2, V6, V7]
18978test { try toAsciiFail("\xea\xa6\xb9\xe2\x80\x8d\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xb2\xf0\xbb\xb6\xa1\xe3\x80\x822", false); } // [C2, V6, V7]
18979test { try toAsciiFail("\xea\xa6\xb9\xe2\x80\x8d\xe1\x84\x8f\xe1\x85\xb3\xe1\x86\xb2\xf0\xbb\xb6\xa1\xe3\x80\x822", true); } // [V6, V7]
758818980test { try toUnicodeFail("xn--0m9as84e2e21c.c"); } // [V6, V7]
18981test { try toAsciiFail("xn--0m9as84e2e21c.c", false); } // [V6, V7]
18982test { try toAsciiFail("xn--0m9as84e2e21c.c", true); } // [V6, V7]
758918983test { try toUnicodeFail("xn--1ug1435cfkyaoi04d.c"); } // [C2, V6, V7]
18984test { try toAsciiFail("xn--1ug1435cfkyaoi04d.c", false); } // [C2, V6, V7]
18985test { try toAsciiFail("xn--1ug1435cfkyaoi04d.c", true); } // [C2, V6, V7]
759018986test { try toUnicodeFail("?.\xf0\x9f\x84\x84\xf0\x9e\xaf\x98"); } // [B1, V7, U1]
18987test { try toAsciiFail("?.\xf0\x9f\x84\x84\xf0\x9e\xaf\x98", false); } // [B1, V7, U1]
18988test { try toAsciiFail("?.\xf0\x9f\x84\x84\xf0\x9e\xaf\x98", true); } // [B1, V7, U1]
759118989test { try toUnicodeFail("?.3,\xf0\x9e\xaf\x98"); } // [B1, V7, U1]
18990test { try toAsciiFail("?.3,\xf0\x9e\xaf\x98", false); } // [B1, V7, U1]
18991test { try toAsciiFail("?.3,\xf0\x9e\xaf\x98", true); } // [B1, V7, U1]
759218992test { try toUnicodeFail("?.xn--3,-tb22a"); } // [B1, V7, U1]
18993test { try toAsciiFail("?.xn--3,-tb22a", false); } // [B1, V7, U1]
18994test { try toAsciiFail("?.xn--3,-tb22a", true); } // [B1, V7, U1]
759318995test { try toUnicodeFail("?.xn--3x6hx6f"); } // [B1, V7, U1]
18996test { try toAsciiFail("?.xn--3x6hx6f", false); } // [B1, V7, U1]
18997test { try toAsciiFail("?.xn--3x6hx6f", true); } // [B1, V7, U1]
759418998test { try toUnicodeFail("\xf0\x9d\xa8\x96\xf0\x90\xa9\x99\xe3\x80\x82\xdb\x9d\xf3\x80\xa1\xb6\xea\xa3\x85\xe2\x92\x88"); } // [B1, V6, V7]
18999test { try toAsciiFail("\xf0\x9d\xa8\x96\xf0\x90\xa9\x99\xe3\x80\x82\xdb\x9d\xf3\x80\xa1\xb6\xea\xa3\x85\xe2\x92\x88", false); } // [B1, V6, V7]
19000test { try toAsciiFail("\xf0\x9d\xa8\x96\xf0\x90\xa9\x99\xe3\x80\x82\xdb\x9d\xf3\x80\xa1\xb6\xea\xa3\x85\xe2\x92\x88", true); } // [B1, V6, V7]
759519001test { try toUnicodeFail("\xf0\x9d\xa8\x96\xf0\x90\xa9\x99\xe3\x80\x82\xdb\x9d\xf3\x80\xa1\xb6\xea\xa3\x851."); } // [B1, V6, V7]
19002test { try toAsciiFail("\xf0\x9d\xa8\x96\xf0\x90\xa9\x99\xe3\x80\x82\xdb\x9d\xf3\x80\xa1\xb6\xea\xa3\x851.", false); } // [B1, V6, V7, A4_2]
19003test { try toAsciiFail("\xf0\x9d\xa8\x96\xf0\x90\xa9\x99\xe3\x80\x82\xdb\x9d\xf3\x80\xa1\xb6\xea\xa3\x851.", true); } // [B1, V6, V7, A4_2]
759619004test { try toUnicodeFail("xn--rt9cl956a.xn--1-dxc8545j0693i."); } // [B1, V6, V7]
19005test { try toAsciiFail("xn--rt9cl956a.xn--1-dxc8545j0693i.", false); } // [B1, V6, V7, A4_2]
19006test { try toAsciiFail("xn--rt9cl956a.xn--1-dxc8545j0693i.", true); } // [B1, V6, V7, A4_2]
759719007test { try toUnicodeFail("xn--rt9cl956a.xn--tlb403mxv4g06s9i"); } // [B1, V6, V7]
19008test { try toAsciiFail("xn--rt9cl956a.xn--tlb403mxv4g06s9i", false); } // [B1, V6, V7]
19009test { try toAsciiFail("xn--rt9cl956a.xn--tlb403mxv4g06s9i", true); } // [B1, V6, V7]
759819010test { try toUnicodeFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe1\x82\xa8\xe2\x80\x8d"); } // [B5, B6, C2, V7]
19011test { try toAsciiFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe1\x82\xa8\xe2\x80\x8d", false); } // [B5, B6, C2, V7]
19012test { try toAsciiFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe1\x82\xa8\xe2\x80\x8d", true); } // [B5, B6, V7]
759919013test { try toUnicodeFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe2\xb4\x88\xe2\x80\x8d"); } // [B5, B6, C2, V7]
19014test { try toAsciiFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe2\xb4\x88\xe2\x80\x8d", false); } // [B5, B6, C2, V7]
19015test { try toAsciiFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe2\xb4\x88\xe2\x80\x8d", true); } // [B5, B6, V7]
760019016test { try toUnicodeFail("xn--meb44b57607c.xn--zkj"); } // [B5, B6, V7]
19017test { try toAsciiFail("xn--meb44b57607c.xn--zkj", false); } // [B5, B6, V7]
19018test { try toAsciiFail("xn--meb44b57607c.xn--zkj", true); } // [B5, B6, V7]
760119019test { try toUnicodeFail("xn--meb44b57607c.xn--1ug232c"); } // [B5, B6, C2, V7]
19020test { try toAsciiFail("xn--meb44b57607c.xn--1ug232c", false); } // [B5, B6, C2, V7]
19021test { try toAsciiFail("xn--meb44b57607c.xn--1ug232c", true); } // [B5, B6, C2, V7]
760219022test { try toUnicodeFail("xn--meb44b57607c.xn--gnd"); } // [B5, B6, V7]
19023test { try toAsciiFail("xn--meb44b57607c.xn--gnd", false); } // [B5, B6, V7]
19024test { try toAsciiFail("xn--meb44b57607c.xn--gnd", true); } // [B5, B6, V7]
760319025test { try toUnicodeFail("xn--meb44b57607c.xn--gnd699e"); } // [B5, B6, C2, V7]
19026test { try toAsciiFail("xn--meb44b57607c.xn--gnd699e", false); } // [B5, B6, C2, V7]
19027test { try toAsciiFail("xn--meb44b57607c.xn--gnd699e", true); } // [B5, B6, C2, V7]
760419028test { try toUnicodeFail("\xf3\x80\x9a\xb6\xf0\x9d\xa8\xb1\xdf\xa6\xe2\x92\x88\xef\xbc\x8e\xf0\x91\x97\x9d\xe9\xab\xaf\xe2\x80\x8c"); } // [B1, B5, C1, V6, V7]
19029test { try toAsciiFail("\xf3\x80\x9a\xb6\xf0\x9d\xa8\xb1\xdf\xa6\xe2\x92\x88\xef\xbc\x8e\xf0\x91\x97\x9d\xe9\xab\xaf\xe2\x80\x8c", false); } // [B1, B5, C1, V6, V7]
19030test { try toAsciiFail("\xf3\x80\x9a\xb6\xf0\x9d\xa8\xb1\xdf\xa6\xe2\x92\x88\xef\xbc\x8e\xf0\x91\x97\x9d\xe9\xab\xaf\xe2\x80\x8c", true); } // [B1, B5, V6, V7]
760519031test { try toUnicodeFail("\xf3\x80\x9a\xb6\xf0\x9d\xa8\xb1\xdf\xa61..\xf0\x91\x97\x9d\xe9\xab\xaf\xe2\x80\x8c"); } // [B1, B5, C1, V6, V7, X4_2]
19032test { try toAsciiFail("\xf3\x80\x9a\xb6\xf0\x9d\xa8\xb1\xdf\xa61..\xf0\x91\x97\x9d\xe9\xab\xaf\xe2\x80\x8c", false); } // [B1, B5, C1, V6, V7, A4_2]
19033test { try toAsciiFail("\xf3\x80\x9a\xb6\xf0\x9d\xa8\xb1\xdf\xa61..\xf0\x91\x97\x9d\xe9\xab\xaf\xe2\x80\x8c", true); } // [B1, B5, V6, V7, A4_2]
760619034test { try toUnicodeFail("xn--1-idd62296a1fr6e..xn--uj6at43v"); } // [B1, B5, V6, V7, X4_2]
19035test { try toAsciiFail("xn--1-idd62296a1fr6e..xn--uj6at43v", false); } // [B1, B5, V6, V7, A4_2]
19036test { try toAsciiFail("xn--1-idd62296a1fr6e..xn--uj6at43v", true); } // [B1, B5, V6, V7, A4_2]
760719037test { try toUnicodeFail("xn--1-idd62296a1fr6e..xn--0ugx259bocxd"); } // [B1, B5, C1, V6, V7, X4_2]
19038test { try toAsciiFail("xn--1-idd62296a1fr6e..xn--0ugx259bocxd", false); } // [B1, B5, C1, V6, V7, A4_2]
19039test { try toAsciiFail("xn--1-idd62296a1fr6e..xn--0ugx259bocxd", true); } // [B1, B5, C1, V6, V7, A4_2]
760819040test { try toUnicodeFail("xn--etb477lq931a1f58e.xn--uj6at43v"); } // [B1, B5, V6, V7]
19041test { try toAsciiFail("xn--etb477lq931a1f58e.xn--uj6at43v", false); } // [B1, B5, V6, V7]
19042test { try toAsciiFail("xn--etb477lq931a1f58e.xn--uj6at43v", true); } // [B1, B5, V6, V7]
760919043test { try toUnicodeFail("xn--etb477lq931a1f58e.xn--0ugx259bocxd"); } // [B1, B5, C1, V6, V7]
19044test { try toAsciiFail("xn--etb477lq931a1f58e.xn--0ugx259bocxd", false); } // [B1, B5, C1, V6, V7]
19045test { try toAsciiFail("xn--etb477lq931a1f58e.xn--0ugx259bocxd", true); } // [B1, B5, C1, V6, V7]
761019046test { try toUnicodePass("\xf0\x90\xab\x80\xef\xbc\x8e\xda\x89\xf0\x91\x8c\x80", "\xf0\x90\xab\x80.\xda\x89\xf0\x91\x8c\x80"); }
761119047test { try toAsciiPass("\xf0\x90\xab\x80\xef\xbc\x8e\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn--fjb8658k", false); }
761219048test { try toAsciiPass("\xf0\x90\xab\x80\xef\xbc\x8e\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn--fjb8658k", true); }
......@@ -7617,61 +19053,179 @@ test { try toUnicodePass("xn--pw9c.xn--fjb8658k", "\xf0\x90\xab\x80.\xda\x89\xf0
761719053test { try toAsciiPass("xn--pw9c.xn--fjb8658k", "xn--pw9c.xn--fjb8658k", false); }
761819054test { try toAsciiPass("xn--pw9c.xn--fjb8658k", "xn--pw9c.xn--fjb8658k", true); }
761919055test { try toUnicodeFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb3\x9d"); } // [B1, V6]
19056test { try toAsciiFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb3\x9d", false); } // [B1, V6]
19057test { try toAsciiFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb3\x9d", true); } // [B1, V6]
762019058test { try toUnicodeFail("\xf0\x91\x8b\xaa.\xf0\x90\xb3\x9d"); } // [B1, V6]
19059test { try toAsciiFail("\xf0\x91\x8b\xaa.\xf0\x90\xb3\x9d", false); } // [B1, V6]
19060test { try toAsciiFail("\xf0\x91\x8b\xaa.\xf0\x90\xb3\x9d", true); } // [B1, V6]
762119061test { try toUnicodeFail("\xf0\x91\x8b\xaa.\xf0\x90\xb2\x9d"); } // [B1, V6]
19062test { try toAsciiFail("\xf0\x91\x8b\xaa.\xf0\x90\xb2\x9d", false); } // [B1, V6]
19063test { try toAsciiFail("\xf0\x91\x8b\xaa.\xf0\x90\xb2\x9d", true); } // [B1, V6]
762219064test { try toUnicodeFail("xn--fm1d.xn--5c0d"); } // [B1, V6]
19065test { try toAsciiFail("xn--fm1d.xn--5c0d", false); } // [B1, V6]
19066test { try toAsciiFail("xn--fm1d.xn--5c0d", true); } // [B1, V6]
762319067test { try toUnicodeFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb2\x9d"); } // [B1, V6]
19068test { try toAsciiFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb2\x9d", false); } // [B1, V6]
19069test { try toAsciiFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb2\x9d", true); } // [B1, V6]
762419070test { try toUnicodeFail("\xe2\x89\xa0\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83"); } // [V6]
19071test { try toAsciiFail("\xe2\x89\xa0\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83", false); } // [V6]
19072test { try toAsciiFail("\xe2\x89\xa0\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83", true); } // [V6]
762519073test { try toUnicodeFail("=\xcc\xb8\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83"); } // [V6]
19074test { try toAsciiFail("=\xcc\xb8\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83", false); } // [V6]
19075test { try toAsciiFail("=\xcc\xb8\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83", true); } // [V6]
762619076test { try toUnicodeFail("xn--1chy468a.xn--2ed"); } // [V6]
19077test { try toAsciiFail("xn--1chy468a.xn--2ed", false); } // [V6]
19078test { try toAsciiFail("xn--1chy468a.xn--2ed", true); } // [V6]
762719079test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1\xc3\x9f"); } // [B5, B6, V7]
19080test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1\xc3\x9f", false); } // [B5, B6, V7]
19081test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1\xc3\x9f", true); } // [B5, B6, V7]
762819082test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82\xc3\x9f"); } // [B5, B6, V7]
19083test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82\xc3\x9f", false); } // [B5, B6, V7]
19084test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82\xc3\x9f", true); } // [B5, B6, V7]
762919085test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82SS"); } // [B5, B6, V7]
19086test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82SS", false); } // [B5, B6, V7]
19087test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82SS", true); } // [B5, B6, V7]
763019088test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82ss"); } // [B5, B6, V7]
19089test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82ss", false); } // [B5, B6, V7]
19090test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82ss", true); } // [B5, B6, V7]
763119091test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82Ss"); } // [B5, B6, V7]
19092test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82Ss", false); } // [B5, B6, V7]
19093test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82Ss", true); } // [B5, B6, V7]
763219094test { try toUnicodeFail("xn----j6c95618k.ss"); } // [B5, B6, V7]
19095test { try toAsciiFail("xn----j6c95618k.ss", false); } // [B5, B6, V7]
19096test { try toAsciiFail("xn----j6c95618k.ss", true); } // [B5, B6, V7]
763319097test { try toUnicodeFail("xn----j6c95618k.xn--zca"); } // [B5, B6, V7]
19098test { try toAsciiFail("xn----j6c95618k.xn--zca", false); } // [B5, B6, V7]
19099test { try toAsciiFail("xn----j6c95618k.xn--zca", true); } // [B5, B6, V7]
763419100test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1SS"); } // [B5, B6, V7]
19101test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1SS", false); } // [B5, B6, V7]
19102test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1SS", true); } // [B5, B6, V7]
763519103test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1ss"); } // [B5, B6, V7]
19104test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1ss", false); } // [B5, B6, V7]
19105test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1ss", true); } // [B5, B6, V7]
763619106test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1Ss"); } // [B5, B6, V7]
19107test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1Ss", false); } // [B5, B6, V7]
19108test { try toAsciiFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1Ss", true); } // [B5, B6, V7]
763719109test { try toUnicodeFail("\xcf\x82\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c"); } // [B5, B6, V7]
19110test { try toAsciiFail("\xcf\x82\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", false); } // [B5, B6, V7]
19111test { try toAsciiFail("\xcf\x82\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", true); } // [B5, B6, V7]
763819112test { try toUnicodeFail("\xcf\x82\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c"); } // [B5, B6, V7]
19113test { try toAsciiFail("\xcf\x82\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", false); } // [B5, B6, V7]
19114test { try toAsciiFail("\xcf\x82\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", true); } // [B5, B6, V7]
763919115test { try toUnicodeFail("\xce\xa3\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c"); } // [B5, B6, V7]
19116test { try toAsciiFail("\xce\xa3\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", false); } // [B5, B6, V7]
19117test { try toAsciiFail("\xce\xa3\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", true); } // [B5, B6, V7]
764019118test { try toUnicodeFail("\xcf\x83\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c"); } // [B5, B6, V7]
19119test { try toAsciiFail("\xcf\x83\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", false); } // [B5, B6, V7]
19120test { try toAsciiFail("\xcf\x83\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3.\xe9\x9d\x91\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", true); } // [B5, B6, V7]
764119121test { try toUnicodeFail("xn--4xa656hp23pxmc.xn--es5a888tvjc2u15h"); } // [B5, B6, V7]
19122test { try toAsciiFail("xn--4xa656hp23pxmc.xn--es5a888tvjc2u15h", false); } // [B5, B6, V7]
19123test { try toAsciiFail("xn--4xa656hp23pxmc.xn--es5a888tvjc2u15h", true); } // [B5, B6, V7]
764219124test { try toUnicodeFail("xn--3xa856hp23pxmc.xn--es5a888tvjc2u15h"); } // [B5, B6, V7]
19125test { try toAsciiFail("xn--3xa856hp23pxmc.xn--es5a888tvjc2u15h", false); } // [B5, B6, V7]
19126test { try toAsciiFail("xn--3xa856hp23pxmc.xn--es5a888tvjc2u15h", true); } // [B5, B6, V7]
764319127test { try toUnicodeFail("\xce\xa3\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c"); } // [B5, B6, V7]
19128test { try toAsciiFail("\xce\xa3\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", false); } // [B5, B6, V7]
19129test { try toAsciiFail("\xce\xa3\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", true); } // [B5, B6, V7]
764419130test { try toUnicodeFail("\xcf\x83\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c"); } // [B5, B6, V7]
19131test { try toAsciiFail("\xcf\x83\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", false); } // [B5, B6, V7]
19132test { try toAsciiFail("\xcf\x83\xf0\x90\xb9\xa0\xe1\xa1\x9a\xf0\x91\x84\xb3\xef\xbc\x8e\xe2\xbe\xad\xf0\x90\xb9\xbd\xf0\xbd\x90\x96\xf0\x90\xab\x9c", true); } // [B5, B6, V7]
764519133test { try toUnicodeFail("\xf0\x90\x8b\xb7\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
19134test { try toAsciiFail("\xf0\x90\x8b\xb7\xe3\x80\x82\xe2\x80\x8d", false); } // [C2]
19135test { try toAsciiFail("\xf0\x90\x8b\xb7\xe3\x80\x82\xe2\x80\x8d", true); } // [A4_2]
764619136test { try toUnicodePass("xn--r97c.", "\xf0\x90\x8b\xb7."); }
19137test { try toAsciiFail("xn--r97c.", false); } // [A4_2]
19138test { try toAsciiFail("xn--r97c.", true); } // [A4_2]
764719139test { try toUnicodePass("\xf0\x90\x8b\xb7.", "\xf0\x90\x8b\xb7."); }
19140test { try toAsciiFail("\xf0\x90\x8b\xb7.", false); } // [A4_2]
19141test { try toAsciiFail("\xf0\x90\x8b\xb7.", true); } // [A4_2]
764819142test { try toUnicodeFail("xn--r97c.xn--1ug"); } // [C2]
19143test { try toAsciiFail("xn--r97c.xn--1ug", false); } // [C2]
19144test { try toAsciiFail("xn--r97c.xn--1ug", true); } // [C2]
764919145test { try toUnicodeFail("\xf0\x91\xb0\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xe2\xa5\xaa"); } // [V6]
19146test { try toAsciiFail("\xf0\x91\xb0\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xe2\xa5\xaa", false); } // [V6]
19147test { try toAsciiFail("\xf0\x91\xb0\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xe2\xa5\xaa", true); } // [V6]
765019148test { try toUnicodeFail("xn--2g1d14o.xn--jti"); } // [V6]
19149test { try toAsciiFail("xn--2g1d14o.xn--jti", false); } // [V6]
19150test { try toAsciiFail("xn--2g1d14o.xn--jti", true); } // [V6]
765119151test { try toUnicodeFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3\xef\xbc\x8e\xe1\x82\xb5\xf0\x9d\x9f\x9c\xe2\x80\x8c\xcd\x88"); } // [C1, V6, V7]
19152test { try toAsciiFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3\xef\xbc\x8e\xe1\x82\xb5\xf0\x9d\x9f\x9c\xe2\x80\x8c\xcd\x88", false); } // [C1, V6, V7]
19153test { try toAsciiFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3\xef\xbc\x8e\xe1\x82\xb5\xf0\x9d\x9f\x9c\xe2\x80\x8c\xcd\x88", true); } // [V6, V7]
765219154test { try toUnicodeFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe1\x82\xb54\xe2\x80\x8c\xcd\x88"); } // [C1, V6, V7]
19155test { try toAsciiFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe1\x82\xb54\xe2\x80\x8c\xcd\x88", false); } // [C1, V6, V7]
19156test { try toAsciiFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe1\x82\xb54\xe2\x80\x8c\xcd\x88", true); } // [V6, V7]
765319157test { try toUnicodeFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe2\xb4\x954\xe2\x80\x8c\xcd\x88"); } // [C1, V6, V7]
19158test { try toAsciiFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe2\xb4\x954\xe2\x80\x8c\xcd\x88", false); } // [C1, V6, V7]
19159test { try toAsciiFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe2\xb4\x954\xe2\x80\x8c\xcd\x88", true); } // [V6, V7]
765419160test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb5123a"); } // [V6, V7]
19161test { try toAsciiFail("xn--1mnx647cg3x1b.xn--4-zfb5123a", false); } // [V6, V7]
19162test { try toAsciiFail("xn--1mnx647cg3x1b.xn--4-zfb5123a", true); } // [V6, V7]
765519163test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb502tlsl"); } // [C1, V6, V7]
19164test { try toAsciiFail("xn--1mnx647cg3x1b.xn--4-zfb502tlsl", false); } // [C1, V6, V7]
19165test { try toAsciiFail("xn--1mnx647cg3x1b.xn--4-zfb502tlsl", true); } // [C1, V6, V7]
765619166test { try toUnicodeFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3\xef\xbc\x8e\xe2\xb4\x95\xf0\x9d\x9f\x9c\xe2\x80\x8c\xcd\x88"); } // [C1, V6, V7]
19167test { try toAsciiFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3\xef\xbc\x8e\xe2\xb4\x95\xf0\x9d\x9f\x9c\xe2\x80\x8c\xcd\x88", false); } // [C1, V6, V7]
19168test { try toAsciiFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3\xef\xbc\x8e\xe2\xb4\x95\xf0\x9d\x9f\x9c\xe2\x80\x8c\xcd\x88", true); } // [V6, V7]
765719169test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb324h"); } // [V6, V7]
19170test { try toAsciiFail("xn--1mnx647cg3x1b.xn--4-zfb324h", false); } // [V6, V7]
19171test { try toAsciiFail("xn--1mnx647cg3x1b.xn--4-zfb324h", true); } // [V6, V7]
765819172test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb324h32o"); } // [C1, V6, V7]
19173test { try toAsciiFail("xn--1mnx647cg3x1b.xn--4-zfb324h32o", false); } // [C1, V6, V7]
19174test { try toAsciiFail("xn--1mnx647cg3x1b.xn--4-zfb324h32o", true); } // [C1, V6, V7]
765919175test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0"); } // [C1, C2, U1]
19176test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0", false); } // [C1, C2, U1]
19177test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0", true); } // [U1]
766019178test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8"); } // [C1, C2, U1]
19179test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8", false); } // [C1, C2, U1]
19180test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8", true); } // [U1]
766119181test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8"); } // [C1, C2, U1]
19182test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8", false); } // [C1, C2, U1]
19183test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8", true); } // [U1]
766219184test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0"); } // [C1, C2, U1]
19185test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0", false); } // [C1, C2, U1]
19186test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0", true); } // [U1]
766319187test { try toUnicodeFail("xn--?-fwsr13r.xn--1chz659f"); } // [U1]
19188test { try toAsciiFail("xn--?-fwsr13r.xn--1chz659f", false); } // [U1]
19189test { try toAsciiFail("xn--?-fwsr13r.xn--1chz659f", true); } // [U1]
766419190test { try toUnicodeFail("xn--?-sgn310doh5c.xn--1ug73gl146a"); } // [C1, C2, U1]
19191test { try toAsciiFail("xn--?-sgn310doh5c.xn--1ug73gl146a", false); } // [C1, C2, U1]
19192test { try toAsciiFail("xn--?-sgn310doh5c.xn--1ug73gl146a", true); } // [C1, C2, U1]
766519193test { try toUnicodeFail("xn--?-c1g3623d.xn--1chz659f"); } // [V7, U1]
19194test { try toAsciiFail("xn--?-c1g3623d.xn--1chz659f", false); } // [V7, U1]
19195test { try toAsciiFail("xn--?-c1g3623d.xn--1chz659f", true); } // [V7, U1]
766619196test { try toUnicodeFail("xn--?-c1g798iy27d.xn--1ug73gl146a"); } // [C1, C2, V7, U1]
19197test { try toAsciiFail("xn--?-c1g798iy27d.xn--1ug73gl146a", false); } // [C1, C2, V7, U1]
19198test { try toAsciiFail("xn--?-c1g798iy27d.xn--1ug73gl146a", true); } // [C1, C2, V7, U1]
766719199test { try toUnicodeFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1chz659f"); } // [U1]
19200test { try toAsciiFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1chz659f", false); } // [U1]
19201test { try toAsciiFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1chz659f", true); } // [U1]
766819202test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1CHZ659F"); } // [U1]
19203test { try toAsciiFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1CHZ659F", false); } // [U1]
19204test { try toAsciiFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1CHZ659F", true); } // [U1]
766919205test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1chz659f"); } // [U1]
19206test { try toAsciiFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1chz659f", false); } // [U1]
19207test { try toAsciiFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1chz659f", true); } // [U1]
767019208test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.xn--1ug73gl146a"); } // [C1, C2, U1]
19209test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.xn--1ug73gl146a", false); } // [C1, C2, U1]
19210test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.xn--1ug73gl146a", true); } // [C2, U1]
767119211test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.XN--1UG73GL146A"); } // [C1, C2, U1]
19212test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.XN--1UG73GL146A", false); } // [C1, C2, U1]
19213test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.XN--1UG73GL146A", true); } // [C2, U1]
767219214test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.xn--1ug73gl146a"); } // [C1, C2, U1]
19215test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.xn--1ug73gl146a", false); } // [C1, C2, U1]
19216test { try toAsciiFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.xn--1ug73gl146a", true); } // [C2, U1]
767319217test { try toUnicodeFail("xn--?-fwsr13r.xn--1ug73gl146a"); } // [C2, U1]
19218test { try toAsciiFail("xn--?-fwsr13r.xn--1ug73gl146a", false); } // [C2, U1]
19219test { try toAsciiFail("xn--?-fwsr13r.xn--1ug73gl146a", true); } // [C2, U1]
767419220test { try toUnicodeFail("xn--?-c1g3623d.xn--1ug73gl146a"); } // [C2, V7, U1]
19221test { try toAsciiFail("xn--?-c1g3623d.xn--1ug73gl146a", false); } // [C2, V7, U1]
19222test { try toAsciiFail("xn--?-c1g3623d.xn--1ug73gl146a", true); } // [C2, V7, U1]
767519223test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1ug73gl146a"); } // [C2, U1]
19224test { try toAsciiFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1ug73gl146a", false); } // [C2, U1]
19225test { try toAsciiFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1ug73gl146a", true); } // [C2, U1]
767619226test { try toUnicodeFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1ug73gl146a"); } // [C2, U1]
19227test { try toAsciiFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1ug73gl146a", false); } // [C2, U1]
19228test { try toAsciiFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1ug73gl146a", true); } // [C2, U1]
767719229test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1UG73GL146A"); } // [C2, U1]
19230test { try toAsciiFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1UG73GL146A", false); } // [C2, U1]
19231test { try toAsciiFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1UG73GL146A", true); } // [C2, U1]