authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-20 22:43:58 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-20 22:43:58 -08:00
logf592a52d3d49814e12d9311974bdc4d844c7c510
treeea118dc4401f40fa2c50850c8672e352b9f5f3b2
parent18bab1f29d39c90f00d6e6e9cd7a8a0a559ddb10

pass toUnicodeFail

All 7622 tests passed.

5 files changed, 5899 insertions(+), 8 deletions(-)

generate.ts+3-3
...@@ -242,9 +242,9 @@ fn toAsciiFail(...@@ -242,9 +242,9 @@ fn toAsciiFail(
242 if (toAsciiNStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiN)}", false); }\n`);242 if (toAsciiNStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiN)}", false); }\n`);
243 if (toAsciiTStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiT)}", true); }\n`);243 if (toAsciiTStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiT)}", true); }\n`);
244244
245 // if (toUnicodeStatus !== "[]") w.write(`test { try toUnicodeFail("${E(source)}"); }\n`);245 if (toUnicodeStatus !== "[]") w.write(`test { try toUnicodeFail("${E(source)}"); } // ${toUnicodeStatus}\n`);
246 // if (toAsciiNStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", false); }\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); }\n`);247 // if (toAsciiTStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", true); } // ${toAsciiTStatus}\n`);
248 }248 }
249249
250 w.flush();250 w.flush();
idna.zig+162-4
...@@ -40,7 +40,12 @@ pub fn ToASCII(...@@ -40,7 +40,12 @@ pub fn ToASCII(
40 }40 }
4141
42 if (VerifyDnsLength) {42 if (VerifyDnsLength) {
43 //43 // 1. The length of the domain name, excluding the root label and its dot, is from 1 to 253.
44 // 2. The length of each label is from 1 to 63.
45 for (map.lengths.items, 0..) |l, n| {
46 if (n % 2 == 1) continue;
47 if (l < 1 or l > 63) return error.IDNAFailure;
48 }
44 }49 }
4550
46 return map.toOwnedSlice();51 return map.toOwnedSlice();
...@@ -170,6 +175,10 @@ fn Processing(...@@ -170,6 +175,10 @@ fn Processing(
170 try Validity_Criteria(label, CheckHyphens, Transitional_Processing, UseSTD3ASCIIRules, CheckJoiners, CheckBidi and domain_is_bidi);175 try Validity_Criteria(label, CheckHyphens, Transitional_Processing, UseSTD3ASCIIRules, CheckJoiners, CheckBidi and domain_is_bidi);
171 }176 }
172 }177 }
178
179 // X4_2
180 if (std.mem.indexOf(u8, map.list.items, "..") != null) return error.IDNAFailure;
181 if (std.mem.startsWith(u8, map.list.items, ".")) return error.IDNAFailure;
173}182}
174183
175//184//
...@@ -230,10 +239,42 @@ fn Validity_Criteria(...@@ -230,10 +239,42 @@ fn Validity_Criteria(
230239
231 // 7. Each code point in the label must only have certain Status values according to Section 5, IDNA Mapping Table:240 // 7. Each code point in the label must only have certain Status values according to Section 5, IDNA Mapping Table:
232 var it = std.unicode.Utf8View.initUnchecked(label).iterator();241 var it = std.unicode.Utf8View.initUnchecked(label).iterator();
242 var prev_ccc: u8 = 0;
243 var prev_cp: u21 = 0;
233 while (it.nextCodepointSlice()) |sl| {244 while (it.nextCodepointSlice()) |sl| {
234 const cp = std.unicode.utf8Decode(sl) catch unreachable;245 const cp = std.unicode.utf8Decode(sl) catch unreachable;
235 const status, _, _ = mappingRow(cp);246 const status, _, _ = mappingRow(cp);
236247
248 // [V1]
249 const ccc = normalization.cpCCC(cp);
250 if (prev_ccc > ccc and ccc > 0) return error.IDNAFailure;
251 for (&ucd.derived_normalization_props.nfc_qc_n.data) |d| if (cp == d) return error.IDNAFailure;
252 for (&ucd.derived_normalization_props.nfc_qc_n.data_range) |d| if (cp >= d.from and cp <= d.to) return error.IDNAFailure;
253 for (&ucd.derived_normalization_props.nfc_qc_m.data) |d| if (cp == d) {
254 for (&ucd.unicode_data.data) |r| {
255 if (r[5] != .__canonical) continue;
256 if (r[6].len != 2) continue;
257 if (r[6][0] != prev_cp) continue;
258 if (r[6][1] != cp) continue;
259 if (std.sort.binarySearch(u21, &ucd.composition_exclusions.data, r[0], extras.compareFnBasic(u21)) != null) continue;
260 // if (r[3] != 0) continue;
261 return error.IDNAFailure;
262 }
263 };
264 for (&ucd.derived_normalization_props.nfc_qc_m.data_range) |d| if (cp >= d.from and cp <= d.to) {
265 for (&ucd.unicode_data.data) |r| {
266 if (r[5] != .__canonical) continue;
267 if (r[6].len != 2) continue;
268 if (r[6][0] != prev_cp) continue;
269 if (r[6][1] != cp) continue;
270 if (std.sort.binarySearch(u21, &ucd.composition_exclusions.data, r[0], extras.compareFnBasic(u21)) != null) continue;
271 // if (r[3] != 0) continue;
272 return error.IDNAFailure;
273 }
274 };
275 prev_ccc = ccc;
276 prev_cp = cp;
277
237 // 1. For Transitional Processing (deprecated), each value must be valid.278 // 1. For Transitional Processing (deprecated), each value must be valid.
238 // 2. For Nontransitional Processing, each value must be either valid or deviation.279 // 2. For Nontransitional Processing, each value must be either valid or deviation.
239 if (Transitional_Processing) {280 if (Transitional_Processing) {
...@@ -254,7 +295,95 @@ fn Validity_Criteria(...@@ -254,7 +295,95 @@ fn Validity_Criteria(
254295
255 // 8. If CheckJoiners, the label must satisify the ContextJ rules from RFC 5892 Appendix A.296 // 8. If CheckJoiners, the label must satisify the ContextJ rules from RFC 5892 Appendix A.
256 if (CheckJoiners) {297 if (CheckJoiners) {
257 //298 it.i = 0;
299 var point_2before: ucd.unicode_data.Codepoint = ucd.unicode_data.data[0];
300 var point_before: ucd.unicode_data.Codepoint = ucd.unicode_data.data[0];
301 var zwnj_state: enum { start, dual_joining, transparent1, zwnj, transparent2, right_joining } = .start;
302 var check_zwnj_state: ?bool = null;
303
304 while (it.nextCodepointSlice()) |s| {
305 const c = std.unicode.utf8Decode(s) catch unreachable;
306 const p = ucd.unicode_data.find(c);
307 {
308 // Appendix A.1. ZERO WIDTH NON-JOINER
309 if (c == 0x200C) {
310 if (check_zwnj_state == null) check_zwnj_state = true;
311 if (point_before[3] == 9) check_zwnj_state = false;
312 }
313 switch (zwnj_state) {
314 .start => {
315 if (Joining_Type(c)) |t| {
316 if (t == .L) zwnj_state = .dual_joining;
317 if (t == .D) zwnj_state = .dual_joining;
318 }
319 },
320 .dual_joining => {
321 if (Joining_Type(c)) |t| {
322 switch (t) {
323 .T => zwnj_state = .transparent1,
324 .L, .D => {},
325 else => zwnj_state = .transparent1,
326 }
327 } else {
328 zwnj_state = .transparent1;
329 }
330 if (c == 0x200C) zwnj_state = .zwnj;
331 },
332 .transparent1 => {
333 if (c == 0x200C) {
334 zwnj_state = .zwnj;
335 } else {
336 zwnj_state = .start;
337 }
338 },
339 .zwnj => {
340 if (Joining_Type(c)) |t| {
341 switch (t) {
342 .T => zwnj_state = .transparent2,
343 .R, .D => zwnj_state = .right_joining,
344 .L => zwnj_state = .dual_joining,
345 else => zwnj_state = .transparent2,
346 }
347 } else {
348 zwnj_state = .transparent2;
349 }
350 },
351 .transparent2 => {
352 if (Joining_Type(c)) |t| {
353 switch (t) {
354 .R, .D => zwnj_state = .right_joining,
355 .L => zwnj_state = .dual_joining,
356 else => zwnj_state = .start,
357 }
358 } else {
359 zwnj_state = .start;
360 }
361 },
362 .right_joining => {
363 //rule passed
364 },
365 }
366 // Appendix A.2. ZERO WIDTH JOINER
367 if (c == 0x200D and point_before[3] != 9) return error.IDNAFailure;
368 // Appendix A.3. MIDDLE DOT
369 if (point_before[0] == 0x00B7 and !(point_2before[0] == 0x006C and c == 0x006C)) return error.IDNAFailure;
370 // Appendix A.4. GREEK LOWER NUMERAL SIGN (KERAIA)
371 if (point_before[0] == 0x0375 and !(Script(c) == .Greek)) return error.IDNAFailure;
372 // Appendix A.5. HEBREW PUNCTUATION GERESH
373 if (c == 0x05F3 and !(Script(point_before[0]) == .Hebrew)) return error.IDNAFailure;
374 // Appendix A.6. HEBREW PUNCTUATION GERSHAYIM
375 if (c == 0x05F4 and !(Script(point_before[0]) == .Hebrew)) return error.IDNAFailure;
376 // Appendix A.7. KATAKANA MIDDLE DOT
377 if (false) return error.IDNAFailure;
378 // Appendix A.8. ARABIC-INDIC DIGITS
379 if (false) return error.IDNAFailure;
380 // Appendix A.9. EXTENDED ARABIC-INDIC DIGITS
381 if (false) return error.IDNAFailure;
382 }
383 point_2before = point_before;
384 point_before = p;
385 }
386 if (check_zwnj_state == true and zwnj_state != .right_joining) return error.IDNAFailure;
258 }387 }
259388
260 // 9. If CheckBidi, and if the domain name is a Bidi domain name, then the label must satisfy all six of the numbered conditions in RFC 5893 Section 2.389 // 9. If CheckBidi, and if the domain name is a Bidi domain name, then the label must satisfy all six of the numbered conditions in RFC 5893 Section 2.
...@@ -268,24 +397,32 @@ fn Validity_Criteria(...@@ -268,24 +397,32 @@ fn Validity_Criteria(
268 switch (first_p[4]) {397 switch (first_p[4]) {
269 .L => {398 .L => {
270 it.i = 0;399 it.i = 0;
400 var last_bidi_class: ucd.BidiClass = .NSM;
271 while (it.nextCodepointSlice()) |sl| {401 while (it.nextCodepointSlice()) |sl| {
272 const cp = std.unicode.utf8Decode(sl) catch unreachable;402 const cp = std.unicode.utf8Decode(sl) catch unreachable;
273 const point = ucd.unicode_data.find(cp);403 const point = ucd.unicode_data.find(cp);
274 switch (point[4]) {404 switch (point[4]) {
275 .L, .EN, .ES, .CS, .ET, .ON, .BN, .NSM => {},405 .L, .EN, .ES, .CS, .ET, .ON, .BN => |cl| last_bidi_class = cl,
406 .NSM => {},
276 else => return error.IDNAFailure,407 else => return error.IDNAFailure,
277 }408 }
278 }409 }
410 switch (last_bidi_class) {
411 .L, .EN => {},
412 else => return error.IDNAFailure,
413 }
279 },414 },
280 .R, .AL => {415 .R, .AL => {
281 it.i = 0;416 it.i = 0;
282 var seen_en = false;417 var seen_en = false;
283 var seen_an = false;418 var seen_an = false;
419 var last_bidi_class: ucd.BidiClass = .NSM;
284 while (it.nextCodepointSlice()) |sl| {420 while (it.nextCodepointSlice()) |sl| {
285 const cp = std.unicode.utf8Decode(sl) catch unreachable;421 const cp = std.unicode.utf8Decode(sl) catch unreachable;
286 const point = ucd.unicode_data.find(cp);422 const point = ucd.unicode_data.find(cp);
287 switch (point[4]) {423 switch (point[4]) {
288 .R, .AL, .AN, .EN, .ES, .CS, .ET, .ON, .BN, .NSM => {},424 .R, .AL, .AN, .EN, .ES, .CS, .ET, .ON, .BN => |cl| last_bidi_class = cl,
425 .NSM => {},
289 else => return error.IDNAFailure,426 else => return error.IDNAFailure,
290 }427 }
291 if (point[4] == .EN and seen_an) return error.IDNAFailure;428 if (point[4] == .EN and seen_an) return error.IDNAFailure;
...@@ -293,8 +430,29 @@ fn Validity_Criteria(...@@ -293,8 +430,29 @@ fn Validity_Criteria(
293 if (point[4] == .AN and seen_en) return error.IDNAFailure;430 if (point[4] == .AN and seen_en) return error.IDNAFailure;
294 if (point[4] == .AN) seen_an = true;431 if (point[4] == .AN) seen_an = true;
295 }432 }
433 switch (last_bidi_class) {
434 .R, .AL, .EN, .AN => {},
435 else => return error.IDNAFailure,
436 }
296 },437 },
297 else => return error.IDNAFailure,438 else => return error.IDNAFailure,
298 }439 }
299 }440 }
300}441}
442
443fn Script(cp: u21) ucd.ScriptLong {
444 for (&ucd.scripts.data) |d| {
445 if (cp >= d.from and cp <= d.to) {
446 return d.script;
447 }
448 }
449 unreachable;
450}
451fn Joining_Type(cp: u21) ?ucd.arabic_shaping.Joining.Type {
452 for (&ucd.arabic_shaping.data) |d| {
453 if (cp == d.codepoint) {
454 return d.joining_type;
455 }
456 }
457 return null;
458}
normalization.zig+3-1
...@@ -1,3 +1,5 @@...@@ -1,3 +1,5 @@
1//! https://unicode.org/reports/tr15/
2
1const std = @import("std");3const std = @import("std");
2const extras = @import("extras");4const extras = @import("extras");
3const ucd = @import("unicode-ucd");5const ucd = @import("unicode-ucd");
...@@ -185,7 +187,7 @@ fn CanonicalComposition(map: *extras.ManyArrayList(u8)) !void {...@@ -185,7 +187,7 @@ fn CanonicalComposition(map: *extras.ManyArrayList(u8)) !void {
185 }187 }
186}188}
187189
188fn cpCCC(cp: u21) u8 {190pub fn cpCCC(cp: u21) u8 {
189 if (cp < data_first_gap) {191 if (cp < data_first_gap) {
190 return data.items[3][cp];192 return data.items[3][cp];
191 }193 }
punycode.zig+1
...@@ -157,6 +157,7 @@ pub fn encode(map: *extras.ManyArrayList(u8), map_n: usize) !void {...@@ -157,6 +157,7 @@ pub fn encode(map: *extras.ManyArrayList(u8), map_n: usize) !void {
157 }157 }
158 try map.list.ensureUnusedCapacity(map.allocator, b + 1);158 try map.list.ensureUnusedCapacity(map.allocator, b + 1);
159 input = map.items(map_n)[0..initial_len];159 input = map.items(map_n)[0..initial_len];
160 it.bytes = input;
160 i = 0;161 i = 0;
161 while (i < input.len) : (i += 1) {162 while (i < input.len) : (i += 1) {
162 if (std.ascii.isAscii(input[i])) map.appendSlice(map_n, &.{input[i]}) catch unreachable;163 if (std.ascii.isAscii(input[i])) map.appendSlice(map_n, &.{input[i]}) catch unreachable;
testv2.zig+5730
...@@ -68,6 +68,16 @@ test { try toAsciiPass("Fa\xc3\x9f.de", "fass.de", true); }...@@ -68,6 +68,16 @@ test { try toAsciiPass("Fa\xc3\x9f.de", "fass.de", true); }
68test { try toUnicodePass("xn--fa-hia.de", "fa\xc3\x9f.de"); }68test { try toUnicodePass("xn--fa-hia.de", "fa\xc3\x9f.de"); }
69test { try toAsciiPass("xn--fa-hia.de", "xn--fa-hia.de", false); }69test { try toAsciiPass("xn--fa-hia.de", "xn--fa-hia.de", false); }
70test { try toAsciiPass("xn--fa-hia.de", "xn--fa-hia.de", true); }70test { try toAsciiPass("xn--fa-hia.de", "xn--fa-hia.de", true); }
71test { try toUnicodeFail("\xc3\xa0\xd7\x90"); } // [B5, B6]
72test { try toUnicodeFail("a\xcc\x80\xd7\x90"); } // [B5, B6]
73test { try toUnicodeFail("A\xcc\x80\xd7\x90"); } // [B5, B6]
74test { try toUnicodeFail("\xc3\x80\xd7\x90"); } // [B5, B6]
75test { try toUnicodeFail("xn--0ca24w"); } // [B5, B6]
76test { try toUnicodeFail("0\xc3\xa0.\xd7\x90"); } // [B1]
77test { try toUnicodeFail("0a\xcc\x80.\xd7\x90"); } // [B1]
78test { try toUnicodeFail("0A\xcc\x80.\xd7\x90"); } // [B1]
79test { try toUnicodeFail("0\xc3\x80.\xd7\x90"); } // [B1]
80test { try toUnicodeFail("xn--0-sfa.xn--4db"); } // [B1]
71test { try toUnicodePass("\xc3\xa0.\xd7\x90\xcc\x88", "\xc3\xa0.\xd7\x90\xcc\x88"); }81test { try toUnicodePass("\xc3\xa0.\xd7\x90\xcc\x88", "\xc3\xa0.\xd7\x90\xcc\x88"); }
72test { try toAsciiPass("\xc3\xa0.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", false); }82test { try toAsciiPass("\xc3\xa0.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", false); }
73test { try toAsciiPass("\xc3\xa0.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", true); }83test { try toAsciiPass("\xc3\xa0.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", true); }
...@@ -83,6 +93,23 @@ test { try toAsciiPass("\xc3\x80.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", true);...@@ -83,6 +93,23 @@ test { try toAsciiPass("\xc3\x80.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", true);
83test { try toUnicodePass("xn--0ca.xn--ssa73l", "\xc3\xa0.\xd7\x90\xcc\x88"); }93test { try toUnicodePass("xn--0ca.xn--ssa73l", "\xc3\xa0.\xd7\x90\xcc\x88"); }
84test { try toAsciiPass("xn--0ca.xn--ssa73l", "xn--0ca.xn--ssa73l", false); }94test { try toAsciiPass("xn--0ca.xn--ssa73l", "xn--0ca.xn--ssa73l", false); }
85test { try toAsciiPass("xn--0ca.xn--ssa73l", "xn--0ca.xn--ssa73l", true); }95test { try toAsciiPass("xn--0ca.xn--ssa73l", "xn--0ca.xn--ssa73l", true); }
96test { try toUnicodeFail("\xc3\xa0.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4]
97test { try toUnicodeFail("a\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4]
98test { try toUnicodeFail("A\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4]
99test { try toUnicodeFail("\xc3\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4]
100test { try toUnicodeFail("xn--0ca.xn--0-zhcb98c"); } // [B4]
101test { try toUnicodeFail("\xcc\x88.\xd7\x90"); } // [B1, V6]
102test { try toUnicodeFail("xn--ssa.xn--4db"); } // [B1, V6]
103test { try toUnicodeFail("\xc3\xa0.\xd7\x900\xd9\xa0"); } // [B4]
104test { try toUnicodeFail("a\xcc\x80.\xd7\x900\xd9\xa0"); } // [B4]
105test { try toUnicodeFail("A\xcc\x80.\xd7\x900\xd9\xa0"); } // [B4]
106test { try toUnicodeFail("\xc3\x80.\xd7\x900\xd9\xa0"); } // [B4]
107test { try toUnicodeFail("xn--0ca.xn--0-zhc74b"); } // [B4]
108test { try toUnicodeFail("\xc3\xa0\xcb\x87.\xd7\x90"); } // [B6]
109test { try toUnicodeFail("a\xcc\x80\xcb\x87.\xd7\x90"); } // [B6]
110test { try toUnicodeFail("A\xcc\x80\xcb\x87.\xd7\x90"); } // [B6]
111test { try toUnicodeFail("\xc3\x80\xcb\x87.\xd7\x90"); } // [B6]
112test { try toUnicodeFail("xn--0ca88g.xn--4db"); } // [B6]
86test { try toUnicodePass("\xc3\xa0\xcc\x88.\xd7\x90", "\xc3\xa0\xcc\x88.\xd7\x90"); }113test { try toUnicodePass("\xc3\xa0\xcc\x88.\xd7\x90", "\xc3\xa0\xcc\x88.\xd7\x90"); }
87test { try toAsciiPass("\xc3\xa0\xcc\x88.\xd7\x90", "xn--0ca81i.xn--4db", false); }114test { try toAsciiPass("\xc3\xa0\xcc\x88.\xd7\x90", "xn--0ca81i.xn--4db", false); }
88test { try toAsciiPass("\xc3\xa0\xcc\x88.\xd7\x90", "xn--0ca81i.xn--4db", true); }115test { try toAsciiPass("\xc3\xa0\xcc\x88.\xd7\x90", "xn--0ca81i.xn--4db", true); }
...@@ -99,11 +126,15 @@ test { try toUnicodePass("xn--0ca81i.xn--4db", "\xc3\xa0\xcc\x88.\xd7\x90"); }...@@ -99,11 +126,15 @@ test { try toUnicodePass("xn--0ca81i.xn--4db", "\xc3\xa0\xcc\x88.\xd7\x90"); }
99test { try toAsciiPass("xn--0ca81i.xn--4db", "xn--0ca81i.xn--4db", false); }126test { try toAsciiPass("xn--0ca81i.xn--4db", "xn--0ca81i.xn--4db", false); }
100test { try toAsciiPass("xn--0ca81i.xn--4db", "xn--0ca81i.xn--4db", true); }127test { try toAsciiPass("xn--0ca81i.xn--4db", "xn--0ca81i.xn--4db", true); }
101test { try toAsciiPass("a\xe2\x80\x8cb", "ab", true); }128test { try toAsciiPass("a\xe2\x80\x8cb", "ab", true); }
129test { try toUnicodeFail("a\xe2\x80\x8cb"); } // [C1]
102test { try toAsciiPass("A\xe2\x80\x8cB", "ab", true); }130test { try toAsciiPass("A\xe2\x80\x8cB", "ab", true); }
131test { try toUnicodeFail("A\xe2\x80\x8cB"); } // [C1]
103test { try toAsciiPass("A\xe2\x80\x8cb", "ab", true); }132test { try toAsciiPass("A\xe2\x80\x8cb", "ab", true); }
133test { try toUnicodeFail("A\xe2\x80\x8cb"); } // [C1]
104test { try toUnicodePass("ab", "ab"); }134test { try toUnicodePass("ab", "ab"); }
105test { try toAsciiPass("ab", "ab", false); }135test { try toAsciiPass("ab", "ab", false); }
106test { try toAsciiPass("ab", "ab", true); }136test { try toAsciiPass("ab", "ab", true); }
137test { try toUnicodeFail("xn--ab-j1t"); } // [C1]
107test { try toUnicodePass("a\xe0\xa5\x8d\xe2\x80\x8cb", "a\xe0\xa5\x8d\xe2\x80\x8cb"); }138test { try toUnicodePass("a\xe0\xa5\x8d\xe2\x80\x8cb", "a\xe0\xa5\x8d\xe2\x80\x8cb"); }
108test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8cb", "xn--ab-fsf604u", false); }139test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8cb", "xn--ab-fsf604u", false); }
109test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8cb", "xn--ab-fsf", true); }140test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8cb", "xn--ab-fsf", true); }
...@@ -128,9 +159,26 @@ test { try toAsciiPass("A\xe0\xa5\x8db", "xn--ab-fsf", true); }...@@ -128,9 +159,26 @@ test { try toAsciiPass("A\xe0\xa5\x8db", "xn--ab-fsf", true); }
128test { try toUnicodePass("xn--ab-fsf604u", "a\xe0\xa5\x8d\xe2\x80\x8cb"); }159test { try toUnicodePass("xn--ab-fsf604u", "a\xe0\xa5\x8d\xe2\x80\x8cb"); }
129test { try toAsciiPass("xn--ab-fsf604u", "xn--ab-fsf604u", false); }160test { try toAsciiPass("xn--ab-fsf604u", "xn--ab-fsf604u", false); }
130test { try toAsciiPass("xn--ab-fsf604u", "xn--ab-fsf604u", true); }161test { try toAsciiPass("xn--ab-fsf604u", "xn--ab-fsf604u", true); }
162test { try toUnicodeFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B1, C1, V6]
163test { try toUnicodeFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B"); } // [B1, C1, V6]
164test { try toUnicodeFail("xn--b-bcba413a"); } // [B1, V6]
165test { try toUnicodeFail("xn--b-bcba413a2w8b"); } // [B1, C1, V6]
166test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88"); } // [B5, B6, C1]
167test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88"); } // [B5, B6, C1]
168test { try toUnicodeFail("xn--a-ccba213a"); } // [B5, B6]
169test { try toUnicodeFail("xn--a-ccba213a5w8b"); } // [B5, B6, C1]
170test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B5]
171test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B"); } // [B5]
172test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B5]
173test { try toUnicodeFail("xn--ab-uuba211bca"); } // [B5]
174test { try toUnicodeFail("xn--ab-uuba211bca8057b"); } // [B5]
131test { try toAsciiPass("a\xe2\x80\x8db", "ab", true); }175test { try toAsciiPass("a\xe2\x80\x8db", "ab", true); }
176test { try toUnicodeFail("a\xe2\x80\x8db"); } // [C2]
132test { try toAsciiPass("A\xe2\x80\x8dB", "ab", true); }177test { try toAsciiPass("A\xe2\x80\x8dB", "ab", true); }
178test { try toUnicodeFail("A\xe2\x80\x8dB"); } // [C2]
133test { try toAsciiPass("A\xe2\x80\x8db", "ab", true); }179test { try toAsciiPass("A\xe2\x80\x8db", "ab", true); }
180test { try toUnicodeFail("A\xe2\x80\x8db"); } // [C2]
181test { try toUnicodeFail("xn--ab-m1t"); } // [C2]
134test { try toUnicodePass("a\xe0\xa5\x8d\xe2\x80\x8db", "a\xe0\xa5\x8d\xe2\x80\x8db"); }182test { try toUnicodePass("a\xe0\xa5\x8d\xe2\x80\x8db", "a\xe0\xa5\x8d\xe2\x80\x8db"); }
135test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf014u", false); }183test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf014u", false); }
136test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf", true); }184test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf", true); }
...@@ -143,6 +191,16 @@ test { try toAsciiPass("A\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf", true); }...@@ -143,6 +191,16 @@ test { try toAsciiPass("A\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf", true); }
143test { try toUnicodePass("xn--ab-fsf014u", "a\xe0\xa5\x8d\xe2\x80\x8db"); }191test { try toUnicodePass("xn--ab-fsf014u", "a\xe0\xa5\x8d\xe2\x80\x8db"); }
144test { try toAsciiPass("xn--ab-fsf014u", "xn--ab-fsf014u", false); }192test { try toAsciiPass("xn--ab-fsf014u", "xn--ab-fsf014u", false); }
145test { try toAsciiPass("xn--ab-fsf014u", "xn--ab-fsf014u", true); }193test { try toAsciiPass("xn--ab-fsf014u", "xn--ab-fsf014u", true); }
194test { try toUnicodeFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B1, C2, V6]
195test { try toUnicodeFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B"); } // [B1, C2, V6]
196test { try toUnicodeFail("xn--b-bcba413a7w8b"); } // [B1, C2, V6]
197test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88"); } // [B5, B6, C2]
198test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88"); } // [B5, B6, C2]
199test { try toUnicodeFail("xn--a-ccba213abx8b"); } // [B5, B6, C2]
200test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B5, C2]
201test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B"); } // [B5, C2]
202test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B5, C2]
203test { try toUnicodeFail("xn--ab-uuba211bca5157b"); } // [B5, C2]
146test { try toUnicodePass("\xc2\xa1", "\xc2\xa1"); }204test { try toUnicodePass("\xc2\xa1", "\xc2\xa1"); }
147test { try toAsciiPass("\xc2\xa1", "xn--7a", false); }205test { try toAsciiPass("\xc2\xa1", "xn--7a", false); }
148test { try toAsciiPass("\xc2\xa1", "xn--7a", true); }206test { try toAsciiPass("\xc2\xa1", "xn--7a", true); }
...@@ -155,6 +213,9 @@ test { try toAsciiPass("\xe1\xa7\x9a", "xn--pkf", true); }...@@ -155,6 +213,9 @@ test { try toAsciiPass("\xe1\xa7\x9a", "xn--pkf", true); }
155test { try toUnicodePass("xn--pkf", "\xe1\xa7\x9a"); }213test { try toUnicodePass("xn--pkf", "\xe1\xa7\x9a"); }
156test { try toAsciiPass("xn--pkf", "xn--pkf", false); }214test { try toAsciiPass("xn--pkf", "xn--pkf", false); }
157test { try toAsciiPass("xn--pkf", "xn--pkf", true); }215test { try toAsciiPass("xn--pkf", "xn--pkf", true); }
216test { try toUnicodeFail("\"\""); } // [X4_2]
217test { try toUnicodeFail("\xe3\x80\x82"); } // [X4_2]
218test { try toUnicodeFail("."); } // [X4_2]
158test { try toUnicodePass("\xea\xad\xa0", "\xea\xad\xa0"); }219test { try toUnicodePass("\xea\xad\xa0", "\xea\xad\xa0"); }
159test { try toAsciiPass("\xea\xad\xa0", "xn--3y9a", false); }220test { try toAsciiPass("\xea\xad\xa0", "xn--3y9a", false); }
160test { try toAsciiPass("\xea\xad\xa0", "xn--3y9a", true); }221test { try toAsciiPass("\xea\xad\xa0", "xn--3y9a", true); }
...@@ -395,9 +456,26 @@ test { try toAsciiPass("\xc3\x9c.\xc3\xbc", "xn--tda.xn--tda", true); }...@@ -395,9 +456,26 @@ test { try toAsciiPass("\xc3\x9c.\xc3\xbc", "xn--tda.xn--tda", true); }
395test { try toUnicodePass("U\xcc\x88.u\xcc\x88", "\xc3\xbc.\xc3\xbc"); }456test { try toUnicodePass("U\xcc\x88.u\xcc\x88", "\xc3\xbc.\xc3\xbc"); }
396test { try toAsciiPass("U\xcc\x88.u\xcc\x88", "xn--tda.xn--tda", false); }457test { try toAsciiPass("U\xcc\x88.u\xcc\x88", "xn--tda.xn--tda", false); }
397test { try toAsciiPass("U\xcc\x88.u\xcc\x88", "xn--tda.xn--tda", true); }458test { try toAsciiPass("U\xcc\x88.u\xcc\x88", "xn--tda.xn--tda", true); }
459test { try toUnicodeFail("xn--u-ccb"); } // [V1]
460test { try toUnicodeFail("a\xe2\x92\x88com"); } // [V7]
398test { try toUnicodePass("a1.com", "a1.com"); }461test { try toUnicodePass("a1.com", "a1.com"); }
399test { try toAsciiPass("a1.com", "a1.com", false); }462test { try toAsciiPass("a1.com", "a1.com", false); }
400test { try toAsciiPass("a1.com", "a1.com", true); }463test { try toAsciiPass("a1.com", "a1.com", true); }
464test { try toUnicodeFail("A\xe2\x92\x88COM"); } // [V7]
465test { try toUnicodeFail("A\xe2\x92\x88Com"); } // [V7]
466test { try toUnicodeFail("xn--acom-0w1b"); } // [V7]
467test { try toUnicodeFail("xn--a-ecp.ru"); } // [V7]
468test { try toUnicodeFail("xn--0.pt"); } // [P4]
469test { try toUnicodeFail("xn--a.pt"); } // [V7]
470test { try toUnicodeFail("xn--a-\xc3\x84.pt"); } // [P4]
471test { try toUnicodeFail("xn--a-A\xcc\x88.pt"); } // [P4]
472test { try toUnicodeFail("xn--a-a\xcc\x88.pt"); } // [P4]
473test { try toUnicodeFail("xn--a-\xc3\xa4.pt"); } // [P4]
474test { try toUnicodeFail("XN--A-\xc3\x84.PT"); } // [P4]
475test { try toUnicodeFail("XN--A-A\xcc\x88.PT"); } // [P4]
476test { try toUnicodeFail("Xn--A-A\xcc\x88.pt"); } // [P4]
477test { try toUnicodeFail("Xn--A-\xc3\x84.pt"); } // [P4]
478test { try toUnicodeFail("xn--xn--a--gua.pt"); } // [V2, V4]
401test { 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"); }479test { 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"); }
402test { try toAsciiPass("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xe3\x80\x82\xef\xbc\xaa\xef\xbc\xb0", "xn--wgv71a119e.jp", false); }480test { try toAsciiPass("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xe3\x80\x82\xef\xbc\xaa\xef\xbc\xb0", "xn--wgv71a119e.jp", false); }
403test { try toAsciiPass("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xe3\x80\x82\xef\xbc\xaa\xef\xbc\xb0", "xn--wgv71a119e.jp", true); }481test { try toAsciiPass("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xe3\x80\x82\xef\xbc\xaa\xef\xbc\xb0", "xn--wgv71a119e.jp", true); }
...@@ -434,6 +512,13 @@ test { try toAsciiPass("\xe2\x98\x95", "xn--53h", true); }...@@ -434,6 +512,13 @@ test { try toAsciiPass("\xe2\x98\x95", "xn--53h", true); }
434test { try toUnicodePass("xn--53h", "\xe2\x98\x95"); }512test { try toUnicodePass("xn--53h", "\xe2\x98\x95"); }
435test { try toAsciiPass("xn--53h", "xn--53h", false); }513test { try toAsciiPass("xn--53h", "xn--53h", false); }
436test { try toAsciiPass("xn--53h", "xn--53h", true); }514test { try toAsciiPass("xn--53h", "xn--53h", true); }
515test { 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]
516test { try toUnicodeFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\xcc\x82SSZ"); } // [C1, C2]
517test { try toUnicodeFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ"); } // [C1, C2]
518test { try toUnicodeFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } // [C1, C2]
519test { try toUnicodeFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz"); } // [C1, C2]
520test { try toUnicodeFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz"); } // [C1, C2]
521test { try toUnicodeFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } // [C1, C2]
437test { try toUnicodePass("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }522test { try toUnicodePass("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
438test { try toUnicodePass("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }523test { try toUnicodePass("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
439test { try toUnicodePass("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }524test { try toUnicodePass("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
...@@ -441,17 +526,27 @@ test { try toUnicodePass("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSS...@@ -441,17 +526,27 @@ test { try toUnicodePass("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSS
441test { try toUnicodePass("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }526test { try toUnicodePass("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
442test { try toUnicodePass("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }527test { try toUnicodePass("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
443test { try toUnicodePass("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }528test { try toUnicodePass("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); }
529test { try toUnicodeFail("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa69989dba9gc"); } // [C1, C2]
530test { 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]
531test { try toUnicodeFail("1.xn--abcdexyz-qyacaaabaaaaaaabaaaaaaaaabaaaaaaaaabaaaaaaaa010ze2isb1140zba8cc"); } // [C1, C2]
444test { try toAsciiPass("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-b\xc3\x9f", "xn--bss", true); }532test { try toAsciiPass("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-b\xc3\x9f", "xn--bss", true); }
533test { try toUnicodeFail("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-b\xc3\x9f"); } // [C1, C2]
445test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dN\xe2\x80\x8c-\xe2\x80\x8d-BSS", "xn--bss", true); }534test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dN\xe2\x80\x8c-\xe2\x80\x8d-BSS", "xn--bss", true); }
535test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dN\xe2\x80\x8c-\xe2\x80\x8d-BSS"); } // [C1, C2]
446test { try toAsciiPass("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-bss", "xn--bss", true); }536test { try toAsciiPass("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-bss", "xn--bss", true); }
537test { try toUnicodeFail("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-bss"); } // [C1, C2]
447test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-Bss", "xn--bss", true); }538test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-Bss", "xn--bss", true); }
539test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-Bss"); } // [C1, C2]
448test { try toUnicodePass("xn--bss", "\xe5\xa4\x99"); }540test { try toUnicodePass("xn--bss", "\xe5\xa4\x99"); }
449test { try toAsciiPass("xn--bss", "xn--bss", false); }541test { try toAsciiPass("xn--bss", "xn--bss", false); }
450test { try toAsciiPass("xn--bss", "xn--bss", true); }542test { try toAsciiPass("xn--bss", "xn--bss", true); }
451test { try toUnicodePass("\xe5\xa4\x99", "\xe5\xa4\x99"); }543test { try toUnicodePass("\xe5\xa4\x99", "\xe5\xa4\x99"); }
452test { try toAsciiPass("\xe5\xa4\x99", "xn--bss", false); }544test { try toAsciiPass("\xe5\xa4\x99", "xn--bss", false); }
453test { try toAsciiPass("\xe5\xa4\x99", "xn--bss", true); }545test { try toAsciiPass("\xe5\xa4\x99", "xn--bss", true); }
546test { try toUnicodeFail("xn--xn--bss-7z6ccid"); } // [C1, C2]
454test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-B\xc3\x9f", "xn--bss", true); }547test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-B\xc3\x9f", "xn--bss", true); }
548test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-B\xc3\x9f"); } // [C1, C2]
549test { try toUnicodeFail("xn--xn--b-pqa5796ccahd"); } // [C1, C2]
455test { 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"); }550test { 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"); }
456test { 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); }551test { 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); }
457test { 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); }552test { 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); }
...@@ -545,12 +640,70 @@ test { try toUnicodePass("123456789012345678901234567890123456789012345678901234...@@ -545,12 +640,70 @@ test { try toUnicodePass("123456789012345678901234567890123456789012345678901234
545test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }640test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
546test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }641test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
547test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }642test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
643test { try toUnicodeFail("a.b..-q--a-.e"); } // [V2, V3, X4_2]
644test { try toUnicodeFail("a.b..-q--\xc3\xa4-.e"); } // [V2, V3, X4_2]
645test { try toUnicodeFail("a.b..-q--a\xcc\x88-.e"); } // [V2, V3, X4_2]
646test { try toUnicodeFail("A.B..-Q--A\xcc\x88-.E"); } // [V2, V3, X4_2]
647test { try toUnicodeFail("A.B..-Q--\xc3\x84-.E"); } // [V2, V3, X4_2]
648test { try toUnicodeFail("A.b..-Q--\xc3\x84-.E"); } // [V2, V3, X4_2]
649test { try toUnicodeFail("A.b..-Q--A\xcc\x88-.E"); } // [V2, V3, X4_2]
650test { try toUnicodeFail("a.b..xn---q----jra.e"); } // [V2, V3, X4_2]
651test { try toUnicodeFail("a..c"); } // [X4_2]
652test { try toUnicodeFail("a.-b."); } // [V3]
653test { try toUnicodeFail("a.b-.c"); } // [V3]
654test { try toUnicodeFail("a.-.c"); } // [V3]
655test { try toUnicodeFail("a.bc--de.f"); } // [V2]
656test { try toUnicodeFail("xn--xn---epa"); } // [V2, V4]
657test { try toUnicodeFail("\xc3\xa4.\xc2\xad.c"); } // [X4_2]
658test { try toUnicodeFail("a\xcc\x88.\xc2\xad.c"); } // [X4_2]
659test { try toUnicodeFail("A\xcc\x88.\xc2\xad.C"); } // [X4_2]
660test { try toUnicodeFail("\xc3\x84.\xc2\xad.C"); } // [X4_2]
661test { try toUnicodeFail("xn--4ca..c"); } // [X4_2]
662test { try toUnicodeFail("\xc3\xa4.-b."); } // [V3]
663test { try toUnicodeFail("a\xcc\x88.-b."); } // [V3]
664test { try toUnicodeFail("A\xcc\x88.-B."); } // [V3]
665test { try toUnicodeFail("\xc3\x84.-B."); } // [V3]
666test { try toUnicodeFail("xn--4ca.-b."); } // [V3]
667test { try toUnicodeFail("\xc3\xa4.b-.c"); } // [V3]
668test { try toUnicodeFail("a\xcc\x88.b-.c"); } // [V3]
669test { try toUnicodeFail("A\xcc\x88.B-.C"); } // [V3]
670test { try toUnicodeFail("\xc3\x84.B-.C"); } // [V3]
671test { try toUnicodeFail("\xc3\x84.b-.C"); } // [V3]
672test { try toUnicodeFail("A\xcc\x88.b-.C"); } // [V3]
673test { try toUnicodeFail("xn--4ca.b-.c"); } // [V3]
674test { try toUnicodeFail("\xc3\xa4.-.c"); } // [V3]
675test { try toUnicodeFail("a\xcc\x88.-.c"); } // [V3]
676test { try toUnicodeFail("A\xcc\x88.-.C"); } // [V3]
677test { try toUnicodeFail("\xc3\x84.-.C"); } // [V3]
678test { try toUnicodeFail("xn--4ca.-.c"); } // [V3]
679test { try toUnicodeFail("\xc3\xa4.bc--de.f"); } // [V2]
680test { try toUnicodeFail("a\xcc\x88.bc--de.f"); } // [V2]
681test { try toUnicodeFail("A\xcc\x88.BC--DE.F"); } // [V2]
682test { try toUnicodeFail("\xc3\x84.BC--DE.F"); } // [V2]
683test { try toUnicodeFail("\xc3\x84.bc--De.f"); } // [V2]
684test { try toUnicodeFail("A\xcc\x88.bc--De.f"); } // [V2]
685test { try toUnicodeFail("xn--4ca.bc--de.f"); } // [V2]
686test { try toUnicodeFail("a.b.\xcc\x88c.d"); } // [V6]
687test { try toUnicodeFail("A.B.\xcc\x88C.D"); } // [V6]
688test { try toUnicodeFail("A.b.\xcc\x88c.d"); } // [V6]
689test { try toUnicodeFail("a.b.xn--c-bcb.d"); } // [V6]
548test { try toUnicodePass("A0", "a0"); }690test { try toUnicodePass("A0", "a0"); }
549test { try toAsciiPass("A0", "a0", false); }691test { try toAsciiPass("A0", "a0", false); }
550test { try toAsciiPass("A0", "a0", true); }692test { try toAsciiPass("A0", "a0", true); }
551test { try toUnicodePass("0A", "0a"); }693test { try toUnicodePass("0A", "0a"); }
552test { try toAsciiPass("0A", "0a", false); }694test { try toAsciiPass("0A", "0a", false); }
553test { try toAsciiPass("0A", "0a", true); }695test { try toAsciiPass("0A", "0a", true); }
696test { try toUnicodeFail("0A.\xd7\x90"); } // [B1]
697test { try toUnicodeFail("0a.\xd7\x90"); } // [B1]
698test { try toUnicodeFail("0a.xn--4db"); } // [B1]
699test { try toUnicodeFail("c.xn--0-eha.xn--4db"); } // [B1]
700test { try toUnicodeFail("b-.\xd7\x90"); } // [B6, V3]
701test { try toUnicodeFail("B-.\xd7\x90"); } // [B6, V3]
702test { try toUnicodeFail("b-.xn--4db"); } // [B6, V3]
703test { try toUnicodeFail("d.xn----dha.xn--4db"); } // [B6, V3]
704test { try toUnicodeFail("a\xd7\x90"); } // [B5, B6]
705test { try toUnicodeFail("A\xd7\x90"); } // [B5, B6]
706test { try toUnicodeFail("xn--a-0hc"); } // [B5, B6]
554test { try toUnicodePass("\xd7\x90\xd7\x87", "\xd7\x90\xd7\x87"); }707test { try toUnicodePass("\xd7\x90\xd7\x87", "\xd7\x90\xd7\x87"); }
555test { try toAsciiPass("\xd7\x90\xd7\x87", "xn--vdbr", false); }708test { try toAsciiPass("\xd7\x90\xd7\x87", "xn--vdbr", false); }
556test { try toAsciiPass("\xd7\x90\xd7\x87", "xn--vdbr", true); }709test { try toAsciiPass("\xd7\x90\xd7\x87", "xn--vdbr", true); }
...@@ -563,6 +716,9 @@ test { try toAsciiPass("\xd7\x909\xd7\x87", "xn--9-ihcz", true); }...@@ -563,6 +716,9 @@ test { try toAsciiPass("\xd7\x909\xd7\x87", "xn--9-ihcz", true); }
563test { try toUnicodePass("xn--9-ihcz", "\xd7\x909\xd7\x87"); }716test { try toUnicodePass("xn--9-ihcz", "\xd7\x909\xd7\x87"); }
564test { try toAsciiPass("xn--9-ihcz", "xn--9-ihcz", false); }717test { try toAsciiPass("xn--9-ihcz", "xn--9-ihcz", false); }
565test { try toAsciiPass("xn--9-ihcz", "xn--9-ihcz", true); }718test { try toAsciiPass("xn--9-ihcz", "xn--9-ihcz", true); }
719test { try toUnicodeFail("\xd7\x90a\xd7\x87"); } // [B2, B3]
720test { try toUnicodeFail("\xd7\x90A\xd7\x87"); } // [B2, B3]
721test { try toUnicodeFail("xn--a-ihcz"); } // [B2, B3]
566test { try toUnicodePass("\xd7\x90\xd7\xaa", "\xd7\x90\xd7\xaa"); }722test { try toUnicodePass("\xd7\x90\xd7\xaa", "\xd7\x90\xd7\xaa"); }
567test { try toAsciiPass("\xd7\x90\xd7\xaa", "xn--4db6c", false); }723test { try toAsciiPass("\xd7\x90\xd7\xaa", "xn--4db6c", false); }
568test { try toAsciiPass("\xd7\x90\xd7\xaa", "xn--4db6c", true); }724test { try toAsciiPass("\xd7\x90\xd7\xaa", "xn--4db6c", true); }
...@@ -575,6 +731,14 @@ test { try toAsciiPass("\xd7\x90\xd7\xb3\xd7\xaa", "xn--4db6c0a", true); }...@@ -575,6 +731,14 @@ test { try toAsciiPass("\xd7\x90\xd7\xb3\xd7\xaa", "xn--4db6c0a", true); }
575test { try toUnicodePass("xn--4db6c0a", "\xd7\x90\xd7\xb3\xd7\xaa"); }731test { try toUnicodePass("xn--4db6c0a", "\xd7\x90\xd7\xb3\xd7\xaa"); }
576test { try toAsciiPass("xn--4db6c0a", "xn--4db6c0a", false); }732test { try toAsciiPass("xn--4db6c0a", "xn--4db6c0a", false); }
577test { try toAsciiPass("xn--4db6c0a", "xn--4db6c0a", true); }733test { try toAsciiPass("xn--4db6c0a", "xn--4db6c0a", true); }
734test { try toUnicodeFail("a\xd7\x90Tz"); } // [B5]
735test { try toUnicodeFail("a\xd7\x90tz"); } // [B5]
736test { try toUnicodeFail("A\xd7\x90TZ"); } // [B5]
737test { try toUnicodeFail("A\xd7\x90tz"); } // [B5]
738test { try toUnicodeFail("xn--atz-qpe"); } // [B5]
739test { try toUnicodeFail("\xd7\x90T\xd7\xaa"); } // [B2]
740test { try toUnicodeFail("\xd7\x90t\xd7\xaa"); } // [B2]
741test { try toUnicodeFail("xn--t-zhc3f"); } // [B2]
578test { try toUnicodePass("\xd7\x907\xd7\xaa", "\xd7\x907\xd7\xaa"); }742test { try toUnicodePass("\xd7\x907\xd7\xaa", "\xd7\x907\xd7\xaa"); }
579test { try toAsciiPass("\xd7\x907\xd7\xaa", "xn--7-zhc3f", false); }743test { try toAsciiPass("\xd7\x907\xd7\xaa", "xn--7-zhc3f", false); }
580test { try toAsciiPass("\xd7\x907\xd7\xaa", "xn--7-zhc3f", true); }744test { try toAsciiPass("\xd7\x907\xd7\xaa", "xn--7-zhc3f", true); }
...@@ -587,6 +751,12 @@ test { try toAsciiPass("\xd7\x90\xd9\xa7\xd7\xaa", "xn--4db6c6t", true); }...@@ -587,6 +751,12 @@ test { try toAsciiPass("\xd7\x90\xd9\xa7\xd7\xaa", "xn--4db6c6t", true); }
587test { try toUnicodePass("xn--4db6c6t", "\xd7\x90\xd9\xa7\xd7\xaa"); }751test { try toUnicodePass("xn--4db6c6t", "\xd7\x90\xd9\xa7\xd7\xaa"); }
588test { try toAsciiPass("xn--4db6c6t", "xn--4db6c6t", false); }752test { try toAsciiPass("xn--4db6c6t", "xn--4db6c6t", false); }
589test { try toAsciiPass("xn--4db6c6t", "xn--4db6c6t", true); }753test { try toAsciiPass("xn--4db6c6t", "xn--4db6c6t", true); }
754test { try toUnicodeFail("a7\xd9\xa7z"); } // [B5]
755test { try toUnicodeFail("A7\xd9\xa7Z"); } // [B5]
756test { try toUnicodeFail("A7\xd9\xa7z"); } // [B5]
757test { try toUnicodeFail("xn--a7z-06e"); } // [B5]
758test { try toUnicodeFail("\xd7\x907\xd9\xa7\xd7\xaa"); } // [B4]
759test { try toUnicodeFail("xn--7-zhc3fty"); } // [B4]
590test { try toUnicodePass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d"); }760test { try toUnicodePass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d"); }
591test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "xn--dmc4b194h", false); }761test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "xn--dmc4b194h", false); }
592test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "xn--dmc4b", true); }762test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "xn--dmc4b", true); }
...@@ -600,12 +770,16 @@ test { try toUnicodePass("xn--dmc4b194h", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d"...@@ -600,12 +770,16 @@ test { try toUnicodePass("xn--dmc4b194h", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d"
600test { try toAsciiPass("xn--dmc4b194h", "xn--dmc4b194h", false); }770test { try toAsciiPass("xn--dmc4b194h", "xn--dmc4b194h", false); }
601test { try toAsciiPass("xn--dmc4b194h", "xn--dmc4b194h", true); }771test { try toAsciiPass("xn--dmc4b194h", "xn--dmc4b194h", true); }
602test { try toAsciiPass("\xe0\xae\xb9\xe2\x80\x8d", "xn--dmc", true); }772test { try toAsciiPass("\xe0\xae\xb9\xe2\x80\x8d", "xn--dmc", true); }
773test { try toUnicodeFail("\xe0\xae\xb9\xe2\x80\x8d"); } // [C2]
603test { try toUnicodePass("xn--dmc", "\xe0\xae\xb9"); }774test { try toUnicodePass("xn--dmc", "\xe0\xae\xb9"); }
604test { try toAsciiPass("xn--dmc", "xn--dmc", false); }775test { try toAsciiPass("xn--dmc", "xn--dmc", false); }
605test { try toAsciiPass("xn--dmc", "xn--dmc", true); }776test { try toAsciiPass("xn--dmc", "xn--dmc", true); }
606test { try toUnicodePass("\xe0\xae\xb9", "\xe0\xae\xb9"); }777test { try toUnicodePass("\xe0\xae\xb9", "\xe0\xae\xb9"); }
607test { try toAsciiPass("\xe0\xae\xb9", "xn--dmc", false); }778test { try toAsciiPass("\xe0\xae\xb9", "xn--dmc", false); }
608test { try toAsciiPass("\xe0\xae\xb9", "xn--dmc", true); }779test { try toAsciiPass("\xe0\xae\xb9", "xn--dmc", true); }
780test { try toUnicodeFail("xn--dmc225h"); } // [C2]
781test { try toUnicodeFail("\xe2\x80\x8d"); } // [C2]
782test { try toUnicodeFail("xn--1ug"); } // [C2]
609test { try toUnicodePass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c"); }783test { try toUnicodePass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c"); }
610test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "xn--dmc4by94h", false); }784test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "xn--dmc4by94h", false); }
611test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "xn--dmc4b", true); }785test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "xn--dmc4b", true); }
...@@ -613,6 +787,10 @@ test { try toUnicodePass("xn--dmc4by94h", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c"...@@ -613,6 +787,10 @@ test { try toUnicodePass("xn--dmc4by94h", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c"
613test { try toAsciiPass("xn--dmc4by94h", "xn--dmc4by94h", false); }787test { try toAsciiPass("xn--dmc4by94h", "xn--dmc4by94h", false); }
614test { try toAsciiPass("xn--dmc4by94h", "xn--dmc4by94h", true); }788test { try toAsciiPass("xn--dmc4by94h", "xn--dmc4by94h", true); }
615test { try toAsciiPass("\xe0\xae\xb9\xe2\x80\x8c", "xn--dmc", true); }789test { try toAsciiPass("\xe0\xae\xb9\xe2\x80\x8c", "xn--dmc", true); }
790test { try toUnicodeFail("\xe0\xae\xb9\xe2\x80\x8c"); } // [C1]
791test { try toUnicodeFail("xn--dmc025h"); } // [C1]
792test { try toUnicodeFail("\xe2\x80\x8c"); } // [C1]
793test { try toUnicodeFail("xn--0ug"); } // [C1]
616test { try toUnicodePass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf"); }794test { try toUnicodePass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf"); }
617test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "xn--ghb2gxqia7523a", false); }795test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "xn--ghb2gxqia7523a", false); }
618test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "xn--ghb2gxqia", true); }796test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "xn--ghb2gxqia", true); }
...@@ -662,29 +840,54 @@ test { try toUnicodePass("xn--ghb65a953d", "\xd9\x84\xe2\x80\x8c\xdb\xaf"); }...@@ -662,29 +840,54 @@ test { try toUnicodePass("xn--ghb65a953d", "\xd9\x84\xe2\x80\x8c\xdb\xaf"); }
662test { try toAsciiPass("xn--ghb65a953d", "xn--ghb65a953d", false); }840test { try toAsciiPass("xn--ghb65a953d", "xn--ghb65a953d", false); }
663test { try toAsciiPass("xn--ghb65a953d", "xn--ghb65a953d", true); }841test { try toAsciiPass("xn--ghb65a953d", "xn--ghb65a953d", true); }
664test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad", "xn--ghb2gxq", true); }842test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad", "xn--ghb2gxq", true); }
843test { try toUnicodeFail("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad"); } // [B3, C1]
665test { try toUnicodePass("xn--ghb2gxq", "\xd9\x84\xd9\xb0\xdb\xad"); }844test { try toUnicodePass("xn--ghb2gxq", "\xd9\x84\xd9\xb0\xdb\xad"); }
666test { try toAsciiPass("xn--ghb2gxq", "xn--ghb2gxq", false); }845test { try toAsciiPass("xn--ghb2gxq", "xn--ghb2gxq", false); }
667test { try toAsciiPass("xn--ghb2gxq", "xn--ghb2gxq", true); }846test { try toAsciiPass("xn--ghb2gxq", "xn--ghb2gxq", true); }
668test { try toUnicodePass("\xd9\x84\xd9\xb0\xdb\xad", "\xd9\x84\xd9\xb0\xdb\xad"); }847test { try toUnicodePass("\xd9\x84\xd9\xb0\xdb\xad", "\xd9\x84\xd9\xb0\xdb\xad"); }
669test { try toAsciiPass("\xd9\x84\xd9\xb0\xdb\xad", "xn--ghb2gxq", false); }848test { try toAsciiPass("\xd9\x84\xd9\xb0\xdb\xad", "xn--ghb2gxq", false); }
670test { try toAsciiPass("\xd9\x84\xd9\xb0\xdb\xad", "xn--ghb2gxq", true); }849test { try toAsciiPass("\xd9\x84\xd9\xb0\xdb\xad", "xn--ghb2gxq", true); }
850test { try toUnicodeFail("xn--ghb2gxqy34f"); } // [B3, C1]
671test { try toAsciiPass("\xdb\xaf\xe2\x80\x8c\xdb\xaf", "xn--cmba", true); }851test { try toAsciiPass("\xdb\xaf\xe2\x80\x8c\xdb\xaf", "xn--cmba", true); }
852test { try toUnicodeFail("\xdb\xaf\xe2\x80\x8c\xdb\xaf"); } // [C1]
672test { try toUnicodePass("xn--cmba", "\xdb\xaf\xdb\xaf"); }853test { try toUnicodePass("xn--cmba", "\xdb\xaf\xdb\xaf"); }
673test { try toAsciiPass("xn--cmba", "xn--cmba", false); }854test { try toAsciiPass("xn--cmba", "xn--cmba", false); }
674test { try toAsciiPass("xn--cmba", "xn--cmba", true); }855test { try toAsciiPass("xn--cmba", "xn--cmba", true); }
675test { try toUnicodePass("\xdb\xaf\xdb\xaf", "\xdb\xaf\xdb\xaf"); }856test { try toUnicodePass("\xdb\xaf\xdb\xaf", "\xdb\xaf\xdb\xaf"); }
676test { try toAsciiPass("\xdb\xaf\xdb\xaf", "xn--cmba", false); }857test { try toAsciiPass("\xdb\xaf\xdb\xaf", "xn--cmba", false); }
677test { try toAsciiPass("\xdb\xaf\xdb\xaf", "xn--cmba", true); }858test { try toAsciiPass("\xdb\xaf\xdb\xaf", "xn--cmba", true); }
859test { try toUnicodeFail("xn--cmba004q"); } // [C1]
678test { try toAsciiPass("\xd9\x84\xe2\x80\x8c", "xn--ghb", true); }860test { try toAsciiPass("\xd9\x84\xe2\x80\x8c", "xn--ghb", true); }
861test { try toUnicodeFail("\xd9\x84\xe2\x80\x8c"); } // [B3, C1]
679test { try toUnicodePass("xn--ghb", "\xd9\x84"); }862test { try toUnicodePass("xn--ghb", "\xd9\x84"); }
680test { try toAsciiPass("xn--ghb", "xn--ghb", false); }863test { try toAsciiPass("xn--ghb", "xn--ghb", false); }
681test { try toAsciiPass("xn--ghb", "xn--ghb", true); }864test { try toAsciiPass("xn--ghb", "xn--ghb", true); }
682test { try toUnicodePass("\xd9\x84", "\xd9\x84"); }865test { try toUnicodePass("\xd9\x84", "\xd9\x84"); }
683test { try toAsciiPass("\xd9\x84", "xn--ghb", false); }866test { try toAsciiPass("\xd9\x84", "xn--ghb", false); }
684test { try toAsciiPass("\xd9\x84", "xn--ghb", true); }867test { try toAsciiPass("\xd9\x84", "xn--ghb", true); }
868test { try toUnicodeFail("xn--ghb413k"); } // [B3, C1]
869test { try toUnicodeFail("a\xe3\x80\x82\xe3\x80\x82b"); } // [X4_2]
870test { try toUnicodeFail("A\xe3\x80\x82\xe3\x80\x82B"); } // [X4_2]
871test { try toUnicodeFail("a..b"); } // [X4_2]
872test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c"); } // [B1, B3, C1, C2, X4_2]
873test { try toUnicodeFail("..xn--skb"); } // [X4_2]
874test { try toUnicodeFail("xn--1ug..xn--skb080k"); } // [B1, B3, C1, C2, X4_2]
875test { try toUnicodeFail("\xd7\x900\xd9\xa0"); } // [B4]
876test { try toUnicodeFail("xn--0-zhc74b"); } // [B4]
877test { try toUnicodeFail("$"); } // [U1]
878test { try toUnicodeFail("\xe2\x91\xb7.four"); } // [U1]
879test { try toUnicodeFail("(4).four"); } // [U1]
880test { try toUnicodeFail("\xe2\x91\xb7.FOUR"); } // [U1]
881test { try toUnicodeFail("\xe2\x91\xb7.Four"); } // [U1]
882test { try toUnicodeFail("a\xef\xbf\xbdz"); } // [V7]
883test { try toUnicodeFail("A\xef\xbf\xbdZ"); } // [V7]
884test { try toUnicodeFail("xn--"); } // [P4, X4_2]
885test { try toUnicodeFail("xn---"); } // [P4]
886test { try toUnicodeFail("xn--ASCII-"); } // [P4]
685test { try toUnicodePass("ascii", "ascii"); }887test { try toUnicodePass("ascii", "ascii"); }
686test { try toAsciiPass("ascii", "ascii", false); }888test { try toAsciiPass("ascii", "ascii", false); }
687test { try toAsciiPass("ascii", "ascii", true); }889test { try toAsciiPass("ascii", "ascii", true); }
890test { try toUnicodeFail("xn--unicode-.org"); } // [P4]
688test { try toUnicodePass("unicode.org", "unicode.org"); }891test { try toUnicodePass("unicode.org", "unicode.org"); }
689test { try toAsciiPass("unicode.org", "unicode.org", false); }892test { try toAsciiPass("unicode.org", "unicode.org", false); }
690test { try toAsciiPass("unicode.org", "unicode.org", true); }893test { try toAsciiPass("unicode.org", "unicode.org", true); }
...@@ -752,16 +955,51 @@ test { try toUnicodePass("123456789012345678901234567890123456789012345678901234...@@ -752,16 +955,51 @@ test { try toUnicodePass("123456789012345678901234567890123456789012345678901234
752test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }955test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); }
753test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }956test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
754test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }957test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); }
958test { try toUnicodeFail("c.0\xc3\xbc.\xd7\x90"); } // [B1]
959test { try toUnicodeFail("c.0u\xcc\x88.\xd7\x90"); } // [B1]
960test { try toUnicodeFail("C.0U\xcc\x88.\xd7\x90"); } // [B1]
961test { try toUnicodeFail("C.0\xc3\x9c.\xd7\x90"); } // [B1]
962test { try toUnicodeFail("C.0\xc3\xbc.\xd7\x90"); } // [B1]
963test { try toUnicodeFail("C.0u\xcc\x88.\xd7\x90"); } // [B1]
964test { try toUnicodeFail("\xe2\x92\x95\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6\xef\xbc\x8e-\xf3\xa0\x84\xaf"); } // [V3, V7]
965test { try toUnicodeFail("14.\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6.-\xf3\xa0\x84\xaf"); } // [V3, V7]
966test { try toUnicodeFail("14.xn--7hb713l3v90n.-"); } // [V3, V7]
967test { try toUnicodeFail("xn--7hb713lfwbi1311b.-"); } // [V3, V7]
755test { try toUnicodePass("\xea\xa1\xa3.\xdf\x8f", "\xea\xa1\xa3.\xdf\x8f"); }968test { try toUnicodePass("\xea\xa1\xa3.\xdf\x8f", "\xea\xa1\xa3.\xdf\x8f"); }
756test { try toAsciiPass("\xea\xa1\xa3.\xdf\x8f", "xn--8c9a.xn--qsb", false); }969test { try toAsciiPass("\xea\xa1\xa3.\xdf\x8f", "xn--8c9a.xn--qsb", false); }
757test { try toAsciiPass("\xea\xa1\xa3.\xdf\x8f", "xn--8c9a.xn--qsb", true); }970test { try toAsciiPass("\xea\xa1\xa3.\xdf\x8f", "xn--8c9a.xn--qsb", true); }
758test { try toUnicodePass("xn--8c9a.xn--qsb", "\xea\xa1\xa3.\xdf\x8f"); }971test { try toUnicodePass("xn--8c9a.xn--qsb", "\xea\xa1\xa3.\xdf\x8f"); }
759test { try toAsciiPass("xn--8c9a.xn--qsb", "xn--8c9a.xn--qsb", false); }972test { try toAsciiPass("xn--8c9a.xn--qsb", "xn--8c9a.xn--qsb", false); }
760test { try toAsciiPass("xn--8c9a.xn--qsb", "xn--8c9a.xn--qsb", true); }973test { try toAsciiPass("xn--8c9a.xn--qsb", "xn--8c9a.xn--qsb", true); }
974test { try toUnicodeFail("\xe2\x89\xaf\xd8\x83\xef\xbd\xa1-"); } // [B1, V3, V7]
975test { try toUnicodeFail(">\xcc\xb8\xd8\x83\xef\xbd\xa1-"); } // [B1, V3, V7]
976test { try toUnicodeFail("\xe2\x89\xaf\xd8\x83\xe3\x80\x82-"); } // [B1, V3, V7]
977test { try toUnicodeFail(">\xcc\xb8\xd8\x83\xe3\x80\x82-"); } // [B1, V3, V7]
978test { try toUnicodeFail("xn--lfb566l.-"); } // [B1, V3, V7]
979test { 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]
980test { 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]
981test { 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]
982test { 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]
983test { 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]
984test { 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]
985test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa452s5d17u"); } // [B1, B5, V7]
986test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa652s5d17u"); } // [B1, B5, V7]
987test { 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]
988test { 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]
989test { 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]
990test { 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]
991test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa180eotvh7453a"); } // [B5, V7]
992test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa627dhpae6345i"); } // [B5, V7]
993test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa380eotvh7453a"); } // [B5, V7]
994test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa827dhpae6345i"); } // [B5, V7]
761test { 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); }995test { 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); }
996test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0"); } // [C2]
762test { 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); }997test { 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); }
998test { 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]
763test { 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); }999test { 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); }
1000test { 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]
764test { 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); }1001test { 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); }
1002test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); } // [C2]
765test { try toUnicodePass("xn--jbf911clb.xn----p9j493ivi4l", "\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); }1003test { try toUnicodePass("xn--jbf911clb.xn----p9j493ivi4l", "\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); }
766test { try toAsciiPass("xn--jbf911clb.xn----p9j493ivi4l", "xn--jbf911clb.xn----p9j493ivi4l", false); }1004test { try toAsciiPass("xn--jbf911clb.xn----p9j493ivi4l", "xn--jbf911clb.xn----p9j493ivi4l", false); }
767test { try toAsciiPass("xn--jbf911clb.xn----p9j493ivi4l", "xn--jbf911clb.xn----p9j493ivi4l", true); }1005test { try toAsciiPass("xn--jbf911clb.xn----p9j493ivi4l", "xn--jbf911clb.xn----p9j493ivi4l", true); }
...@@ -777,6 +1015,43 @@ test { try toAsciiPass("=\xcc\xb8\xe1\xa2\x99>\xcc\xb8.\xe1\x84\x89\xe1\x85\xa9\...@@ -777,6 +1015,43 @@ test { try toAsciiPass("=\xcc\xb8\xe1\xa2\x99>\xcc\xb8.\xe1\x84\x89\xe1\x85\xa9\
777test { try toUnicodePass("\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0", "\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); }1015test { try toUnicodePass("\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0", "\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); }
778test { 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); }1016test { 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); }
779test { 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); }1017test { 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); }
1018test { try toUnicodeFail("xn--jbf929a90b0b.xn----p9j493ivi4l"); } // [C2]
1019test { try toUnicodeFail("xn--jbf911clb.xn----6zg521d196p"); } // [V7]
1020test { try toUnicodeFail("xn--jbf929a90b0b.xn----6zg521d196p"); } // [C2, V7]
1021test { try toUnicodeFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa2\xdd\xbd\xd8\x80"); } // [V7]
1022test { try toUnicodeFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80"); } // [V7]
1023test { try toUnicodeFail("\xf1\xaf\x9e\x9c.\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80"); } // [V7]
1024test { try toUnicodeFail("xn--gw68a.xn--ifb57ev2psc6027m"); } // [V7]
1025test { try toUnicodeFail("\xf0\xa3\xb3\x94\xcc\x83.\xf0\x91\x93\x82"); } // [V6]
1026test { try toUnicodeFail("xn--nsa95820a.xn--wz1d"); } // [V6]
1027test { 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]
1028test { 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]
1029test { try toUnicodeFail("xn--9d6hgcy3556a.xn--rlju750b"); } // [B2, B3, V7]
1030test { try toUnicodeFail("xn--9d6hgcy3556a.xn--7nd0578e"); } // [B2, B3, V7]
1031test { 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]
1032test { 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]
1033test { 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]
1034test { 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]
1035test { 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]
1036test { 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]
1037test { 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]
1038test { try toUnicodeFail("xn--4xa53xp48ys2xc.xn--kn2b"); } // [B1, V7]
1039test { try toUnicodeFail("xn--3xa73xp48ys2xc.xn--kn2b"); } // [B1, V7]
1040test { 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]
1041test { try toUnicodeFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x8d\xe2\x80\x8c\xe2\x80\x8d1."); } // [B1, C1, C2, V3]
1042test { try toUnicodeFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xaf\xe2\x80\x8c\xe2\x80\x8d1."); } // [B1, C1, C2, V3]
1043test { try toUnicodeFail("-.xn--1-0i8r."); } // [B1, V3]
1044test { try toUnicodeFail("xn----ugn.xn--1-rgnd61297b."); } // [B1, C1, C2, V3]
1045test { 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]
1046test { try toUnicodeFail("-.xn--tsh3666n"); } // [B1, V3, V7]
1047test { try toUnicodeFail("xn----ugn.xn--0ugc555aiv51d"); } // [B1, C1, C2, V3, V7]
1048test { try toUnicodeFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe1\x82\xb2\xf0\x91\x87\x80"); } // [C1, V7]
1049test { try toUnicodeFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe2\xb4\x92\xf0\x91\x87\x80"); } // [C1, V7]
1050test { try toUnicodeFail("xn--bn95b.xn--9kj2034e"); } // [V7]
1051test { try toUnicodeFail("xn--0ug15083f.xn--9kj2034e"); } // [C1, V7]
1052test { try toUnicodeFail("xn--bn95b.xn--qnd6272k"); } // [V7]
1053test { try toUnicodeFail("xn--0ug15083f.xn--qnd6272k"); } // [C1, V7]
1054test { try toUnicodeFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.\xef\xbc\x98\xef\xb8\x92"); } // [V7]
780test { 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."); }1055test { 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."); }
781test { try toUnicodePass("xn--gl0as212a.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf.i."); }1056test { try toUnicodePass("xn--gl0as212a.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf.i."); }
782test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf.i."); }1057test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf.i."); }
...@@ -784,10 +1059,226 @@ test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf.I.", "\xe7\xb9\xb1\xf0\x9...@@ -784,10 +1059,226 @@ test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf.I.", "\xe7\xb9\xb1\xf0\x9
784test { try toUnicodePass("xn--1ug6928ac48e.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }1059test { try toUnicodePass("xn--1ug6928ac48e.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }
785test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }1060test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }
786test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.I.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }1061test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.I.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); }
1062test { try toUnicodeFail("xn--gl0as212a.xn--8-o89h"); } // [V7]
1063test { try toUnicodeFail("xn--1ug6928ac48e.xn--8-o89h"); } // [V7]
1064test { try toUnicodeFail("\xf3\xa0\x86\xbe\xef\xbc\x8e\xf0\x9e\x80\x88"); } // [V6, X4_2]
1065test { try toUnicodeFail("\xf3\xa0\x86\xbe.\xf0\x9e\x80\x88"); } // [V6, X4_2]
1066test { try toUnicodeFail(".xn--ph4h"); } // [V6, X4_2]
1067test { try toUnicodeFail("\xc3\x9f\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
1068test { try toUnicodeFail("SS\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
1069test { try toUnicodeFail("ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
1070test { try toUnicodeFail("Ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
787test { try toUnicodePass("xn--ss-59d.", "ss\xdb\xab."); }1071test { try toUnicodePass("xn--ss-59d.", "ss\xdb\xab."); }
788test { try toUnicodePass("ss\xdb\xab.", "ss\xdb\xab."); }1072test { try toUnicodePass("ss\xdb\xab.", "ss\xdb\xab."); }
789test { try toUnicodePass("SS\xdb\xab.", "ss\xdb\xab."); }1073test { try toUnicodePass("SS\xdb\xab.", "ss\xdb\xab."); }
790test { try toUnicodePass("Ss\xdb\xab.", "ss\xdb\xab."); }1074test { try toUnicodePass("Ss\xdb\xab.", "ss\xdb\xab."); }
1075test { try toUnicodeFail("xn--ss-59d.xn--1ug"); } // [C2]
1076test { try toUnicodeFail("xn--zca012a.xn--1ug"); } // [C2]
1077test { try toUnicodeFail("\xf3\xa0\x90\xb5\xe2\x80\x8c\xe2\x92\x88\xef\xbc\x8e\xf3\xa0\x8e\x87"); } // [C1, V7]
1078test { try toUnicodeFail("\xf3\xa0\x90\xb5\xe2\x80\x8c1..\xf3\xa0\x8e\x87"); } // [C1, V7, X4_2]
1079test { try toUnicodeFail("xn--1-bs31m..xn--tv36e"); } // [V7, X4_2]
1080test { try toUnicodeFail("xn--1-rgn37671n..xn--tv36e"); } // [C1, V7, X4_2]
1081test { try toUnicodeFail("xn--tshz2001k.xn--tv36e"); } // [V7]
1082test { try toUnicodeFail("xn--0ug88o47900b.xn--tv36e"); } // [C1, V7]
1083test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2\xc3\x9f\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7]
1084test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2SS\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7]
1085test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2ss\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7]
1086test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2Ss\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7]
1087test { try toUnicodeFail("xn--ss-3xd2839nncy1m.xn--bb79d"); } // [V7]
1088test { try toUnicodeFail("xn--zca92z0t7n5w96j.xn--bb79d"); } // [V7]
1089test { 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]
1090test { 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]
1091test { try toUnicodeFail("xn--4pb2977v.xn--z0nt555ukbnv"); } // [V7]
1092test { try toUnicodeFail("xn--4pb607jjt73a.xn--1ug236ke314donv1a"); } // [C1, C2, V7]
1093test { 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]
1094test { 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]
1095test { 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]
1096test { 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]
1097test { 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]
1098test { 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]
1099test { 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]
1100test { 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]
1101test { try toUnicodeFail("xn--1-zmb699meq63t..xn--gdh5392g6sd"); } // [B1, V7, X4_2]
1102test { try toUnicodeFail("xn--1-zmb699meq63t..xn--1ug85gn777ahze"); } // [B1, V7, X4_2]
1103test { try toUnicodeFail("xn--1-xmb999meq63t..xn--1ug85gn777ahze"); } // [B1, V7, X4_2]
1104test { 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]
1105test { 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]
1106test { 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]
1107test { 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]
1108test { try toUnicodeFail("xn--4xa207hkzinr77u.xn--gdh5392g6sd"); } // [B1, V7]
1109test { try toUnicodeFail("xn--4xa207hkzinr77u.xn--1ug85gn777ahze"); } // [B1, V7]
1110test { try toUnicodeFail("xn--3xa407hkzinr77u.xn--1ug85gn777ahze"); } // [B1, V7]
1111test { try toUnicodeFail("\xe3\x85\xa4\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6]
1112test { try toUnicodeFail("\xe1\x85\xa0\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6]
1113test { try toUnicodeFail("\xe1\x85\xa0\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6]
1114test { try toUnicodeFail("xn--n3b445e53p."); } // [V6]
1115test { try toUnicodeFail("\xe3\x85\xa4\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6]
1116test { try toUnicodeFail("xn--n3b742bkqf4ty."); } // [V7]
1117test { try toUnicodeFail("xn--n3b468aoqa89r."); } // [V7]
1118test { try toUnicodeFail("xn--n3b445e53po6d."); } // [V7]
1119test { try toUnicodeFail("xn--n3b468azngju2a."); } // [V7]
1120test { 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]
1121test { try toUnicodeFail("\xe2\x9d\xa3\xe2\x80\x8d.\xe0\xa7\x8d\xf0\x91\xb0\xbd\xd8\x92\xea\xa4\xa9"); } // [C2, V6]
1122test { try toUnicodeFail("xn--pei.xn--0fb32q3w7q2g4d"); } // [V6]
1123test { try toUnicodeFail("xn--1ugy10a.xn--0fb32q3w7q2g4d"); } // [C2, V6]
1124test { 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]
1125test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb3\xba\xf0\x90\xb9\x84.>\xcc\xb8\xf1\xaa\xae\xb8\xea\xa1\x85"); } // [B1, V7]
1126test { try toUnicodeFail("xn--gdh7943gk2a.xn--hdh1383c5e36c"); } // [B1, V7]
1127test { 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]
1128test { 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]
1129test { 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]
1130test { try toUnicodeFail("xn--7tc6360ky5bn2732c.xn--8tc429c"); } // [B1, V6, V7]
1131test { 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]
1132test { try toUnicodeFail("\xcd\x89\xe3\x80\x82\xf0\xa7\xa1\xab"); } // [V6]
1133test { try toUnicodeFail("xn--nua.xn--bc6k"); } // [V6]
1134test { try toUnicodeFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6\xef\xbc\x8e\xe1\x85\xa0"); } // [V6]
1135test { try toUnicodeFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6.\xe1\x85\xa0"); } // [V6]
1136test { try toUnicodeFail("xn--ok3d."); } // [V6]
1137test { try toUnicodeFail("xn--ok3d.xn--psd"); } // [V6, V7]
1138test { 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]
1139test { 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]
1140test { try toUnicodeFail("xn----ni8r.xn--846h96596c"); } // [B1, B5, B6, V3, V7]
1141test { try toUnicodeFail("xn----ugnx367r.xn--846h96596c"); } // [B1, B5, B6, C2, V3, V7]
1142test { 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]
1143test { 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]
1144test { 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]
1145test { 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]
1146test { try toUnicodeFail("xn--hdh7483cu6twwki8e.xn--yfg0765a58l0n6k"); } // [B1, V6, V7]
1147test { try toUnicodeFail("\xe8\x94\x8f\xef\xbd\xa1\xf0\x91\xb0\xba"); } // [V6]
1148test { try toUnicodeFail("\xe8\x94\x8f\xe3\x80\x82\xf0\x91\xb0\xba"); } // [V6]
1149test { try toUnicodeFail("xn--uy1a.xn--jk3d"); } // [V6]
1150test { try toUnicodeFail("\xf0\x9d\x9f\xbf\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a"); } // [B1]
1151test { try toUnicodeFail("9\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a"); } // [B1]
1152test { try toUnicodeFail("xn--9-rv5i."); } // [B1]
1153test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2"); } // [B4, V7]
1154test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b1.\xd9\xa2"); } // [B1, V7]
1155test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b1.\xd9\xa2"); } // [B1, V7]
1156test { try toUnicodeFail("xn---f-mz8b08788k.xn--1-ybd.xn--bib"); } // [B1, V7]
1157test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2"); } // [B4, V7]
1158test { try toUnicodeFail("xn---f-mz8b08788k.xn--bib53ev44d"); } // [B4, V7]
1159test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xf0\x90\xb9\xba"); } // [B1, C1]
1160test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xf0\x90\xb9\xba"); } // [B1, C1]
1161test { try toUnicodeFail(".xn--yo0d"); } // [B1, X4_2]
1162test { try toUnicodeFail("xn--0ug.xn--yo0d"); } // [B1, C1]
1163test { try toUnicodeFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa5\x80"); } // [B1, C1]
1164test { try toUnicodeFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa5\x80"); } // [B1, C1]
1165test { try toUnicodeFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa4\x9e"); } // [B1, C1]
1166test { try toUnicodeFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa4\x9e"); } // [B1, C1]
1167test { try toUnicodeFail("xn--le9c.xn----ogo9956r"); } // [B1]
1168test { try toUnicodeFail("xn--le9c.xn----rgn40iy359e"); } // [B1, C1]
1169test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xef\xb3\x97"); } // [B1, V3, V7]
1170test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xef\xb3\x97"); } // [B1, V3, V7]
1171test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xd9\x87\xd8\xac"); } // [B1, V3, V7]
1172test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xd9\x87\xd8\xac"); } // [B1, V3, V7]
1173test { try toUnicodeFail("xn----f411m.xn--rgb7c611j"); } // [B1, V3, V7]
1174test { try toUnicodeFail("\xf1\xbb\xac\xb9\xf0\x91\x88\xb5\xe3\x80\x82\xe2\x80\x8d\xf0\x9e\xa8\xb6"); } // [B1, C2, V7]
1175test { try toUnicodeFail("xn--8g1d12120a.xn--5l6h"); } // [V7]
1176test { try toUnicodeFail("xn--8g1d12120a.xn--1ug6651p"); } // [B1, C2, V7]
1177test { try toUnicodeFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xef\xbd\xa1\xe3\xa7\x89\xf2\x92\x96\x84"); } // [V6, V7]
1178test { try toUnicodeFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xe3\x80\x82\xe3\xa7\x89\xf2\x92\x96\x84"); } // [V6, V7]
1179test { try toUnicodeFail("xn--2-5z4eu89y.xn--97l02706d"); } // [V6, V7]
1180test { 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]
1181test { 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]
1182test { try toUnicodeFail("xn--so0du768aim9m.xn--6-ogo"); } // [B1, B5, B6, V7]
1183test { try toUnicodeFail("xn--0ug7105gf5wfxepq.xn--6-ogo"); } // [B1, C1, V7]
1184test { try toUnicodeFail("\xf0\x91\x81\xbf\xef\xbc\x8e\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d"); } // [B1, C2, V6, V7]
1185test { try toUnicodeFail("\xf0\x91\x81\xbf.\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d"); } // [B1, C2, V6, V7]
1186test { try toUnicodeFail("xn--q30d.xn----i26i1299n"); } // [B1, V3, V6, V7]
1187test { try toUnicodeFail("xn--q30d.xn----ugn1088hfsxv"); } // [B1, C2, V6, V7]
1188test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7]
1189test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7]
1190test { try toUnicodeFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7]
1191test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7]
1192test { try toUnicodeFail("xn--4xa192qmp03d."); } // [V7]
1193test { try toUnicodeFail("xn--3xa392qmp03d."); } // [V7]
1194test { try toUnicodeFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7]
1195test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7]
1196test { try toUnicodeFail("xn--4xa192qmp03d.xn--psd"); } // [V7]
1197test { try toUnicodeFail("xn--3xa392qmp03d.xn--psd"); } // [V7]
1198test { try toUnicodeFail("xn--4xa192qmp03d.xn--cl7c"); } // [V7]
1199test { try toUnicodeFail("xn--3xa392qmp03d.xn--cl7c"); } // [V7]
1200test { 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]
1201test { 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]
1202test { try toUnicodeFail("xn--llb10as9tqp5y.xn--ukj7371e21f"); } // [B2, B3]
1203test { try toUnicodeFail("xn--llb10as9tqp5y.xn--bnd9168j21f"); } // [B2, B3, V7]
1204test { try toUnicodeFail("\xd9\xa1\xe1\xad\x84-\xed\x82\xbc.\xe1\xae\xaa\xd8\x96\xd9\xac\xe2\x89\xaf"); } // [B1, B5, B6, V6]
1205test { 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]
1206test { try toUnicodeFail("xn----9pc551nk39n.xn--4fb6o571degg"); } // [B1, B5, B6, V6]
1207test { try toUnicodeFail("-\xe3\x80\x82\xdb\x82\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82"); } // [B1, B2, B3, V3, V7]
1208test { try toUnicodeFail("-\xe3\x80\x82\xdb\x81\xd9\x94\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82"); } // [B1, B2, B3, V3, V7]
1209test { try toUnicodeFail("-.xn--mfb39a7208dzgs3d"); } // [B1, B2, B3, V3, V7]
1210test { 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]
1211test { 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]
1212test { try toUnicodeFail("xn--b726ey18m.xn--ldb8734fg0qcyzzg"); } // [V6, V7]
1213test { try toUnicodeFail("xn--1ug66101lt8me.xn--ldb8734fg0qcyzzg"); } // [C2, V6, V7]
1214test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x82\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7]
1215test { 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]
1216test { 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]
1217test { 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]
1218test { try toUnicodeFail(".xn--4xa68573c7n64d.xn--f29c"); } // [V7, X4_2]
1219test { try toUnicodeFail(".xn--3xa88573c7n64d.xn--f29c"); } // [V7, X4_2]
1220test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xce\xa3\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7]
1221test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x83\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7]
1222test { try toUnicodeFail("xn--4xa1729jwz5t7gl5f.xn--f29c"); } // [B1, V7]
1223test { try toUnicodeFail("xn--3xa3729jwz5t7gl5f.xn--f29c"); } // [B1, V7]
1224test { try toUnicodeFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2"); } // [B2, B3, V7]
1225test { try toUnicodeFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2"); } // [B2, B3, V7]
1226test { try toUnicodeFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2"); } // [B2, B3, V7]
1227test { try toUnicodeFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2"); } // [B2, B3, V7]
1228test { try toUnicodeFail("xn--0sb.xn--bmb691l0524t"); } // [B2, B3, V7]
1229test { try toUnicodeFail("\xe1\xa9\xb3\xf3\x9a\x99\xb8.\xf0\x90\xad\x8d"); } // [B1, V6, V7]
1230test { try toUnicodeFail("xn--2of22352n.xn--q09c"); } // [B1, V6, V7]
1231test { 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]
1232test { try toUnicodeFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7]
1233test { try toUnicodeFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7]
1234test { try toUnicodeFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7]
1235test { try toUnicodeFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7]
1236test { try toUnicodeFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7]
1237test { try toUnicodeFail("2.xn--1chz4101l.xn--45iz7d6b"); } // [V7]
1238test { try toUnicodeFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7]
1239test { 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]
1240test { try toUnicodeFail("xn--1ch07f91401d.xn--45iz7d6b"); } // [V7]
1241test { try toUnicodeFail("2.xn--1chz4101l.xn--gnd9b297j"); } // [V7]
1242test { try toUnicodeFail("xn--1ch07f91401d.xn--gnd9b297j"); } // [V7]
1243test { 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]
1244test { 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]
1245test { try toUnicodeFail("xn----xmg317tgv352a.xn----05c4213ryr0g"); } // [B1, V3, V7]
1246test { try toUnicodeFail("xn----xmg12fm2555h.xn----05c4213ryr0g"); } // [B1, V3, V7]
1247test { try toUnicodeFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xef\xb8\x92\xd8\xa7\xdf\x9d"); } // [B1, V6, V7]
1248test { try toUnicodeFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xe3\x80\x82\xd8\xa7\xdf\x9d"); } // [B1, V6]
1249test { try toUnicodeFail("xn--1hb.xn--w80d.xn--mgb09f"); } // [B1, V6]
1250test { try toUnicodeFail("xn--1hb.xn--mgb09fp820c08pa"); } // [B1, V6, V7]
1251test { try toUnicodeFail("\xe1\x82\xb9\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d"); } // [B1, B5, B6, C2]
1252test { try toUnicodeFail("\xe2\xb4\x99\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d"); } // [B1, B5, B6, C2]
1253test { try toUnicodeFail("xn--3gb910r."); } // [B5, B6]
1254test { try toUnicodeFail("xn--3gb910r.xn--1ug"); } // [B1, B5, B6, C2]
1255test { try toUnicodeFail("xn--3gb194c."); } // [B5, B6, V7]
1256test { try toUnicodeFail("xn--3gb194c.xn--1ug"); } // [B1, B5, B6, C2, V7]
1257test { try toUnicodeFail("\xf3\xa0\x86\xb8\xef\xbd\xa1\xe2\x82\x86\xef\xbc\x90\xf0\x90\xba\xa7\xdd\x96"); } // [B1, X4_2]
1258test { try toUnicodeFail("\xf3\xa0\x86\xb8\xe3\x80\x8260\xf0\x90\xba\xa7\xdd\x96"); } // [B1, X4_2]
1259test { try toUnicodeFail(".xn--60-cke9470y"); } // [B1, X4_2]
1260test { try toUnicodeFail("6\xe0\xa1\x8f\xef\xbd\xa1-\xf0\x91\x88\xb4"); } // [B1, V3]
1261test { try toUnicodeFail("6\xe0\xa1\x8f\xe3\x80\x82-\xf0\x91\x88\xb4"); } // [B1, V3]
1262test { try toUnicodeFail("xn--6-jjd.xn----6n8i"); } // [B1, V3]
1263test { 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]
1264test { 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]
1265test { 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]
1266test { 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]
1267test { try toUnicodeFail("xn--oo0d1330n.xn--4xa21xcwbfz15g"); } // [B1, B5, B6, V6, V7]
1268test { try toUnicodeFail("xn--1ugx105gq26y.xn--4xa21xcwbfz15g"); } // [B1, C2, V6, V7]
1269test { try toUnicodeFail("xn--1ugx105gq26y.xn--3xa41xcwbfz15g"); } // [B1, C2, V6, V7]
1270test { 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]
1271test { 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]
1272test { 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]
1273test { 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]
1274test { 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]
1275test { 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]
1276test { try toUnicodeFail("1.xn--(o)-ej1bu5389e.xn--3xb99xpx1yoes3e"); } // [B1, B6, V6, V7, U1]
1277test { 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]
1278test { try toUnicodeFail("xn--(o)-ge4ax01c3t74t.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7, U1]
1279test { try toUnicodeFail("1.xn--(o)-7sn88849j.xn--3xb99xpx1yoes3e"); } // [B1, B6, V6, V7, U1]
1280test { try toUnicodeFail("xn--tsh0ds63atl31n.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7]
1281test { try toUnicodeFail("xn--rnd762h7cx3027d.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7]
791test { 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"); }1282test { 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"); }
792test { 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); }1283test { 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); }
793test { 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); }1284test { 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); }
...@@ -803,6 +1294,33 @@ test { try toAsciiPass("\xf0\x9e\xa4\x95.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x9...@@ -803,6 +1294,33 @@ test { try toAsciiPass("\xf0\x9e\xa4\x95.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x9
803test { try toUnicodePass("xn--ve6h.xn--jgb1694kz0b2176a", "\xf0\x9e\xa4\xb7.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x90\xb9\xa0\xd8\xa4"); }1294test { try toUnicodePass("xn--ve6h.xn--jgb1694kz0b2176a", "\xf0\x9e\xa4\xb7.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x90\xb9\xa0\xd8\xa4"); }
804test { try toAsciiPass("xn--ve6h.xn--jgb1694kz0b2176a", "xn--ve6h.xn--jgb1694kz0b2176a", false); }1295test { try toAsciiPass("xn--ve6h.xn--jgb1694kz0b2176a", "xn--ve6h.xn--jgb1694kz0b2176a", false); }
805test { try toAsciiPass("xn--ve6h.xn--jgb1694kz0b2176a", "xn--ve6h.xn--jgb1694kz0b2176a", true); }1296test { try toAsciiPass("xn--ve6h.xn--jgb1694kz0b2176a", "xn--ve6h.xn--jgb1694kz0b2176a", true); }
1297test { try toUnicodeFail("\xf0\x90\xb2\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7]
1298test { try toUnicodeFail("\xf0\x90\xb2\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7]
1299test { try toUnicodeFail("\xf0\x90\xb3\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7]
1300test { try toUnicodeFail("xn----ue6i.xn--v80d6662t"); } // [B1, B3, V3, V6, V7]
1301test { try toUnicodeFail("\xf0\x90\xb3\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7]
1302test { 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]
1303test { try toUnicodeFail("-\xf3\xa0\x89\x96\xea\xa1\xa7.\xf3\xa0\x8a\x82\xf1\x87\x86\x838,"); } // [V3, V7, U1]
1304test { try toUnicodeFail("xn----hg4ei0361g.xn--8,-k362evu488a"); } // [V3, V7, U1]
1305test { try toUnicodeFail("xn----hg4ei0361g.xn--207ht163h7m94c"); } // [V3, V7]
1306test { 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]
1307test { try toUnicodeFail("\xf3\xa0\xbe\x9b\xf3\xa0\x88\xb4\xe8\x87\xaf\xf0\xa7\x94\xa4.\xdd\xa85"); } // [B1, V7]
1308test { try toUnicodeFail("xn--zb1at733hm579ddhla.xn--5-b5c"); } // [B1, V7]
1309test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf"); } // [B1, V6]
1310test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf"); } // [B1, V6]
1311test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf"); } // [B1, V6]
1312test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf"); } // [B1, V6]
1313test { try toUnicodeFail("xn--gdh1504g.xn--e92h"); } // [B1, V6]
1314test { try toUnicodeFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xef\xbd\xa1\xe8\x84\xa5"); } // [B1]
1315test { try toUnicodeFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xe3\x80\x82\xe8\x84\xa5"); } // [B1]
1316test { try toUnicodeFail("xn--ybc101g3m1p.xn--740a"); } // [B1]
1317test { try toUnicodeFail("\xe1\xad\x84\xe1\x85\x9f\xf0\x9e\xb7\xbf\xf2\x83\x80\x8d.-"); } // [B1, B5, V3, V6, V7]
1318test { try toUnicodeFail("xn--1uf9538sxny9a.-"); } // [B1, B5, V3, V6, V7]
1319test { try toUnicodeFail("xn--osd971cpx70btgt8b.-"); } // [B1, B5, V3, V6, V7]
1320test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xcd\x94"); } // [C1, V6]
1321test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xcd\x94"); } // [C1, V6]
1322test { try toUnicodeFail(".xn--yua"); } // [V6, X4_2]
1323test { try toUnicodeFail("xn--0ug.xn--yua"); } // [C1, V6]
806test { 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"); }1324test { 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"); }
807test { try toAsciiPass("\xf0\x9e\xa4\xa5\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", false); }1325test { try toAsciiPass("\xf0\x9e\xa4\xa5\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", false); }
808test { try toAsciiPass("\xf0\x9e\xa4\xa5\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", true); }1326test { try toAsciiPass("\xf0\x9e\xa4\xa5\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", true); }
...@@ -839,13 +1357,291 @@ test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84...@@ -839,13 +1357,291 @@ test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84
839test { try toUnicodePass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe2\xb4\x8e"); }1357test { try toUnicodePass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe2\xb4\x8e"); }
840test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "xn--de6h.xn--37e857h", false); }1358test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "xn--de6h.xn--37e857h", false); }
841test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "xn--de6h.xn--37e857h", true); }1359test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "xn--de6h.xn--37e857h", true); }
1360test { try toUnicodeFail("xn--de6h.xn--mnd799a"); } // [V7]
842test { try toUnicodePass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe2\xb4\x8e"); }1361test { try toUnicodePass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe2\xb4\x8e"); }
843test { try toAsciiPass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", false); }1362test { try toAsciiPass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", false); }
844test { try toAsciiPass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", true); }1363test { try toAsciiPass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", true); }
1364test { 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]
1365test { 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]
1366test { 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]
1367test { 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]
1368test { 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]
1369test { try toUnicodeFail("xn--zxa5691vboja.xn--bfi293ci119b"); } // [B2, B3, B6]
1370test { 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]
1371test { 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]
1372test { 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]
1373test { 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]
1374test { 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]
1375test { 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]
1376test { 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]
1377test { 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]
1378test { 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]
1379test { try toUnicodeFail("xn----e3j6620g.xn--jlju661e."); } // [B1, B5, B6, V3]
1380test { try toUnicodeFail("xn----e3j425bsk1o.xn--jlju661e."); } // [B1, B5, B6, C1, V3]
1381test { 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]
1382test { 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]
1383test { try toUnicodeFail("xn----e3j6620g.xn--jlj4997dhgh"); } // [B1, B5, B6, V3, V7]
1384test { try toUnicodeFail("xn----e3j425bsk1o.xn--jlj4997dhgh"); } // [B1, B5, B6, C1, V3, V7]
1385test { try toUnicodeFail("xn----e3j6620g.xn--znd4948j."); } // [B1, B5, B6, V3, V7]
1386test { try toUnicodeFail("xn----e3j425bsk1o.xn--znd4948j."); } // [B1, B5, B6, C1, V3, V7]
1387test { try toUnicodeFail("xn----e3j6620g.xn--znd2362jhgh"); } // [B1, B5, B6, V3, V7]
1388test { try toUnicodeFail("xn----e3j425bsk1o.xn--znd2362jhgh"); } // [B1, B5, B6, C1, V3, V7]
1389test { try toUnicodeFail("\xf3\xa0\xbe\xb3.\xef\xb8\x92\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac"); } // [B1, C1, V7]
1390test { try toUnicodeFail("\xf3\xa0\xbe\xb3.\xe3\x80\x82\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac"); } // [B1, C1, V7, X4_2]
1391test { try toUnicodeFail("xn--uf66e..xn--qti2829e"); } // [B1, V7, X4_2]
1392test { try toUnicodeFail("xn--uf66e..xn--0ugz28as66q"); } // [B1, C1, V7, X4_2]
1393test { try toUnicodeFail("xn--uf66e.xn--qtiz073e3ik"); } // [B1, V7]
1394test { try toUnicodeFail("xn--uf66e.xn--0ugz28axl3pqxna"); } // [B1, C1, V7]
1395test { try toUnicodeFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe1\x82\xb1\xf1\x9a\x87\x9c\xf0\x90\xab\x8a"); } // [B1, V7]
1396test { try toUnicodeFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe2\xb4\x91\xf1\x9a\x87\x9c\xf0\x90\xab\x8a"); } // [B1, V7]
1397test { try toUnicodeFail("xn--n49c.xn--8kj8702ewicl862o"); } // [B1, V7]
1398test { try toUnicodeFail("xn--n49c.xn--pnd4619jwicl862o"); } // [B1, V7]
1399test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe1\x82\xbb"); } // [V6, V7]
1400test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe1\x82\xbb"); } // [V6, V7]
1401test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe2\xb4\x9b"); } // [V6, V7]
1402test { try toUnicodeFail("xn--0fd40533g.xn--1-tws"); } // [V6, V7]
1403test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe2\xb4\x9b"); } // [V6, V7]
1404test { try toUnicodeFail("xn--0fd40533g.xn--1-q1g"); } // [V6, V7]
1405test { try toUnicodeFail("-\xe0\xa0\xa6\xe9\xbd\x80\xe3\x80\x82\xeb\xa6\xbf\xf0\x90\xb8\x8b"); } // [B1, B5, B6, V3, V7]
1406test { 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]
1407test { try toUnicodeFail("xn----6gd0617i.xn--7y2bm55m"); } // [B1, B5, B6, V3, V7]
1408test { 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]
1409test { 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]
1410test { try toUnicodeFail("xn--mnb6558e91kyq533a.xn--6mh27269e"); } // [B1, B6, V7]
1411test { try toUnicodeFail("xn--mnb6558e91kyq533a.xn--1uga46zs309y"); } // [B1, B6, C2, V7]
1412test { try toUnicodeFail("\xe2\x89\xae\xef\xbc\x8e-\xdc\x88--"); } // [B1, V2, V3]
1413test { try toUnicodeFail("<\xcc\xb8\xef\xbc\x8e-\xdc\x88--"); } // [B1, V2, V3]
1414test { try toUnicodeFail("\xe2\x89\xae.-\xdc\x88--"); } // [B1, V2, V3]
1415test { try toUnicodeFail("<\xcc\xb8.-\xdc\x88--"); } // [B1, V2, V3]
1416test { try toUnicodeFail("xn--gdh.xn------eqf"); } // [B1, V2, V3]
1417test { 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]
1418test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x827"); } // [B1, C2, V7]
1419test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xce\xa37"); } // [B1, C2, V7]
1420test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x837"); } // [B1, C2, V7]
1421test { try toUnicodeFail("xn--wo0di5177c.xn--7-zmb"); } // [B1, V7]
1422test { try toUnicodeFail("xn--wo0di5177c.xn--7-zmb938s"); } // [B1, C2, V7]
1423test { try toUnicodeFail("xn--wo0di5177c.xn--7-xmb248s"); } // [B1, C2, V7]
1424test { 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]
1425test { 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]
1426test { try toUnicodeFail("\xcf\x82\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7]
1427test { try toUnicodeFail("\xcf\x82\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7]
1428test { try toUnicodeFail("\xce\xa3\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7]
1429test { try toUnicodeFail("\xcf\x83\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7]
1430test { try toUnicodeFail("xn--8-zmb14974n.xn--su6h"); } // [V7]
1431test { try toUnicodeFail("xn--8-xmb44974n.xn--su6h"); } // [V7]
1432test { try toUnicodeFail("\xce\xa3\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7]
1433test { try toUnicodeFail("\xcf\x83\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7]
1434test { 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]
1435test { try toUnicodeFail("\xe2\x80\x8c\xe1\xa1\x910.\xda\x84.-\xf0\x90\xab\x84\xf0\x91\xb2\xa4"); } // [B1, C1, V3]
1436test { try toUnicodeFail("xn--0-o7j.xn--9ib.xn----ek5i065b"); } // [B1, V3]
1437test { try toUnicodeFail("xn--0-o7j263b.xn--9ib.xn----ek5i065b"); } // [B1, C1, V3]
1438test { try toUnicodeFail("xn--9ib722gbw95a.xn----ek5i065b"); } // [B1, B5, B6, V3, V7]
1439test { try toUnicodeFail("xn--9ib722gvtfi563c.xn----ek5i065b"); } // [B1, C1, V3, V7]
1440test { try toUnicodeFail("\xf0\x96\xa0\x8d\xe3\x80\x82\xf0\x90\xaa\xbf\xeb\x84\xaf\xf2\x9e\xb5\xb2"); } // [B2, B3, V7]
1441test { 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]
1442test { try toUnicodeFail("xn--4e9e.xn--l60bj21opd57g"); } // [B2, B3, V7]
1443test { try toUnicodeFail("\xe1\xa0\x87\xe1\x82\xb8\xe3\x80\x82\xd8\x83\xe1\x82\xa8\xf0\x9d\x86\x8a"); } // [B1, V7]
1444test { try toUnicodeFail("\xe1\xa0\x87\xe2\xb4\x98\xe3\x80\x82\xd8\x83\xe2\xb4\x88\xf0\x9d\x86\x8a"); } // [B1, V7]
1445test { try toUnicodeFail("xn--d6e009h.xn--lfb290rfu3z"); } // [B1, V7]
1446test { try toUnicodeFail("xn--wnd558a.xn--lfb465c1v87a"); } // [B1, V7]
1447test { 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]
1448test { 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]
1449test { 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]
1450test { 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]
1451test { 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]
1452test { try toUnicodeFail("19.xn--oe6h75760c.xn--gib285gtxo2l9d"); } // [B1, B5, V7]
1453test { 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]
1454test { 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]
1455test { 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]
1456test { try toUnicodeFail("xn--cthy466n29j3e.xn--gib285gtxo2l9d"); } // [B1, B5, V7]
1457test { try toUnicodeFail("19.xn--oe6h75760c.xn--gib404ccxgh00h"); } // [B1, B5, V7]
1458test { try toUnicodeFail("xn--cthy466n29j3e.xn--gib404ccxgh00h"); } // [B1, B5, V7]
1459test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe1\x82\xb3"); } // [B1, V3, V7]
1460test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe1\x82\xb3"); } // [B1, V3, X4_2]
1461test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe2\xb4\x93"); } // [B1, V3, X4_2]
1462test { try toUnicodeFail("xn---1-895nq11a..xn--blj"); } // [B1, V3, X4_2]
1463test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe2\xb4\x93"); } // [B1, V3, V7]
1464test { try toUnicodeFail("xn----ecp0206g90h.xn--blj"); } // [B1, V3, V7]
1465test { try toUnicodeFail("xn---1-895nq11a..xn--rnd"); } // [B1, V3, V7, X4_2]
1466test { try toUnicodeFail("xn----ecp0206g90h.xn--rnd"); } // [B1, V3, V7]
1467test { try toUnicodeFail("\xe2\x80\x8c\xea\xb8\x83.\xe6\xa6\xb6-"); } // [C1, V3]
1468test { try toUnicodeFail("\xe2\x80\x8c\xe1\x84\x80\xe1\x85\xb3\xe1\x86\xb2.\xe6\xa6\xb6-"); } // [C1, V3]
1469test { try toUnicodeFail("xn--ej0b.xn----d87b"); } // [V3]
1470test { try toUnicodeFail("xn--0ug3307c.xn----d87b"); } // [C1, V3]
1471test { try toUnicodeFail("\xeb\x89\x93\xe6\xb3\x93\xf0\x9c\xb5\xbd.\xe0\xa7\x8d\xe2\x80\x8d"); } // [V6]
1472test { 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]
1473test { try toUnicodeFail("xn--lwwp69lqs7m.xn--b7b"); } // [V6]
1474test { try toUnicodeFail("xn--lwwp69lqs7m.xn--b7b605i"); } // [V6]
1475test { 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]
1476test { 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]
1477test { 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]
1478test { 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]
1479test { 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]
1480test { try toUnicodeFail("xn--ss-ti3o.xn--57c638l8774i"); } // [B1, V6, V7]
1481test { try toUnicodeFail("xn--ss-l1t5169j.xn--57c638l8774i"); } // [B1, C2, V6, V7]
1482test { try toUnicodeFail("xn--zca770nip7n.xn--57c638l8774i"); } // [B1, C2, V6, V7]
1483test { 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]
1484test { 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]
1485test { 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]
1486test { try toUnicodeFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0"); } // [V6]
1487test { try toUnicodeFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8"); } // [V6]
1488test { try toUnicodeFail("\xe1\xad\x84.\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0"); } // [V6]
1489test { try toUnicodeFail("\xe1\xad\x84.\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8"); } // [V6]
1490test { try toUnicodeFail("xn--1uf.xn----nmlz65aub"); } // [V6]
1491test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x84\xb2"); } // [V6]
1492test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x84\xb2"); } // [V6]
1493test { try toUnicodeFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6]
1494test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6]
1495test { try toUnicodeFail("xn--1zf224e.xn--73g3065g"); } // [V6]
1496test { try toUnicodeFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6]
1497test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6]
1498test { try toUnicodeFail("xn--pnd26a55x.xn--73g3065g"); } // [V6, V7]
1499test { try toUnicodeFail("xn--osd925cvyn.xn--73g3065g"); } // [V6, V7]
1500test { try toUnicodeFail("xn--pnd26a55x.xn--f3g7465g"); } // [V6, V7]
1501test { 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]
1502test { 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]
1503test { 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]
1504test { 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]
1505test { try toUnicodeFail("xn--187g.xn--ukjy205b8rscdeb"); } // [B5, V7]
1506test { try toUnicodeFail("xn--187g.xn--bnd4785f8r8bdeb"); } // [B5, V7]
1507test { 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]
1508test { 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]
1509test { try toUnicodeFail("xn--pw9c.xn--mkjw9654i"); } // [B1, V7]
1510test { try toUnicodeFail("xn--pw9c.xn--psd742lxt32w"); } // [B1, V7]
1511test { try toUnicodeFail("xn--pw9c.xn--mkj83l4v899a"); } // [B1, V7]
1512test { try toUnicodeFail("\xde\x9a\xe2\xbe\x87\xef\xbc\x8e\xdc\x9e-\xf0\x90\x8b\xb0"); } // [B2, B3]
1513test { try toUnicodeFail("\xde\x9a\xe8\x88\x9b.\xdc\x9e-\xf0\x90\x8b\xb0"); } // [B2, B3]
1514test { try toUnicodeFail("xn--7qb6383d.xn----20c3154q"); } // [B2, B3]
1515test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92"); } // [V7]
1516test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92"); } // [V7]
1517test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82"); } // [V7, X4_2]
1518test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82"); } // [V7, X4_2]
1519test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82"); } // [V7, X4_2]
1520test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82"); } // [V7, X4_2]
1521test { try toUnicodeFail("xn--gdh892bbz0d5438s.."); } // [V7, X4_2]
1522test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92"); } // [V7]
1523test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92"); } // [V7]
1524test { try toUnicodeFail("xn--gdh892bbz0d5438s.xn--y86c"); } // [V7]
1525test { try toUnicodeFail("xn--hnd212gz32d54x5r.."); } // [V7, X4_2]
1526test { try toUnicodeFail("xn--hnd212gz32d54x5r.xn--y86c"); } // [V7]
1527test { try toUnicodeFail("\xf0\x9f\x8f\xae\xef\xbd\xa1\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89"); } // [B1, B2]
1528test { try toUnicodeFail("\xf0\x9f\x8f\xae\xe3\x80\x82\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89"); } // [B1, B2]
1529test { try toUnicodeFail("xn--8m8h.xn--qgb29f6z90a"); } // [B1, B2]
1530test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82\xc3\x9f"); } // [B1, C2]
1531test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82SS"); } // [B1, C2]
1532test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82ss"); } // [B1, C2]
1533test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82Ss"); } // [B1, C2]
1534test { try toUnicodeFail("xn--uo0d.ss"); } // [B1]
1535test { try toUnicodeFail("xn--1ug9105g.ss"); } // [B1, C2]
1536test { try toUnicodeFail("xn--1ug9105g.xn--zca"); } // [B1, C2]
1537test { try toUnicodeFail("\xc3\x85\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3]
1538test { try toUnicodeFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3]
1539test { try toUnicodeFail("\xc3\x85\xeb\x91\x84-.\xe2\x80\x8c"); } // [C1, V3]
1540test { try toUnicodeFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c"); } // [C1, V3]
1541test { try toUnicodeFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c"); } // [C1, V3]
1542test { try toUnicodeFail("\xc3\xa5\xeb\x91\x84-.\xe2\x80\x8c"); } // [C1, V3]
1543test { try toUnicodeFail("xn----1fa1788k."); } // [V3]
1544test { try toUnicodeFail("xn----1fa1788k.xn--0ug"); } // [C1, V3]
1545test { try toUnicodeFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3]
1546test { try toUnicodeFail("\xc3\xa5\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3]
1547test { 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]
1548test { 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]
1549test { try toUnicodeFail("xn--veg121fwg63altj9d.xn----eyd92688s"); } // [B1, B6, V6, V7]
1550test { try toUnicodeFail("\xcf\x82.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
1551test { try toUnicodeFail("\xce\xa3.SS\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
1552test { try toUnicodeFail("\xcf\x83.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
1553test { try toUnicodeFail("\xce\xa3.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
1554test { try toUnicodeFail("xn--4xa.xn--ss-y8d4760biv60n"); } // [B5, B6, V7]
1555test { try toUnicodeFail("\xce\xa3.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
1556test { try toUnicodeFail("\xcf\x83.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7]
1557test { try toUnicodeFail("xn--4xa.xn--zca281az71b8x73m"); } // [B5, B6, V7]
1558test { try toUnicodeFail("xn--3xa.xn--zca281az71b8x73m"); } // [B5, B6, V7]
1559test { try toUnicodeFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xef\xbd\xa1\xd9\xab\xd6\x99"); } // [B1]
1560test { try toUnicodeFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xe3\x80\x82\xd9\xab\xd6\x99"); } // [B1]
1561test { try toUnicodeFail("xn--8b9a1720d.xn--kcb33b"); } // [B1]
1562test { 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]
1563test { 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]
1564test { try toUnicodeFail("xn--yyb56242i.xn----zir1232guu71b"); } // [B1, B5, B6, V7]
1565test { try toUnicodeFail("xn--yyb780jll63m.xn----zir1232guu71b"); } // [B1, B5, B6, C1, V7]
1566test { 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]
1567test { 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]
1568test { 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]
1569test { 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]
1570test { try toUnicodeFail("xn--ct2b0738h.xn--772h."); } // [V6]
1571test { try toUnicodeFail("xn--0ugb3358ili2v.xn--772h."); } // [C1, C2, V6]
1572test { try toUnicodeFail("xn--ct2b0738h.xn--y86cl899a"); } // [V6, V7]
1573test { try toUnicodeFail("xn--0ugb3358ili2v.xn--y86cl899a"); } // [C1, C2, V6, V7]
1574test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88\xc3\x9f"); } // [V6, V7, U1]
1575test { try toUnicodeFail("3,.\xe1\xb3\x9c1.\xc3\x9f"); } // [V6, U1]
1576test { try toUnicodeFail("3,.\xe1\xb3\x9c1.SS"); } // [V6, U1]
1577test { try toUnicodeFail("3,.\xe1\xb3\x9c1.ss"); } // [V6, U1]
1578test { try toUnicodeFail("3,.\xe1\xb3\x9c1.Ss"); } // [V6, U1]
1579test { try toUnicodeFail("3,.xn--1-43l.ss"); } // [V6, U1]
1580test { try toUnicodeFail("3,.xn--1-43l.xn--zca"); } // [V6, U1]
1581test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88SS"); } // [V6, V7, U1]
1582test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88ss"); } // [V6, V7, U1]
1583test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88Ss"); } // [V6, V7, U1]
1584test { try toUnicodeFail("3,.xn--ss-k1r094b"); } // [V6, V7, U1]
1585test { try toUnicodeFail("3,.xn--zca344lmif"); } // [V6, V7, U1]
1586test { try toUnicodeFail("xn--x07h.xn--ss-k1r094b"); } // [V6, V7]
1587test { try toUnicodeFail("xn--x07h.xn--zca344lmif"); } // [V6, V7]
1588test { 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]
1589test { 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]
1590test { try toUnicodeFail("xn--eoj16016a.xn--0v1d3848a3lr0d"); } // [B2, B3, V7]
1591test { 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]
1592test { 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]
1593test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6]
1594test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6]
1595test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6]
1596test { try toUnicodeFail("xn--n3b956a9zm.xn--1ch912d"); } // [V6]
1597test { try toUnicodeFail("xn--n3b956a9zm.xn--1ug63gz5w"); } // [C2, V6]
1598test { 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]
1599test { 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]
1600test { try toUnicodeFail("xn--skjw75lg29h.xn--9ta62nrv36a"); } // [B1, V6]
1601test { try toUnicodeFail("xn--skjw75lg29h.xn--9ta62ngt6aou8t"); } // [B1, C2]
1602test { try toUnicodeFail("xn--8md2578ag21g.xn--9ta62nrv36a"); } // [B1, V6, V7]
1603test { try toUnicodeFail("xn--8md2578ag21g.xn--9ta62ngt6aou8t"); } // [B1, C2, V7]
1604test { 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]
1605test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f"); } // [B1, B5, B6, V6]
1606test { try toUnicodeFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f"); } // [B1, B5, B6, V6]
1607test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6SS"); } // [B1, B5, B6, V6]
1608test { try toUnicodeFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6ss"); } // [B1, B5, B6, V6]
1609test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6Ss"); } // [B1, B5, B6, V6]
1610test { try toUnicodeFail("0.xn--iib29fp25e.1.xn--ss-1sj"); } // [B1, B5, B6, V6]
1611test { try toUnicodeFail("0.xn--iib29fp25e.1.xn--zca117e"); } // [B1, B5, B6, V6]
1612test { 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]
1613test { 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]
1614test { 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]
1615test { 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]
1616test { try toUnicodeFail("xn--iib29fp25e0219a.xn--ss-1sj588o"); } // [B1, V7]
1617test { try toUnicodeFail("xn--iib29fp25e0219a.xn--zca117e3vp"); } // [B1, V7]
1618test { try toUnicodeFail("0.xn--iib29f26o.1.xn--ss-1sj"); } // [B1, B5, B6, V6, V7]
1619test { try toUnicodeFail("0.xn--iib29f26o.1.xn--zca117e"); } // [B1, B5, B6, V6, V7]
1620test { try toUnicodeFail("xn--iib29f26o6n43c.xn--ss-1sj588o"); } // [B1, V7]
1621test { try toUnicodeFail("xn--iib29f26o6n43c.xn--zca117e3vp"); } // [B1, V7]
1622test { try toUnicodeFail("\xe2\x89\xa0.\xe2\x80\x8c-\xd9\xab"); } // [B1, C1]
1623test { try toUnicodeFail("=\xcc\xb8.\xe2\x80\x8c-\xd9\xab"); } // [B1, C1]
1624test { try toUnicodeFail("xn--1ch.xn----vqc"); } // [B1, V3]
1625test { try toUnicodeFail("xn--1ch.xn----vqc597q"); } // [B1, C1]
1626test { try toUnicodeFail("\xd9\xa0\xdb\xb1\xef\xbd\xa1\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5"); } // [B1, V7]
1627test { try toUnicodeFail("\xd9\xa0\xdb\xb1\xe3\x80\x82\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5"); } // [B1, V7]
1628test { try toUnicodeFail("xn--8hb40a.xn--eib7967vner3e"); } // [B1, V7]
1629test { 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]
1630test { 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]
1631test { try toUnicodeFail("xn--15-gyd..xn--1zf13512buy41d"); } // [B1, V7, X4_2]
1632test { try toUnicodeFail("xn--15-gyd983x..xn--1zf13512buy41d"); } // [B1, C1, V7, X4_2]
1633test { try toUnicodeFail("xn--cib675m.xn--1zf13512buy41d"); } // [B1, V7]
1634test { try toUnicodeFail("xn--cib152kwgd.xn--1zf13512buy41d"); } // [B1, C1, V7]
1635test { try toUnicodeFail("\xe1\xaf\xb3.-\xe9\x80\x8b\xf1\xb3\xa6\xad\xf3\x99\x99\xae"); } // [V3, V6, V7]
1636test { try toUnicodeFail("xn--1zf.xn----483d46987byr50b"); } // [V3, V6, V7]
845test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x82", "xn--9ob.xn--4xa", true); }1637test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x82", "xn--9ob.xn--4xa", true); }
1638test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x82"); } // [B1, C2]
846test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x82", "xn--9ob.xn--4xa", true); }1639test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x82", "xn--9ob.xn--4xa", true); }
1640test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x82"); } // [B1, C2]
847test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xce\xa3", "xn--9ob.xn--4xa", true); }1641test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xce\xa3", "xn--9ob.xn--4xa", true); }
1642test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xce\xa3"); } // [B1, C2]
848test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x83", "xn--9ob.xn--4xa", true); }1643test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x83", "xn--9ob.xn--4xa", true); }
1644test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x83"); } // [B1, C2]
849test { try toUnicodePass("xn--9ob.xn--4xa", "\xdd\x96.\xcf\x83"); }1645test { try toUnicodePass("xn--9ob.xn--4xa", "\xdd\x96.\xcf\x83"); }
850test { try toAsciiPass("xn--9ob.xn--4xa", "xn--9ob.xn--4xa", false); }1646test { try toAsciiPass("xn--9ob.xn--4xa", "xn--9ob.xn--4xa", false); }
851test { try toAsciiPass("xn--9ob.xn--4xa", "xn--9ob.xn--4xa", true); }1647test { try toAsciiPass("xn--9ob.xn--4xa", "xn--9ob.xn--4xa", true); }
...@@ -855,8 +1651,103 @@ test { try toAsciiPass("\xdd\x96.\xcf\x83", "xn--9ob.xn--4xa", true); }...@@ -855,8 +1651,103 @@ test { try toAsciiPass("\xdd\x96.\xcf\x83", "xn--9ob.xn--4xa", true); }
855test { try toUnicodePass("\xdd\x96.\xce\xa3", "\xdd\x96.\xcf\x83"); }1651test { try toUnicodePass("\xdd\x96.\xce\xa3", "\xdd\x96.\xcf\x83"); }
856test { try toAsciiPass("\xdd\x96.\xce\xa3", "xn--9ob.xn--4xa", false); }1652test { try toAsciiPass("\xdd\x96.\xce\xa3", "xn--9ob.xn--4xa", false); }
857test { try toAsciiPass("\xdd\x96.\xce\xa3", "xn--9ob.xn--4xa", true); }1653test { try toAsciiPass("\xdd\x96.\xce\xa3", "xn--9ob.xn--4xa", true); }
1654test { try toUnicodeFail("xn--9ob.xn--4xa795l"); } // [B1, C2]
1655test { try toUnicodeFail("xn--9ob.xn--3xa995l"); } // [B1, C2]
858test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xce\xa3", "xn--9ob.xn--4xa", true); }1656test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xce\xa3", "xn--9ob.xn--4xa", true); }
1657test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xce\xa3"); } // [B1, C2]
859test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x83", "xn--9ob.xn--4xa", true); }1658test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x83", "xn--9ob.xn--4xa", true); }
1659test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x83"); } // [B1, C2]
1660test { try toUnicodeFail("xn--9ob.xn--4xa380e"); } // [V7]
1661test { try toUnicodeFail("xn--9ob.xn--4xa380ebol"); } // [C2, V7]
1662test { try toUnicodeFail("xn--9ob.xn--3xa580ebol"); } // [C2, V7]
1663test { try toUnicodeFail("xn--9ob.xn--4xa574u"); } // [V7]
1664test { try toUnicodeFail("xn--9ob.xn--4xa795lq2l"); } // [C2, V7]
1665test { try toUnicodeFail("xn--9ob.xn--3xa995lq2l"); } // [C2, V7]
1666test { 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]
1667test { 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]
1668test { 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]
1669test { try toUnicodeFail("xn--57e237h.xn--5sa98523p"); } // [V7]
1670test { try toUnicodeFail("xn--57e237h.xn--5sa649la993427a"); } // [C2, V7]
1671test { 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]
1672test { try toUnicodeFail("xn--bnd320b.xn--5sa98523p"); } // [V7]
1673test { try toUnicodeFail("xn--bnd320b.xn--5sa649la993427a"); } // [C2, V7]
1674test { 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]
1675test { 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]
1676test { 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]
1677test { 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]
1678test { try toUnicodeFail("xn--ewb302xhu1l.xn--4xa0426k"); } // [B5, B6]
1679test { try toUnicodeFail("xn--ewb962jfitku4r.xn--4xa695lda6932v"); } // [B5, B6, C1, C2]
1680test { try toUnicodeFail("xn--ewb962jfitku4r.xn--3xa895lda6932v"); } // [B5, B6, C1, C2]
1681test { 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]
1682test { 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]
1683test { try toUnicodeFail("\xe1\x9e\xb5\xe3\x80\x82\xf0\x9e\xaf\xb8\xea\xa1\x80\xf0\x9f\x84\x8b"); } // [B2, B3, V7, X4_2]
1684test { try toUnicodeFail(".xn--8b9ar252dngd"); } // [B2, B3, V7, X4_2]
1685test { try toUnicodeFail("xn--03e.xn--8b9ar252dngd"); } // [B1, B2, B3, V6, V7]
1686test { try toUnicodeFail("\xf3\x90\xaa\xba\xe6\x9a\x91\xef\xbc\x8e\xe2\xbe\x91\xd9\xa8"); } // [B5, B6, V7]
1687test { try toUnicodeFail("\xf3\x90\xaa\xba\xe6\x9a\x91.\xe8\xa5\xbe\xd9\xa8"); } // [B5, B6, V7]
1688test { try toUnicodeFail("xn--tlvq3513e.xn--hib9228d"); } // [B5, B6, V7]
1689test { try toUnicodeFail("\xf3\xa0\x84\x9a\xe2\x89\xaf\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf"); } // [B1, V7]
1690test { try toUnicodeFail("\xf3\xa0\x84\x9a>\xcc\xb8\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf"); } // [B1, V7]
1691test { try toUnicodeFail("xn--hdh7783c.xn--9xb680i"); } // [B1, V7]
1692test { 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]
1693test { 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]
1694test { 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]
1695test { try toUnicodeFail("xn--fhbea662czx68a2tju.xn--fljz2846h"); } // [B2, B3, V7]
1696test { 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]
1697test { try toUnicodeFail("xn--fhbea662czx68a2tju.xn--vnd55511o"); } // [B2, B3, V7]
1698test { try toUnicodeFail("\xf0\x9e\x80\xa8\xef\xbd\xa1\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87"); } // [V6, V7]
1699test { try toUnicodeFail("\xf0\x9e\x80\xa8\xe3\x80\x82\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87"); } // [V6, V7]
1700test { try toUnicodeFail("xn--mi4h.xn--1uf6843smg20c"); } // [V6, V7]
1701test { 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]
1702test { try toUnicodeFail("\xf3\xa0\xa3\xbc\xe2\x80\x8c.\xf0\x90\xba\xb0\xe2\x80\x8c\xe1\xa1\x9f"); } // [B1, B2, B3, C1, V7]
1703test { try toUnicodeFail("xn--q046e.xn--v8e7227j"); } // [B1, B2, B3, V7]
1704test { try toUnicodeFail("xn--0ug18531l.xn--v8e340bp21t"); } // [B1, B2, B3, C1, V7]
1705test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9f\xc3\x9f.\xe1\x8c\xa7"); } // [V7]
1706test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSS.\xe1\x8c\xa7"); } // [V7]
1707test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fss.\xe1\x8c\xa7"); } // [V7]
1708test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSs.\xe1\x8c\xa7"); } // [V7]
1709test { try toUnicodeFail("xn--ss-7dp66033t.xn--p5d"); } // [V7]
1710test { try toUnicodeFail("xn--zca562jc642x.xn--p5d"); } // [V7]
1711test { try toUnicodeFail("\xe2\xae\x92\xe2\x80\x8c.\xf1\x92\x9a\x97\xe2\x80\x8c"); } // [C1, V7]
1712test { try toUnicodeFail("xn--b9i.xn--5p9y"); } // [V7]
1713test { try toUnicodeFail("xn--0ugx66b.xn--0ugz2871c"); } // [C1, V7]
1714test { try toUnicodeFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe1\x82\xbc"); } // [B2, V7]
1715test { try toUnicodeFail("\xf0\x9e\xa4\xa4\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c"); } // [B2, V7]
1716test { try toUnicodeFail("xn--no0dr648a51o3b.xn--klj"); } // [B2, V7]
1717test { try toUnicodeFail("xn--no0dr648a51o3b.xn--0nd"); } // [B2, V7]
1718test { try toUnicodeFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c"); } // [B2, V7]
1719test { 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]
1720test { 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]
1721test { try toUnicodeFail("xn--s9i5458e7yb.xn--1gb4a66004i"); } // [B1, B5, B6, V7]
1722test { try toUnicodeFail("xn--0ug586bcj8p7jc.xn--1gb4a66004i"); } // [B1, B5, B6, C1, V7]
1723test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
1724test { 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]
1725test { 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]
1726test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
1727test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\x93\xe0\xb1\x8d"); } // [B5, B6]
1728test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\x93\xe0\xb1\x8d"); } // [B5, B6]
1729test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
1730test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
1731test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
1732test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
1733test { try toUnicodeFail("xn--9kj.xn--ss-9nh3648ahh20b"); } // [B5, B6]
1734test { try toUnicodeFail("xn--9kj.xn--zca669cmr3a0f28a"); } // [B5, B6]
1735test { try toUnicodeFail("xn--qnd.xn--ss-9nh3648ahh20b"); } // [B5, B6, V7]
1736test { try toUnicodeFail("xn--qnd.xn--zca669cmr3a0f28a"); } // [B5, B6, V7]
1737test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
1738test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6]
1739test { try toUnicodeFail("\xf0\x91\x81\xbf\xe0\xb5\x8d\xef\xbc\x8e\xef\xbc\x97-\xdf\x92"); } // [B1, V6]
1740test { try toUnicodeFail("\xf0\x91\x81\xbf\xe0\xb5\x8d.7-\xdf\x92"); } // [B1, V6]
1741test { try toUnicodeFail("xn--wxc1283k.xn--7--yue"); } // [B1, V6]
1742test { 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]
1743test { 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]
1744test { try toUnicodeFail("xn--hdhx157g68o0g.xn--c0e65eu616c34o7a"); } // [V6, V7]
1745test { try toUnicodeFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe1\x82\xb7\xec\x8f\x94\xe3\x80\x82\xde\x81"); } // [B1, V6, V7]
1746test { 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]
1747test { 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]
1748test { try toUnicodeFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe2\xb4\x97\xec\x8f\x94\xe3\x80\x82\xde\x81"); } // [B1, V6, V7]
1749test { try toUnicodeFail("xn--zegy26dw47iy6w2f.xn--iqb"); } // [B1, V6, V7]
1750test { try toUnicodeFail("xn--vnd148d733ky6n9e.xn--iqb"); } // [B1, V6, V7]
860test { 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"); }1751test { 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"); }
861test { try toAsciiPass("\xc3\x9f\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "xn--zca.xn--lgd921mvv0m", false); }1752test { try toAsciiPass("\xc3\x9f\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "xn--zca.xn--lgd921mvv0m", false); }
862test { try toAsciiPass("\xc3\x9f\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", true); }1753test { try toAsciiPass("\xc3\x9f\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", true); }
...@@ -905,6 +1796,245 @@ test { try toAsciiPass("ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe2\xb4\x8c\xe0\xbe\xb8",...@@ -905,6 +1796,245 @@ test { try toAsciiPass("ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe2\xb4\x8c\xe0\xbe\xb8",
905test { try toUnicodePass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.\xf0\x90\x8b\xb3\xe2\xb4\x8c\xe0\xbe\xb8"); }1796test { try toUnicodePass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.\xf0\x90\x8b\xb3\xe2\xb4\x8c\xe0\xbe\xb8"); }
906test { try toAsciiPass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", false); }1797test { try toAsciiPass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", false); }
907test { try toAsciiPass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", true); }1798test { try toAsciiPass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", true); }
1799test { try toUnicodeFail("ss.xn--lgd10cu829c"); } // [V7]
1800test { try toUnicodeFail("xn--zca.xn--lgd10cu829c"); } // [V7]
1801test { try toUnicodeFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe2\xbe\x9d\xe0\xa7\x8d"); } // [B1, C1, V3, V7]
1802test { try toUnicodeFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe8\xba\xab\xe0\xa7\x8d"); } // [B1, C1, V3, V7]
1803test { try toUnicodeFail("xn----stc7013r.xn--b7b1419d"); } // [B1, V3, V7]
1804test { try toUnicodeFail("xn----stc7013r.xn--b7b305imj2f"); } // [B1, C1, V3, V7]
1805test { 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]
1806test { 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]
1807test { try toUnicodeFail("xn--opb4277kuc7elqsa.xn--kr8h"); } // [B1]
1808test { try toUnicodeFail("xn--opb4277kuc7elqsa.xn--1ug5265p"); } // [B1, C2]
1809test { 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]
1810test { try toUnicodeFail("xn--cnb37gdy00a.xn--89e02253p"); } // [B1, B6, V6, V7]
1811test { try toUnicodeFail("xn--cnb37g904be26j.xn--89e849ax9363a"); } // [B1, B6, C1, C2, V6, V7]
1812test { try toUnicodeFail("\xe1\x82\xb1\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7]
1813test { try toUnicodeFail("\xe1\x82\xb1.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7]
1814test { try toUnicodeFail("\xe2\xb4\x91.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7]
1815test { try toUnicodeFail("xn--8kj.xn--ykb840gd555a"); } // [B2, B3, V7]
1816test { try toUnicodeFail("\xe2\xb4\x91\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7]
1817test { try toUnicodeFail("xn--pnd.xn--ykb840gd555a"); } // [B2, B3, V7]
1818test { 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]
1819test { try toUnicodeFail("\xe1\xa9\x9a\xf0\x9b\xa6\x9d\xe0\xb1\x8d\xe3\x80\x82\xf0\x9a\x9d\xac9"); } // [V6, V7]
1820test { try toUnicodeFail("xn--lqc703ebm93a.xn--9-000p"); } // [V6, V7]
1821test { 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]
1822test { 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]
1823test { 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]
1824test { try toUnicodeFail("xn--9-vtc42319e.xn--tgb9bz87p833hw316c"); } // [B2, B5, V7]
1825test { try toUnicodeFail("xn--9-vtc736qts91g.xn--tgb9bz87p833hw316c"); } // [B1, B5, C1, V7]
1826test { 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]
1827test { try toUnicodeFail("xn--9-vtc42319e.xn--tgb9bz61cfn8mw3t2c"); } // [B2, B5, V7]
1828test { try toUnicodeFail("xn--9-vtc736qts91g.xn--tgb9bz61cfn8mw3t2c"); } // [B1, B5, C1, V7]
1829test { try toUnicodeFail("\xe1\xa1\x96\xef\xbd\xa1\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-"); } // [V3, V6, V7]
1830test { try toUnicodeFail("\xe1\xa1\x96\xe3\x80\x82\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-"); } // [V3, V6, V7]
1831test { try toUnicodeFail("xn--m8e.xn----mdb555dkk71m"); } // [V3, V6, V7]
1832test { try toUnicodeFail("\xf0\x9e\xa0\xa0\xe6\xb5\x98\xe3\x80\x82\xe7\xb5\xa7\xf0\x9e\x80\x80"); } // [B2, B3]
1833test { try toUnicodeFail("xn--e0wp491f.xn--ud0a3573e"); } // [B2, B3]
1834test { 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]
1835test { try toUnicodeFail("\xd6\x96\xe1\x82\xab\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a"); } // [V6, V7]
1836test { try toUnicodeFail("\xd6\x96\xe1\x82\xab.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a"); } // [V6]
1837test { try toUnicodeFail("\xd6\x96\xe1\x82\xab.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a"); } // [V6]
1838test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a"); } // [V6]
1839test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a"); } // [V6]
1840test { try toUnicodeFail("xn--hcb613r.xn--7-pgo."); } // [V6]
1841test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a"); } // [V6, V7]
1842test { 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]
1843test { try toUnicodeFail("xn--hcb613r.xn--7-pgoy530h"); } // [V6, V7]
1844test { try toUnicodeFail("xn--hcb887c.xn--7-pgo."); } // [V6, V7]
1845test { try toUnicodeFail("xn--hcb887c.xn--7-pgoy530h"); } // [V6, V7]
1846test { 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]
1847test { 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]
1848test { 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]
1849test { try toUnicodeFail("xn--f-kq9i.xn--7656e.xn--fqb4175k"); } // [B1, V7]
1850test { try toUnicodeFail("xn--f-tgn9761i.xn--7656e.xn--fqb4175k"); } // [B1, C2, V7]
1851test { 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]
1852test { try toUnicodeFail("xn--f-kq9i.xn--fqb1637j8hky9452a"); } // [B1, V7]
1853test { try toUnicodeFail("xn--f-tgn9761i.xn--fqb1637j8hky9452a"); } // [B1, C2, V7]
1854test { 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]
1855test { 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]
1856test { try toUnicodeFail("xn--6,-r4e4420y..xn--zo0di2m"); } // [B1, U1, X4_2]
1857test { try toUnicodeFail("xn--6,-r4e6182wo1ra.xn--zo0di2m"); } // [B1, B3, V7, U1]
1858test { try toUnicodeFail("xn--3vb4696jpxkjh7s.xn--zo0di2m"); } // [B1, B3, V7]
1859test { try toUnicodeFail("\xf0\x90\xb9\x88.\xe1\xb7\x80\xf0\x91\x88\xb1\xf0\x90\xa6\xad"); } // [B1, V6, V7]
1860test { try toUnicodeFail("xn--jn0d.xn--7dg0871h3lf"); } // [B1, V6, V7]
1861test { 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]
1862test { 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]
1863test { try toUnicodeFail("xn--tkj638f.xn--pjb9818vg4xno967d"); } // [B2, V7]
1864test { try toUnicodeFail("xn--9md875z.xn--pjb9818vg4xno967d"); } // [B2, V7]
1865test { 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]
1866test { try toUnicodeFail("\xf0\x9f\x84\x87\xe4\xbc\x90\xef\xb8\x92.\xf0\x9c\x99\x9a\xea\xa3\x84"); } // [V7, U1]
1867test { try toUnicodeFail("6,\xe4\xbc\x90\xe3\x80\x82.\xf0\x9c\x99\x9a\xea\xa3\x84"); } // [V7, U1, X4_2]
1868test { try toUnicodeFail("xn--6,-7i3c..xn--0f9ao925c"); } // [V7, U1, X4_2]
1869test { try toUnicodeFail("xn--6,-7i3cj157d.xn--0f9ao925c"); } // [V7, U1]
1870test { try toUnicodeFail("xn--woqs083bel0g.xn--0f9ao925c"); } // [V7]
1871test { 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]
1872test { 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]
1873test { try toUnicodeFail("xn--429az70n29i.xn--ilj7702eqyd"); } // [B1, B2, B3, V7]
1874test { try toUnicodeFail("xn--1ugz126coy7bdbm.xn--1ug062chv7ov6e"); } // [B1, C2, V7]
1875test { try toUnicodeFail("xn--429az70n29i.xn--ynd3619jqyd"); } // [B1, B2, B3, V7]
1876test { try toUnicodeFail("xn--1ugz126coy7bdbm.xn--ynd959evs1pv6e"); } // [B1, C2, V7]
1877test { try toUnicodeFail("\xf3\xa0\x86\xa0\xef\xbc\x8e\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88"); } // [V7, X4_2]
1878test { try toUnicodeFail("\xf3\xa0\x86\xa0.\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88"); } // [V7, X4_2]
1879test { try toUnicodeFail(".xn--rx21bhv12i"); } // [V7, X4_2]
1880test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.\xe2\x89\xa0\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7]
1881test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.=\xcc\xb8\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7]
1882test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.=\xcc\xb8\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7]
1883test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.\xe2\x89\xa0\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7]
1884test { try toUnicodeFail("xn--xkjz802e.xn--1ch2802p"); } // [B1, B2, B3, V7]
1885test { try toUnicodeFail("xn--0ug132csv7o.xn--1ch2802p"); } // [B1, B2, B3, C1, V7]
1886test { try toUnicodeFail("xn--end1719j.xn--1ch2802p"); } // [B1, B2, B3, V7]
1887test { try toUnicodeFail("xn--end799ekr1p.xn--1ch2802p"); } // [B1, B2, B3, C1, V7]
1888test { 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]
1889test { try toUnicodeFail("\xf3\xa0\x81\xb2\xf0\x99\xa9\xa23\xea\x98\x8c.\xe0\xa1\x81"); } // [B1, V7]
1890test { try toUnicodeFail("xn--3-0g3es485d8i15h.xn--zvb"); } // [B1, V7]
1891test { try toUnicodeFail("-.\xe1\xa2\x86\xf3\xa1\xb2\xa3-"); } // [V3, V6, V7]
1892test { try toUnicodeFail("-.xn----pbkx6497q"); } // [V3, V6, V7]
1893test { 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]
1894test { 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]
1895test { 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]
1896test { 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]
1897test { try toUnicodeFail("xn--qp42f.xn--4xa3011w"); } // [B2, B3, V7]
1898test { try toUnicodeFail("xn--0ug76062m.xn--4xa595lhn92a"); } // [B1, B6, C1, V7]
1899test { try toUnicodeFail("xn--0ug76062m.xn--3xa795lhn92a"); } // [B1, B6, C1, V7]
1900test { 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]
1901test { 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]
1902test { 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]
1903test { 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]
1904test { try toUnicodeFail("xn--5sf345zdk8h.xn----iv5iw606c"); } // [B3, V3]
1905test { try toUnicodeFail("xn--5sf345zdk8h.xn----rgnt157hwl9g"); } // [B3, C1, V3]
1906test { 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]
1907test { 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]
1908test { 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]
1909test { 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]
1910test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--4xaa85plx4a"); } // [B1, B5]
1911test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--3xaa16plx4a"); } // [B1, B5]
1912test { 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]
1913test { 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]
1914test { 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]
1915test { 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]
1916test { 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]
1917test { 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]
1918test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--3xab95plx4a"); } // [B1, B5]
1919test { 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]
1920test { 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]
1921test { 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]
1922test { 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]
1923test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbb\xc3\x9f"); } // [V3, V7]
1924test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5\xc3\x9f"); } // [V3, V7]
1925test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5SS"); } // [V3, V7]
1926test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5ss"); } // [V3, V7]
1927test { try toUnicodeFail("xn--t960e.-5ss"); } // [V3, V7]
1928test { try toUnicodeFail("xn--t960e.xn---5-hia"); } // [V3, V7]
1929test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSS"); } // [V3, V7]
1930test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbss"); } // [V3, V7]
1931test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSs"); } // [V3, V7]
1932test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5Ss"); } // [V3, V7]
1933test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe1\x83\x85\xf2\x91\xae\xb6"); } // [C2, V7]
1934test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe2\xb4\xa5\xf2\x91\xae\xb6"); } // [C2, V7]
1935test { try toUnicodeFail("xn--0s9c.xn--tljz038l0gz4b"); } // [V6, V7]
1936test { try toUnicodeFail("xn--1ug9533g.xn--tljz038l0gz4b"); } // [C2, V7]
1937test { try toUnicodeFail("xn--0s9c.xn--9nd3211w0gz4b"); } // [V6, V7]
1938test { try toUnicodeFail("xn--1ug9533g.xn--9nd3211w0gz4b"); } // [C2, V7]
1939test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82\xc3\x9f\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7]
1940test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82SS\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7]
1941test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82ss\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7]
1942test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82Ss\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7]
1943test { try toUnicodeFail("xn--ey1p.xn--ss-eq36b"); } // [V7]
1944test { try toUnicodeFail("xn--ey1p.xn--ss-n1tx0508a"); } // [C2, V7]
1945test { try toUnicodeFail("xn--ey1p.xn--zca870nz438b"); } // [C2, V7]
1946test { try toUnicodeFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xf0\x9e\xb9\xbb"); } // [B1, C1, V6]
1947test { try toUnicodeFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xd8\xba"); } // [B1, C1, V6]
1948test { try toUnicodeFail("xn--634m.xn--lsa46nuub"); } // [B1, V6]
1949test { try toUnicodeFail("xn--0ugy003y.xn--lsa46nuub"); } // [B1, C1, V6]
1950test { try toUnicodeFail("\xf0\x9e\xbc\x8c\xe2\x80\x8c\xf0\x91\x88\xb6\xe3\x80\x82\xf0\x90\xb9\xa1"); } // [B1, B3, C1, V7]
1951test { try toUnicodeFail("xn--9g1d1288a.xn--8n0d"); } // [B1, V7]
1952test { try toUnicodeFail("xn--0ug7946gzpxf.xn--8n0d"); } // [B1, B3, C1, V7]
1953test { 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]
1954test { 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]
1955test { 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]
1956test { 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]
1957test { 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]
1958test { 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]
1959test { 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]
1960test { 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]
1961test { try toUnicodeFail("xn--zb9h5968x.xn--4xa378i1mfjw7y"); } // [V6, V7]
1962test { try toUnicodeFail("xn--0ug3766p5nm1b.xn--4xa378i1mfjw7y"); } // [C1, V6, V7]
1963test { try toUnicodeFail("xn--0ug3766p5nm1b.xn--3xa578i1mfjw7y"); } // [C1, V6, V7]
1964test { 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]
1965test { 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]
1966test { 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]
1967test { 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]
1968test { try toUnicodeFail("\xe2\x92\x8b\xef\xbd\xa1\xe2\x92\x88\xe2\x80\x8d\xf2\xb3\xb4\xa2"); } // [C2, V7]
1969test { try toUnicodeFail("4.\xe3\x80\x821.\xe2\x80\x8d\xf2\xb3\xb4\xa2"); } // [C2, V7, X4_2]
1970test { try toUnicodeFail("4..1.xn--sf51d"); } // [V7, X4_2]
1971test { try toUnicodeFail("4..1.xn--1ug64613i"); } // [C2, V7, X4_2]
1972test { try toUnicodeFail("xn--wsh.xn--tsh07994h"); } // [V7]
1973test { try toUnicodeFail("xn--wsh.xn--1ug58o74922a"); } // [C2, V7]
1974test { 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]
1975test { 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]
1976test { 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]
1977test { 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]
1978test { 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]
1979test { 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]
1980test { try toUnicodeFail("xn--ss-svd.xn--jof2298hn83fln78f"); } // [B1, B2, B3, V6, V7]
1981test { 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]
1982test { try toUnicodeFail("xn--zca57y.xn--jof2298hn83fln78f"); } // [B1, B2, B3, V6, V7]
1983test { 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]
1984test { 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]
1985test { 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]
1986test { 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]
1987test { 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]
1988test { 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]
1989test { 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]
1990test { 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]
1991test { 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]
1992test { 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]
1993test { 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]
1994test { 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]
1995test { 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]
1996test { 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]
1997test { 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]
1998test { try toUnicodeFail("xn--1o0di0c0652w.xn--33e362arr1l153d"); } // [B1, V6, V7]
1999test { 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]
2000test { try toUnicodeFail("\xe1\x82\xb3\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6"); } // [V7]
2001test { try toUnicodeFail("\xe2\xb4\x93\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6"); } // [V7]
2002test { try toUnicodeFail("xn--blj6306ey091d.xn--9jb4223l"); } // [V7]
2003test { try toUnicodeFail("xn--1ugy52cym7p7xu5e.xn--9jb4223l"); } // [V7]
2004test { 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]
2005test { try toUnicodeFail("xn--rnd8945ky009c.xn--9jb4223l"); } // [V7]
2006test { try toUnicodeFail("xn--rnd479ep20q7x12e.xn--9jb4223l"); } // [V7]
2007test { try toUnicodeFail("\xf0\x90\xa8\xbf.\xf0\x9f\x84\x86\xe2\x80\x94"); } // [V6, U1]
2008test { try toUnicodeFail("\xf0\x90\xa8\xbf.5,\xe2\x80\x94"); } // [V6, U1]
2009test { try toUnicodeFail("xn--0s9c.xn--5,-81t"); } // [V6, U1]
2010test { try toUnicodeFail("xn--0s9c.xn--8ug8324p"); } // [V6, V7]
2011test { try toUnicodeFail("\xf2\x94\x8a\xb1\xf1\x81\xa6\xae\xdb\xb8\xe3\x80\x82\xf3\xa0\xbe\xad-"); } // [V3, V7]
2012test { try toUnicodeFail("xn--lmb18944c0g2z.xn----2k81m"); } // [V3, V7]
2013test { 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]
2014test { try toUnicodeFail("xn--osb0855kcc2r.xn--tlb299fhc"); } // [B1, B5, B6, V7]
2015test { 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]
2016test { 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]
2017test { 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]
2018test { try toUnicodeFail("xn--1,-v3o625k.xn--zvb3124wpkpf"); } // [B1, B6, U1]
2019test { try toUnicodeFail("xn--1,-v3o161c53q.xn--zvb692j9664aic1g"); } // [B1, C1, C2, U1]
2020test { 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]
2021test { try toUnicodeFail("xn--1,-ogkx89c.xn--zvb3124wpkpf"); } // [B1, B6, V7, U1]
2022test { try toUnicodeFail("xn--1,-ogkx89c39j.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7, U1]
2023test { try toUnicodeFail("xn--h7e438h1p44a.xn--zvb3124wpkpf"); } // [B1, V7]
2024test { try toUnicodeFail("xn--h7e341b0wlbv45b.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7]
2025test { try toUnicodeFail("xn--2nd129ai554b.xn--zvb3124wpkpf"); } // [B1, V7]
2026test { try toUnicodeFail("xn--2nd129ay2gnw71c.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7]
2027test { try toUnicodeFail("\xd8\x81\xda\x97\xef\xbc\x8e\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe2\xbe\x86"); } // [B1, V6, V7]
2028test { try toUnicodeFail("\xd8\x81\xda\x97.\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe8\x88\x8c"); } // [B1, V6, V7]
2029test { try toUnicodeFail("xn--jfb41a.xn--tc1ap851axo39c"); } // [B1, V6, V7]
2030test { try toUnicodeFail("\xf0\x9f\x9e\x85\xf3\xa0\xb3\xa1\xf3\x9c\x8d\x99.\xf1\xb2\x96\xb7"); } // [V7]
2031test { try toUnicodeFail("xn--ie9hi1349bqdlb.xn--oj69a"); } // [V7]
2032test { try toUnicodeFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe1\x82\xa4\xe2\x80\x8c"); } // [C1, V6, V7]
2033test { try toUnicodeFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe2\xb4\x84\xe2\x80\x8c"); } // [C1, V6, V7]
2034test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-ivs"); } // [V6, V7]
2035test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-sgn589c"); } // [C1, V6, V7]
2036test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-f0g"); } // [V6, V7]
2037test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-f0g649i"); } // [C1, V6, V7]
908test { 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"); }2038test { 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"); }
909test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1", "xn--hwe.xn--zca4946pblnc", false); }2039test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1", "xn--hwe.xn--zca4946pblnc", false); }
910test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", true); }2040test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", true); }
...@@ -947,6 +2077,399 @@ test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0ss\xf0\x96\xab\x...@@ -947,6 +2077,399 @@ test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0ss\xf0\x96\xab\x
947test { try toUnicodePass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "\xe1\x9a\xad.\xf0\x9d\x8c\xa0ss\xf0\x96\xab\xb1"); }2077test { try toUnicodePass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "\xe1\x9a\xad.\xf0\x9d\x8c\xa0ss\xf0\x96\xab\xb1"); }
948test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", false); }2078test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", false); }
949test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", true); }2079test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", true); }
2080test { try toUnicodeFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\xab\xea\xa1\xaa"); } // [B1, B2, B3]
2081test { try toUnicodeFail("1\xe3\x80\x82\xf0\x9e\xa4\xab\xea\xa1\xaa"); } // [B1, B2, B3]
2082test { try toUnicodeFail("1\xe3\x80\x82\xf0\x9e\xa4\x89\xea\xa1\xaa"); } // [B1, B2, B3]
2083test { try toUnicodeFail("1.xn--gd9al691d"); } // [B1, B2, B3]
2084test { try toUnicodeFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\x89\xea\xa1\xaa"); } // [B1, B2, B3]
2085test { 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]
2086test { try toUnicodeFail("xn--kg4n.xn--2b7hs861pl540a"); } // [B2, B3, V7]
2087test { try toUnicodeFail("xn--0ug27500a.xn--2b7hs861pl540a"); } // [B2, B3, B6, C1, V7]
2088test { try toUnicodeFail("\xf0\x91\x91\x84\xe2\x89\xaf\xef\xbd\xa1\xf0\x91\x9c\xa4"); } // [V6]
2089test { try toUnicodeFail("\xf0\x91\x91\x84>\xcc\xb8\xef\xbd\xa1\xf0\x91\x9c\xa4"); } // [V6]
2090test { try toUnicodeFail("\xf0\x91\x91\x84\xe2\x89\xaf\xe3\x80\x82\xf0\x91\x9c\xa4"); } // [V6]
2091test { try toUnicodeFail("\xf0\x91\x91\x84>\xcc\xb8\xe3\x80\x82\xf0\x91\x9c\xa4"); } // [V6]
2092test { try toUnicodeFail("xn--hdh5636g.xn--ci2d"); } // [V6]
2093test { 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]
2094test { try toUnicodeFail("\xe1\x82\xab<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3"); } // [C2]
2095test { try toUnicodeFail("\xe2\xb4\x8b<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3"); } // [C2]
2096test { 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]
2097test { try toUnicodeFail("xn--gdhz03bxt42d.xn--lrb6479j"); } // [V6]
2098test { try toUnicodeFail("xn--gdhz03bxt42d.xn--lrb506jqr4n"); } // [C2]
2099test { try toUnicodeFail("xn--jnd802gsm17c.xn--lrb6479j"); } // [V6, V7]
2100test { try toUnicodeFail("xn--jnd802gsm17c.xn--lrb506jqr4n"); } // [C2, V7]
2101test { try toUnicodeFail("\xe1\x9f\x92.\xf2\x86\xbd\x92\xe2\x89\xaf"); } // [V6, V7]
2102test { try toUnicodeFail("\xe1\x9f\x92.\xf2\x86\xbd\x92>\xcc\xb8"); } // [V6, V7]
2103test { try toUnicodeFail("xn--u4e.xn--hdhx0084f"); } // [V6, V7]
2104test { 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]
2105test { 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]
2106test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\x89\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
2107test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbaE\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
2108test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbae\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
2109test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\xa9\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7]
2110test { try toUnicodeFail("xn--c0e34564d.xn--9ca207st53lg3f"); } // [V6, V7]
2111test { 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]
2112test { 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]
2113test { 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]
2114test { 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]
2115test { 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]
2116test { try toUnicodeFail("xn--09e4694e..xn--ye6h"); } // [X4_2]
2117test { try toUnicodeFail("xn--09e669a6x8j..xn--ye6h"); } // [B6, C2, X4_2]
2118test { 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]
2119test { try toUnicodeFail("xn--09e4694e.xn--y86cv562b"); } // [B1, V7]
2120test { try toUnicodeFail("xn--09e669a6x8j.xn--y86cv562b"); } // [B1, B6, C2, V7]
2121test { 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]
2122test { 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]
2123test { 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]
2124test { 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]
2125test { try toUnicodeFail("xn--fze3930v7hz6b.xn--wgb86el10d"); } // [B2, B3, V7]
2126test { try toUnicodeFail("xn--fze607b9651bjwl7c.xn--wgb86el10d"); } // [B2, B3, V7]
2127test { try toUnicodeFail("\xe1\x83\x83\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4"); } // [V6]
2128test { try toUnicodeFail("\xe1\x83\x83.\xd9\x93\xe1\xa2\xa4"); } // [V6]
2129test { try toUnicodeFail("\xe2\xb4\xa3.\xd9\x93\xe1\xa2\xa4"); } // [V6]
2130test { try toUnicodeFail("xn--rlj.xn--vhb294g"); } // [V6]
2131test { try toUnicodeFail("\xe2\xb4\xa3\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4"); } // [V6]
2132test { try toUnicodeFail("xn--7nd.xn--vhb294g"); } // [V6, V7]
2133test { 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]
2134test { 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]
2135test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90"); } // [V7]
2136test { 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]
2137test { 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]
2138test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90"); } // [V7]
2139test { try toUnicodeFail("xn--oub.xn--sljz109bpe25dviva"); } // [V7]
2140test { 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]
2141test { 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]
2142test { try toUnicodeFail("xn--oub.xn--8nd9522gpe69cviva"); } // [V7]
2143test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae\xef\xbc\x8e\xe2\xa4\x82"); } // [V6]
2144test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8\xef\xbc\x8e\xe2\xa4\x82"); } // [V6]
2145test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae.\xe2\xa4\x82"); } // [V6]
2146test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8.\xe2\xa4\x82"); } // [V6]
2147test { try toUnicodeFail("xn--gdh1854cn19c.xn--kqi"); } // [V6]
2148test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3"); } // [B1, V7]
2149test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3"); } // [B1, V7]
2150test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe1\x82\xa3"); } // [B1, V7]
2151test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe1\x82\xa3"); } // [B1, V7]
2152test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2.\xe2\xb4\x83"); } // [B1, V7]
2153test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2.\xe2\xb4\x83"); } // [B1, V7]
2154test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe2\xb4\x83"); } // [B1, V7]
2155test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe2\xb4\x83"); } // [B1, V7]
2156test { try toUnicodeFail("xn--mfb266l4khr54u.xn--ukj"); } // [B1, V7]
2157test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7]
2158test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7]
2159test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7]
2160test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7]
2161test { try toUnicodeFail("xn--mfb416c0jox02t.xn--ukj"); } // [B1, V7]
2162test { try toUnicodeFail("xn--mfb416c0jox02t.xn--bnd"); } // [B1, V7]
2163test { try toUnicodeFail("\xf0\x91\x81\x85\xe3\x80\x82-"); } // [V3, V6]
2164test { try toUnicodeFail("xn--210d.-"); } // [V3, V6]
2165test { 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]
2166test { 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]
2167test { 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]
2168test { 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]
2169test { try toUnicodeFail("xn--h1c25913jfwov.xn--dib144ler5f"); } // [B1, B5, B6, V6, V7]
2170test { 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]
2171test { 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]
2172test { try toUnicodeFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
2173test { try toUnicodeFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
2174test { try toUnicodeFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
2175test { try toUnicodeFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2]
2176test { try toUnicodeFail("xn--7-v4j2826w.xn--4-ogoy01bou3i"); } // [B1, B2]
2177test { 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]
2178test { 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]
2179test { 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]
2180test { try toUnicodeFail("xn----m9j3429kxmy7e.xn--nfb7950kdihrp812a"); } // [B1, B6, V7]
2181test { try toUnicodeFail("\xf2\xa0\xb6\x86\xe0\xa1\x85\xe0\xa9\x91.\xeb\x84\xa8-\xf3\xb6\xa7\x88"); } // [B5, B6, V7]
2182test { 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]
2183test { try toUnicodeFail("xn--3vb26hb6834b.xn----i37ez0957g"); } // [B5, B6, V7]
2184test { try toUnicodeFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d\xe2\x92\x88\xe3\x80\x82\xf0\x90\x8b\xa3-"); } // [C2, V3, V7]
2185test { try toUnicodeFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d1.\xe3\x80\x82\xf0\x90\x8b\xa3-"); } // [C2, V3, X4_2]
2186test { try toUnicodeFail("xn--1-o7j0610f..xn----381i"); } // [V3, X4_2]
2187test { try toUnicodeFail("xn--1-o7j663bdl7m..xn----381i"); } // [C2, V3, X4_2]
2188test { try toUnicodeFail("xn--h8e863drj7h.xn----381i"); } // [V3, V7]
2189test { try toUnicodeFail("xn--h8e470bl0d838o.xn----381i"); } // [C2, V3, V7]
2190test { try toUnicodeFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9"); } // [B5, B6, V7]
2191test { try toUnicodeFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9"); } // [B5, B6, V7]
2192test { try toUnicodeFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9"); } // [B5, B6, V7]
2193test { try toUnicodeFail("xn--3kj.xn--yib19191t"); } // [B5, B6, V7]
2194test { try toUnicodeFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9"); } // [B5, B6, V7]
2195test { try toUnicodeFail("xn--knd.xn--yib19191t"); } // [B5, B6, V7]
2196test { try toUnicodeFail("\xf0\x90\xae\x81\xf0\x90\xad\xb1.\xe0\xbe\x84\xe1\x8d\x9e-\xe1\xb3\xba"); } // [B1, V6]
2197test { try toUnicodeFail("xn--r19c5a.xn----xjg270ag3m"); } // [B1, V6]
2198test { try toUnicodeFail("\xe2\x92\x88\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88"); } // [C2, V3, V7]
2199test { 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]
2200test { try toUnicodeFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88"); } // [C2, V3]
2201test { try toUnicodeFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xe1\x84\x8b\xe1\x85\xae\xe1\x86\xbf"); } // [C2, V3]
2202test { try toUnicodeFail("1.xn----zw5a.xn--kp5b"); } // [V3]
2203test { try toUnicodeFail("1.xn----tgnz80r.xn--kp5b"); } // [C2, V3]
2204test { try toUnicodeFail("xn----dcp160o.xn--kp5b"); } // [V3, V7]
2205test { try toUnicodeFail("xn----tgnx5rjr6c.xn--kp5b"); } // [C2, V3, V7]
2206test { try toUnicodeFail("\xe3\x81\xa6\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\xb3\xbd\xdf\xb3"); } // [C1, V7]
2207test { try toUnicodeFail("xn--m9j.xn--rtb10784p"); } // [V7]
2208test { try toUnicodeFail("xn--m9j.xn--rtb154j9l73w"); } // [C1, V7]
2209test { try toUnicodeFail("\xcf\x82\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6]
2210test { try toUnicodeFail("\xcf\x82\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6]
2211test { try toUnicodeFail("\xce\xa3\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6]
2212test { try toUnicodeFail("\xcf\x83\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6]
2213test { try toUnicodeFail("xn--4xa.xn--3lb1944f"); } // [V6]
2214test { try toUnicodeFail("xn--3xa.xn--3lb1944f"); } // [V6]
2215test { try toUnicodeFail("\xce\xa3\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6]
2216test { try toUnicodeFail("\xcf\x83\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6]
2217test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe1\x82\xb5"); } // [V6, V7]
2218test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe2\xb4\x82\xe2\xb4\x95"); } // [V6, V7]
2219test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe2\xb4\x95"); } // [V6, V7]
2220test { try toUnicodeFail("xn--xmc83135idcxza.xn--tkjwb"); } // [V6, V7]
2221test { try toUnicodeFail("xn--xmc83135idcxza.xn--9md086l"); } // [V6, V7]
2222test { try toUnicodeFail("xn--xmc83135idcxza.xn--9md2b"); } // [V6, V7]
2223test { 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]
2224test { try toUnicodeFail("\xe1\xb0\xb27,\xe8\xb5\xb0\xd6\xa6.\xe2\x80\x8d\xf2\xaf\xa5\xa4\xdf\xbd"); } // [C2, V6, V7, U1]
2225test { try toUnicodeFail("xn--7,-bid991urn3k.xn--1tb13454l"); } // [V6, V7, U1]
2226test { try toUnicodeFail("xn--7,-bid991urn3k.xn--1tb334j1197q"); } // [C2, V6, V7, U1]
2227test { try toUnicodeFail("xn--xcb756i493fwi5o.xn--1tb13454l"); } // [V6, V7]
2228test { try toUnicodeFail("xn--xcb756i493fwi5o.xn--1tb334j1197q"); } // [C2, V6, V7]
2229test { try toUnicodeFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x80\xf1\x9d\x84\xbb"); } // [V7]
2230test { try toUnicodeFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x80\xf1\x9d\x84\xbb"); } // [V7]
2231test { try toUnicodeFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x8f\xf1\x9d\x84\xbb"); } // [V7]
2232test { try toUnicodeFail("xn--hbf.xn--s5a83117e"); } // [V7]
2233test { try toUnicodeFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x8f\xf1\x9d\x84\xbb"); } // [V7]
2234test { try toUnicodeFail("xn--hbf.xn--d5a86117e"); } // [V7]
2235test { try toUnicodeFail("\xd9\xa8-\xe3\x80\x82\xf1\xa0\x8f\x87\xf0\x9f\x9d\x86\xe1\x84\xbe"); } // [B1, V3, V7]
2236test { try toUnicodeFail("xn----oqc.xn--qrd1699v327w"); } // [B1, V3, V7]
2237test { try toUnicodeFail("-\xf0\x90\x8b\xb7\xf0\x96\xbe\x91\xe3\x80\x82\xf3\xa0\x86\xac"); } // [V3]
2238test { try toUnicodeFail("xn----991iq40y."); } // [V3]
2239test { 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]
2240test { 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]
2241test { try toUnicodeFail("xn--422b325mqb6i.xn--429a8682s"); } // [B1, V6, V7]
2242test { try toUnicodeFail("xn--0ug6681d406b7bwk.xn--429a8682s"); } // [B1, C1, V6, V7]
2243test { try toUnicodeFail("\xe2\x89\xae.\xdd\xa9\xd8\x83"); } // [B1, V7]
2244test { try toUnicodeFail("<\xcc\xb8.\xdd\xa9\xd8\x83"); } // [B1, V7]
2245test { try toUnicodeFail("xn--gdh.xn--lfb92e"); } // [B1, V7]
2246test { 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]
2247test { 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]
2248test { try toUnicodeFail("xn--tc1ao37z.xn--6e2dw557azds2d"); } // [B2, B3, B5, B6, V6, V7]
2249test { try toUnicodeFail("xn--tc1ao37z.xn--0ugx728gi1nfwqz2e"); } // [B1, B2, B3, C1, V7]
2250test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3]
2251test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3]
2252test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3]
2253test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xce\xa3\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
2254test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x83\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3]
2255test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x83\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
2256test { try toUnicodeFail("xn----2ws.xn--1-0mba52321c"); } // [B1, B6, V3]
2257test { try toUnicodeFail("xn----rgn530d.xn--1-0mba52321c"); } // [B1, C1, V3]
2258test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
2259test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3]
2260test { try toUnicodeFail("xn----rgn530d.xn--1-ymbd52321c"); } // [B1, C1, V3]
2261test { try toUnicodeFail("xn----rgn530d.xn--1-ymba92321c"); } // [B1, C1, V3]
2262test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3]
2263test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xce\xa3\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
2264test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3]
2265test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
2266test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3]
2267test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3]
2268test { try toUnicodeFail("xn----z1g.xn--1-0mba52321c"); } // [B1, B6, V3, V7]
2269test { try toUnicodeFail("xn----z1g168i.xn--1-0mba52321c"); } // [B1, C1, V3, V7]
2270test { try toUnicodeFail("xn----z1g168i.xn--1-ymbd52321c"); } // [B1, C1, V3, V7]
2271test { try toUnicodeFail("xn----z1g168i.xn--1-ymba92321c"); } // [B1, C1, V3, V7]
2272test { 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]
2273test { try toUnicodeFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe1\x82\xbc"); } // [V6]
2274test { try toUnicodeFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe2\xb4\x9c"); } // [V6]
2275test { try toUnicodeFail("xn--7m3d291b.xn--8-vws"); } // [V6]
2276test { 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]
2277test { try toUnicodeFail("xn--7m3d291b.xn--8-s1g"); } // [V6, V7]
2278test { 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]
2279test { 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]
2280test { 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]
2281test { 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]
2282test { try toUnicodeFail("xn--ekb23dj4at01n.xn--43e96bh910b"); } // [B5, B6]
2283test { try toUnicodeFail("\xe1\xae\xab\xef\xbd\xa1\xf0\x9f\x82\x89\xf3\xa0\x81\xb0"); } // [V6, V7]
2284test { try toUnicodeFail("\xe1\xae\xab\xe3\x80\x82\xf0\x9f\x82\x89\xf3\xa0\x81\xb0"); } // [V6, V7]
2285test { try toUnicodeFail("xn--zxf.xn--fx7ho0250c"); } // [V6, V7]
2286test { 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]
2287test { 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]
2288test { 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]
2289test { try toUnicodeFail("xn--dfc53161q.xn--4xa8467k5mc"); } // [B5, V7]
2290test { try toUnicodeFail("xn--dfc53161q.xn--4xa895lzo7nsfd"); } // [B5, C2, V7]
2291test { try toUnicodeFail("xn--dfc53161q.xn--3xa006lzo7nsfd"); } // [B5, C2, V7]
2292test { try toUnicodeFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab\xef\xbc\x8e\xf0\x91\x98\xbf"); } // [B1, B2, B3, V6]
2293test { try toUnicodeFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab.\xf0\x91\x98\xbf"); } // [B1, B2, B3, V6]
2294test { try toUnicodeFail("xn--17e9625js1h.xn--sb2d"); } // [B1, B2, B3, V6]
2295test { try toUnicodeFail("\xf3\xac\x9a\xb6\xf3\xb8\x8b\x96\xf2\x96\xa9\xb0-\xe3\x80\x82\xe2\x80\x8c"); } // [C1, V3, V7]
2296test { try toUnicodeFail("xn----7i12hu122k9ire."); } // [V3, V7]
2297test { try toUnicodeFail("xn----7i12hu122k9ire.xn--0ug"); } // [C1, V3, V7]
2298test { try toUnicodeFail("\xf0\x90\xb9\xa3\xef\xbc\x8e\xdf\x82"); } // [B1]
2299test { try toUnicodeFail("\xf0\x90\xb9\xa3.\xdf\x82"); } // [B1]
2300test { try toUnicodeFail("xn--bo0d.xn--dsb"); } // [B1]
2301test { try toUnicodeFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x83"); } // [B1, V3]
2302test { try toUnicodeFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x83"); } // [B1, V3]
2303test { try toUnicodeFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x84"); } // [B1, V3]
2304test { try toUnicodeFail("xn----8cd.xn--r5g"); } // [B1, V3]
2305test { try toUnicodeFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x84"); } // [B1, V3]
2306test { try toUnicodeFail("xn----8cd.xn--q5g"); } // [B1, V3, V7]
2307test { 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]
2308test { 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]
2309test { 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]
2310test { 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]
2311test { 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]
2312test { try toUnicodeFail("-..xn--ss-h46c5711e"); } // [B1, B5, B6, V3, X4_2]
2313test { try toUnicodeFail("xn----tgn..xn--ss-k1ts75zb8ym"); } // [B1, B5, B6, C1, C2, V3, X4_2]
2314test { try toUnicodeFail("xn----tgn..xn--zca670n5f0binyk"); } // [B1, B5, B6, C1, C2, V3, X4_2]
2315test { 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]
2316test { 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]
2317test { 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]
2318test { try toUnicodeFail("xn----o89h.xn--ss-h46c5711e"); } // [B1, B5, B6, V3, V7]
2319test { try toUnicodeFail("xn----tgnt341h.xn--ss-k1ts75zb8ym"); } // [B1, B5, B6, C1, C2, V7]
2320test { try toUnicodeFail("xn----tgnt341h.xn--zca670n5f0binyk"); } // [B1, B5, B6, C1, C2, V7]
2321test { 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]
2322test { 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]
2323test { 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]
2324test { 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]
2325test { try toUnicodeFail("\xef\xb8\x92\xef\xbc\x8e\xef\xb8\xaf\xf0\x91\x91\x82"); } // [V6, V7]
2326test { try toUnicodeFail("\xef\xb8\x92\xef\xbc\x8e\xf0\x91\x91\x82\xef\xb8\xaf"); } // [V6, V7]
2327test { try toUnicodeFail("\xe3\x80\x82.\xf0\x91\x91\x82\xef\xb8\xaf"); } // [V6, X4_2]
2328test { try toUnicodeFail("..xn--s96cu30b"); } // [V6, X4_2]
2329test { try toUnicodeFail("xn--y86c.xn--s96cu30b"); } // [V6, V7]
2330test { try toUnicodeFail("\xea\xa4\xac\xe3\x80\x82\xe2\x80\x8d"); } // [C2, V6]
2331test { try toUnicodeFail("xn--zi9a."); } // [V6]
2332test { try toUnicodeFail("xn--zi9a.xn--1ug"); } // [C2, V6]
2333test { try toUnicodeFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xef\xbd\xa1\xef\xb3\x97"); } // [B1, C2, V7]
2334test { try toUnicodeFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xe3\x80\x82\xd9\x87\xd8\xac"); } // [B1, C2, V7]
2335test { try toUnicodeFail("xn--d356e.xn--rgb7c"); } // [B1, V7]
2336test { try toUnicodeFail("xn--1ug80651l.xn--rgb7c"); } // [B1, C2, V7]
2337test { try toUnicodeFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6]
2338test { try toUnicodeFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6]
2339test { try toUnicodeFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6]
2340test { try toUnicodeFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xce\xa3"); } // [B1, V3, V6]
2341test { try toUnicodeFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x83"); } // [B1, V3, V6]
2342test { try toUnicodeFail("xn---0-iyd8660b.xn--4xa9120l"); } // [B1, V3, V6]
2343test { try toUnicodeFail("xn---0-iyd8660b.xn--3xa1220l"); } // [B1, V3, V6]
2344test { try toUnicodeFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6]
2345test { try toUnicodeFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xce\xa3"); } // [B1, V3, V6]
2346test { try toUnicodeFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x83"); } // [B1, V3, V6]
2347test { try toUnicodeFail("xn---0-iyd216h.xn--4xa9120l"); } // [B1, V3, V6, V7]
2348test { try toUnicodeFail("xn---0-iyd216h.xn--3xa1220l"); } // [B1, V3, V6, V7]
2349test { try toUnicodeFail("\xf3\xa6\x88\x84\xe3\x80\x82-"); } // [V3, V7]
2350test { try toUnicodeFail("xn--xm38e.-"); } // [V3, V7]
2351test { 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]
2352test { 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]
2353test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f\xe2\x89\xaf"); } // [V7]
2354test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f>\xcc\xb8"); } // [V7]
2355test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8"); } // [V7]
2356test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf"); } // [V7]
2357test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf"); } // [V7]
2358test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8"); } // [V7]
2359test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8"); } // [V7]
2360test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf"); } // [V7]
2361test { try toUnicodeFail("xn--pgh4639f.xn--ss-ifj426nle504a"); } // [V7]
2362test { try toUnicodeFail("xn--pgh4639f.xn--zca593eo6oc013y"); } // [V7]
2363test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8"); } // [V7]
2364test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf"); } // [V7]
2365test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf"); } // [V7]
2366test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8"); } // [V7]
2367test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8"); } // [V7]
2368test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf"); } // [V7]
2369test { 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]
2370test { try toUnicodeFail("1\xf0\x90\x8b\xb8\xd9\xa4\xe3\x80\x82\xf3\xa0\xa2\xae\xdb\x80\xf1\xb7\x9d\x8a"); } // [B1, V7]
2371test { 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]
2372test { try toUnicodeFail("xn--1-hqc3905q.xn--zkb83268gqee4a"); } // [B1, V7]
2373test { 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]
2374test { 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]
2375test { 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]
2376test { try toUnicodeFail("xn----gz7a.xn--qlj9223eywx0b"); } // [B1, B6, V3, V7]
2377test { try toUnicodeFail("xn----gz7a.xn--0ug472cfq0pus98b"); } // [B1, B6, C1, V3, V7]
2378test { 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]
2379test { try toUnicodeFail("xn----gz7a.xn--6nd5001kyw98a"); } // [B1, B6, V3, V7]
2380test { try toUnicodeFail("xn----gz7a.xn--6nd249ejl4pusr7b"); } // [B1, B6, C1, V3, V7]
2381test { 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]
2382test { try toUnicodeFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\xad\xf2\xbf\x8d\xa1"); } // [B1, B2, B3, V7]
2383test { try toUnicodeFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\x8b\xf2\xbf\x8d\xa1"); } // [B1, B2, B3, V7]
2384test { try toUnicodeFail("xn--4-cvc5384q.xn--le6hi7322b"); } // [B1, B2, B3, V7]
2385test { 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]
2386test { try toUnicodeFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad"); } // [B1, V7]
2387test { try toUnicodeFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad"); } // [B1, V7]
2388test { try toUnicodeFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad"); } // [B1]
2389test { try toUnicodeFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad"); } // [B1]
2390test { try toUnicodeFail("xn----ogox061d5i8d.1.xn--lo0d"); } // [B1]
2391test { try toUnicodeFail("xn----ogox061d5i8d.xn--tsh0666f"); } // [B1, V7]
2392test { try toUnicodeFail("\xcc\xb0\xef\xbc\x8e\xf3\xb0\x9c\xb1\xe8\x9a\x80"); } // [V6, V7]
2393test { try toUnicodeFail("\xcc\xb0.\xf3\xb0\x9c\xb1\xe8\x9a\x80"); } // [V6, V7]
2394test { try toUnicodeFail("xn--xta.xn--e91aw9417e"); } // [V6, V7]
2395test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3]
2396test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3]
2397test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3]
2398test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97"); } // [B2, B3]
2399test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3]
2400test { try toUnicodeFail("xn--kdb1d278n.xn--ss-yju5690ken9h"); } // [B2, B3]
2401test { try toUnicodeFail("xn--kdb1d278n.xn--zca284nhg9nrrxg"); } // [B2, B3]
2402test { try toUnicodeFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3]
2403test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97"); } // [B2, B3]
2404test { try toUnicodeFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3]
2405test { try toUnicodeFail("xn--kdb1d867b.xn--ss-yju5690ken9h"); } // [B2, B3, V7]
2406test { try toUnicodeFail("xn--kdb1d867b.xn--zca284nhg9nrrxg"); } // [B2, B3, V7]
2407test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3]
2408test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3]
2409test { try toUnicodeFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xef\xbd\xa1\xe5\x87\xac"); } // [B1, V6, V7]
2410test { try toUnicodeFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xe3\x80\x82\xe5\x87\xac"); } // [B1, V6, V7]
2411test { try toUnicodeFail("xn--rxfz314ilg20c.xn--t9q"); } // [B1, V6, V7]
2412test { 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]
2413test { try toUnicodeFail("\xf0\x9f\xa2\x9f7,\xe2\x80\x8d\xea\xa1\x8e\xe3\x80\x82\xe0\xbe\x84"); } // [C2, V6, U1]
2414test { try toUnicodeFail("xn--7,-gh9hg322i.xn--3ed"); } // [V6, U1]
2415test { try toUnicodeFail("xn--7,-n1t0654eqo3o.xn--3ed"); } // [C2, V6, U1]
2416test { try toUnicodeFail("xn--nc9aq743ds0e.xn--3ed"); } // [V6, V7]
2417test { try toUnicodeFail("xn--1ug4874cfd0kbmg.xn--3ed"); } // [C2, V6, V7]
2418test { try toUnicodeFail("\xea\xa1\x94\xe3\x80\x82\xe1\x80\xb9\xe1\xa2\x87"); } // [V6]
2419test { try toUnicodeFail("xn--tc9a.xn--9jd663b"); } // [V6]
2420test { try toUnicodeFail("\xe2\x83\xab\xe2\x89\xae.\xf0\x9d\xa8\x96"); } // [V6]
2421test { try toUnicodeFail("\xe2\x83\xab<\xcc\xb8.\xf0\x9d\xa8\x96"); } // [V6]
2422test { try toUnicodeFail("xn--e1g71d.xn--772h"); } // [V6]
2423test { 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]
2424test { 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]
2425test { try toUnicodeFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7"); } // [B5, B6]
2426test { try toUnicodeFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7"); } // [B5, B6]
2427test { try toUnicodeFail("\xe2\xb4\xa2>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
2428test { try toUnicodeFail("\xe2\xb4\xa2\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
2429test { try toUnicodeFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
2430test { try toUnicodeFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6]
2431test { try toUnicodeFail("xn--hdh433bev8e.xn--rpb5x392bcyt"); } // [B5, B6]
2432test { 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]
2433test { 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]
2434test { 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]
2435test { 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]
2436test { try toUnicodeFail("xn--6nd461g478e.xn--rpb5x392bcyt"); } // [B5, B6, V7]
2437test { try toUnicodeFail("xn--6nd461g478e.xn--rpb5x49td2h"); } // [B5, B6, V7]
2438test { 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]
2439test { 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]
2440test { try toUnicodeFail("xn--3j9al6189a.xn--0ib8893fegvj"); } // [B2, B3, V7]
2441test { try toUnicodeFail("xn--0ug8815chtz0e.xn--0ib8893fegvj"); } // [B2, B3, C1, V7]
2442test { try toUnicodeFail("\xe2\x80\x8c.\xe2\x89\xaf"); } // [C1]
2443test { try toUnicodeFail("\xe2\x80\x8c.>\xcc\xb8"); } // [C1]
2444test { try toUnicodeFail(".xn--hdh"); } // [X4_2]
2445test { try toUnicodeFail("xn--0ug.xn--hdh"); } // [C1]
2446test { try toUnicodeFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-\xef\xbc\x8e\xea\xaf\xad-\xe6\x82\x9c"); } // [V3, V6, V7]
2447test { try toUnicodeFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-.\xea\xaf\xad-\xe6\x82\x9c"); } // [V3, V6, V7]
2448test { try toUnicodeFail("xn----7m53aj640l.xn----8f4br83t"); } // [V3, V6, V7]
2449test { 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]
2450test { try toUnicodeFail("xn--87e0ol04cdl39e.xn----qinu247r"); } // [V3, V7]
2451test { try toUnicodeFail("xn--87e0ol04cdl39e.xn----ugn5e3763s"); } // [C2, V3, V7]
2452test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4"); } // [B1, B2, B3, C1, V7]
2453test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4"); } // [B1, B2, B3, C1]
2454test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1]
2455test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1]
2456test { try toUnicodeFail("9.xn--llj1920a.xn--7ib268q"); } // [B1, B2, B3]
2457test { try toUnicodeFail("9.xn--0ug862cbm5e.xn--7ib268q"); } // [B1, B2, B3, C1]
2458test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1, V7]
2459test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1, V7]
2460test { try toUnicodeFail("xn--1shy52abz3f.xn--7ib268q"); } // [B1, B2, B3, V7]
2461test { try toUnicodeFail("xn--0ugx0px1izu2h.xn--7ib268q"); } // [B1, B2, B3, C1, V7]
2462test { try toUnicodeFail("9.xn--1nd9032d.xn--7ib268q"); } // [B1, B2, B3, V7]
2463test { try toUnicodeFail("9.xn--1nd159e1y2f.xn--7ib268q"); } // [B1, B2, B3, C1, V7]
2464test { try toUnicodeFail("9.xn--1nd9032d.xn--7ib433c"); } // [B1, B2, B3, V7]
2465test { try toUnicodeFail("9.xn--1nd159e1y2f.xn--7ib433c"); } // [B1, B2, B3, C1, V7]
2466test { try toUnicodeFail("xn--1nd362hy16e.xn--7ib268q"); } // [B1, B2, B3, V7]
2467test { try toUnicodeFail("xn--1nd159ecmd785k.xn--7ib268q"); } // [B1, B2, B3, C1, V7]
2468test { try toUnicodeFail("xn--1nd362hy16e.xn--7ib433c"); } // [B1, B2, B3, V7]
2469test { try toUnicodeFail("xn--1nd159ecmd785k.xn--7ib433c"); } // [B1, B2, B3, C1, V7]
2470test { try toUnicodeFail("\xdf\xa1\xe2\x80\x8c\xe3\x80\x82--\xe2\xb8\xac"); } // [B1, B3, C1, V3]
2471test { try toUnicodeFail("xn--8sb.xn-----iw2a"); } // [B1, V3]
2472test { try toUnicodeFail("xn--8sb884j.xn-----iw2a"); } // [B1, B3, C1, V3]
950test { try toUnicodePass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "\xf0\x9e\xa5\x93.\xdc\x98"); }2473test { try toUnicodePass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "\xf0\x9e\xa5\x93.\xdc\x98"); }
951test { try toAsciiPass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "xn--of6h.xn--inb", false); }2474test { try toAsciiPass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "xn--of6h.xn--inb", false); }
952test { try toAsciiPass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "xn--of6h.xn--inb", true); }2475test { try toAsciiPass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "xn--of6h.xn--inb", true); }
...@@ -956,6 +2479,21 @@ test { try toAsciiPass("\xf0\x9e\xa5\x93.\xdc\x98", "xn--of6h.xn--inb", true); }...@@ -956,6 +2479,21 @@ test { try toAsciiPass("\xf0\x9e\xa5\x93.\xdc\x98", "xn--of6h.xn--inb", true); }
956test { try toUnicodePass("xn--of6h.xn--inb", "\xf0\x9e\xa5\x93.\xdc\x98"); }2479test { try toUnicodePass("xn--of6h.xn--inb", "\xf0\x9e\xa5\x93.\xdc\x98"); }
957test { try toAsciiPass("xn--of6h.xn--inb", "xn--of6h.xn--inb", false); }2480test { try toAsciiPass("xn--of6h.xn--inb", "xn--of6h.xn--inb", false); }
958test { try toAsciiPass("xn--of6h.xn--inb", "xn--of6h.xn--inb", true); }2481test { try toAsciiPass("xn--of6h.xn--inb", "xn--of6h.xn--inb", true); }
2482test { try toUnicodeFail("\xf3\xa0\x84\xbd-\xef\xbc\x8e-\xe0\xb7\x8a"); } // [V3]
2483test { try toUnicodeFail("\xf3\xa0\x84\xbd-.-\xe0\xb7\x8a"); } // [V3]
2484test { try toUnicodeFail("-.xn----ptf"); } // [V3]
2485test { try toUnicodeFail("\xf3\xa0\x87\x9d\xdd\x9b-.\xe1\xa4\xa7"); } // [B1, B3, V3, V6]
2486test { try toUnicodeFail("xn----k4c.xn--lff"); } // [B1, B3, V3, V6]
2487test { 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]
2488test { 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]
2489test { 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]
2490test { try toUnicodeFail("xn--fuix729epewf.xn--5-w93e.xn--7b83e"); } // [B1, V6, V7]
2491test { 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]
2492test { try toUnicodeFail("xn--fuix729epewf.xn--xsh5029b6e77i"); } // [B1, V6, V7]
2493test { 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]
2494test { 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]
2495test { try toUnicodeFail("0.xn--mn9cz2s"); } // [B1, V6]
2496test { try toUnicodeFail("0.xn--0ugc8040p9hk"); } // [B1, C2, V6]
959test { 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"); }2497test { 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"); }
960test { 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); }2498test { 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); }
961test { 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); }2499test { 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); }
...@@ -977,6 +2515,13 @@ test { try toAsciiPass("\xe1\x82\xba\xf0\x90\x8b\xb8.5\xed\x9f\xb6\xe1\x80\xba",...@@ -977,6 +2515,13 @@ test { try toAsciiPass("\xe1\x82\xba\xf0\x90\x8b\xb8.5\xed\x9f\xb6\xe1\x80\xba",
977test { try toUnicodePass("\xe2\xb4\x9a\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"); }2515test { try toUnicodePass("\xe2\xb4\x9a\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"); }
978test { 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); }2516test { 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); }
979test { 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); }2517test { 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); }
2518test { try toUnicodeFail("xn--ynd2415j.xn--5-dug9054m"); } // [V7]
2519test { try toUnicodeFail("\xe2\x80\x8d-\xe1\xa0\xb9\xef\xb9\xaa.\xe1\xb7\xa1\xe1\xa4\xa2"); } // [C2, V6, U1]
2520test { try toUnicodeFail("\xe2\x80\x8d-\xe1\xa0\xb9%.\xe1\xb7\xa1\xe1\xa4\xa2"); } // [C2, V6, U1]
2521test { try toUnicodeFail("xn---%-u4o.xn--gff52t"); } // [V3, V6, U1]
2522test { try toUnicodeFail("xn---%-u4oy48b.xn--gff52t"); } // [C2, V6, U1]
2523test { try toUnicodeFail("xn----c6jx047j.xn--gff52t"); } // [V3, V6, V7]
2524test { try toUnicodeFail("xn----c6j614b1z4v.xn--gff52t"); } // [C2, V6, V7]
980test { try toUnicodePass("\xe2\x89\xa0.\xe1\xa0\xbf", "\xe2\x89\xa0.\xe1\xa0\xbf"); }2525test { try toUnicodePass("\xe2\x89\xa0.\xe1\xa0\xbf", "\xe2\x89\xa0.\xe1\xa0\xbf"); }
981test { try toAsciiPass("\xe2\x89\xa0.\xe1\xa0\xbf", "xn--1ch.xn--y7e", false); }2526test { try toAsciiPass("\xe2\x89\xa0.\xe1\xa0\xbf", "xn--1ch.xn--y7e", false); }
982test { try toAsciiPass("\xe2\x89\xa0.\xe1\xa0\xbf", "xn--1ch.xn--y7e", true); }2527test { try toAsciiPass("\xe2\x89\xa0.\xe1\xa0\xbf", "xn--1ch.xn--y7e", true); }
...@@ -998,12 +2543,320 @@ test { try toAsciiPass("xn--ucb18e.xn--eck4c5a", "xn--ucb18e.xn--eck4c5a", true)...@@ -998,12 +2543,320 @@ test { try toAsciiPass("xn--ucb18e.xn--eck4c5a", "xn--ucb18e.xn--eck4c5a", true)
998test { try toUnicodePass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84"); }2543test { try toUnicodePass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84"); }
999test { try toAsciiPass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "xn--ucb18e.xn--eck4c5a", false); }2544test { try toAsciiPass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "xn--ucb18e.xn--eck4c5a", false); }
1000test { try toAsciiPass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "xn--ucb18e.xn--eck4c5a", true); }2545test { try toAsciiPass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "xn--ucb18e.xn--eck4c5a", true); }
2546test { try toUnicodeFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80\xe2\x89\xae.\xe2\xb5\xbf-"); } // [B1, B3, V3, V6, V7]
2547test { try toUnicodeFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80<\xcc\xb8.\xe2\xb5\xbf-"); } // [B1, B3, V3, V6, V7]
2548test { try toUnicodeFail("xn--gdhx802p.xn----i2s"); } // [B1, B3, V3, V6, V7]
2549test { 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]
2550test { 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]
2551test { 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]
2552test { try toUnicodeFail("xn--6-kmf4691ejv41j.xn--mhba10ch545mn8v8h"); } // [B1, B3, V7]
2553test { 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]
2554test { try toUnicodeFail("\xf0\xa3\xa9\xab\xef\xbc\x8e\xf2\x8c\x91\xb2"); } // [V7]
2555test { try toUnicodeFail("\xf0\xa3\xa9\xab.\xf2\x8c\x91\xb2"); } // [V7]
2556test { try toUnicodeFail("xn--td3j.xn--4628b"); } // [V7]
2557test { try toUnicodeFail("\xe2\x80\x8d\xef\xb8\x92\xef\xbd\xa1\xda\xb9\xe2\x80\x8c"); } // [B1, B3, C1, C2, V7]
2558test { try toUnicodeFail("xn--y86c.xn--skb"); } // [B1, V7]
2559test { try toUnicodeFail("xn--1ug2658f.xn--skb080k"); } // [B1, B3, C1, C2, V7]
1001test { try toUnicodePass("xn--skb", "\xda\xb9"); }2560test { try toUnicodePass("xn--skb", "\xda\xb9"); }
1002test { try toAsciiPass("xn--skb", "xn--skb", false); }2561test { try toAsciiPass("xn--skb", "xn--skb", false); }
1003test { try toAsciiPass("xn--skb", "xn--skb", true); }2562test { try toAsciiPass("xn--skb", "xn--skb", true); }
1004test { try toUnicodePass("\xda\xb9", "\xda\xb9"); }2563test { try toUnicodePass("\xda\xb9", "\xda\xb9"); }
1005test { try toAsciiPass("\xda\xb9", "xn--skb", false); }2564test { try toAsciiPass("\xda\xb9", "xn--skb", false); }
1006test { try toAsciiPass("\xda\xb9", "xn--skb", true); }2565test { try toAsciiPass("\xda\xb9", "xn--skb", true); }
2566test { try toUnicodeFail("\xf0\x90\xb9\xa6\xe2\x80\x8c\xf0\x90\xb9\xb6\xe3\x80\x82\xe2\x81\xad"); } // [B1, C1]
2567test { try toUnicodeFail("xn--eo0d6a."); } // [B1]
2568test { try toUnicodeFail("xn--0ug4994goba."); } // [B1, C1]
2569test { try toUnicodeFail("xn--eo0d6a.xn--sxg"); } // [B1, V7]
2570test { try toUnicodeFail("xn--0ug4994goba.xn--sxg"); } // [B1, C1, V7]
2571test { try toUnicodeFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa9\xf0\x9d\x9f\xad\xe3\x80\x82-\xf0\x91\x9c\xa8"); } // [V3, V6]
2572test { try toUnicodeFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa91\xe3\x80\x82-\xf0\x91\x9c\xa8"); } // [V3, V6]
2573test { try toUnicodeFail("xn--1-rfc312cdp45c.xn----nq0j"); } // [V3, V6]
2574test { try toUnicodeFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xeb\x99\x8f"); } // [V7]
2575test { try toUnicodeFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xe1\x84\x84\xe1\x85\xab\xe1\x86\xae"); } // [V7]
2576test { try toUnicodeFail("xn--ph26c.xn--281b"); } // [V7]
2577test { try toUnicodeFail("\xf1\x95\xa8\x9a\xf3\xa0\x84\x8c\xf3\x91\xbd\x80\xe1\xa1\x80.\xe0\xa2\xb6"); } // [V7]
2578test { try toUnicodeFail("xn--z7e98100evc01b.xn--czb"); } // [V7]
2579test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf1\x85\x81\x9b"); } // [C2, V7]
2580test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf1\x85\x81\x9b"); } // [C2, V7]
2581test { try toUnicodeFail(".xn--6x4u"); } // [V7, X4_2]
2582test { try toUnicodeFail("xn--1ug.xn--6x4u"); } // [C2, V7]
2583test { try toUnicodeFail("\xe0\xa1\x8b\xe7\x9a\xa5\xef\xbc\x8e-"); } // [B1, B2, B3, V3]
2584test { try toUnicodeFail("\xe0\xa1\x8b\xe7\x9a\xa5.-"); } // [B1, B2, B3, V3]
2585test { try toUnicodeFail("xn--9vb4167c.-"); } // [B1, B2, B3, V3]
2586test { try toUnicodeFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87\xef\xbc\x8e\xe2\x92\x88\xea\xa1\xa6"); } // [B1, V7]
2587test { try toUnicodeFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87.1.\xea\xa1\xa6"); } // [B1, V7]
2588test { try toUnicodeFail("xn--5sa9915kgvb.1.xn--cd9a"); } // [B1, V7]
2589test { try toUnicodeFail("xn--5sa9915kgvb.xn--tshw539b"); } // [B1, V7]
2590test { 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]
2591test { 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]
2592test { 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]
2593test { 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]
2594test { 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]
2595test { 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]
2596test { 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]
2597test { 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]
2598test { try toUnicodeFail("xn--tcb323r.xn--yda4409k"); } // [B5, B6]
2599test { try toUnicodeFail("xn--tcb736kea974k.xn--yda4409k"); } // [B5, B6, C1, C2]
2600test { 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]
2601test { 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]
2602test { 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]
2603test { 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]
2604test { try toUnicodeFail("xn--tcb597c.xn--yda594fdn5q"); } // [B5, B6, V7]
2605test { try toUnicodeFail("xn--tcb597cdmmfa.xn--yda594fdn5q"); } // [B5, B6, C1, C2, V7]
2606test { try toUnicodeFail("xn--tcb323r.xn--yda594fdn5q"); } // [B5, B6, V7]
2607test { try toUnicodeFail("xn--tcb736kea974k.xn--yda594fdn5q"); } // [B5, B6, C1, C2, V7]
2608test { try toUnicodeFail("xn--tcb597c.xn--yda9741khjj"); } // [B5, B6, V7]
2609test { try toUnicodeFail("xn--tcb597cdmmfa.xn--yda9741khjj"); } // [B5, B6, C1, C2, V7]
2610test { try toUnicodeFail("xn--tcb323r.xn--yda9741khjj"); } // [B5, B6, V7]
2611test { try toUnicodeFail("xn--tcb736kea974k.xn--yda9741khjj"); } // [B5, B6, C1, C2, V7]
2612test { 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]
2613test { 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]
2614test { 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]
2615test { 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]
2616test { try toUnicodeFail("xn--vn7c.xn--hdh501y8wvfs5h"); } // [V7]
2617test { try toUnicodeFail("xn--0ug2139f.xn--hdh501y8wvfs5h"); } // [C1, V7]
2618test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82\xc3\x9f"); } // [V7]
2619test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f"); } // [V7]
2620test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82\xc3\x9f"); } // [X4_2]
2621test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82\xc3\x9f"); } // [X4_2]
2622test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82SS"); } // [X4_2]
2623test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82SS"); } // [X4_2]
2624test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82ss"); } // [X4_2]
2625test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82ss"); } // [X4_2]
2626test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82Ss"); } // [X4_2]
2627test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82Ss"); } // [X4_2]
2628test { try toUnicodeFail("xn--1-ogo..ss"); } // [X4_2]
2629test { try toUnicodeFail("xn--1-ogo..xn--zca"); } // [X4_2]
2630test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82SS"); } // [V7]
2631test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82SS"); } // [V7]
2632test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82ss"); } // [V7]
2633test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82ss"); } // [V7]
2634test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82Ss"); } // [V7]
2635test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82Ss"); } // [V7]
2636test { try toUnicodeFail("xn--hdh84f.ss"); } // [V7]
2637test { try toUnicodeFail("xn--hdh84f.xn--zca"); } // [V7]
2638test { 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]
2639test { try toUnicodeFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe1\x82\xb9"); } // [B1, B2, B3, C2]
2640test { try toUnicodeFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe2\xb4\x99"); } // [B1, B2, B3, C2]
2641test { try toUnicodeFail("xn--gib6m.xn---6-lve6529a"); } // [B1, B2, B3]
2642test { try toUnicodeFail("xn--gib6m343e.xn---6-lve6529a"); } // [B1, B2, B3, C2]
2643test { 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]
2644test { try toUnicodeFail("xn--gib6m.xn---6-lve002g"); } // [B1, B2, B3, V7]
2645test { try toUnicodeFail("xn--gib6m343e.xn---6-lve002g"); } // [B1, B2, B3, C2, V7]
2646test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xa0"); } // [C1]
2647test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1=\xcc\xb8"); } // [C1]
2648test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xa0"); } // [C1]
2649test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8"); } // [C1]
2650test { try toUnicodeFail(".xn--1ch"); } // [X4_2]
2651test { try toUnicodeFail("xn--0ug.xn--1ch"); } // [C1]
2652test { 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]
2653test { try toUnicodeFail("xn--461dw464a.xn--v8e29loy65a"); } // [V6]
2654test { try toUnicodeFail("xn--461dw464a.xn--v8e29ldzfo952a"); } // [C1, V6]
2655test { 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]
2656test { 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]
2657test { 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]
2658test { 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]
2659test { try toUnicodeFail("xn--6j00chy9a.xn----81n51bt713h"); } // [V3, V6, V7]
2660test { try toUnicodeFail("xn--1ug15151gkb5a.xn----81n51bt713h"); } // [C2, V3, V6, V7]
2661test { try toUnicodeFail("xn--6j00chy9a.xn----61n81bt713h"); } // [V3, V6, V7]
2662test { try toUnicodeFail("xn--1ug15151gkb5a.xn----61n81bt713h"); } // [C2, V3, V6, V7]
2663test { 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]
2664test { try toUnicodeFail("\xdf\xa2\xcf\x82\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
2665test { try toUnicodeFail("\xdf\xa2\xce\xa3\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
2666test { try toUnicodeFail("\xdf\xa2\xcf\x83\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7]
2667test { try toUnicodeFail("xn--7-zmb872a.xn--wy1ao4929b"); } // [B2, V7]
2668test { try toUnicodeFail("xn--7-zmb872aez5a.xn--wy1ao4929b"); } // [B2, C2, V7]
2669test { try toUnicodeFail("xn--7-xmb182aez5a.xn--wy1ao4929b"); } // [B2, C2, V7]
2670test { 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]
2671test { 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]
2672test { try toUnicodeFail("\xf0\x90\xb9\xb0.\xd8\x80"); } // [B1, V7]
2673test { try toUnicodeFail("xn--oo0d.xn--ifb"); } // [B1, V7]
2674test { try toUnicodeFail("-\xe0\xa2\xa8.\xf0\xb1\xa0\x96"); } // [B1, V3]
2675test { try toUnicodeFail("xn----mod.xn--5o9n"); } // [B1, V3]
2676test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88"); } // [B1, V7]
2677test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88"); } // [B1, V7]
2678test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861."); } // [B1]
2679test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861."); } // [B1]
2680test { try toUnicodeFail("xn--hdh7151p.xn--1-dy1d."); } // [B1]
2681test { try toUnicodeFail("xn--hdh7151p.xn--tsh1248a"); } // [B1, V7]
2682test { 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]
2683test { 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]
2684test { try toUnicodeFail("xn--4fb0j490qjg4x..xn--hhb8o948e"); } // [B1, V6, X4_2]
2685test { try toUnicodeFail("xn--4fb0j490qjg4x.xn--hhb8o948euo5r"); } // [B1, V6, V7]
2686test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.\xe2\x80\x8c\xe0\xab\x85\xf3\xa9\xb8\xa4\xdb\xb4"); } // [C1, V7, U1]
2687test { 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]
2688test { try toUnicodeFail("xn---?-6g4k75207c.xn--hmb76q74166b"); } // [V6, V7, U1]
2689test { try toUnicodeFail("xn---?-6g4k75207c.xn--hmb76q48y18505a"); } // [C1, V7, U1]
2690test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q74166b"); } // [V6, V7, U1]
2691test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q74166b"); } // [V6, V7, U1]
2692test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B"); } // [V6, V7, U1]
2693test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B"); } // [V6, V7, U1]
2694test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b"); } // [V6, V7, U1]
2695test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b"); } // [V6, V7, U1]
2696test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a"); } // [C1, V7, U1]
2697test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a"); } // [C1, V7, U1]
2698test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A"); } // [C1, V7, U1]
2699test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A"); } // [C1, V7, U1]
2700test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a"); } // [C1, V7, U1]
2701test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a"); } // [C1, V7, U1]
2702test { try toUnicodeFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V7]
2703test { try toUnicodeFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V6, V7]
2704test { try toUnicodeFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V6, V7]
2705test { try toUnicodeFail("xn--3kj.xn--2o0d.xn--q30dg029a"); } // [B1, V6, V7]
2706test { try toUnicodeFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V7]
2707test { try toUnicodeFail("xn--3kj.xn--y86c030a9ob6374b"); } // [B1, V7]
2708test { try toUnicodeFail("xn--knd.xn--2o0d.xn--q30dg029a"); } // [B1, V6, V7]
2709test { try toUnicodeFail("xn--knd.xn--y86c030a9ob6374b"); } // [B1, V7]
2710test { try toUnicodeFail("\xf1\xa7\x9e\xbf\xe2\x95\x8f\xe3\x80\x82\xf0\x9e\xa9\x95\xf3\xa0\x81\xbe"); } // [B3, B6, V7]
2711test { try toUnicodeFail("xn--iyh90030d.xn--1m6hs0260c"); } // [B3, B6, V7]
2712test { 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]
2713test { 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]
2714test { try toUnicodeFail("xn--kxh.xn--eoc8m432a"); } // [V6]
2715test { try toUnicodeFail("xn--1ug04r.xn--eoc8m432a40i"); } // [C2, V6]
2716test { try toUnicodeFail("\xf2\xb9\x9a\xaa\xef\xbd\xa1\xf0\x9f\x84\x82"); } // [V7, U1]
2717test { try toUnicodeFail("\xf2\xb9\x9a\xaa\xe3\x80\x821,"); } // [V7, U1]
2718test { try toUnicodeFail("xn--n433d.1,"); } // [V7, U1]
2719test { try toUnicodeFail("xn--n433d.xn--v07h"); } // [V7]
2720test { try toUnicodeFail("\xf0\x91\x8d\xa8\xe5\x88\x8d.\xf0\x9f\x9b\xa6"); } // [V6]
2721test { try toUnicodeFail("xn--rbry728b.xn--y88h"); } // [V6]
2722test { try toUnicodeFail("\xf3\xa0\x8c\x8f3\xef\xbd\xa1\xe1\xaf\xb1\xf0\x9d\x9f\x92"); } // [V6, V7]
2723test { try toUnicodeFail("\xf3\xa0\x8c\x8f3\xe3\x80\x82\xe1\xaf\xb14"); } // [V6, V7]
2724test { try toUnicodeFail("xn--3-ib31m.xn--4-pql"); } // [V6, V7]
2725test { try toUnicodeFail("\xda\x87\xef\xbc\x96\xe1\x82\xb4\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1]
2726test { try toUnicodeFail("\xda\x876\xe1\x82\xb4\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1]
2727test { try toUnicodeFail("\xda\x876\xe2\xb4\x94\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1]
2728test { try toUnicodeFail("xn--6-gsc2270akm6f.xn--0gb6bxk"); } // [B2, B3]
2729test { try toUnicodeFail("xn--6-gsc2270akm6f.xn--0gb6bxkx18g"); } // [B2, B3, C1]
2730test { try toUnicodeFail("\xda\x87\xef\xbc\x96\xe2\xb4\x94\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1]
2731test { try toUnicodeFail("xn--6-gsc039eqq6k.xn--0gb6bxk"); } // [B2, B3, V7]
2732test { try toUnicodeFail("xn--6-gsc039eqq6k.xn--0gb6bxkx18g"); } // [B2, B3, C1, V7]
2733test { try toUnicodeFail("\xf3\xa0\x84\x8d.\xf0\x90\xae\xad\xf0\x9e\xb0\xac\xf2\xbb\xab\x9e\xdb\xb9"); } // [B2, V7, X4_2]
2734test { try toUnicodeFail(".xn--mmb3954kd0uf1zx7f"); } // [B2, V7, X4_2]
2735test { try toUnicodeFail("\xea\xa1\xbd\xe2\x89\xaf\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7]
2736test { try toUnicodeFail("\xea\xa1\xbd>\xcc\xb8\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7]
2737test { try toUnicodeFail("\xea\xa1\xbd\xe2\x89\xaf.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7]
2738test { try toUnicodeFail("\xea\xa1\xbd>\xcc\xb8.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7]
2739test { try toUnicodeFail("xn--hdh8193c.xn--5z40cp629b"); } // [V7]
2740test { try toUnicodeFail("\xcf\x82\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6]
2741test { try toUnicodeFail("\xce\xa3\xe1\xb2\x9d\xd9\xbb.\xce\xa3\xdc\x94"); } // [B5, B6]
2742test { try toUnicodeFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94"); } // [B5, B6]
2743test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94"); } // [B5, B6]
2744test { try toUnicodeFail("xn--4xa60l26n.xn--4xa21o"); } // [B5, B6]
2745test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6]
2746test { try toUnicodeFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6]
2747test { try toUnicodeFail("xn--4xa60l26n.xn--3xa41o"); } // [B5, B6]
2748test { try toUnicodeFail("xn--3xa80l26n.xn--3xa41o"); } // [B5, B6]
2749test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xce\xa3\xdc\x94"); } // [B5, B6]
2750test { 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]
2751test { 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]
2752test { try toUnicodeFail("xn--vob0c4369twfv8b.xn--kl46e"); } // [B1, B5, B6, V7]
2753test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe"); } // [C2, V7]
2754test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe"); } // [C2, V7]
2755test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe"); } // [C2, V7]
2756test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe"); } // [C2, V7]
2757test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e"); } // [C2, V7]
2758test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e"); } // [C2, V7]
2759test { try toUnicodeFail("xn--1t56e.xn--1ch153bqvw"); } // [V7]
2760test { try toUnicodeFail("xn--1t56e.xn--1ug73gzzpwi3a"); } // [C2, V7]
2761test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e"); } // [C2, V7]
2762test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e"); } // [C2, V7]
2763test { try toUnicodeFail("xn--1t56e.xn--2nd141ghl2a"); } // [V7]
2764test { try toUnicodeFail("xn--1t56e.xn--2nd159e9vb743e"); } // [C2, V7]
2765test { try toUnicodeFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5\xef\xbc\x8e\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5"); } // [B1, B2, B3]
2766test { try toUnicodeFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5.\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5"); } // [B1, B2, B3]
2767test { try toUnicodeFail("xn--bv0d02c.xn--bo0dq650b"); } // [B1, B2, B3]
2768test { try toUnicodeFail("\xe2\x92\x8a\xe2\x92\x88\xf0\x91\x81\x84\xe3\x80\x829"); } // [V7]
2769test { try toUnicodeFail("3.1.\xf0\x91\x81\x84\xe3\x80\x829"); } // [V6]
2770test { try toUnicodeFail("3.1.xn--110d.j"); } // [V6]
2771test { try toUnicodeFail("xn--tshd3512p.j"); } // [V7]
2772test { 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]
2773test { 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]
2774test { try toUnicodeFail("-\xe2\x80\x8c\xe2\xb7\xb1\xe2\x89\xae.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449"); } // [B1, C1, V3, V7]
2775test { try toUnicodeFail("-\xe2\x80\x8c\xe2\xb7\xb1<\xcc\xb8.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449"); } // [B1, C1, V3, V7]
2776test { try toUnicodeFail("xn----ngo823c.xn--49-ki3om2611f"); } // [B1, V3, V7]
2777test { try toUnicodeFail("xn----sgn20i14s.xn--49-ki3om2611f"); } // [B1, C1, V3, V7]
2778test { try toUnicodeFail("-\xe2\x89\xaf\xeb\x94\xbe\xef\xbd\xa1\xe0\xa1\x87"); } // [B1, V3]
2779test { try toUnicodeFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xef\xbd\xa1\xe0\xa1\x87"); } // [B1, V3]
2780test { try toUnicodeFail("-\xe2\x89\xaf\xeb\x94\xbe\xe3\x80\x82\xe0\xa1\x87"); } // [B1, V3]
2781test { try toUnicodeFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xe3\x80\x82\xe0\xa1\x87"); } // [B1, V3]
2782test { try toUnicodeFail("xn----pgow547d.xn--5vb"); } // [B1, V3]
2783test { 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]
2784test { try toUnicodeFail("\xf0\x91\x99\xa21.\xf0\x90\xb9\xa0-\xe3\x80\x82\xf3\xa0\x97\x90\xe2\x80\x8c"); } // [B1, C1, V3, V7]
2785test { try toUnicodeFail("xn--1-bf0j.xn----516i.xn--jd46e"); } // [B1, V3, V7]
2786test { try toUnicodeFail("xn--1-bf0j.xn----516i.xn--0ug23321l"); } // [B1, C1, V3, V7]
2787test { try toUnicodeFail("xn----dcpy090hiyg.xn--jd46e"); } // [B1, V3, V7]
2788test { try toUnicodeFail("xn----dcpy090hiyg.xn--0ug23321l"); } // [B1, C1, V3, V7]
2789test { try toUnicodeFail("\xcd\x8a\xef\xbc\x8e\xf0\x90\xa8\x8e"); } // [V6]
2790test { try toUnicodeFail("\xcd\x8a.\xf0\x90\xa8\x8e"); } // [V6]
2791test { try toUnicodeFail("xn--oua.xn--mr9c"); } // [V6]
2792test { try toUnicodeFail("\xed\x9b\x89\xe2\x89\xae\xef\xbd\xa1\xe0\xb8\xb4"); } // [V6]
2793test { try toUnicodeFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xef\xbd\xa1\xe0\xb8\xb4"); } // [V6]
2794test { try toUnicodeFail("\xed\x9b\x89\xe2\x89\xae\xe3\x80\x82\xe0\xb8\xb4"); } // [V6]
2795test { try toUnicodeFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xe3\x80\x82\xe0\xb8\xb4"); } // [V6]
2796test { try toUnicodeFail("xn--gdh2512e.xn--i4c"); } // [V6]
2797test { 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]
2798test { 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]
2799test { 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]
2800test { try toUnicodeFail("xn--trj8045le6s9b.xn--2-upc23918acjsj"); } // [B1, B5, B6, V6, V7]
2801test { 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]
2802test { 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]
2803test { 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]
2804test { 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]
2805test { 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]
2806test { 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]
2807test { try toUnicodeFail("xn--ss-jepz4596r.xn----dnc5e1er384z"); } // [B1, V3, V7]
2808test { try toUnicodeFail("xn--ss-jep006bqt765b.xn----dnc5e1er384z"); } // [B1, B6, C1, V3, V7]
2809test { try toUnicodeFail("xn--zca272jbif10059a.xn----dnc5e1er384z"); } // [B1, B6, C1, V3, V7]
2810test { 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]
2811test { 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]
2812test { 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]
2813test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xeb\x86\xae-"); } // [V3]
2814test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-"); } // [V3]
2815test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-"); } // [V3]
2816test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xeb\x86\xae-"); } // [V3]
2817test { try toUnicodeFail("xn--fc9a.xn----qmg097k469k"); } // [V3]
2818test { try toUnicodeFail("xn--fc9a.xn----qmg787k869k"); } // [V3, V7]
2819test { try toUnicodeFail("\xef\xb6\xad\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9"); } // [B3, B5, B6, C2, V7]
2820test { try toUnicodeFail("\xd9\x84\xd9\x85\xd9\x8a\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9"); } // [B3, B5, B6, C2, V7]
2821test { try toUnicodeFail("xn--ghbcp.xn--ckb36214f"); } // [B5, B6, V7]
2822test { try toUnicodeFail("xn--ghbcp494x.xn--ckb36214f"); } // [B3, B5, B6, C2, V7]
2823test { 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]
2824test { 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]
2825test { 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]
2826test { 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]
2827test { 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]
2828test { 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]
2829test { try toUnicodeFail("xn--r1f68xh1jgv7u.xn--wlb646b4ng"); } // [B1, B5, B6, V6]
2830test { try toUnicodeFail("xn--0nd679cf3eq67y.xn--wlb646b4ng"); } // [B1, B5, B6, V6, V7]
2831test { try toUnicodeFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xef\xb3\xac"); } // [B1]
2832test { try toUnicodeFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xd9\x83\xd9\x85"); } // [B1]
2833test { try toUnicodeFail("xn--p97c.xn--fhbe"); } // [B1]
2834test { try toUnicodeFail("\xf0\x90\x8b\xb5.\xd9\x83\xd9\x85"); } // [B1]
2835test { 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]
2836test { 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]
2837test { try toUnicodeFail("\xe2\x89\xae\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad"); } // [V7]
2838test { try toUnicodeFail("<\xcc\xb8\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad"); } // [V7]
2839test { try toUnicodeFail("xn--gdh.xn--4tjx101bsg00ds9pyc"); } // [V7]
2840test { try toUnicodeFail("xn--gdh0880o.xn--4tjx101bsg00ds9pyc"); } // [V7]
2841test { 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]
2842test { try toUnicodeFail("\xe2\xb7\xb0\xcd\x98\xe1\xa2\x95.\xcd\xa1\xf0\x90\xb9\xb7\xf3\xa0\xb4\x8d"); } // [B1, V6, V7]
2843test { try toUnicodeFail("xn--2ua889htsp.xn--cva2687k2tv0g"); } // [B1, V6, V7]
2844test { 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]
2845test { 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]
2846test { try toUnicodeFail("xn--5gbwa03bg24e.xn--vdb1198k"); } // [B1, B2, V6]
2847test { try toUnicodeFail("xn--5gbwa03bg24eptk.xn--vdb1198k"); } // [B1, B2, V6]
2848test { 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]
2849test { 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]
2850test { try toUnicodeFail("xn--8v1d.xn--ye9h41035a2qqs"); } // [V6, V7]
2851test { try toUnicodeFail("xn--8v1d.xn--1ug1386plvx1cd8vya"); } // [C2, V6, V7]
2852test { try toUnicodeFail("-\xd7\xa9\xe3\x80\x82\xe2\x92\x9a"); } // [B1, V3, V7]
2853test { try toUnicodeFail("-\xd7\xa9\xe3\x80\x8219."); } // [B1, V3]
2854test { try toUnicodeFail("xn----gjc.1j."); } // [B1, V3]
2855test { try toUnicodeFail("xn----gjc.xn--cth"); } // [B1, V3, V7]
2856test { 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]
2857test { 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]
2858test { try toUnicodeFail("xn--3vb50049s.xn--79e"); } // [B5, B6, V7]
2859test { try toUnicodeFail("xn--3vb882jz4411a.xn--79e259a"); } // [B5, B6, C1, C2, V7]
1007test { 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"); }2860test { 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"); }
1008test { try toAsciiPass("\xc3\x9f\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--zca266bwrr.xn--85-psd", false); }2861test { try toAsciiPass("\xc3\x9f\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--zca266bwrr.xn--85-psd", false); }
1009test { 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); }2862test { 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); }
...@@ -1046,6 +2899,20 @@ test { try toAsciiPass("ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\...@@ -1046,6 +2899,20 @@ test { try toAsciiPass("ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\
1046test { try toUnicodePass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "ss\xe0\xa7\x81\xe1\xb7\xad.\xd8\xa085"); }2899test { try toUnicodePass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "ss\xe0\xa7\x81\xe1\xb7\xad.\xd8\xa085"); }
1047test { try toAsciiPass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", false); }2900test { try toAsciiPass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", false); }
1048test { try toAsciiPass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", true); }2901test { try toAsciiPass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", true); }
2902test { 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]
2903test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5\xc3\x9f"); } // [B1, V6]
2904test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5SS"); } // [B1, V6]
2905test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5ss"); } // [B1, V6]
2906test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5Ss"); } // [B1, V6]
2907test { try toUnicodeFail("xn--1-0xb049b102o.xn--3ss-nv9t"); } // [B1, V6]
2908test { try toUnicodeFail("xn--1-0xb049b102o.xn--3-qfa7018r"); } // [B1, V6]
2909test { 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]
2910test { 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]
2911test { 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]
2912test { 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]
2913test { try toUnicodeFail("\xdc\xab\xe3\x80\x82\xf0\x91\x93\x821.\xf0\x91\x9c\xab\xf3\xa0\xbf\xbb"); } // [B1, V6, V7]
2914test { try toUnicodeFail("xn--1nb.xn--1-jq9i.xn--ji2dg9877c"); } // [B1, V6, V7]
2915test { try toUnicodeFail("xn--1nb.xn--tsh7798f6rbrt828c"); } // [B1, V6, V7]
1049test { try toUnicodePass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "\xe0\xaa\x9b.\xe5\xb5\xa8"); }2916test { try toUnicodePass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "\xe0\xaa\x9b.\xe5\xb5\xa8"); }
1050test { try toAsciiPass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "xn--6dc.xn--tot", false); }2917test { try toAsciiPass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "xn--6dc.xn--tot", false); }
1051test { try toAsciiPass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "xn--6dc.xn--tot", true); }2918test { try toAsciiPass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "xn--6dc.xn--tot", true); }
...@@ -1055,16 +2922,70 @@ test { try toAsciiPass("xn--6dc.xn--tot", "xn--6dc.xn--tot", true); }...@@ -1055,16 +2922,70 @@ test { try toAsciiPass("xn--6dc.xn--tot", "xn--6dc.xn--tot", true); }
1055test { try toUnicodePass("\xe0\xaa\x9b.\xe5\xb5\xa8", "\xe0\xaa\x9b.\xe5\xb5\xa8"); }2922test { try toUnicodePass("\xe0\xaa\x9b.\xe5\xb5\xa8", "\xe0\xaa\x9b.\xe5\xb5\xa8"); }
1056test { try toAsciiPass("\xe0\xaa\x9b.\xe5\xb5\xa8", "xn--6dc.xn--tot", false); }2923test { try toAsciiPass("\xe0\xaa\x9b.\xe5\xb5\xa8", "xn--6dc.xn--tot", false); }
1057test { try toAsciiPass("\xe0\xaa\x9b.\xe5\xb5\xa8", "xn--6dc.xn--tot", true); }2924test { try toAsciiPass("\xe0\xaa\x9b.\xe5\xb5\xa8", "xn--6dc.xn--tot", true); }
2925test { try toUnicodeFail("\xe1\x82\xb4\xe2\x89\xa0\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1]
2926test { try toUnicodeFail("\xe1\x82\xb4=\xcc\xb8\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1]
2927test { try toUnicodeFail("\xe2\xb4\x94=\xcc\xb8\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1]
2928test { try toUnicodeFail("\xe2\xb4\x94\xe2\x89\xa0\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1]
2929test { try toUnicodeFail("xn--1ch603bxb.xn--do0dwa"); } // [B1]
2930test { try toUnicodeFail("xn--7md3b171g.xn--do0dwa"); } // [B1, V7]
2931test { try toUnicodeFail("-\xe2\x80\x8c\xe2\x92\x99\xf0\x90\xab\xa5\xef\xbd\xa1\xf0\x9d\xa8\xb5"); } // [C1, V3, V6, V7]
2932test { try toUnicodeFail("-\xe2\x80\x8c18.\xf0\x90\xab\xa5\xe3\x80\x82\xf0\x9d\xa8\xb5"); } // [C1, V3, V6]
2933test { try toUnicodeFail("-18.xn--rx9c.xn--382h"); } // [V3, V6]
2934test { try toUnicodeFail("xn---18-9m0a.xn--rx9c.xn--382h"); } // [C1, V3, V6]
2935test { try toUnicodeFail("xn----ddps939g.xn--382h"); } // [V3, V6, V7]
2936test { try toUnicodeFail("xn----sgn18r3191a.xn--382h"); } // [C1, V3, V6, V7]
2937test { try toUnicodeFail("\xef\xb8\x92.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B1, B5, B6, V7]
2938test { try toUnicodeFail("\xe3\x80\x82.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B5, B6, X4_2]
2939test { try toUnicodeFail("\xe3\x80\x82.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B5, B6, X4_2]
2940test { try toUnicodeFail("..xn----73a596nuh9t"); } // [B5, B6, X4_2]
2941test { try toUnicodeFail("\xef\xb8\x92.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B1, B5, B6, V7]
2942test { try toUnicodeFail("xn--y86c.xn----73a596nuh9t"); } // [B1, B5, B6, V7]
2943test { try toUnicodeFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } // [V7]
2944test { try toUnicodeFail("\xef\xb8\x85\xe3\x80\x82\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } // [X4_2]
2945test { try toUnicodeFail("..xn--t6f5138v"); } // [X4_2]
2946test { try toUnicodeFail("xn--y86c.xn--t6f5138v"); } // [V7]
1058test { try toUnicodePass("xn--t6f5138v", "\xf0\xa6\x80\xbe\xe1\xb3\xa0"); }2947test { try toUnicodePass("xn--t6f5138v", "\xf0\xa6\x80\xbe\xe1\xb3\xa0"); }
1059test { try toAsciiPass("xn--t6f5138v", "xn--t6f5138v", false); }2948test { try toAsciiPass("xn--t6f5138v", "xn--t6f5138v", false); }
1060test { try toAsciiPass("xn--t6f5138v", "xn--t6f5138v", true); }2949test { try toAsciiPass("xn--t6f5138v", "xn--t6f5138v", true); }
1061test { try toUnicodePass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "\xf0\xa6\x80\xbe\xe1\xb3\xa0"); }2950test { try toUnicodePass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "\xf0\xa6\x80\xbe\xe1\xb3\xa0"); }
1062test { try toAsciiPass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "xn--t6f5138v", false); }2951test { try toAsciiPass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "xn--t6f5138v", false); }
1063test { try toAsciiPass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "xn--t6f5138v", true); }2952test { try toAsciiPass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "xn--t6f5138v", true); }
2953test { try toUnicodeFail("\xf0\x9e\xae\x91\xc3\x9f\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7]
2954test { try toUnicodeFail("\xf0\x9e\xae\x91SS\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7]
2955test { try toUnicodeFail("\xf0\x9e\xae\x91ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7]
2956test { try toUnicodeFail("\xf0\x9e\xae\x91Ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7]
2957test { try toUnicodeFail("xn--ss-o412ac6305g.xn--07e"); } // [B2, B3, V7]
2958test { try toUnicodeFail("xn--zca9432wb989f.xn--07e"); } // [B2, B3, V7]
2959test { 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]
2960test { try toUnicodeFail("xn--rgb2k6711c.xn--ec8nj3948b"); } // [B5, B6, V6, V7]
2961test { try toUnicodeFail("xn--rgb2k500fhq9j.xn--0ug78870a5sp9d"); } // [B5, B6, C1, V6, V7]
2962test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
2963test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
2964test { try toUnicodeFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
2965test { try toUnicodeFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
2966test { try toUnicodeFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
2967test { try toUnicodeFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
2968test { try toUnicodeFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
2969test { try toUnicodeFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
2970test { try toUnicodeFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
2971test { try toUnicodeFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
2972test { try toUnicodeFail("xn--u836e.xn---ss-gl2a"); } // [V3, V7]
2973test { try toUnicodeFail("xn--u836e.xn---ss-cn0at5l"); } // [C1, V3, V7]
2974test { try toUnicodeFail("xn--u836e.xn----qfa750ve7b"); } // [C1, V3, V7]
2975test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
2976test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
2977test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
2978test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
2979test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7]
2980test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7]
1064test { 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); }2981test { 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); }
2982test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); } // [C1]
1065test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }2983test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }
2984test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8"); } // [C1]
1066test { 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); }2985test { 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); }
2986test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); } // [C1]
1067test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }2987test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }
2988test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8"); } // [C1]
1068test { try toUnicodePass("xn--p8e.xn--1ch3a7084l", "\xe1\xa1\x99.\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); }2989test { try toUnicodePass("xn--p8e.xn--1ch3a7084l", "\xe1\xa1\x99.\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); }
1069test { try toAsciiPass("xn--p8e.xn--1ch3a7084l", "xn--p8e.xn--1ch3a7084l", false); }2990test { try toAsciiPass("xn--p8e.xn--1ch3a7084l", "xn--p8e.xn--1ch3a7084l", false); }
1070test { try toAsciiPass("xn--p8e.xn--1ch3a7084l", "xn--p8e.xn--1ch3a7084l", true); }2991test { try toAsciiPass("xn--p8e.xn--1ch3a7084l", "xn--p8e.xn--1ch3a7084l", true); }
...@@ -1074,12 +2995,151 @@ test { try toAsciiPass("\xe1\xa1\x99.\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0",...@@ -1074,12 +2995,151 @@ test { try toAsciiPass("\xe1\xa1\x99.\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0",
1074test { try toUnicodePass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "\xe1\xa1\x99.\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); }2995test { try toUnicodePass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "\xe1\xa1\x99.\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); }
1075test { try toAsciiPass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", false); }2996test { try toAsciiPass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", false); }
1076test { try toAsciiPass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }2997test { try toAsciiPass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); }
2998test { try toUnicodeFail("xn--p8e650b.xn--1ch3a7084l"); } // [C1]
2999test { 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]
3000test { 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]
3001test { try toUnicodeFail("xn--fo0dw409aq58qrn69d.xn--0-bgb."); } // [B1, V6, V7]
3002test { try toUnicodeFail("xn--fo0dw409aq58qrn69d.xn--sua6883w"); } // [B1, V6, V7]
3003test { try toUnicodeFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7]
3004test { try toUnicodeFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7]
3005test { try toUnicodeFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7]
3006test { try toUnicodeFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3"); } // [B1, C2, V7]
3007test { try toUnicodeFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83"); } // [B1, C2, V7]
3008test { try toUnicodeFail("xn--vkj.xn--4xa73ob5892c"); } // [B2, B3, V7]
3009test { try toUnicodeFail("xn--vkj.xn--4xa73o3t5ajq467a"); } // [B1, C2, V7]
3010test { try toUnicodeFail("xn--vkj.xn--3xa93o3t5ajq467a"); } // [B1, C2, V7]
3011test { try toUnicodeFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7]
3012test { try toUnicodeFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3"); } // [B1, C2, V7]
3013test { try toUnicodeFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83"); } // [B1, C2, V7]
3014test { try toUnicodeFail("xn--cnd.xn--4xa73ob5892c"); } // [B2, B3, V7]
3015test { try toUnicodeFail("xn--cnd.xn--4xa73o3t5ajq467a"); } // [B1, C2, V7]
3016test { try toUnicodeFail("xn--cnd.xn--3xa93o3t5ajq467a"); } // [B1, C2, V7]
3017test { try toUnicodeFail("\xf2\xae\xb5\x9b\xd8\x93.\xe1\x82\xb5"); } // [V7]
3018test { try toUnicodeFail("\xf2\xae\xb5\x9b\xd8\x93.\xe2\xb4\x95"); } // [V7]
3019test { try toUnicodeFail("xn--1fb94204l.xn--dlj"); } // [V7]
3020test { try toUnicodeFail("xn--1fb94204l.xn--tnd"); } // [V7]
3021test { 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]
3022test { 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]
3023test { 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]
3024test { 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]
3025test { try toUnicodeFail("xn--ofg13qyr21c.xn--0f9au6706d"); } // [B1, V6, V7]
3026test { try toUnicodeFail("xn--ofg13qyr21c.xn--0ugc0116hix29k"); } // [B1, C1, C2, V7]
3027test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xef\xbd\xa1\xf2\x92\x91\x81"); } // [C1, V7]
3028test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xe3\x80\x82\xf2\x92\x91\x81"); } // [C1, V7]
3029test { try toUnicodeFail(".xn--w720c"); } // [V7, X4_2]
3030test { try toUnicodeFail("xn--0ug.xn--w720c"); } // [C1, V7]
3031test { try toUnicodeFail("\xe2\x92\x88\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f"); } // [C2, V7]
3032test { try toUnicodeFail("1.\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f"); } // [C2, V6, V7]
3033test { try toUnicodeFail("1.xn--t1c6981c.xn--4c9a21133d"); } // [V6, V7]
3034test { try toUnicodeFail("1.xn--t1c6981c.xn--1ugz184c9lw7i"); } // [C2, V6, V7]
3035test { try toUnicodeFail("xn--t1c337io97c.xn--4c9a21133d"); } // [V7]
3036test { try toUnicodeFail("xn--t1c337io97c.xn--1ugz184c9lw7i"); } // [C2, V7]
3037test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
3038test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
3039test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
3040test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
3041test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
3042test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
3043test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
3044test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
3045test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
3046test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6]
3047test { try toUnicodeFail("xn--4xa544kvid.xn--0-zmb55727aggma"); } // [B1, B5, V6]
3048test { try toUnicodeFail("xn--3xa744kvid.xn--0-xmb85727aggma"); } // [B1, B5, V6]
3049test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
3050test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6]
3051test { try toUnicodeFail("\xf2\xa2\xa6\xbe\xc3\x9f\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7]
3052test { try toUnicodeFail("\xf2\xa2\xa6\xbeSS\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7]
3053test { try toUnicodeFail("\xf2\xa2\xa6\xbess\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7]
3054test { try toUnicodeFail("\xf2\xa2\xa6\xbeSs\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7]
3055test { try toUnicodeFail("xn--ss-xjd6058xlz50g.xn--4cb62m"); } // [B1, B5, B6, V6, V7]
3056test { try toUnicodeFail("xn--zca89v339zj118e.xn--4cb62m"); } // [B1, B5, B6, V6, V7]
3057test { try toUnicodeFail("-\xf0\x9e\xa3\x84\xef\xbd\xa1\xe2\x92\x88"); } // [B1, V3, V7]
3058test { try toUnicodeFail("-\xf0\x9e\xa3\x84\xe3\x80\x821."); } // [B1, V3]
3059test { try toUnicodeFail("xn----xc8r.b."); } // [B1, V3]
3060test { try toUnicodeFail("xn----xc8r.xn--tsh"); } // [B1, V3, V7]
3061test { 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]
3062test { try toUnicodeFail("\xf1\x88\xa0\xa2\xf0\x90\xab\x969\xe3\x80\x82\xd8\xbe\xf0\x91\x98\xbf"); } // [B5, V7]
3063test { try toUnicodeFail("xn--9-el5iv442t.xn--9gb0830l"); } // [B5, V7]
3064test { try toUnicodeFail("\xd9\xa8\xef\xb2\x8c\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d"); } // [B1, C2]
3065test { try toUnicodeFail("\xd9\xa8\xd9\x86\xd9\x85\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d"); } // [B1, C2]
3066test { try toUnicodeFail("xn--hhbb5hc956w."); } // [B1]
3067test { try toUnicodeFail("xn--hhbb5hc956w.xn--1ug"); } // [B1, C2]
3068test { 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]
3069test { try toUnicodeFail("0.\xe1\x82\xa7\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1"); } // [B1, B5, V7]
3070test { try toUnicodeFail("0.\xe2\xb4\x87\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1"); } // [B1, B5, V7]
3071test { try toUnicodeFail("0.xn--pgbe9ez79qd207lvff8b"); } // [B1, B5, V7]
3072test { 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]
3073test { try toUnicodeFail("0.xn--pgbe9e344c2725svff8b"); } // [B1, B5, V7]
3074test { try toUnicodeFail("\xf0\x91\x87\x80\xe2\x96\x8d.\xe2\x81\x9e\xe1\xa0\xb0"); } // [V6]
3075test { try toUnicodeFail("xn--9zh3057f.xn--j7e103b"); } // [V6]
3076test { try toUnicodeFail("\xe2\x80\x8d-\xd9\xba.\xf2\x8f\xaf\xa9"); } // [B1, C2, V7]
3077test { try toUnicodeFail("xn----qrc.xn--ts49b"); } // [B1, V3, V7]
3078test { try toUnicodeFail("xn----qrc357q.xn--ts49b"); } // [B1, C2, V7]
3079test { 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]
3080test { 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]
3081test { 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]
3082test { 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]
3083test { try toUnicodeFail("xn--46e6675axzzhota.xn--hdh99p"); } // [B1, B5]
3084test { try toUnicodeFail("xn--46e6675axzzhota.xn--0ug06gu8f"); } // [B1, B5, C1]
3085test { 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]
3086test { 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]
3087test { 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]
3088test { 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]
3089test { try toUnicodeFail(".xn--cljl81825an3r4h"); } // [B5, B6, V7, X4_2]
3090test { try toUnicodeFail("xn--1ug.xn--cljl81825an3r4h"); } // [B1, B5, B6, C2, V7]
3091test { 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]
3092test { 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]
3093test { try toUnicodeFail(".xn--ynd036lq981an3r4h"); } // [B5, B6, V7, X4_2]
3094test { try toUnicodeFail("xn--1ug.xn--ynd036lq981an3r4h"); } // [B1, B5, B6, C2, V7]
3095test { try toUnicodeFail(".xn--sndl01647an3h1h"); } // [B5, B6, V7, X4_2]
3096test { try toUnicodeFail("xn--1ug.xn--sndl01647an3h1h"); } // [B1, B5, B6, C2, V7]
3097test { try toUnicodeFail("-3.\xe2\x80\x8d\xe3\x83\x8c\xe1\xa2\x95"); } // [C2, V3]
3098test { try toUnicodeFail("-3.xn--fbf115j"); } // [V3]
3099test { try toUnicodeFail("-3.xn--fbf739aq5o"); } // [C2, V3]
3100test { 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]
3101test { 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]
3102test { 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]
3103test { try toUnicodeFail("xn--ss-pyd98921c.xn----nz8rh7531csznt"); } // [B1, V3, V7]
3104test { try toUnicodeFail("xn--ss-pyd483x5k99b.xn----nz8rh7531csznt"); } // [B1, C2, V3, V7]
3105test { try toUnicodeFail("xn--zca34z68yzu83b.xn----nz8rh7531csznt"); } // [B1, C2, V3, V7]
3106test { 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]
3107test { 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]
3108test { try toUnicodeFail("xn----utc4430jd3zd.xn--bp20d"); } // [B5, B6, V7]
3109test { try toUnicodeFail("xn----utc4430jd3zd.xn--0ugx6670i"); } // [B5, B6, C1, V7]
3110test { try toUnicodeFail("\xd9\xa5.\xd2\x84\xf0\x90\xa8\x97\xf0\x9d\xa9\x8b\xf0\xb4\xa4\x83"); } // [B1, V6, V7]
3111test { try toUnicodeFail("xn--eib.xn--n3a0405kus8eft5l"); } // [B1, V6, V7]
3112test { try toUnicodeFail("-.\xf1\xb1\xbc\x93\xd9\x89\xf0\x90\xa8\xbf"); } // [B1, B5, B6, V3, V7]
3113test { try toUnicodeFail("-.xn--lhb4124khbq4b"); } // [B1, B5, B6, V3, V7]
3114test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x82.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7]
3115test { 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]
3116test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6SS"); } // [B2, B3, V7]
3117test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSS"); } // [B2, B3, V7]
3118test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xabss"); } // [B2, B3, V7]
3119test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss"); } // [B2, B3, V7]
3120test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss"); } // [B2, B3, V7]
3121test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabss"); } // [B2, B3, V7]
3122test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSs"); } // [B2, B3, V7]
3123test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6Ss"); } // [B2, B3, V7]
3124test { try toUnicodeFail("xn--4xa76659r.xn--ss-d64i8755h"); } // [B2, B3, V7]
3125test { 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]
3126test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7]
3127test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7]
3128test { 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]
3129test { try toUnicodeFail("xn--4xa76659r.xn--zca5051g4h4i"); } // [B2, B3, V7]
3130test { try toUnicodeFail("xn--3xa96659r.xn--zca5051g4h4i"); } // [B2, B3, V7]
1077test { 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); }3131test { 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); }
3132test { 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]
1078test { 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); }3133test { 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); }
3134test { try toUnicodeFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
1079test { 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); }3135test { 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); }
3136test { 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]
1080test { 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); }3137test { 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); }
3138test { try toUnicodeFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
1081test { 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); }3139test { 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); }
3140test { try toUnicodeFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
1082test { 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); }3141test { 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); }
3142test { 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]
1083test { try toUnicodePass("xn--u4e969b.xn--1ch", "\xe2\x85\x8e\xe1\x9f\x92.\xe2\x89\xa0"); }3143test { try toUnicodePass("xn--u4e969b.xn--1ch", "\xe2\x85\x8e\xe1\x9f\x92.\xe2\x89\xa0"); }
1084test { try toAsciiPass("xn--u4e969b.xn--1ch", "xn--u4e969b.xn--1ch", false); }3144test { try toAsciiPass("xn--u4e969b.xn--1ch", "xn--u4e969b.xn--1ch", false); }
1085test { try toAsciiPass("xn--u4e969b.xn--1ch", "xn--u4e969b.xn--1ch", true); }3145test { try toAsciiPass("xn--u4e969b.xn--1ch", "xn--u4e969b.xn--1ch", true); }
...@@ -1095,12 +3155,292 @@ test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.=\xcc\xb8", "xn--u4e969b.xn--1c...@@ -1095,12 +3155,292 @@ test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.=\xcc\xb8", "xn--u4e969b.xn--1c
1095test { try toUnicodePass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "\xe2\x85\x8e\xe1\x9f\x92.\xe2\x89\xa0"); }3155test { try toUnicodePass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "\xe2\x85\x8e\xe1\x9f\x92.\xe2\x89\xa0"); }
1096test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "xn--u4e969b.xn--1ch", false); }3156test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "xn--u4e969b.xn--1ch", false); }
1097test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "xn--u4e969b.xn--1ch", true); }3157test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "xn--u4e969b.xn--1ch", true); }
3158test { try toUnicodeFail("xn--u4e823bq1a.xn--0ugb89o"); } // [C1, C2]
1098test { 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); }3159test { 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); }
3160test { try toUnicodeFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2]
1099test { 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); }3161test { 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); }
3162test { 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]
3163test { try toUnicodeFail("xn--u4e319b.xn--1ch"); } // [V7]
3164test { try toUnicodeFail("xn--u4e823bcza.xn--0ugb89o"); } // [C1, C2, V7]
3165test { 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]
3166test { 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]
3167test { try toUnicodeFail("xn--3j9a14ak27osbz2o.xn--ljb175f"); } // [B1, V6, V7]
3168test { try toUnicodeFail("xn--3j9a14ak27osbz2o.xn--ljb175f1wg"); } // [B1, C1, V7]
3169test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e\xe2\x89\xaf"); } // [V7]
3170test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e>\xcc\xb8"); } // [V7]
3171test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.\xe2\x89\xaf"); } // [V7]
3172test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.>\xcc\xb8"); } // [V7]
3173test { try toUnicodeFail("xn--4fd57150h.xn--hdh"); } // [V7]
3174test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3\xef\xbc\x8e\xf0\x90\x87\xbd"); } // [B1, C2, V6]
3175test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3.\xf0\x90\x87\xbd"); } // [B1, C2, V6]
3176test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93.\xf0\x90\x87\xbd"); } // [B1, C2, V6]
3177test { try toUnicodeFail("xn--blj7492l.xn--m27c"); } // [B1, B2, B3, V6]
3178test { try toUnicodeFail("xn--1ugz52c4i16a.xn--m27c"); } // [B1, C2, V6]
3179test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93\xef\xbc\x8e\xf0\x90\x87\xbd"); } // [B1, C2, V6]
3180test { try toUnicodeFail("xn--rnd5552v.xn--m27c"); } // [B1, B2, B3, V6, V7]
3181test { try toUnicodeFail("xn--rnd379ex885a.xn--m27c"); } // [B1, C2, V6, V7]
3182test { try toUnicodeFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3]
3183test { try toUnicodeFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3]
3184test { try toUnicodeFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3]
3185test { try toUnicodeFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3]
3186test { try toUnicodeFail("xn--ss-tu9hw933a.xn--08e"); } // [B2, B3]
3187test { try toUnicodeFail("xn--zca2517f2hvc.xn--08e"); } // [B2, B3]
3188test { try toUnicodeFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3]
3189test { try toUnicodeFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3]
3190test { try toUnicodeFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3]
3191test { try toUnicodeFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3]
3192test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x82"); } // [V6]
3193test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xce\xa3"); } // [V6]
3194test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x83"); } // [V6]
3195test { try toUnicodeFail("xn--l76a726rt2h.xn--4xa"); } // [V6]
3196test { try toUnicodeFail("xn--l76a726rt2h.xn--3xa"); } // [V6]
3197test { try toUnicodeFail("\xe2\x92\x97\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3, V7]
3198test { try toUnicodeFail("16.\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3]
3199test { try toUnicodeFail("16.\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3]
3200test { try toUnicodeFail("16.xn--ke6h.xn----4j0j"); } // [B1, V3]
3201test { try toUnicodeFail("\xe2\x92\x97\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3, V7]
3202test { try toUnicodeFail("xn--8shw466n.xn----4j0j"); } // [B1, V3, V7]
3203test { 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]
3204test { try toUnicodeFail("\xe0\xa2\xb3\xf0\x9e\xa4\xbf\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1."); } // [B1, B2, B3]
3205test { try toUnicodeFail("\xe0\xa2\xb3\xf0\x9e\xa4\x9d\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1."); } // [B1, B2, B3]
3206test { try toUnicodeFail("xn--8yb0383efiwk.xn--1-wsc3373r."); } // [B1, B2, B3]
3207test { 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]
3208test { try toUnicodeFail("xn--8yb0383efiwk.xn--ljb064mol4n"); } // [B1, B2, B3, V7]
3209test { 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]
3210test { try toUnicodeFail("\xe2\x90\xb3\xf0\x9a\x8e\x9b5\xd9\xa1.\xe1\xa1\xa28\xe0\xbd\xb2\xd8\x80"); } // [B5, B6, V7]
3211test { try toUnicodeFail("xn--5-bqc410un435a.xn--8-rkc763epjj"); } // [B5, B6, V7]
3212test { try toUnicodeFail("\xf0\x90\xb9\xa0.\xf0\x9f\x84\x80\xe2\x92\x92-\xf3\xa8\xb0\x88"); } // [B1, V7]
3213test { try toUnicodeFail("\xf0\x90\xb9\xa0.0.11.-\xf3\xa8\xb0\x88"); } // [B1, V3, V7]
3214test { try toUnicodeFail("xn--7n0d.0.11.xn----8j07m"); } // [B1, V3, V7]
3215test { try toUnicodeFail("xn--7n0d.xn----xcp9757q1s13g"); } // [B1, V7]
3216test { try toUnicodeFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3]
3217test { try toUnicodeFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3]
3218test { try toUnicodeFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3]
3219test { try toUnicodeFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3]
3220test { try toUnicodeFail("xn----zmb.1-"); } // [V3]
3221test { try toUnicodeFail("xn----zmb.xn--1--i1t"); } // [C1, V3]
3222test { try toUnicodeFail("xn----xmb.xn--1--i1t"); } // [C1, V3]
3223test { try toUnicodeFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3]
3224test { try toUnicodeFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3]
3225test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe1\x82\xa4"); } // [V6]
3226test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe1\x82\xa4"); } // [V6]
3227test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe2\xb4\x84"); } // [V6]
3228test { try toUnicodeFail("xn----ggf830f.xn--vkj"); } // [V6]
3229test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe2\xb4\x84"); } // [V6]
3230test { try toUnicodeFail("xn----ggf830f.xn--cnd"); } // [V6, V7]
3231test { 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]
3232test { 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]
3233test { try toUnicodeFail("xn--ukb372n129m3rs7f.xn--1-fyd."); } // [B1, B5, B6, V6, V7]
3234test { try toUnicodeFail("xn--ukb372n129m3rs7f.xn--u3b240l"); } // [B1, B5, B6, V6, V7]
3235test { try toUnicodeFail("\xd6\xa4\xef\xbc\x8e\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c"); } // [B1, B3, C1, V6]
3236test { try toUnicodeFail("\xd6\xa4.\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c"); } // [B1, B3, C1, V6]
3237test { try toUnicodeFail("xn--vcb.xn--0kb623h"); } // [B1, V6]
3238test { try toUnicodeFail("xn--vcb.xn--0kb623hm1d"); } // [B1, B3, C1, V6]
3239test { 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]
3240test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d\xef\xbc\x8e\xf0\x9e\xa6\x8a"); } // [B5, B6, V7]
3241test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86\xe2\x89\xae\xe0\xab\x8d.\xf0\x9e\xa6\x8a"); } // [B5, B6, V7]
3242test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d.\xf0\x9e\xa6\x8a"); } // [B5, B6, V7]
3243test { try toUnicodeFail("xn--4vb80kq29ayo62l.xn--8g6h"); } // [B5, B6, V7]
3244test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x98\xe2\x92\x88\xea\xa1\x8d\xe6\x93\x89"); } // [C2, V6, V7]
3245test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x981.\xea\xa1\x8d\xe6\x93\x89"); } // [C2, V6]
3246test { try toUnicodeFail(".xn--1-1p4r.xn--s7uv61m"); } // [V6, X4_2]
3247test { try toUnicodeFail("xn--1ug.xn--1-1p4r.xn--s7uv61m"); } // [C2, V6]
3248test { try toUnicodeFail(".xn--tsh026uql4bew9p"); } // [V6, V7, X4_2]
3249test { try toUnicodeFail("xn--1ug.xn--tsh026uql4bew9p"); } // [C2, V6, V7]
3250test { try toUnicodeFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4\xe2\x89\xa0"); } // [B1, B3]
3251test { try toUnicodeFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4=\xcc\xb8"); } // [B1, B3]
3252test { try toUnicodeFail("8\xdf\x8b.\xd9\xbf\xe2\x89\xa0"); } // [B1, B3]
3253test { try toUnicodeFail("8\xdf\x8b.\xd9\xbf=\xcc\xb8"); } // [B1, B3]
3254test { try toUnicodeFail("xn--8-zbd.xn--4ib883l"); } // [B1, B3]
3255test { try toUnicodeFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.\xe2\x92\x92\xd9\x82\xf0\x91\x8d\xa6"); } // [B1, B5, V7]
3256test { try toUnicodeFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.11.\xd9\x82\xf0\x91\x8d\xa6"); } // [B1, B5, V7]
3257test { try toUnicodeFail("xn--5sb596fi873t.11.xn--ehb4198k"); } // [B1, B5, V7]
3258test { try toUnicodeFail("xn--5sb596fi873t.xn--ehb336mvy7n"); } // [B1, B5, V7]
3259test { try toUnicodeFail("\xe0\xb9\x88-\xf0\x90\xb9\xba\xf0\x9d\x9f\x9c.\xcd\xa3\xdb\xa1\xe2\x92\x8f"); } // [B1, V6, V7]
3260test { try toUnicodeFail("\xe0\xb9\x88-\xf0\x90\xb9\xba4.\xcd\xa3\xdb\xa18."); } // [B1, V6]
3261test { try toUnicodeFail("xn---4-owiz479s.xn--8-ihb69x."); } // [B1, V6]
3262test { try toUnicodeFail("xn---4-owiz479s.xn--eva20pjv9a"); } // [B1, V6, V7]
3263test { try toUnicodeFail("\xe2\xab\x90\xef\xbd\xa1\xe1\x83\x80-\xf3\x83\x90\xa2"); } // [V7]
3264test { try toUnicodeFail("\xe2\xab\x90\xe3\x80\x82\xe1\x83\x80-\xf3\x83\x90\xa2"); } // [V7]
3265test { try toUnicodeFail("\xe2\xab\x90\xe3\x80\x82\xe2\xb4\xa0-\xf3\x83\x90\xa2"); } // [V7]
3266test { try toUnicodeFail("xn--r3i.xn----2wst7439i"); } // [V7]
3267test { try toUnicodeFail("\xe2\xab\x90\xef\xbd\xa1\xe2\xb4\xa0-\xf3\x83\x90\xa2"); } // [V7]
3268test { try toUnicodeFail("xn--r3i.xn----z1g58579u"); } // [V7]
3269test { try toUnicodeFail("\xf0\x91\x91\x82\xe2\x97\x8a\xef\xbc\x8e\xe2\xa6\x9f\xe2\x88\xa0"); } // [V6]
3270test { try toUnicodeFail("\xf0\x91\x91\x82\xe2\x97\x8a.\xe2\xa6\x9f\xe2\x88\xa0"); } // [V6]
3271test { try toUnicodeFail("xn--01h3338f.xn--79g270a"); } // [V6]
3272test { try toUnicodeFail("\xf0\xbf\x8c\xb0-\xd9\xa2\xe3\x80\x82\xf3\x8b\xb8\x9b\xea\xa1\x82"); } // [B5, B6, V7]
3273test { try toUnicodeFail("xn----dqc20828e.xn--bc9an2879c"); } // [B5, B6, V7]
3274test { try toUnicodeFail("\xd9\xb8\xe3\x80\x82\xf3\xa0\x8f\xac\xdd\x81\xf0\x9e\xaa\xad\xf0\x90\xb9\xaa"); } // [B1, V7]
3275test { 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]
3276test { try toUnicodeFail("xn--mhb8f.xn--oob2585kfdsfsbo7h"); } // [B1, V7]
3277test { try toUnicodeFail("\xf0\x90\xab\x86\xea\x8c\x84\xef\xbd\xa1\xe2\x80\x8d\xe1\xa3\xac"); } // [B1, B2, B3, C2]
3278test { try toUnicodeFail("\xf0\x90\xab\x86\xea\x8c\x84\xe3\x80\x82\xe2\x80\x8d\xe1\xa3\xac"); } // [B1, B2, B3, C2]
3279test { try toUnicodeFail("xn--y77ao18q.xn--wdf"); } // [B2, B3]
3280test { try toUnicodeFail("xn--y77ao18q.xn--wdf367a"); } // [B1, B2, B3, C2]
3281test { try toUnicodeFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-"); } // [B1, B6, V3, V7]
3282test { try toUnicodeFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-"); } // [B1, B6, V3, V7]
3283test { try toUnicodeFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-"); } // [B1, B6, V3, V7]
3284test { try toUnicodeFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-"); } // [B1, B6, V3, V7]
3285test { try toUnicodeFail("xn--0-dqc.xn----ogov3342l"); } // [B1, B6, V3, V7]
3286test { try toUnicodeFail("\xcc\x9c\xf0\x90\xb9\xab-\xf0\x9e\xaf\x83.\xf0\x90\x8b\xa4\xe0\xa1\x85"); } // [B1, V6, V7]
3287test { try toUnicodeFail("xn----gdb7046r692g.xn--3vb1349j"); } // [B1, V6, V7]
3288test { try toUnicodeFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6]
3289test { try toUnicodeFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6]
3290test { try toUnicodeFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6]
3291test { try toUnicodeFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6]
3292test { try toUnicodeFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6]
3293test { try toUnicodeFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6]
3294test { try toUnicodeFail("xn--1ch.xn--fcb363rk03mypug"); } // [B1, V6]
3295test { try toUnicodeFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6]
3296test { try toUnicodeFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6]
3297test { try toUnicodeFail("xn--1ch.xn--fcb538c649rypog"); } // [B1, V6, V7]
3298test { try toUnicodeFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe1\x82\xa0\xf0\x90\xae\x80"); } // [B1, B5, B6, V6]
3299test { try toUnicodeFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe1\x82\xa0\xf0\x90\xae\x80"); } // [B1, B5, B6, V6]
3300test { try toUnicodeFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe2\xb4\x80\xf0\x90\xae\x80"); } // [B1, B5, B6, V6]
3301test { try toUnicodeFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe2\xb4\x80\xf0\x90\xae\x80"); } // [B1, B5, B6, V6]
3302test { try toUnicodeFail("xn--1ch9250k.xn--rkj6232e"); } // [B1, B5, B6, V6]
3303test { try toUnicodeFail("xn--1ch9250k.xn--7md2659j"); } // [B1, B5, B6, V6, V7]
3304test { 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]
3305test { 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]
3306test { try toUnicodeFail("xn--wnb5a.xn--l0b161fis8gbp5m"); } // [B1, B5, B6, V6, V7]
3307test { 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]
3308test { 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]
3309test { try toUnicodeFail("xn--blb8114f.xn----gmg236cj6k"); } // [B1, V6]
3310test { try toUnicodeFail("xn--blb540ke10h.xn----gmg236cj6k"); } // [B1, C2, V6]
3311test { 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]
3312test { 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]
3313test { try toUnicodeFail("\xed\x97\x81\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba4"); } // [V7]
3314test { 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]
3315test { try toUnicodeFail("xn--o4c1723h8g85gt4ya.xn--4-dvc"); } // [V7]
3316test { try toUnicodeFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe"); } // [B1, C1, V7]
3317test { try toUnicodeFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe"); } // [B1, C1, V7]
3318test { try toUnicodeFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e"); } // [B1, C1, V7]
3319test { try toUnicodeFail("xn--lo0d.xn--mljx1099g"); } // [B1, V7]
3320test { try toUnicodeFail("xn--lo0d.xn--0ugx72cwi33v"); } // [B1, C1, V7]
3321test { try toUnicodeFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e"); } // [B1, C1, V7]
3322test { try toUnicodeFail("xn--lo0d.xn--2nd75260n"); } // [B1, V7]
3323test { try toUnicodeFail("xn--lo0d.xn--2nd949eqw95u"); } // [B1, C1, V7]
3324test { try toUnicodeFail("\xea\xa5\x93.\xcc\xbd\xf0\x91\x82\xbd\xe9\xa6\x8b"); } // [V6, V7]
3325test { try toUnicodeFail("xn--3j9a.xn--bua0708eqzrd"); } // [V6, V7]
3326test { try toUnicodeFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xef\xbd\xa1\xe4\x9c\x96"); } // [C2, V7]
3327test { try toUnicodeFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xe3\x80\x82\xe4\x9c\x96"); } // [C2, V7]
3328test { try toUnicodeFail("xn--g138cxw05a.xn--k0o"); } // [V7]
3329test { try toUnicodeFail("xn--1ug30527h9mxi.xn--k0o"); } // [C2, V7]
3330test { 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]
3331test { 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]
3332test { try toUnicodeFail("xn--8,-g9oy26fzu4d.xn--kmb6733w"); } // [U1]
3333test { try toUnicodeFail("xn--8,-g9oy26fzu4d.xn--kmb859ja94998b"); } // [C2, U1]
3334test { try toUnicodeFail("xn--c9e433epi4b3j20a.xn--kmb6733w"); } // [V7]
3335test { try toUnicodeFail("xn--c9e433epi4b3j20a.xn--kmb859ja94998b"); } // [C2, V7]
3336test { try toUnicodeFail("\xf0\x9e\xbd\x80.\xf0\x90\xb9\xb8\xf0\x9f\x9a\x96\xe0\xb8\xba"); } // [B1, V7]
3337test { try toUnicodeFail("xn--0n7h.xn--o4c9032klszf"); } // [B1, V7]
3338test { try toUnicodeFail("\xe1\x82\xb4\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1]
3339test { try toUnicodeFail("\xe1\x82\xb4\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1]
3340test { try toUnicodeFail("\xe2\xb4\x94\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1]
3341test { try toUnicodeFail("xn--o7e997h.xn--mmb9ml895e"); } // [B1]
3342test { try toUnicodeFail("\xe2\xb4\x94\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1]
3343test { try toUnicodeFail("xn--snd659a.xn--mmb9ml895e"); } // [B1, V7]
3344test { 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]
3345test { try toUnicodeFail("\xe1\x8d\x9f\xe1\xa1\x88\xe2\x80\x8c.\xe3\x80\x82-\xf0\x96\xbe\x90-"); } // [C1, V3, V6, X4_2]
3346test { try toUnicodeFail("xn--b7d82w..xn-----pe4u"); } // [V3, V6, X4_2]
3347test { try toUnicodeFail("xn--b7d82wo4h..xn-----pe4u"); } // [C1, V3, V6, X4_2]
3348test { try toUnicodeFail("xn--b7d82w.xn-----c82nz547a"); } // [V3, V6, V7]
3349test { try toUnicodeFail("xn--b7d82wo4h.xn-----c82nz547a"); } // [C1, V3, V6, V7]
3350test { try toUnicodeFail("\xe2\x92\x88\xd8\x81\xe2\x92\x96\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b"); } // [B1, C1, V6, V7]
3351test { try toUnicodeFail("1.\xd8\x8115.\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b"); } // [B1, C1, V6, V7]
3352test { try toUnicodeFail("1.xn--15-1pd..xn--2sb914i"); } // [B1, V6, V7, X4_2]
3353test { try toUnicodeFail("1.xn--15-1pd.xn--0ug.xn--2sb914i"); } // [B1, C1, V6, V7]
3354test { try toUnicodeFail("xn--jfb347mib.xn--2sb914i"); } // [B1, V6, V7]
3355test { try toUnicodeFail("xn--jfb844kmfdwb.xn--2sb914i"); } // [B1, C1, V6, V7]
3356test { try toUnicodeFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe1\x82\xab"); } // [V3, V6]
3357test { try toUnicodeFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe2\xb4\x8b"); } // [V3, V6]
3358test { try toUnicodeFail("xn--792h.xn----bse820x"); } // [V3, V6]
3359test { try toUnicodeFail("xn--792h.xn----bse632b"); } // [V3, V6, V7]
3360test { try toUnicodeFail("\xc3\x9f\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3]
3361test { try toUnicodeFail("\xc3\x9f\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d"); } // [B2, B3]
3362test { try toUnicodeFail("SS\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3]
3363test { try toUnicodeFail("ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d"); } // [B2, B3]
3364test { try toUnicodeFail("Ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3]
3365test { try toUnicodeFail("xn--ss-j81a.xn--fgb670rovy"); } // [B2, B3]
3366test { try toUnicodeFail("xn--zca277t.xn--fgb670rovy"); } // [B2, B3]
3367test { try toUnicodeFail("xn--ss-j81a.xn--fgb845cb66c"); } // [B2, B3, V7]
3368test { try toUnicodeFail("xn--ss-wgk.xn--fgb845cb66c"); } // [B2, B3, V7]
3369test { try toUnicodeFail("xn--zca442f.xn--fgb845cb66c"); } // [B2, B3, V7]
3370test { 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]
3371test { 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]
3372test { 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]
3373test { 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]
3374test { 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]
3375test { 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]
3376test { 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]
3377test { 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]
3378test { try toUnicodeFail("xn--yxf24x4ol.xn--sib102gc69k"); } // [B5, B6, V6]
3379test { 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]
3380test { 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]
3381test { 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]
3382test { 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]
3383test { try toUnicodeFail("xn--bnd957c2pe.xn--sib102gc69k"); } // [B5, B6, V6, V7]
3384test { try toUnicodeFail("xn--bnd957cone.xn--sib102gc69k"); } // [B5, B6, V6, V7]
3385test { try toUnicodeFail("\xdb\xac.\xe0\xa2\xa2\xf0\x90\xb9\xab\xd9\xbc"); } // [B1, V6]
3386test { try toUnicodeFail("xn--8lb.xn--1ib31ily45b"); } // [B1, V6]
3387test { try toUnicodeFail("\xda\xb6\xdb\x9f\xe3\x80\x82\xe2\x82\x87\xea\xa0\x86"); } // [B1]
3388test { try toUnicodeFail("\xda\xb6\xdb\x9f\xe3\x80\x827\xea\xa0\x86"); } // [B1]
3389test { try toUnicodeFail("xn--pkb6f.xn--7-x93e"); } // [B1]
3390test { try toUnicodeFail("\xda\xb6\xdb\x9f.7\xea\xa0\x86"); } // [B1]
3391test { 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]
3392test { 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]
3393test { 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]
3394test { 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]
3395test { try toUnicodeFail("xn--rlj6323e.xn--gdh4944ob3x3e"); } // [B1, B5, B6, V6, V7]
3396test { try toUnicodeFail("xn--rlj6323e.xn--0ugy6gn120eb103g"); } // [B1, B5, B6, C1, V7]
3397test { try toUnicodeFail("xn--7nd8101k.xn--gdh4944ob3x3e"); } // [B1, B5, B6, V6, V7]
3398test { try toUnicodeFail("xn--7nd8101k.xn--0ugy6gn120eb103g"); } // [B1, B5, B6, C1, V7]
3399test { try toUnicodeFail("\xf0\x9d\x9f\xb5\xe9\x9a\x81\xe2\xaf\xae\xef\xbc\x8e\xe1\xa0\x8d\xe2\x80\x8c"); } // [C1]
3400test { try toUnicodeFail("9\xe9\x9a\x81\xe2\xaf\xae.\xe1\xa0\x8d\xe2\x80\x8c"); } // [C1]
1100test { try toUnicodePass("xn--9-mfs8024b.", "9\xe9\x9a\x81\xe2\xaf\xae."); }3401test { try toUnicodePass("xn--9-mfs8024b.", "9\xe9\x9a\x81\xe2\xaf\xae."); }
1101test { try toUnicodePass("9\xe9\x9a\x81\xe2\xaf\xae.", "9\xe9\x9a\x81\xe2\xaf\xae."); }3402test { try toUnicodePass("9\xe9\x9a\x81\xe2\xaf\xae.", "9\xe9\x9a\x81\xe2\xaf\xae."); }
3403test { try toUnicodeFail("xn--9-mfs8024b.xn--0ug"); } // [C1]
3404test { try toUnicodeFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1, V7]
3405test { try toUnicodeFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1]
3406test { try toUnicodeFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1]
3407test { try toUnicodeFail("8.xn--fo0d.xn--3ed972m6o8a"); } // [B1]
3408test { try toUnicodeFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1, V7]
3409test { try toUnicodeFail("xn--0sh2466f.xn--3ed972m6o8a"); } // [B1, V7]
3410test { try toUnicodeFail("8.xn--fo0d.xn--3ed15dt93o"); } // [B1, V7]
3411test { try toUnicodeFail("xn--0sh2466f.xn--3ed15dt93o"); } // [B1, V7]
3412test { 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]
3413test { 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]
3414test { try toUnicodeFail("xn---20-658jx1776d..xn----ykc7228efm46d"); } // [B1, V3, V7, X4_2]
3415test { try toUnicodeFail("xn----hdpu849bhis3e.xn----ykc7228efm46d"); } // [B1, V3, V7]
3416test { try toUnicodeFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8"); } // [C1, V6]
3417test { try toUnicodeFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x822"); } // [C1, V6]
3418test { try toUnicodeFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x822"); } // [C1, V6]
3419test { try toUnicodeFail("xn--mta176jjjm.c"); } // [V6]
3420test { try toUnicodeFail("xn--mta176j97cl2q.c"); } // [C1, V6]
3421test { try toUnicodeFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8"); } // [C1, V6]
3422test { try toUnicodeFail("xn--mta930emri.c"); } // [V6, V7]
3423test { try toUnicodeFail("xn--mta930emribme.c"); } // [C1, V6, V7]
3424test { try toUnicodeFail("?\xe3\x80\x82\xea\xa0\x86\xd9\xa9\xf3\xa0\x92\xa9"); } // [B1, V6, V7, U1]
3425test { try toUnicodeFail("?.xn--iib9583fusy0i"); } // [B1, V6, V7, U1]
3426test { 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]
3427test { 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]
3428test { try toUnicodeFail("\xf3\xa0\x84\x81\xcd\x9f\xe9\xa3\x9b\xe3\x80\x827\xe3\x80\x82\xeb\x88\x87\xe2\x89\xae"); } // [V6]
3429test { 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]
3430test { try toUnicodeFail("xn--9ua0567e.7.xn--gdh6767c"); } // [V6]
3431test { try toUnicodeFail("xn--9ua0567e.xn--7-ngou006d1ttc"); } // [V6, V7]
3432test { 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]
3433test { try toUnicodeFail("\xe2\x80\x8c\xef\xb8\x89\xf0\x90\xb9\xb4\xe2\x80\x8d.\xe2\x80\x8c\xe9\xb3\xa5"); } // [B1, C1, C2]
3434test { try toUnicodeFail("xn--so0d.xn--6x6a"); } // [B1]
3435test { try toUnicodeFail("xn--0ugc6024p.xn--0ug1920c"); } // [B1, C1, C2]
3436test { 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]
3437test { try toUnicodeFail("\xf0\x9f\x8d\xae.\xe2\x80\x8d\xf3\xa0\x97\x92\xf0\x90\xa6\x81\xf0\x9d\xa8\x9d"); } // [B1, C2, V7]
3438test { try toUnicodeFail("xn--lj8h.xn--ln9ci476aqmr2g"); } // [B1, V7]
3439test { try toUnicodeFail("xn--lj8h.xn--1ug6603gr1pfwq37h"); } // [B1, C2, V7]
1102test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93\xe2\x80\x8d", "xn--2ib43l.xn--te6h", true); }3440test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93\xe2\x80\x8d", "xn--2ib43l.xn--te6h", true); }
3441test { try toUnicodeFail("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93\xe2\x80\x8d"); } // [B3, C2]
1103test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5\xe2\x80\x8d", "xn--2ib43l.xn--te6h", true); }3442test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5\xe2\x80\x8d", "xn--2ib43l.xn--te6h", true); }
3443test { try toUnicodeFail("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5\xe2\x80\x8d"); } // [B3, C2]
1104test { try toUnicodePass("xn--2ib43l.xn--te6h", "\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5"); }3444test { try toUnicodePass("xn--2ib43l.xn--te6h", "\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5"); }
1105test { try toAsciiPass("xn--2ib43l.xn--te6h", "xn--2ib43l.xn--te6h", false); }3445test { try toAsciiPass("xn--2ib43l.xn--te6h", "xn--2ib43l.xn--te6h", false); }
1106test { try toAsciiPass("xn--2ib43l.xn--te6h", "xn--2ib43l.xn--te6h", true); }3446test { try toAsciiPass("xn--2ib43l.xn--te6h", "xn--2ib43l.xn--te6h", true); }
...@@ -1110,6 +3450,92 @@ test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5", "xn--2ib43l.xn--...@@ -1110,6 +3450,92 @@ test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5", "xn--2ib43l.xn--
1110test { try toUnicodePass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5"); }3450test { try toUnicodePass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5"); }
1111test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "xn--2ib43l.xn--te6h", false); }3451test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "xn--2ib43l.xn--te6h", false); }
1112test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "xn--2ib43l.xn--te6h", true); }3452test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "xn--2ib43l.xn--te6h", true); }
3453test { try toUnicodeFail("xn--2ib43l.xn--1ugy711p"); } // [B3, C2]
3454test { try toUnicodeFail("\xd9\xa4\xe0\xa9\x8d-\xef\xbc\x8e\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90"); } // [B1, V3, V7]
3455test { try toUnicodeFail("\xd9\xa4\xe0\xa9\x8d-.\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90"); } // [B1, V3, V7]
3456test { try toUnicodeFail("xn----gqc711a.xn--9jd88234f3qm0b"); } // [B1, V3, V7]
3457test { 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]
3458test { 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]
3459test { 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]
3460test { 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]
3461test { try toUnicodeFail("xn--4--e4j7831r.xn--gdh8754cz40c"); } // [B1, V6]
3462test { try toUnicodeFail("xn--4--e4j7831r.xn--0ugy6gjy5sl3ud"); } // [B1, C1, V6]
3463test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xef\xbe\xa0\xe0\xbe\x84\xe0\xbe\x96"); } // [C1, V6]
3464test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe1\x85\xa0\xe0\xbe\x84\xe0\xbe\x96"); } // [C1, V6]
3465test { try toUnicodeFail(".xn--3ed0b"); } // [V6, X4_2]
3466test { try toUnicodeFail("xn--0ug.xn--3ed0b"); } // [C1, V6]
3467test { try toUnicodeFail(".xn--3ed0b20h"); } // [V7, X4_2]
3468test { try toUnicodeFail("xn--0ug.xn--3ed0b20h"); } // [C1, V7]
3469test { try toUnicodeFail(".xn--3ed0by082k"); } // [V7, X4_2]
3470test { try toUnicodeFail("xn--0ug.xn--3ed0by082k"); } // [C1, V7]
3471test { 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]
3472test { try toUnicodeFail(">\xcc\xb8\xf2\x8d\x98\x85\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7]
3473test { try toUnicodeFail("\xe2\x89\xaf\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7]
3474test { try toUnicodeFail(">\xcc\xb8\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7]
3475test { try toUnicodeFail("xn--hdh84488f.xn--xy7cw2886b"); } // [V7]
3476test { try toUnicodeFail("xn--hdh84488f.xn--1ug8099fbjp4e"); } // [C2, V7]
3477test { try toUnicodeFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2]
3478test { try toUnicodeFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2]
3479test { try toUnicodeFail("\xd9\x81SS\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2]
3480test { try toUnicodeFail("\xd9\x81ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2]
3481test { try toUnicodeFail("xn--ss-jvd2339x.xn--7-mm5i"); } // [B1, B2]
3482test { try toUnicodeFail("xn--zca96ys96y.xn--7-mm5i"); } // [B1, B2]
3483test { try toUnicodeFail("\xd9\x81SS\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2]
3484test { try toUnicodeFail("\xd9\x81ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2]
3485test { try toUnicodeFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2]
3486test { try toUnicodeFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2]
3487test { 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]
3488test { 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]
3489test { 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]
3490test { 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]
3491test { try toUnicodeFail("xn--ss-9qet02k.xn--e09co8cr9861c"); } // [B2, B5, B6, V7]
3492test { try toUnicodeFail("xn--zca685aoa95h.xn--e09co8cr9861c"); } // [B2, B5, B6, V7]
3493test { try toUnicodeFail("-\xef\xbd\xa1\xf3\xa0\x89\x97\xe2\x92\x8c\xf0\x9e\xaf\x9b"); } // [B1, V3, V7]
3494test { try toUnicodeFail("-\xe3\x80\x82\xf3\xa0\x89\x975.\xf0\x9e\xaf\x9b"); } // [B1, V3, V7]
3495test { try toUnicodeFail("-.xn--5-zz21m.xn--6x6h"); } // [B1, V3, V7]
3496test { try toUnicodeFail("-.xn--xsh6367n1bi3e"); } // [B1, V3, V7]
3497test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7]
3498test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7]
3499test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7]
3500test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7]
3501test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7]
3502test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7]
3503test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7]
3504test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7]
3505test { try toUnicodeFail("xn--4xa92520c.xn----9mcf1400a"); } // [B1, V3, V7]
3506test { try toUnicodeFail("xn--3xa13520c.xn----9mcf1400a"); } // [B1, V3, V7]
3507test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7]
3508test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7]
3509test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7]
3510test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7]
3511test { 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]
3512test { 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]
3513test { try toUnicodeFail("xn--jnb34fs003a.xn--fhbo927bk128mpi24d"); } // [B5, B6, V7]
3514test { 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]
3515test { 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]
3516test { try toUnicodeFail("xn--dzb5191kezbrw47a.xn--p4e3841jz9tf"); } // [B1]
3517test { 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]
3518test { 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]
3519test { 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]
3520test { 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]
3521test { 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]
3522test { 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]
3523test { try toUnicodeFail("xn--2---u58b.xn--jlb8024k14g"); } // [B1, V2, V3]
3524test { try toUnicodeFail("xn--2---u58b.xn--jlb820ku99nbgj"); } // [B1, C1, V2, V3]
3525test { try toUnicodeFail("-\xf0\x98\x8a\xbb\xef\xbc\x8e\xe1\xa1\xae\xd8\xad-"); } // [B1, B5, B6, V3]
3526test { try toUnicodeFail("-\xf0\x98\x8a\xbb.\xe1\xa1\xae\xd8\xad-"); } // [B1, B5, B6, V3]
3527test { try toUnicodeFail("xn----bp5n.xn----bnc231l"); } // [B1, B5, B6, V3]
3528test { try toUnicodeFail("\xe2\x80\x8c-\xc3\x9f\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
3529test { try toUnicodeFail("\xe2\x80\x8c-\xc3\x9f\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
3530test { try toUnicodeFail("\xe2\x80\x8c-SS\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
3531test { try toUnicodeFail("\xe2\x80\x8c-ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
3532test { try toUnicodeFail("\xe2\x80\x8c-Ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
3533test { try toUnicodeFail("-ss.xn--bhb925glx3p"); } // [B1, B5, B6, V3]
3534test { try toUnicodeFail("xn---ss-8m0a.xn--bhb925glx3p"); } // [B1, B5, B6, C1]
3535test { try toUnicodeFail("xn----qfa550v.xn--bhb925glx3p"); } // [B1, B5, B6, C1]
3536test { try toUnicodeFail("\xe2\x80\x8c-SS\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
3537test { try toUnicodeFail("\xe2\x80\x8c-ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
3538test { try toUnicodeFail("\xe2\x80\x8c-Ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1]
1113test { 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"); }3539test { 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"); }
1114test { try toAsciiPass("\xea\xa7\x90\xd3\x80\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", false); }3540test { try toAsciiPass("\xea\xa7\x90\xd3\x80\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", false); }
1115test { try toAsciiPass("\xea\xa7\x90\xd3\x80\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", true); }3541test { try toAsciiPass("\xea\xa7\x90\xd3\x80\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", true); }
...@@ -1137,14 +3563,184 @@ test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e...@@ -1137,14 +3563,184 @@ test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e
1137test { try toUnicodePass("\xea\xa7\x90\xd3\x8f\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"); }3563test { try toUnicodePass("\xea\xa7\x90\xd3\x8f\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"); }
1138test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", false); }3564test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", false); }
1139test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", true); }3565test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", true); }
3566test { try toUnicodeFail("xn--d5a07sn4u297k.xn--2e1b"); } // [V7]
3567test { try toUnicodeFail("\xea\xa3\xaa\xef\xbd\xa1\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97"); } // [V6, V7]
3568test { try toUnicodeFail("\xea\xa3\xaa\xe3\x80\x82\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97"); } // [V6, V7]
3569test { try toUnicodeFail("xn--3g9a.xn--ud1dz07k"); } // [V6, V7]
3570test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe2\xbe\x87"); } // [V7]
3571test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe2\xbe\x87"); } // [V7]
3572test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe8\x88\x9b"); } // [V7]
3573test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe8\x88\x9b"); } // [V7]
3574test { try toUnicodeFail("xn--3e2d79770c.xn--hdh0088abyy1c"); } // [V7]
3575test { try toUnicodeFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c\xef\xbc\x8e\xe2\x80\x8d\xe2\x80\x8c"); } // [B1, B3, C1, C2]
3576test { try toUnicodeFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c.\xe2\x80\x8d\xe2\x80\x8c"); } // [B1, B3, C1, C2]
1140test { try toUnicodePass("xn--9hb7344k.", "\xf0\x90\xab\x87\xd9\xa1."); }3577test { try toUnicodePass("xn--9hb7344k.", "\xf0\x90\xab\x87\xd9\xa1."); }
1141test { try toUnicodePass("\xf0\x90\xab\x87\xd9\xa1.", "\xf0\x90\xab\x87\xd9\xa1."); }3578test { try toUnicodePass("\xf0\x90\xab\x87\xd9\xa1.", "\xf0\x90\xab\x87\xd9\xa1."); }
3579test { try toUnicodeFail("xn--9hb652kv99n.xn--0ugb"); } // [B1, B3, C1, C2]
3580test { 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]
3581test { 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]
3582test { 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]
3583test { 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]
3584test { try toUnicodeFail("xn--bbf561cf95e57y3e.xn--hdh0834o7mj6b"); } // [V7]
3585test { try toUnicodeFail("xn--bbf561cf95e57y3e.xn--0ugz6gc910ejro8c"); } // [C1, V7]
3586test { try toUnicodeFail("\xe1\x83\x85.\xf0\x91\x84\xb3\xe3\x8a\xb8"); } // [V6]
3587test { try toUnicodeFail("\xe1\x83\x85.\xf0\x91\x84\xb343"); } // [V6]
3588test { try toUnicodeFail("\xe2\xb4\xa5.\xf0\x91\x84\xb343"); } // [V6]
3589test { try toUnicodeFail("xn--tlj.xn--43-274o"); } // [V6]
3590test { try toUnicodeFail("\xe2\xb4\xa5.\xf0\x91\x84\xb3\xe3\x8a\xb8"); } // [V6]
3591test { try toUnicodeFail("xn--9nd.xn--43-274o"); } // [V6, V7]
3592test { 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]
3593test { try toUnicodeFail("0\xd9\xa3\xe3\x80\x82\xe1\x82\xb2\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0"); } // [B1, B5, B6]
3594test { try toUnicodeFail("0\xd9\xa3\xe3\x80\x82\xe2\xb4\x92\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0"); } // [B1, B5, B6]
3595test { try toUnicodeFail("xn--0-fqc.xn--10b369eivp359r"); } // [B1, B5, B6]
3596test { 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]
3597test { try toUnicodeFail("xn--0-fqc.xn--10b180bnwgfy0z"); } // [B1, B5, B6, V7]
3598test { try toUnicodeFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xef\xbe\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93"); } // [V7]
3599test { try toUnicodeFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xe1\x85\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93"); } // [V7]
3600test { try toUnicodeFail("xn--kgd72212e.xn--3j9au7544a"); } // [V7]
3601test { try toUnicodeFail("xn--kgd36f9z57y.xn--3j9au7544a"); } // [V7]
3602test { try toUnicodeFail("xn--kgd7493jee34a.xn--3j9au7544a"); } // [V7]
3603test { try toUnicodeFail("\xd8\x98.\xdb\xb3\xe2\x80\x8c\xea\xa5\x93"); } // [C1, V6]
3604test { try toUnicodeFail("xn--6fb.xn--gmb0524f"); } // [V6]
3605test { try toUnicodeFail("xn--6fb.xn--gmb469jjf1h"); } // [C1, V6]
3606test { try toUnicodeFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91"); } // [V7]
3607test { try toUnicodeFail("\xe1\xa1\x8c.\xe3\x80\x82\xe1\xa2\x91"); } // [X4_2]
3608test { try toUnicodeFail("xn--c8e..xn--bbf"); } // [X4_2]
3609test { try toUnicodeFail("xn--c8e.xn--bbf9168i"); } // [V7]
3610test { try toUnicodeFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xef\xbd\xa1\xf0\x9e\xbd\xa7"); } // [B1, V6, V7]
3611test { try toUnicodeFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xe3\x80\x82\xf0\x9e\xbd\xa7"); } // [B1, V6, V7]
3612test { try toUnicodeFail("xn--xld7443k.xn--4o7h"); } // [B1, V6, V7]
3613test { try toUnicodeFail("\xf0\x9e\xb7\x8f\xe3\x80\x82\xe1\xa0\xa2\xf2\x93\x98\x86"); } // [V7]
3614test { try toUnicodeFail("xn--hd7h.xn--46e66060j"); } // [V7]
3615test { 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]
3616test { 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]
3617test { try toUnicodeFail("xn--iym9428c.xn--e1g3464g08p3b"); } // [B1, V6, V7]
3618test { try toUnicodeFail("xn--iym9428c.xn--0ug46a7218cllv0c"); } // [B1, C1, V6, V7]
3619test { try toUnicodeFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xef\xbd\xa1\xcc\x9d"); } // [B1, B5, B6, V6, V7]
3620test { try toUnicodeFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xcc\x9d"); } // [B1, B5, B6, V6, V7]
3621test { try toUnicodeFail("xn--ro0dw7dey96m.xn--eta"); } // [B1, B5, B6, V6, V7]
3622test { 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]
3623test { 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]
3624test { try toUnicodeFail("xn--39e4566fjv8bwmt6n.xn--myb6415k"); } // [B1, V6, V7]
3625test { 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]
3626test { 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]
3627test { 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]
3628test { 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]
3629test { try toUnicodeFail("xn--1ch6704g.xn--m97cw2999c"); } // [B1, V7]
3630test { try toUnicodeFail("xn--1ch6704g.xn--0ug3840g51u4g"); } // [B1, C1, V7]
3631test { 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]
3632test { 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]
3633test { try toUnicodeFail("xn--n3b91514e.xn--3j9al95p"); } // [B5, B6, V6, V7]
3634test { try toUnicodeFail("xn--n3b91514e.xn--1ug6815co9wc"); } // [B1, C2, V7]
3635test { try toUnicodeFail("xn--n3b542bb085j.xn--3j9al95p"); } // [B5, B6, V6, V7]
3636test { try toUnicodeFail("xn--n3b542bb085j.xn--1ug6815co9wc"); } // [B1, C2, V7]
3637test { 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]
3638test { try toUnicodeFail("\xf2\x8c\x8b\x94\xf3\xa0\x86\x8e\xf3\xa0\x86\x97\xf0\x91\xb2\x95\xe3\x80\x82<\xcc\xb8"); } // [V7]
3639test { try toUnicodeFail("xn--4m3dv4354a.xn--gdh"); } // [V7]
3640test { try toUnicodeFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80\xe2\x89\xa0"); } // [V6, X4_2]
3641test { try toUnicodeFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80=\xcc\xb8"); } // [V6, X4_2]
3642test { try toUnicodeFail(".xn--m0b461k3g2c"); } // [V6, X4_2]
3643test { 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]
3644test { 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]
3645test { try toUnicodeFail("xn--429ak76o.xn--zgb8a701kox37t"); } // [B2, B3, V7]
3646test { 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]
3647test { 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]
3648test { 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]
3649test { try toUnicodeFail("xn--1-px8q..xn--3kj4524l"); } // [B1, B5, B6, V6, V7, X4_2]
3650test { try toUnicodeFail("xn--1-tgn9827q..xn--3kj4524l"); } // [B1, B5, B6, C2, V6, V7, X4_2]
3651test { 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]
3652test { try toUnicodeFail("xn--tshz828m.xn--3kj4524l"); } // [B1, B5, B6, V6, V7]
3653test { try toUnicodeFail("xn--1ug68oq348b.xn--3kj4524l"); } // [B1, B5, B6, C2, V6, V7]
3654test { try toUnicodeFail("xn--1-px8q..xn--knd8464v"); } // [B1, B5, B6, V6, V7, X4_2]
3655test { try toUnicodeFail("xn--1-tgn9827q..xn--knd8464v"); } // [B1, B5, B6, C2, V6, V7, X4_2]
3656test { try toUnicodeFail("xn--tshz828m.xn--knd8464v"); } // [B1, B5, B6, V6, V7]
3657test { try toUnicodeFail("xn--1ug68oq348b.xn--knd8464v"); } // [B1, B5, B6, C2, V6, V7]
3658test { 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]
3659test { 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]
3660test { 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]
3661test { 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]
3662test { try toUnicodeFail("xn--ybc0236vjvxgt5q0g.xn--4xa82737giye6b"); } // [B1, V7]
3663test { 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]
3664test { try toUnicodeFail("xn--ybc0236vjvxgt5q0g.xn--3xa03737giye6b"); } // [B1, V7]
3665test { 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]
3666test { try toUnicodeFail("\xdf\x93\xe3\x80\x82\xe2\x80\x8c\xf0\x90\xab\x80\xf2\x9e\xad\xb1"); } // [B1, C1, V7]
3667test { try toUnicodeFail("xn--usb.xn--pw9ci1099a"); } // [B2, B3, V7]
3668test { try toUnicodeFail("xn--usb.xn--0ug9553gm3v5d"); } // [B1, C1, V7]
3669test { try toUnicodeFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\x95\xf3\xa0\x86\x96"); } // [B1, V6]
3670test { try toUnicodeFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\xb7\xf3\xa0\x86\x96"); } // [B1, V6]
3671test { try toUnicodeFail("xn--q1f4493q.xn--xcb8244fifvj"); } // [B1, V6]
3672test { try toUnicodeFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6\xef\xbc\x8e\xe2\x80\x8d"); } // [C2, V7]
3673test { try toUnicodeFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6.\xe2\x80\x8d"); } // [C2, V7]
3674test { try toUnicodeFail("xn--0on3543c5981i."); } // [V7]
3675test { try toUnicodeFail("xn--0on3543c5981i.xn--1ug"); } // [C2, V7]
3676test { 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]
3677test { 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]
3678test { try toUnicodeFail("xn--7m9an32q.xn--8,-qle"); } // [B3, B5, B6, V6, U1]
3679test { try toUnicodeFail("xn--0uga8686hdgvd.xn--8,-qle"); } // [B3, B5, B6, C1, V6, U1]
3680test { try toUnicodeFail("xn--7m9an32q.xn--rpb6081w"); } // [B5, B6, V6, V7]
3681test { try toUnicodeFail("xn--0uga8686hdgvd.xn--rpb6081w"); } // [B5, B6, C1, V6, V7]
3682test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3\xe2\x89\xaf"); } // [V7]
3683test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8"); } // [V7]
3684test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3\xe2\x89\xaf"); } // [X4_2]
3685test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3>\xcc\xb8"); } // [X4_2]
3686test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83>\xcc\xb8"); } // [X4_2]
3687test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83\xe2\x89\xaf"); } // [X4_2]
3688test { try toUnicodeFail("..xn--hdh782b"); } // [X4_2]
3689test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83>\xcc\xb8"); } // [V7]
3690test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83\xe2\x89\xaf"); } // [V7]
3691test { try toUnicodeFail("xn--y86c.xn--hdh782b"); } // [V7]
3692test { try toUnicodeFail("..xn--bnd622g"); } // [V7, X4_2]
3693test { try toUnicodeFail("xn--y86c.xn--bnd622g"); } // [V7]
3694test { try toUnicodeFail("\xf0\x90\xb9\xae\xef\xbd\xa1\xf3\xa0\xa2\xbc\xe2\x80\x8d"); } // [B1, C2, V7]
3695test { try toUnicodeFail("\xf0\x90\xb9\xae\xe3\x80\x82\xf3\xa0\xa2\xbc\xe2\x80\x8d"); } // [B1, C2, V7]
3696test { try toUnicodeFail("xn--mo0d.xn--wy46e"); } // [B1, V7]
3697test { try toUnicodeFail("xn--mo0d.xn--1ug18431l"); } // [B1, C2, V7]
3698test { 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]
3699test { 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]
3700test { 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]
3701test { 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]
3702test { try toUnicodeFail("xn--mlju223e..xn--eqb053q"); } // [B2, B3, B5, B6, X4_2]
3703test { try toUnicodeFail("xn--mlju223e..xn--eqb096jpgj"); } // [B2, B3, B5, B6, C2, X4_2]
3704test { 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]
3705test { 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]
3706test { try toUnicodeFail("xn--mlju223e.xn--eqb053qjk7l"); } // [B1, B5, B6, V7]
3707test { try toUnicodeFail("xn--mlju223e.xn--eqb096jpgj9y7r"); } // [B1, B5, B6, C2, V7]
3708test { try toUnicodeFail("xn--2nd0990k..xn--eqb053q"); } // [B2, B3, B5, B6, V7, X4_2]
3709test { try toUnicodeFail("xn--2nd0990k..xn--eqb096jpgj"); } // [B2, B3, B5, B6, C2, V7, X4_2]
3710test { try toUnicodeFail("xn--2nd0990k..xn--eqb228b"); } // [B2, B3, B5, B6, V7, X4_2]
3711test { try toUnicodeFail("xn--2nd0990k..xn--eqb228bgzm"); } // [B2, B3, B5, B6, C2, V7, X4_2]
3712test { try toUnicodeFail("xn--2nd0990k.xn--eqb053qjk7l"); } // [B1, B5, B6, V7]
3713test { try toUnicodeFail("xn--2nd0990k.xn--eqb096jpgj9y7r"); } // [B1, B5, B6, C2, V7]
3714test { try toUnicodeFail("xn--2nd0990k.xn--eqb228b583r"); } // [B1, B5, B6, V7]
3715test { try toUnicodeFail("xn--2nd0990k.xn--eqb228bgzmvp0t"); } // [B1, B5, B6, C2, V7]
3716test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa6\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3]
3717test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa63\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3]
3718test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x863\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3]
3719test { try toUnicodeFail("xn--3-lvs.xn-----vue617w"); } // [B1, V3]
3720test { try toUnicodeFail("xn--3-rgnv99c.xn-----vue617w"); } // [B1, C1, V3]
3721test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x86\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3]
3722test { try toUnicodeFail("xn--3-i0g.xn-----vue617w"); } // [B1, V3, V7]
3723test { try toUnicodeFail("xn--3-i0g939i.xn-----vue617w"); } // [B1, C1, V3, V7]
3724test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7]
3725test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7]
3726test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7]
3727test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7]
3728test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7]
3729test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7]
3730test { try toUnicodeFail("xn----4wsr321ay823p.xn----tfot873s"); } // [V7]
3731test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7]
3732test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7]
3733test { try toUnicodeFail("xn----11g3013fy8x5m.xn----tfot873s"); } // [V7]
1142test { try toUnicodePass("\xdf\xa5.\xda\xb5", "\xdf\xa5.\xda\xb5"); }3734test { try toUnicodePass("\xdf\xa5.\xda\xb5", "\xdf\xa5.\xda\xb5"); }
1143test { try toAsciiPass("\xdf\xa5.\xda\xb5", "xn--dtb.xn--okb", false); }3735test { try toAsciiPass("\xdf\xa5.\xda\xb5", "xn--dtb.xn--okb", false); }
1144test { try toAsciiPass("\xdf\xa5.\xda\xb5", "xn--dtb.xn--okb", true); }3736test { try toAsciiPass("\xdf\xa5.\xda\xb5", "xn--dtb.xn--okb", true); }
1145test { try toUnicodePass("xn--dtb.xn--okb", "\xdf\xa5.\xda\xb5"); }3737test { try toUnicodePass("xn--dtb.xn--okb", "\xdf\xa5.\xda\xb5"); }
1146test { try toAsciiPass("xn--dtb.xn--okb", "xn--dtb.xn--okb", false); }3738test { try toAsciiPass("xn--dtb.xn--okb", "xn--dtb.xn--okb", false); }
1147test { try toAsciiPass("xn--dtb.xn--okb", "xn--dtb.xn--okb", true); }3739test { try toAsciiPass("xn--dtb.xn--okb", "xn--dtb.xn--okb", true); }
3740test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\xbf"); } // [B1, C1, C2]
3741test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d"); } // [B1, C1, C2]
3742test { try toUnicodeFail(".xn--3e6h"); } // [X4_2]
3743test { try toUnicodeFail("xn--0ugc.xn--3e6h"); } // [B1, C1, C2]
1148test { try toUnicodePass("xn--3e6h", "\xf0\x9e\xa4\xbf"); }3744test { try toUnicodePass("xn--3e6h", "\xf0\x9e\xa4\xbf"); }
1149test { try toAsciiPass("xn--3e6h", "xn--3e6h", false); }3745test { try toAsciiPass("xn--3e6h", "xn--3e6h", false); }
1150test { try toAsciiPass("xn--3e6h", "xn--3e6h", true); }3746test { try toAsciiPass("xn--3e6h", "xn--3e6h", true); }
...@@ -1154,6 +3750,59 @@ test { try toAsciiPass("\xf0\x9e\xa4\xbf", "xn--3e6h", true); }...@@ -1154,6 +3750,59 @@ test { try toAsciiPass("\xf0\x9e\xa4\xbf", "xn--3e6h", true); }
1154test { try toUnicodePass("\xf0\x9e\xa4\x9d", "\xf0\x9e\xa4\xbf"); }3750test { try toUnicodePass("\xf0\x9e\xa4\x9d", "\xf0\x9e\xa4\xbf"); }
1155test { try toAsciiPass("\xf0\x9e\xa4\x9d", "xn--3e6h", false); }3751test { try toAsciiPass("\xf0\x9e\xa4\x9d", "xn--3e6h", false); }
1156test { try toAsciiPass("\xf0\x9e\xa4\x9d", "xn--3e6h", true); }3752test { try toAsciiPass("\xf0\x9e\xa4\x9d", "xn--3e6h", true); }
3753test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x82\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1]
3754test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xce\xa3\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1]
3755test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x83\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1]
3756test { try toUnicodeFail("xn--4gb3736kk4zf.xn--4xa2248dy27d"); } // [B1]
3757test { try toUnicodeFail("xn--4gb3736kk4zf.xn--3xa4248dy27d"); } // [B1]
3758test { 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]
3759test { try toUnicodeFail("\xf2\xab\xa0\x90\xe3\x82\xb9\xf4\x86\x9f\xa4\xd9\xa9.\xf3\x9a\x83\x9f"); } // [B5, B6, V7]
3760test { try toUnicodeFail("xn--iib777sp230oo708a.xn--7824e"); } // [B5, B6, V7]
3761test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
3762test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
3763test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
3764test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
3765test { try toUnicodeFail("xn--8c3hu7971a.xn--?-wec30g"); } // [B1, V6, V7, U1]
3766test { try toUnicodeFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
3767test { try toUnicodeFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
3768test { try toUnicodeFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
3769test { try toUnicodeFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
3770test { try toUnicodeFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1]
3771test { try toUnicodeFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1]
3772test { try toUnicodeFail("\xd9\xa0\xf2\xaa\x93\xb5\xe2\x80\x8c\xe3\x80\x82\xdd\x97"); } // [B1, C1, V7]
3773test { try toUnicodeFail("xn--8hb82030l.xn--bpb"); } // [B1, V7]
3774test { try toUnicodeFail("xn--8hb852ke991q.xn--bpb"); } // [B1, C1, V7]
3775test { try toUnicodeFail("\xe1\x80\xba\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82-\xe2\x80\x8c"); } // [C1, V3, V6]
3776test { try toUnicodeFail("xn--bkd.-"); } // [V3, V6]
3777test { try toUnicodeFail("xn--bkd412fca.xn----sgn"); } // [C1, V3, V6]
3778test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\xad\x84\xe1\xa1\x89"); } // [V6, V7]
3779test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\xad\x84\xe1\xa1\x89"); } // [V6, X4_2]
3780test { try toUnicodeFail("..xn--87e93m"); } // [V6, X4_2]
3781test { try toUnicodeFail("xn--y86c.xn--87e93m"); } // [V6, V7]
3782test { try toUnicodeFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5]
3783test { try toUnicodeFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5]
3784test { try toUnicodeFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5]
3785test { try toUnicodeFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5]
3786test { try toUnicodeFail("xn--ss-gke.xn--2-b5c641gfmf"); } // [B2, B3, B5]
3787test { try toUnicodeFail("xn--zca724a.xn--2-b5c641gfmf"); } // [B2, B3, B5]
3788test { try toUnicodeFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5]
3789test { try toUnicodeFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5]
3790test { try toUnicodeFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5]
3791test { try toUnicodeFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5]
3792test { 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]
3793test { try toUnicodeFail("\xdf\x83\xf0\x9e\xb6\x87\xe1\x9a\xb2.\xe0\xa4\x82\xcd\x932\xe0\xa7\x8d"); } // [B1, B2, B3, V6, V7]
3794test { try toUnicodeFail("xn--esb067enh07a.xn--2-lgb874bjxa"); } // [B1, B2, B3, V6, V7]
3795test { try toUnicodeFail("-\xe1\xae\xab\xef\xb8\x92\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93"); } // [C2, V3, V7]
3796test { try toUnicodeFail("-\xe1\xae\xab\xe3\x80\x82\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93"); } // [C2, V3, V7]
3797test { try toUnicodeFail("xn----qml..xn--x50zy803a"); } // [V3, V7, X4_2]
3798test { try toUnicodeFail("xn----qml.xn--1ug.xn--x50zy803a"); } // [C2, V3, V7]
3799test { try toUnicodeFail("xn----qml1407i.xn--x50zy803a"); } // [V3, V7]
3800test { try toUnicodeFail("xn----qmlv7tw180a.xn--x50zy803a"); } // [C2, V3, V7]
3801test { try toUnicodeFail("\xf3\xa0\xa6\xae.\xe2\x89\xaf\xf0\x9e\x80\x86"); } // [V7]
3802test { try toUnicodeFail("\xf3\xa0\xa6\xae.>\xcc\xb8\xf0\x9e\x80\x86"); } // [V7]
3803test { try toUnicodeFail("xn--t546e.xn--hdh5166o"); } // [V7]
3804test { try toUnicodeFail("-\xf0\x91\x84\xb3\xf3\xa0\x8a\x97\xf0\x90\xb9\xa9\xe3\x80\x82\xf0\x9e\xae\xb1"); } // [B1, V3, V7]
3805test { try toUnicodeFail("xn----p26i72em2894c.xn--zw6h"); } // [B1, V3, V7]
1157test { try toUnicodePass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "\xda\xb9.\xe1\xa1\xb3"); }3806test { try toUnicodePass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "\xda\xb9.\xe1\xa1\xb3"); }
1158test { try toAsciiPass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "xn--skb.xn--g9e", false); }3807test { try toAsciiPass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "xn--skb.xn--g9e", false); }
1159test { try toAsciiPass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "xn--skb.xn--g9e", true); }3808test { try toAsciiPass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "xn--skb.xn--g9e", true); }
...@@ -1166,12 +3815,32 @@ test { try toAsciiPass("xn--skb.xn--g9e", "xn--skb.xn--g9e", true); }...@@ -1166,12 +3815,32 @@ test { try toAsciiPass("xn--skb.xn--g9e", "xn--skb.xn--g9e", true); }
1166test { try toUnicodePass("\xda\xb9.\xe1\xa1\xb3", "\xda\xb9.\xe1\xa1\xb3"); }3815test { try toUnicodePass("\xda\xb9.\xe1\xa1\xb3", "\xda\xb9.\xe1\xa1\xb3"); }
1167test { try toAsciiPass("\xda\xb9.\xe1\xa1\xb3", "xn--skb.xn--g9e", false); }3816test { try toAsciiPass("\xda\xb9.\xe1\xa1\xb3", "xn--skb.xn--g9e", false); }
1168test { try toAsciiPass("\xda\xb9.\xe1\xa1\xb3", "xn--skb.xn--g9e", true); }3817test { try toAsciiPass("\xda\xb9.\xe1\xa1\xb3", "xn--skb.xn--g9e", true); }
3818test { try toUnicodeFail("xn--skb.xn--osd737a"); } // [V7]
3819test { try toUnicodeFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81"); } // [V7]
3820test { try toUnicodeFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xe3\x80\x827\xe0\xb4\x81"); } // [X4_2]
3821test { try toUnicodeFail("xn--mbm8237g..xn--7-7hf"); } // [X4_2]
3822test { try toUnicodeFail("xn--mbm8237g.xn--7-7hf1526p"); } // [V7]
3823test { 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]
3824test { 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]
3825test { 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]
3826test { 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]
3827test { 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]
3828test { 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]
3829test { try toUnicodeFail("xn----dxc06304e.xn--gdh5020pk5c"); } // [B1, B3, V3, V7]
3830test { 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]
3831test { 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]
1169test { 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); }3832test { 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); }
3833test { 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]
1170test { 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); }3834test { 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); }
3835test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6"); } // [C1]
1171test { 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); }3836test { 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); }
3837test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } // [C1]
1172test { 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); }3838test { 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); }
3839test { try toUnicodeFail("SS\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6"); } // [C1]
1173test { 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); }3840test { 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); }
3841test { try toUnicodeFail("ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } // [C1]
1174test { 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); }3842test { 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); }
3843test { try toUnicodeFail("Ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96"); } // [C1]
1175test { try toUnicodePass("xn--ss-4epx629f.xn--ifh802b6a", "ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); }3844test { try toUnicodePass("xn--ss-4epx629f.xn--ifh802b6a", "ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); }
1176test { try toAsciiPass("xn--ss-4epx629f.xn--ifh802b6a", "xn--ss-4epx629f.xn--ifh802b6a", false); }3845test { try toAsciiPass("xn--ss-4epx629f.xn--ifh802b6a", "xn--ss-4epx629f.xn--ifh802b6a", false); }
1177test { try toAsciiPass("xn--ss-4epx629f.xn--ifh802b6a", "xn--ss-4epx629f.xn--ifh802b6a", true); }3846test { try toAsciiPass("xn--ss-4epx629f.xn--ifh802b6a", "xn--ss-4epx629f.xn--ifh802b6a", true); }
...@@ -1184,10 +3853,104 @@ test { try toAsciiPass("SS\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\...@@ -1184,10 +3853,104 @@ test { try toAsciiPass("SS\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\
1184test { try toUnicodePass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); }3853test { try toUnicodePass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); }
1185test { try toAsciiPass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", false); }3854test { try toAsciiPass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", false); }
1186test { try toAsciiPass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }3855test { try toAsciiPass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); }
3856test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--ifh802b6a"); } // [C1]
3857test { try toUnicodeFail("xn--zca682johfi89m.xn--ifh802b6a"); } // [C1]
1187test { 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); }3858test { 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); }
3859test { 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]
1188test { 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); }3860test { 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); }
3861test { 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]
1189test { 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); }3862test { 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); }
3863test { 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]
1190test { 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); }3864test { 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); }
3865test { 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]
3866test { try toUnicodeFail("xn--ss-4epx629f.xn--5nd703gyrh"); } // [V7]
3867test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--5nd703gyrh"); } // [C1, V7]
3868test { try toUnicodeFail("xn--ss-4epx629f.xn--undv409k"); } // [V7]
3869test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--undv409k"); } // [C1, V7]
3870test { try toUnicodeFail("xn--zca682johfi89m.xn--undv409k"); } // [C1, V7]
3871test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x82\xf3\xa0\x81\x89"); } // [C2, V7]
3872test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xce\xa3\xf3\xa0\x81\x89"); } // [C2, V7]
3873test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x83\xf3\xa0\x81\x89"); } // [C2, V7]
3874test { try toUnicodeFail(".xn--4xa24344p"); } // [V7, X4_2]
3875test { try toUnicodeFail("xn--1ug.xn--4xa24344p"); } // [C2, V7]
3876test { try toUnicodeFail("xn--1ug.xn--3xa44344p"); } // [C2, V7]
3877test { try toUnicodeFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7]
3878test { try toUnicodeFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7]
3879test { try toUnicodeFail("\xf0\x9e\xb5\x91SS.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7]
3880test { try toUnicodeFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7]
3881test { try toUnicodeFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7]
3882test { try toUnicodeFail("xn--ss-2722a.xn----z3c03218a"); } // [B2, B3, V3, V7]
3883test { try toUnicodeFail("xn--ss-2722a.xn----z3c011q9513b"); } // [B2, B3, C2, V3, V7]
3884test { try toUnicodeFail("xn--zca5423w.xn----z3c011q9513b"); } // [B2, B3, C2, V3, V7]
3885test { try toUnicodeFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7]
3886test { try toUnicodeFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7]
3887test { 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]
3888test { 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]
3889test { 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]
3890test { try toUnicodeFail("xn--qb2ds317a.xn----k26iq1483f"); } // [B1, V3, V6, V7]
3891test { try toUnicodeFail("xn--1ugz808gdimf.xn----k26iq1483f"); } // [B1, C2, V3, V6, V7]
3892test { 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]
3893test { try toUnicodeFail("\xe2\x92\x92\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a"); } // [V3, V7]
3894test { try toUnicodeFail("11.\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a"); } // [V3, V7]
3895test { try toUnicodeFail("11.xn--uz1d59632bxujd.xn----x310m"); } // [V3, V7]
3896test { try toUnicodeFail("xn--3shy698frsu9dt1me.xn----x310m"); } // [V3, V7]
3897test { try toUnicodeFail("-\xef\xbd\xa1\xe2\x80\x8d"); } // [C2, V3]
3898test { try toUnicodeFail("-\xe3\x80\x82\xe2\x80\x8d"); } // [C2, V3]
3899test { try toUnicodeFail("-."); } // [V3]
3900test { try toUnicodeFail("-.xn--1ug"); } // [C2, V3]
3901test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?"); } // [U1]
3902test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?"); } // [U1]
3903test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x821-?"); } // [U1]
3904test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x821-?"); } // [U1]
3905test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xce\xa31-?"); } // [U1]
3906test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xce\xa31-?"); } // [U1]
3907test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x831-?"); } // [U1]
3908test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x831-?"); } // [U1]
3909test { try toUnicodeFail("xn--88e732c.xn--1-?-pzc"); } // [U1]
3910test { try toUnicodeFail("xn--88e732c.xn--1-?-lzc"); } // [U1]
3911test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?"); } // [U1]
3912test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?"); } // [U1]
3913test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?"); } // [U1]
3914test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?"); } // [U1]
3915test { try toUnicodeFail("xn--88e732c.\xcf\x831-?"); } // [U1]
3916test { try toUnicodeFail("XN--88E732C.\xce\xa31-?"); } // [U1]
3917test { try toUnicodeFail("xn--88e732c.\xcf\x821-?"); } // [U1]
3918test { try toUnicodeFail("Xn--88e732c.\xcf\x821-?"); } // [U1]
3919test { try toUnicodeFail("Xn--88e732c.\xcf\x831-?"); } // [U1]
3920test { 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]
3921test { try toUnicodeFail("\xe1\x89\xac\xf2\x94\xa0\xbc\xf1\x81\x97\xb6\xe3\x80\x82\xf0\x90\xa8\xac8"); } // [V7]
3922test { try toUnicodeFail("xn--d0d41273c887z.xn--8-ob5i"); } // [V7]
3923test { try toUnicodeFail("\xf0\x90\xb1\xb2\xe3\x80\x82\xe8\x94\xab\xdd\xa6"); } // [B5, B6, V7]
3924test { try toUnicodeFail("xn--389c.xn--qpb7055d"); } // [B5, B6, V7]
3925test { 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]
3926test { 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]
3927test { try toUnicodeFail("xn--3-ep59g.xn--jhb5904fcp0h"); } // [B5, B6, V7]
3928test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.\xc3\x9f"); } // [B5, B6]
3929test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.\xc3\x9f"); } // [B5, B6]
3930test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.SS"); } // [B5, B6]
3931test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.SS"); } // [B5, B6]
3932test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.ss"); } // [B5, B6]
3933test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.ss"); } // [B5, B6]
3934test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.Ss"); } // [B5, B6]
3935test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.Ss"); } // [B5, B6]
3936test { try toUnicodeFail("xn--ehb015lnt1e.ss"); } // [B5, B6]
3937test { try toUnicodeFail("xn--ehb015lnt1e.xn--zca"); } // [B5, B6]
3938test { 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]
3939test { 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]
3940test { try toUnicodeFail("xn--3-prc71ls9j..xn--xo0dw109an237f"); } // [B1, V7, X4_2]
3941test { try toUnicodeFail("xn--3-prc71ls9j..xn--0ug3205g7eyf3c96h"); } // [B1, C1, V7, X4_2]
3942test { try toUnicodeFail("xn--zib94gfziuq1a.xn--xo0dw109an237f"); } // [B1, V7]
3943test { try toUnicodeFail("xn--zib94gfziuq1a.xn--0ug3205g7eyf3c96h"); } // [B1, C1, V7]
3944test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99"); } // [C2, V3]
3945test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99"); } // [C2, V3]
3946test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99"); } // [C2, V3]
3947test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99"); } // [C2, V3]
3948test { try toUnicodeFail("xn----zmb.xn--rlj2573p"); } // [V3]
3949test { try toUnicodeFail("xn----zmb048s.xn--rlj2573p"); } // [C2, V3]
3950test { try toUnicodeFail("xn----xmb348s.xn--rlj2573p"); } // [C2, V3]
3951test { try toUnicodeFail("xn----zmb.xn--7nd64871a"); } // [V3, V7]
3952test { try toUnicodeFail("xn----zmb048s.xn--7nd64871a"); } // [C2, V3, V7]
3953test { try toUnicodeFail("xn----xmb348s.xn--7nd64871a"); } // [C2, V3, V7]
1191test { try toUnicodePass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "\xe2\x89\xa0.\xf0\x9f\x9e\xb36"); }3954test { try toUnicodePass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "\xe2\x89\xa0.\xf0\x9f\x9e\xb36"); }
1192test { try toAsciiPass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "xn--1ch.xn--6-dl4s", false); }3955test { try toAsciiPass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "xn--1ch.xn--6-dl4s", false); }
1193test { try toAsciiPass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "xn--1ch.xn--6-dl4s", true); }3956test { try toAsciiPass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "xn--1ch.xn--6-dl4s", true); }
...@@ -1209,14 +3972,207 @@ test { try toAsciiPass("\xe2\x89\xa0.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", t...@@ -1209,14 +3972,207 @@ test { try toAsciiPass("\xe2\x89\xa0.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", t
1209test { try toUnicodePass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "\xe2\x89\xa0.\xf0\x9f\x9e\xb36"); }3972test { try toUnicodePass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "\xe2\x89\xa0.\xf0\x9f\x9e\xb36"); }
1210test { try toAsciiPass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", false); }3973test { try toAsciiPass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", false); }
1211test { try toAsciiPass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", true); }3974test { try toAsciiPass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", true); }
3975test { try toUnicodeFail("\xf3\x85\xac\xbd.\xe8\xa0\x94"); } // [V7]
3976test { try toUnicodeFail("xn--g747d.xn--xl2a"); } // [V7]
3977test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xeb\xbc\xbd"); } // [C2, V6]
3978test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80"); } // [C2, V6]
3979test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d.\xeb\xbc\xbd"); } // [C2, V6]
3980test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d.\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80"); } // [C2, V6]
3981test { try toUnicodeFail("xn--p0b.xn--e43b"); } // [V6]
3982test { try toUnicodeFail("xn--p0b869i.xn--e43b"); } // [C2, V6]
3983test { 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]
3984test { 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]
3985test { try toUnicodeFail("xn--7-rwc839aj3073c.xn----ymc5uv818oghka"); } // [B1, V7]
3986test { try toUnicodeFail("-\xef\xbd\xa1\xdd\xbb"); } // [B1, V3]
3987test { try toUnicodeFail("-\xe3\x80\x82\xdd\xbb"); } // [B1, V3]
3988test { try toUnicodeFail("-.xn--cqb"); } // [B1, V3]
3989test { 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]
3990test { 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]
3991test { try toUnicodeFail("xn--8d1dg030h.-1.xn--1nb7163f"); } // [B1, B5, B6, V3, V6, V7]
3992test { try toUnicodeFail("xn--8d1dg030h.xn----u1c466tp10j"); } // [B1, V3, V6, V7]
3993test { try toUnicodeFail("\xe7\x92\x9b\xe1\x9c\xb4\xda\xaf.-"); } // [B1, B5, B6, V3]
3994test { try toUnicodeFail("xn--ikb175frt4e.-"); } // [B1, B5, B6, V3]
3995test { 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]
3996test { 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]
3997test { 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]
3998test { 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]
3999test { try toUnicodeFail("xn--qyb07fj857a.xn--728bv72h"); } // [B1, B2, B3]
4000test { try toUnicodeFail("\xf1\x8d\xa8\xbd\xef\xbc\x8e\xf1\x8b\xb8\x95"); } // [V7]
4001test { try toUnicodeFail("\xf1\x8d\xa8\xbd.\xf1\x8b\xb8\x95"); } // [V7]
4002test { try toUnicodeFail("xn--pr3x.xn--rv7w"); } // [V7]
4003test { 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]
4004test { 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]
4005test { 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]
4006test { 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]
4007test { 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]
4008test { try toUnicodeFail("xn--2ib0338v.xn----zvs0199fo91g"); } // [B1, V3, V6]
4009test { 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]
4010test { 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]
4011test { 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]
4012test { try toUnicodeFail("xn--2ib0338v.xn----w0g2740ro9vg"); } // [B1, V3, V6, V7]
4013test { 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]
4014test { 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]
4015test { 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]
4016test { try toUnicodeFail("xn--039c42bq865a.xn--4-wvs27840bnrzm"); } // [V7]
4017test { 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]
4018test { try toUnicodeFail("xn--039c42bq865a.xn--4-t0g49302fnrzm"); } // [V7]
4019test { try toUnicodeFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.\xe2\x89\xa0"); } // [B1, V7]
4020test { try toUnicodeFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.=\xcc\xb8"); } // [B1, V7]
4021test { try toUnicodeFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.\xe2\x89\xa0"); } // [B1, V7]
4022test { try toUnicodeFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.=\xcc\xb8"); } // [B1, V7]
4023test { try toUnicodeFail("xn--4-kvc.xn--5136e.xn--1ch"); } // [B1, V7]
4024test { try toUnicodeFail("xn--4-kvc5601q2h50i.xn--1ch"); } // [B1, V7]
4025test { try toUnicodeFail("\xf0\x9d\x9f\x93\xe3\x80\x82\xdb\x97"); } // [V6]
4026test { try toUnicodeFail("5\xe3\x80\x82\xdb\x97"); } // [V6]
4027test { try toUnicodeFail("5.xn--nlb"); } // [V6]
4028test { try toUnicodeFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe2\xbe\x95"); } // [C1, V7]
4029test { try toUnicodeFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe8\xb0\xb7"); } // [C1, V7]
4030test { try toUnicodeFail("xn--i183d.xn--6g3a"); } // [V7]
4031test { try toUnicodeFail("xn--0ug26167i.xn--6g3a"); } // [C1, V7]
4032test { try toUnicodeFail("\xef\xb8\x92\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c"); } // [C1, C2, V3, V7]
4033test { try toUnicodeFail("\xe3\x80\x82\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c"); } // [C1, C2, V3, V7, X4_2]
4034test { try toUnicodeFail(".xn--hh50e.xn----t2c"); } // [V3, V7, X4_2]
4035test { try toUnicodeFail(".xn--1ug05310k.xn----t2c071q"); } // [C1, C2, V3, V7, X4_2]
4036test { try toUnicodeFail("xn--y86c71305c.xn----t2c"); } // [V3, V7]
4037test { try toUnicodeFail("xn--1ug1658ftw26f.xn----t2c071q"); } // [C1, C2, V3, V7]
4038test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8"); } // [B1]
4039test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8"); } // [B1]
4040test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8"); } // [B1]
4041test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8"); } // [B1]
4042test { try toUnicodeFail("xn--hdhz520p.xn--48e"); } // [B1]
4043test { try toUnicodeFail("\xe0\xbd\xb4\xf0\xab\xab\xb0\xf0\x9d\xa8\x84\xe3\x80\x82\xdc\x93\xf0\x90\xb9\xa6"); } // [B1, V6]
4044test { try toUnicodeFail("xn--ned8985uo92e.xn--dnb6395k"); } // [B1, V6]
4045test { try toUnicodeFail("\xcc\xbc\xdf\x9b\xe2\x81\xb7\xf0\x9d\x9f\xb9\xef\xbd\xa1\xf0\x9d\x9f\xac"); } // [B1, V6]
4046test { try toUnicodeFail("\xcc\xbc\xdf\x9b73\xe3\x80\x820"); } // [B1, V6]
4047test { try toUnicodeFail("xn--73-9yb648b.a"); } // [B1, V6]
4048test { try toUnicodeFail("\xe2\x80\x8d\xef\xbc\x8e\xf0\x9d\x9f\x97"); } // [C2]
4049test { try toUnicodeFail("\xe2\x80\x8d.j"); } // [C2]
4050test { try toUnicodeFail("\xe2\x80\x8d.J"); } // [C2]
4051test { try toUnicodeFail(".j"); } // [X4_2]
4052test { try toUnicodeFail("xn--1ug.j"); } // [C2]
1212test { try toUnicodePass("j", "j"); }4053test { try toUnicodePass("j", "j"); }
1213test { try toAsciiPass("j", "j", false); }4054test { try toAsciiPass("j", "j", false); }
1214test { try toAsciiPass("j", "j", true); }4055test { try toAsciiPass("j", "j", true); }
4056test { try toUnicodeFail("\xdd\xb9\xe1\xa1\xad\xf0\xaa\x95\x88\xe3\x80\x82\xda\xb6\xe0\xa3\x99"); } // [B2, B3]
4057test { try toUnicodeFail("xn--9pb497fs270c.xn--pkb80i"); } // [B2, B3]
4058test { 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]
4059test { 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]
4060test { try toUnicodeFail("\xdc\xa65\xdf\xa2\xea\xb2\x99\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a"); } // [B1, B2, B3, V6, V7]
4061test { 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]
4062test { try toUnicodeFail("xn--5-j1c97c2483c.xn--e7f2093h"); } // [B1, B2, B3, V6, V7]
4063test { 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]
4064test { 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]
4065test { try toUnicodeFail("xn--5cb172r175fug38a.xn--mlj"); } // [V7]
4066test { try toUnicodeFail("xn--5cb172r175fug38a.xn--0uga051h"); } // [C1, V7]
4067test { try toUnicodeFail("xn--5cb347co96jug15a.xn--2nd"); } // [V7]
4068test { try toUnicodeFail("xn--5cb347co96jug15a.xn--2nd059ea"); } // [C1, V7]
4069test { try toUnicodeFail("\xf0\x90\x8b\xb0\xe3\x80\x82\xf3\x91\x93\xb1"); } // [V7]
4070test { try toUnicodeFail("xn--k97c.xn--q031e"); } // [V7]
4071test { try toUnicodeFail("\xf3\xa1\x8e\xa6\xe1\x9e\xb4\xe0\xad\x8d.\xf0\x90\xb9\xbe"); } // [B1, V7]
4072test { try toUnicodeFail("xn--9ic59305p.xn--2o0d"); } // [B1, V7]
4073test { try toUnicodeFail("xn--9ic364dho91z.xn--2o0d"); } // [B1, V7]
4074test { 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]
4075test { 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]
4076test { 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]
4077test { 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]
4078test { 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]
4079test { 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]
4080test { try toUnicodeFail("xn--i0b436pkl2g2h42a.xn--0-8le8997mulr5f"); } // [V6, V7]
4081test { 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]
4082test { 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]
4083test { try toUnicodeFail("xn--i0b601b6r7l2hs0a.xn--0-8le8997mulr5f"); } // [V6, V7]
4084test { try toUnicodeFail("\xde\x84\xef\xbc\x8e\xf0\x9e\xa1\x9d\xd8\x81"); } // [V7]
4085test { try toUnicodeFail("\xde\x84.\xf0\x9e\xa1\x9d\xd8\x81"); } // [V7]
4086test { try toUnicodeFail("xn--lqb.xn--jfb1808v"); } // [V7]
4087test { try toUnicodeFail("\xe0\xab\x8d\xe2\x82\x83.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4"); } // [V6]
4088test { try toUnicodeFail("\xe0\xab\x8d3.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4"); } // [V6]
4089test { try toUnicodeFail("xn--3-yke.xn--8-sl4et308f"); } // [V6]
4090test { try toUnicodeFail("xn--3-yke.xn--8-ugnv982dbkwm"); } // [V6]
4091test { 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]
4092test { 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]
4093test { 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]
4094test { 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]
4095test { try toUnicodeFail("xn--fax-4c9a1676t.xn--6e6h"); } // [B6]
4096test { 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]
4097test { 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]
4098test { 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]
4099test { try toUnicodeFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6]
4100test { try toUnicodeFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0"); } // [B6]
4101test { try toUnicodeFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0"); } // [B6]
4102test { try toUnicodeFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6]
4103test { try toUnicodeFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6]
4104test { 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]
4105test { 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]
4106test { 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]
4107test { 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]
4108test { try toUnicodeFail("xn--cld333gn31h0158l.xn--3g0d"); } // [V7]
4109test { try toUnicodeFail("xn--cld333gn31h0158l.xn--psd1510k"); } // [B2, B3, V7]
4110test { try toUnicodeFail("xn--cld333gn31h0158l.xn--cl7c96v"); } // [B2, B3, V7]
4111test { try toUnicodeFail("\xe9\xb1\x8a\xe3\x80\x82\xe2\x80\x8c"); } // [C1]
1215test { try toUnicodePass("xn--rt6a.", "\xe9\xb1\x8a."); }4112test { try toUnicodePass("xn--rt6a.", "\xe9\xb1\x8a."); }
1216test { try toUnicodePass("\xe9\xb1\x8a.", "\xe9\xb1\x8a."); }4113test { try toUnicodePass("\xe9\xb1\x8a.", "\xe9\xb1\x8a."); }
4114test { try toUnicodeFail("xn--rt6a.xn--0ug"); } // [C1]
4115test { try toUnicodeFail("8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x91\x8d\xa8"); } // [B1, V6]
4116test { try toUnicodeFail("8\xf0\x90\xb9\xa3.\xf0\x91\x8d\xa8"); } // [B1, V6]
4117test { try toUnicodeFail("xn--8-d26i.xn--0p1d"); } // [B1, V6]
4118test { try toUnicodeFail("\xe2\x8f\xb9\xf0\x90\xa7\x80\xef\xbc\x8e\xf0\x90\xab\xaf"); } // [B1]
4119test { try toUnicodeFail("\xe2\x8f\xb9\xf0\x90\xa7\x80.\xf0\x90\xab\xaf"); } // [B1]
4120test { try toUnicodeFail("xn--qoh9161g.xn--1x9c"); } // [B1]
4121test { try toUnicodeFail("\xf0\x9e\xa4\xba\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d"); } // [B1, C2]
4122test { try toUnicodeFail("\xf0\x9e\xa4\xba\xdf\x8c4.\xe2\x80\x8d"); } // [B1, C2]
4123test { try toUnicodeFail("\xf0\x9e\xa4\x98\xdf\x8c4.\xe2\x80\x8d"); } // [B1, C2]
1217test { try toUnicodePass("xn--4-0bd15808a.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }4124test { try toUnicodePass("xn--4-0bd15808a.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }
1218test { try toUnicodePass("\xf0\x9e\xa4\xba\xdf\x8c4.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }4125test { try toUnicodePass("\xf0\x9e\xa4\xba\xdf\x8c4.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }
1219test { try toUnicodePass("\xf0\x9e\xa4\x98\xdf\x8c4.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }4126test { try toUnicodePass("\xf0\x9e\xa4\x98\xdf\x8c4.", "\xf0\x9e\xa4\xba\xdf\x8c4."); }
4127test { try toUnicodeFail("xn--4-0bd15808a.xn--1ug"); } // [B1, C2]
4128test { try toUnicodeFail("\xf0\x9e\xa4\x98\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d"); } // [B1, C2]
4129test { try toUnicodeFail("\xe2\x92\x97\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2"); } // [B1, V3, V7]
4130test { try toUnicodeFail("16.\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2"); } // [B1, V3, V6, V7]
4131test { try toUnicodeFail("16.xn----z0d801p.xn--l0b810j"); } // [B1, V3, V6, V7]
4132test { try toUnicodeFail("xn----z0d801p6kd.xn--l0b810j"); } // [B1, V3, V7]
4133test { try toUnicodeFail("-\xef\xbd\xa1\xe4\x8f\x9b"); } // [V3]
4134test { try toUnicodeFail("-\xe3\x80\x82\xe4\x8f\x9b"); } // [V3]
4135test { try toUnicodeFail("-.xn--xco"); } // [V3]
4136test { try toUnicodeFail("\xe2\x80\x8c\xf1\x92\x83\xa0\xef\xbc\x8e\xe2\x80\x8d"); } // [C1, C2, V7]
4137test { try toUnicodeFail("\xe2\x80\x8c\xf1\x92\x83\xa0.\xe2\x80\x8d"); } // [C1, C2, V7]
4138test { try toUnicodeFail("xn--dj8y."); } // [V7]
4139test { try toUnicodeFail("xn--0ugz7551c.xn--1ug"); } // [C1, C2, V7]
4140test { 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]
4141test { 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]
4142test { 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]
4143test { try toUnicodeFail("1.xn--svh00804k.xn--dljv223ee5t2d"); } // [B1, V7]
4144test { try toUnicodeFail("1.xn--svh00804k.xn--1ug352csp0psg45e"); } // [B1, C2, V7]
4145test { 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]
4146test { try toUnicodeFail("xn--tsh0nz9380h.xn--dljv223ee5t2d"); } // [B1, V7]
4147test { try toUnicodeFail("xn--tsh0nz9380h.xn--1ug352csp0psg45e"); } // [B1, C2, V7]
4148test { try toUnicodeFail("1.xn--svh00804k.xn--tnd1990ke579c"); } // [B1, V7]
4149test { try toUnicodeFail("1.xn--svh00804k.xn--tnd969erj4psgl3e"); } // [B1, C2, V7]
4150test { try toUnicodeFail("xn--tsh0nz9380h.xn--tnd1990ke579c"); } // [B1, V7]
4151test { try toUnicodeFail("xn--tsh0nz9380h.xn--tnd969erj4psgl3e"); } // [B1, C2, V7]
4152test { 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]
4153test { 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]
4154test { 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]
4155test { 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]
4156test { 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]
4157test { try toUnicodeFail("xn---ss-21t18904a.xn--jfb197i791bi6x4c"); } // [B1, B2, B3, V6, V7]
4158test { try toUnicodeFail("xn----qfa310pg973b.xn--jfb197i791bi6x4c"); } // [B1, B2, B3, V6, V7]
4159test { 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]
4160test { 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]
4161test { 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]
4162test { try toUnicodeFail("\xf0\x91\x87\x80.\xf3\xa0\xa8\xb1"); } // [V6, V7]
4163test { try toUnicodeFail("xn--wd1d.xn--k946e"); } // [V6, V7]
4164test { 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]
4165test { try toUnicodeFail("\xe2\x90\x923\xda\x88\xe3\x80\x820\xf0\x90\xa8\xbf\xf0\x90\xb9\x86"); } // [B1, V7]
4166test { try toUnicodeFail("xn--3-jsc897t.xn--0-sc5iy3h"); } // [B1, V7]
4167test { try toUnicodeFail("\xdd\xab\xef\xbc\x96\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3"); } // [B1, V6]
4168test { try toUnicodeFail("\xdd\xab6\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3"); } // [B1, V6]
4169test { try toUnicodeFail("xn--6-h5c06gj6c.xn--7eg"); } // [B1, V6]
4170test { 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]
4171test { 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]
4172test { try toUnicodeFail("xn----0kc8501a5399e.xn--ss06b"); } // [B1, V7]
4173test { try toUnicodeFail("xn----0kc8501a5399e.xn--1ugy3204f"); } // [B1, B6, C2, V7]
4174test { try toUnicodeFail("xn----0kc662fc152h.xn--ss06b"); } // [B1, V7]
4175test { try toUnicodeFail("xn----0kc662fc152h.xn--1ugy3204f"); } // [B1, B6, C2, V7]
1220test { 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"); }4176test { 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"); }
1221test { 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); }4177test { 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); }
1222test { 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); }4178test { 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); }
...@@ -1271,6 +4227,15 @@ test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95>\xcc\xb...@@ -1271,6 +4227,15 @@ test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95>\xcc\xb
1271test { try toUnicodePass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "\xe8\x88\x8c.\xea\xa1\x885\xe2\x89\xafss"); }4227test { try toUnicodePass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "\xe8\x88\x8c.\xea\xa1\x885\xe2\x89\xafss"); }
1272test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "xn--tc1a.xn--5ss-3m2a5009e", false); }4228test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "xn--tc1a.xn--5ss-3m2a5009e", false); }
1273test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "xn--tc1a.xn--5ss-3m2a5009e", true); }4229test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "xn--tc1a.xn--5ss-3m2a5009e", true); }
4230test { try toUnicodeFail("\xe0\xab\x8d8\xe2\x80\x8d\xef\xbc\x8e\xf2\xbe\x82\x88\xdd\x9c"); } // [B1, B5, B6, C2, V6, V7]
4231test { try toUnicodeFail("\xe0\xab\x8d8\xe2\x80\x8d.\xf2\xbe\x82\x88\xdd\x9c"); } // [B1, B5, B6, C2, V6, V7]
4232test { try toUnicodeFail("xn--8-yke.xn--gpb79046m"); } // [B1, B5, B6, V6, V7]
4233test { try toUnicodeFail("xn--8-yke534n.xn--gpb79046m"); } // [B1, B5, B6, C2, V6, V7]
4234test { 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]
4235test { 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]
4236test { 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]
4237test { 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]
4238test { try toUnicodeFail("xn--ycc893jqh38rb6fa.xn--7-5uc53836ixt41c"); } // [B5, B6, V7]
1274test { try toUnicodePass("\xf0\x9e\xa4\xaa.\xcf\x82", "\xf0\x9e\xa4\xaa.\xcf\x82"); }4239test { try toUnicodePass("\xf0\x9e\xa4\xaa.\xcf\x82", "\xf0\x9e\xa4\xaa.\xcf\x82"); }
1275test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xcf\x82", "xn--ie6h.xn--3xa", false); }4240test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xcf\x82", "xn--ie6h.xn--3xa", false); }
1276test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xcf\x82", "xn--ie6h.xn--4xa", true); }4241test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xcf\x82", "xn--ie6h.xn--4xa", true); }
...@@ -1296,10 +4261,15 @@ test { try toUnicodePass("\xf0\x9e\xa4\xaa.\xce\xa3", "\xf0\x9e\xa4\xaa.\xcf\x83...@@ -1296,10 +4261,15 @@ test { try toUnicodePass("\xf0\x9e\xa4\xaa.\xce\xa3", "\xf0\x9e\xa4\xaa.\xcf\x83
1296test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xce\xa3", "xn--ie6h.xn--4xa", false); }4261test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xce\xa3", "xn--ie6h.xn--4xa", false); }
1297test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xce\xa3", "xn--ie6h.xn--4xa", true); }4262test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xce\xa3", "xn--ie6h.xn--4xa", true); }
1298test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xcf\x82", "xn--ilj.xn--4xa", true); }4263test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xcf\x82", "xn--ilj.xn--4xa", true); }
4264test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xcf\x82"); } // [C1]
1299test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xcf\x82", "xn--ilj.xn--4xa", true); }4265test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xcf\x82", "xn--ilj.xn--4xa", true); }
4266test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xcf\x82"); } // [C1]
1300test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x82", "xn--ilj.xn--4xa", true); }4267test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x82", "xn--ilj.xn--4xa", true); }
4268test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x82"); } // [C1]
1301test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xce\xa3", "xn--ilj.xn--4xa", true); }4269test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xce\xa3", "xn--ilj.xn--4xa", true); }
4270test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xce\xa3"); } // [C1]
1302test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x83", "xn--ilj.xn--4xa", true); }4271test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x83", "xn--ilj.xn--4xa", true); }
4272test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x83"); } // [C1]
1303test { try toUnicodePass("xn--ilj.xn--4xa", "\xe2\xb4\x9a.\xcf\x83"); }4273test { try toUnicodePass("xn--ilj.xn--4xa", "\xe2\xb4\x9a.\xcf\x83"); }
1304test { try toAsciiPass("xn--ilj.xn--4xa", "xn--ilj.xn--4xa", false); }4274test { try toAsciiPass("xn--ilj.xn--4xa", "xn--ilj.xn--4xa", false); }
1305test { try toAsciiPass("xn--ilj.xn--4xa", "xn--ilj.xn--4xa", true); }4275test { try toAsciiPass("xn--ilj.xn--4xa", "xn--ilj.xn--4xa", true); }
...@@ -1321,9 +4291,49 @@ test { try toAsciiPass("xn--ilj.xn--3xa", "xn--ilj.xn--3xa", true); }...@@ -1321,9 +4291,49 @@ test { try toAsciiPass("xn--ilj.xn--3xa", "xn--ilj.xn--3xa", true); }
1321test { try toUnicodePass("\xe1\x82\xba.\xcf\x83", "\xe2\xb4\x9a.\xcf\x83"); }4291test { try toUnicodePass("\xe1\x82\xba.\xcf\x83", "\xe2\xb4\x9a.\xcf\x83"); }
1322test { try toAsciiPass("\xe1\x82\xba.\xcf\x83", "xn--ilj.xn--4xa", false); }4292test { try toAsciiPass("\xe1\x82\xba.\xcf\x83", "xn--ilj.xn--4xa", false); }
1323test { try toAsciiPass("\xe1\x82\xba.\xcf\x83", "xn--ilj.xn--4xa", true); }4293test { try toAsciiPass("\xe1\x82\xba.\xcf\x83", "xn--ilj.xn--4xa", true); }
4294test { try toUnicodeFail("xn--0ug262c.xn--4xa"); } // [C1]
4295test { try toUnicodeFail("xn--0ug262c.xn--3xa"); } // [C1]
1324test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x82", "xn--ilj.xn--4xa", true); }4296test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x82", "xn--ilj.xn--4xa", true); }
4297test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x82"); } // [C1]
1325test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xce\xa3", "xn--ilj.xn--4xa", true); }4298test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xce\xa3", "xn--ilj.xn--4xa", true); }
4299test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xce\xa3"); } // [C1]
1326test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x83", "xn--ilj.xn--4xa", true); }4300test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x83", "xn--ilj.xn--4xa", true); }
4301test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x83"); } // [C1]
4302test { try toUnicodeFail("xn--ynd.xn--4xa"); } // [V7]
4303test { try toUnicodeFail("xn--ynd.xn--3xa"); } // [V7]
4304test { try toUnicodeFail("xn--ynd759e.xn--4xa"); } // [C1, V7]
4305test { try toUnicodeFail("xn--ynd759e.xn--3xa"); } // [C1, V7]
4306test { try toUnicodeFail("\xf0\x9e\xa4\x83\xef\xbc\x8e\xf0\x90\xb9\xa6"); } // [B1]
4307test { try toUnicodeFail("\xf0\x9e\xa4\x83.\xf0\x90\xb9\xa6"); } // [B1]
4308test { try toUnicodeFail("\xf0\x9e\xa4\xa5.\xf0\x90\xb9\xa6"); } // [B1]
4309test { try toUnicodeFail("xn--de6h.xn--eo0d"); } // [B1]
4310test { try toUnicodeFail("\xf0\x9e\xa4\xa5\xef\xbc\x8e\xf0\x90\xb9\xa6"); } // [B1]
4311test { try toUnicodeFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xcc\x90\xea\xa5\x93\xea\xa1\x8e"); } // [C1, C2]
4312test { try toUnicodeFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e"); } // [C1, C2]
4313test { try toUnicodeFail("\xe2\x80\x8d\xe8\xb0\xb7\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e"); } // [C1, C2]
4314test { try toUnicodeFail("xn--6g3a.xn--0sa8175flwa"); } // [V6]
4315test { try toUnicodeFail("xn--1ug0273b.xn--0sa359l6n7g13a"); } // [C1, C2]
4316test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1]
4317test { 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]
4318test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1]
4319test { try toUnicodeFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1]
4320test { try toUnicodeFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1]
4321test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1]
4322test { try toUnicodeFail("xn----guc3592k.xn--qe6h"); } // [B2, B3]
4323test { try toUnicodeFail("xn----guc3592k.xn--0ug7611p"); } // [B2, B3, C1]
4324test { 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]
4325test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1]
4326test { 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]
4327test { 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]
4328test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
4329test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
4330test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7]
4331test { try toUnicodeFail("xn--5-0mb988ng603j.xn--fob7kk44dl41k"); } // [B1, V6, V7]
4332test { try toUnicodeFail("xn--5-ymb298ng603j.xn--fob7kk44dl41k"); } // [B1, V6, V7]
4333test { 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]
4334test { 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]
4335test { 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]
4336test { 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]
1327test { try toUnicodePass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "\xe6\xb7\xbd.\xe1\xa0\xbe"); }4337test { try toUnicodePass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "\xe6\xb7\xbd.\xe1\xa0\xbe"); }
1328test { try toAsciiPass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "xn--34w.xn--x7e", false); }4338test { try toAsciiPass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "xn--34w.xn--x7e", false); }
1329test { try toAsciiPass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "xn--34w.xn--x7e", true); }4339test { try toAsciiPass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "xn--34w.xn--x7e", true); }
...@@ -1333,6 +4343,237 @@ test { try toAsciiPass("xn--34w.xn--x7e", "xn--34w.xn--x7e", true); }...@@ -1333,6 +4343,237 @@ test { try toAsciiPass("xn--34w.xn--x7e", "xn--34w.xn--x7e", true); }
1333test { try toUnicodePass("\xe6\xb7\xbd.\xe1\xa0\xbe", "\xe6\xb7\xbd.\xe1\xa0\xbe"); }4343test { try toUnicodePass("\xe6\xb7\xbd.\xe1\xa0\xbe", "\xe6\xb7\xbd.\xe1\xa0\xbe"); }
1334test { try toAsciiPass("\xe6\xb7\xbd.\xe1\xa0\xbe", "xn--34w.xn--x7e", false); }4344test { try toAsciiPass("\xe6\xb7\xbd.\xe1\xa0\xbe", "xn--34w.xn--x7e", false); }
1335test { try toAsciiPass("\xe6\xb7\xbd.\xe1\xa0\xbe", "xn--34w.xn--x7e", true); }4345test { try toAsciiPass("\xe6\xb7\xbd.\xe1\xa0\xbe", "xn--34w.xn--x7e", true); }
4346test { try toUnicodeFail("\xf0\x90\xb9\xb4\xf0\x91\x98\xb7\xe3\x80\x82-"); } // [B1, V3]
4347test { try toUnicodeFail("xn--so0do6k.-"); } // [B1, V3]
4348test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8"); } // [V6, V7]
4349test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8"); } // [V6, V7]
4350test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8"); } // [V6, V7]
4351test { try toUnicodeFail("xn--8di78qvw32y.xn--k80d"); } // [V6, V7]
4352test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8"); } // [V6, V7]
4353test { try toUnicodeFail("xn--rnd896i0j14q.xn--k80d"); } // [V6, V7]
4354test { 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]
4355test { 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]
4356test { 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]
4357test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82SS\xe1\x82\xa3"); } // [B1, C1]
4358test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83"); } // [B1, C1]
4359test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82Ss\xe2\xb4\x83"); } // [B1, C1]
4360test { try toUnicodeFail("xn--ykj9323eegwf.xn--ss-151a"); } // [B1]
4361test { try toUnicodeFail("xn--0ug332c3q0pr56g.xn--ss-151a"); } // [B1, C1]
4362test { try toUnicodeFail("xn--0ug332c3q0pr56g.xn--zca417t"); } // [B1, C1]
4363test { 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]
4364test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1SS\xe1\x82\xa3"); } // [B1, C1]
4365test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83"); } // [B1, C1]
4366test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1Ss\xe2\xb4\x83"); } // [B1, C1]
4367test { try toUnicodeFail("xn--fnd1201kegrf.xn--ss-fek"); } // [B1, V7]
4368test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--ss-fek"); } // [B1, C1, V7]
4369test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--zca681f"); } // [B1, C1, V7]
4370test { 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]
4371test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83"); } // [B1, C1]
4372test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82Ss\xe2\xb4\x83"); } // [B1, C1]
4373test { try toUnicodeFail("xn--fnd1201kegrf.xn--ss-151a"); } // [B1, V7]
4374test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--ss-151a"); } // [B1, C1, V7]
4375test { 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]
4376test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83"); } // [B1, C1]
4377test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1Ss\xe2\xb4\x83"); } // [B1, C1]
4378test { try toUnicodeFail("\xe1\x9f\xbf\xef\xbd\xa1\xf0\x9e\xac\xb3"); } // [V7]
4379test { try toUnicodeFail("\xe1\x9f\xbf\xe3\x80\x82\xf0\x9e\xac\xb3"); } // [V7]
4380test { try toUnicodeFail("xn--45e.xn--et6h"); } // [V7]
4381test { try toUnicodeFail("\xd9\x92\xe2\x80\x8d\xef\xbd\xa1\xe0\xb3\x8d\xf0\x91\x9a\xb3"); } // [C2, V6]
4382test { try toUnicodeFail("\xd9\x92\xe2\x80\x8d\xe3\x80\x82\xe0\xb3\x8d\xf0\x91\x9a\xb3"); } // [C2, V6]
4383test { try toUnicodeFail("xn--uhb.xn--8tc4527k"); } // [V6]
4384test { try toUnicodeFail("xn--uhb882k.xn--8tc4527k"); } // [C2, V6]
4385test { 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]
4386test { 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]
4387test { 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]
4388test { try toUnicodeFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa5\x83<\xcc\xb8\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
4389test { try toUnicodeFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa4\xa1<\xcc\xb8\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7]
4390test { 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]
4391test { try toUnicodeFail("xn----g6j886c.xn--xpb049kk353abj99f"); } // [B1, B2, B3, V3, V7]
4392test { 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]
4393test { 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]
4394test { 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]
4395test { 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]
4396test { 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]
4397test { 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]
4398test { try toUnicodeFail("xn--zrb797kdm1oes34i.xn--bwb394k8k2o25n6d"); } // [B1, B5, B6, V7]
4399test { try toUnicodeFail("\xe2\x89\xa0\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9"); } // [B1, V7]
4400test { try toUnicodeFail("=\xcc\xb8\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9"); } // [B1, V7]
4401test { try toUnicodeFail("xn--1ch22084l.xn----qkc07co6n"); } // [B1, V7]
4402test { 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]
4403test { 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]
4404test { 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]
4405test { 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]
4406test { try toUnicodeFail("xn--54e694cn389z.xn--787ct8r"); } // [B1, V6, V7]
4407test { 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]
4408test { 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]
4409test { try toUnicodeFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS"); } // [V6, V7]
4410test { try toUnicodeFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess"); } // [V6, V7]
4411test { try toUnicodeFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs"); } // [V6, V7]
4412test { try toUnicodeFail("xn--ss-jl59biy67d.xn--ss-4d11aw87d"); } // [V6, V7]
4413test { try toUnicodeFail("xn--zca20040bgrkh.xn--zca3653v86qa"); } // [V6, V7]
4414test { try toUnicodeFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS"); } // [V6, V7]
4415test { try toUnicodeFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess"); } // [V6, V7]
4416test { try toUnicodeFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs"); } // [V6, V7]
4417test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xe2\x80\x8c"); } // [C1, C2]
4418test { try toUnicodeFail("xn--1ug.xn--0ug"); } // [C1, C2]
4419test { 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]
4420test { try toUnicodeFail("xn--m3a6965k.xn--43e8670vmd79b"); } // [B1, V6, V7]
4421test { try toUnicodeFail("xn--m3a412lrr0o.xn--43e8670vmd79b"); } // [B1, C2, V6, V7]
4422test { 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]
4423test { try toUnicodeFail("xn--miq9646b.xn--uojv340bk71c99u9f"); } // [B2, B3, B5, B6, V7]
4424test { try toUnicodeFail("xn--0uga2656aop9k.xn--uojv340bk71c99u9f"); } // [B1, B5, B6, C1, V7]
4425test { try toUnicodeFail("\xf3\xa0\x91\x98\xef\xbc\x8e\xf3\xa0\x84\xae"); } // [V7]
4426test { try toUnicodeFail("\xf3\xa0\x91\x98.\xf3\xa0\x84\xae"); } // [V7]
4427test { try toUnicodeFail("xn--s136e."); } // [V7]
4428test { try toUnicodeFail("\xf0\x90\xab\x84\xe0\xb5\x8d\xef\xbc\x8e\xea\xab\xb6"); } // [B1, V6]
4429test { try toUnicodeFail("\xf0\x90\xab\x84\xe0\xb5\x8d.\xea\xab\xb6"); } // [B1, V6]
4430test { try toUnicodeFail("xn--wxc7880k.xn--2v9a"); } // [B1, V6]
4431test { try toUnicodeFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x82\xe2\x92\x9b\xf3\xa0\xa8\x87"); } // [V6, V7]
4432test { 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]
4433test { try toUnicodeFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x8220.\xf3\xa0\xa8\x87"); } // [V6, V7]
4434test { 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]
4435test { try toUnicodeFail("xn--ym9av13acp85w.20.xn--d846e"); } // [V6, V7]
4436test { try toUnicodeFail("xn--ym9av13acp85w.xn--dth22121k"); } // [V6, V7]
4437test { 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]
4438test { 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]
4439test { 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]
4440test { 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]
4441test { 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]
4442test { 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]
4443test { try toUnicodeFail("xn--wkj8016bne45io02g.xn--3-55c6803r."); } // [B4, B6, V7]
4444test { 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]
4445test { 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]
4446test { try toUnicodeFail("xn--wkj8016bne45io02g.xn--7pb000mwm4n"); } // [B4, B6, V7]
4447test { try toUnicodeFail("xn--dnd2167fnet0io02g.xn--3-55c6803r."); } // [B4, B6, V7]
4448test { try toUnicodeFail("xn--dnd2167fnet0io02g.xn--7pb000mwm4n"); } // [B4, B6, V7]
4449test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xef\xb8\x92"); } // [C1, V7]
4450test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82"); } // [C1, X4_2]
4451test { try toUnicodeFail(".."); } // [X4_2]
4452test { try toUnicodeFail("xn--0ug.."); } // [C1, X4_2]
4453test { try toUnicodeFail(".xn--y86c"); } // [V7, X4_2]
4454test { try toUnicodeFail("xn--0ug.xn--y86c"); } // [C1, V7]
4455test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad\xef\xbc\x8e\xe2\x82\x84"); } // [B1]
4456test { try toUnicodeFail(">\xcc\xb8\xdd\xad\xef\xbc\x8e\xe2\x82\x84"); } // [B1]
4457test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad.e"); } // [B1]
4458test { try toUnicodeFail(">\xcc\xb8\xdd\xad.e"); } // [B1]
4459test { try toUnicodeFail(">\xcc\xb8\xdd\xad.E"); } // [B1]
4460test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad.E"); } // [B1]
4461test { try toUnicodeFail("xn--xpb149k.e"); } // [B1]
4462test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.\xc3\x9f-\xe2\x80\x8c-"); } // [C1, V3]
4463test { try toUnicodeFail("\xe1\xa1\xb2-3.\xc3\x9f-\xe2\x80\x8c-"); } // [C1, V3]
4464test { try toUnicodeFail("\xe1\xa1\xb2-3.SS-\xe2\x80\x8c-"); } // [C1, V3]
4465test { try toUnicodeFail("\xe1\xa1\xb2-3.ss-\xe2\x80\x8c-"); } // [C1, V3]
4466test { try toUnicodeFail("\xe1\xa1\xb2-3.Ss-\xe2\x80\x8c-"); } // [C1, V3]
4467test { try toUnicodeFail("xn---3-p9o.ss--"); } // [V2, V3]
4468test { try toUnicodeFail("xn---3-p9o.xn--ss---276a"); } // [C1, V3]
4469test { try toUnicodeFail("xn---3-p9o.xn-----fia9303a"); } // [C1, V3]
4470test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.SS-\xe2\x80\x8c-"); } // [C1, V3]
4471test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.ss-\xe2\x80\x8c-"); } // [C1, V3]
4472test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.Ss-\xe2\x80\x8c-"); } // [C1, V3]
4473test { try toUnicodeFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x80"); } // [B2, B3, V7]
4474test { try toUnicodeFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x80"); } // [B2, B3, V7]
4475test { try toUnicodeFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x8f"); } // [B2, B3, V7]
4476test { try toUnicodeFail("xn--4-tnc6ck183523b.xn--s5a"); } // [B2, B3, V7]
4477test { try toUnicodeFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x8f"); } // [B2, B3, V7]
4478test { try toUnicodeFail("xn--4-tnc6ck183523b.xn--d5a"); } // [B2, B3, V7]
4479test { try toUnicodeFail("-.\xd8\x82\xd8\xa2\xf0\x91\x86\xbe\xf0\x9f\x90\xb9"); } // [B1, V3, V7]
4480test { try toUnicodeFail("-.\xd8\x82\xd8\xa7\xd9\x93\xf0\x91\x86\xbe\xf0\x9f\x90\xb9"); } // [B1, V3, V7]
4481test { try toUnicodeFail("-.xn--kfb8dy983hgl7g"); } // [B1, V3, V7]
4482test { try toUnicodeFail("\xf3\x99\xb6\x9c\xe1\xa2\x98\xe3\x80\x82\xe1\xa9\xbf\xe2\xba\xa2"); } // [V6, V7]
4483test { try toUnicodeFail("xn--ibf35138o.xn--fpfz94g"); } // [V6, V7]
4484test { 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]
4485test { 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]
4486test { 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]
4487test { 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]
4488test { 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]
4489test { 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]
4490test { 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]
4491test { 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]
4492test { try toUnicodeFail("xn--66e353ce0ilb.xn--?-7fb34t0u7s"); } // [B1, U1]
4493test { 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]
4494test { 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]
4495test { 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]
4496test { 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]
4497test { try toUnicodeFail("xn--vnd619as6ig6k.xn--?-7fb34t0u7s"); } // [B1, V7, U1]
4498test { try toUnicodeFail("xn--jndx718cnnl.xn--?-7fb34t0u7s"); } // [B1, V7, U1]
4499test { try toUnicodeFail("xn--vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
4500test { try toUnicodeFail("XN--VND619AS6IG6K.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
4501test { try toUnicodeFail("Xn--Vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
4502test { try toUnicodeFail("xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
4503test { try toUnicodeFail("XN--66E353CE0ILB.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
4504test { try toUnicodeFail("Xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1]
4505test { try toUnicodeFail("xn--jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
4506test { try toUnicodeFail("XN--JNDX718CNNL.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
4507test { try toUnicodeFail("Xn--Jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1]
4508test { try toUnicodeFail("\xd9\xa7.\xf0\x90\xa5\xa8"); } // [B1, V7]
4509test { try toUnicodeFail("xn--gib.xn--vm9c"); } // [B1, V7]
4510test { 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]
4511test { 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]
4512test { try toUnicodeFail("xn--3-5z4e.xn--1zfz754hncv8b"); } // [B5, V6, V7]
4513test { try toUnicodeFail("xn--3-5z4e.xn--1zf96ony8ygd68c"); } // [B1, C2, V6, V7]
4514test { 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]
4515test { try toUnicodeFail("\xf2\xa3\x95\x844\xf1\xa0\x96\xbd.>\xcc\xb8\xd9\xa4\xf0\x91\x80\xbe\xf3\xa0\xb8\x8c"); } // [B1, V7]
4516test { try toUnicodeFail("xn--4-fg85dl688i.xn--dib174li86ntdy0i"); } // [B1, V7]
4517test { 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]
4518test { try toUnicodeFail("\xf2\x97\x86\xa73\xe3\x80\x821.\xe1\xa9\xb62\xf2\xa0\x98\x8c"); } // [V6, V7]
4519test { try toUnicodeFail("xn--3-rj42h.1.xn--2-13k96240l"); } // [V6, V7]
4520test { try toUnicodeFail("xn--3-rj42h.xn--2-13k746cq465x"); } // [V7]
4521test { 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]
4522test { 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]
4523test { try toUnicodeFail("\xe2\x80\x8d51.\xe3\x80\x82\xe2\x89\xaf8\xe2\x80\x8d"); } // [C2, X4_2]
4524test { try toUnicodeFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d"); } // [C2, X4_2]
4525test { try toUnicodeFail("51..xn--8-ogo"); } // [X4_2]
4526test { try toUnicodeFail("xn--51-l1t..xn--8-ugn00i"); } // [C2, X4_2]
4527test { try toUnicodeFail("xn--5-ecp.xn--8-ogo"); } // [V7]
4528test { try toUnicodeFail("xn--5-tgnz5r.xn--8-ugn00i"); } // [C2, V7]
4529test { 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]
4530test { 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]
4531test { 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]
4532test { 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]
4533test { try toUnicodeFail("xn--tjb002cn51k.xn--5nb630lbj91q"); } // [B5, B6, V7]
4534test { try toUnicodeFail("xn--tjb002cn51k.xn--5nb448jcubcz547b"); } // [B5, B6, C1, V7]
4535test { try toUnicodeFail("\xf0\x91\x84\xb1\xef\xbd\xa1\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5"); } // [B1, B5, B6, V6, V7]
4536test { try toUnicodeFail("\xf0\x91\x84\xb1\xe3\x80\x82\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5"); } // [B1, B5, B6, V6, V7]
4537test { try toUnicodeFail("xn--t80d.xn--to0d14792b"); } // [B1, B5, B6, V6, V7]
4538test { try toUnicodeFail("\xf0\x9d\x9f\xa5\xd8\x80\xe3\x80\x82\xdc\xbd"); } // [B1, V6, V7]
4539test { try toUnicodeFail("3\xd8\x80\xe3\x80\x82\xdc\xbd"); } // [B1, V6, V7]
4540test { try toUnicodeFail("xn--3-rkc.xn--kob"); } // [B1, V6, V7]
4541test { try toUnicodeFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xea\xb8\xb7"); } // [B2, B3]
4542test { try toUnicodeFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xe1\x84\x80\xe1\x85\xb5\xe1\x86\xae"); } // [B2, B3]
4543test { try toUnicodeFail("xn--2gb8gu829f.xn--xpb0156f"); } // [B2, B3]
4544test { 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]
4545test { 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]
4546test { 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]
4547test { try toUnicodeFail(".xn--r5gy00cll06u.xn--flj4541e"); } // [B5, B6, V7, X4_2]
4548test { 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]
4549test { try toUnicodeFail("xn--r5gy00c056n0226g.xn--flj4541e"); } // [B1, B5, B6, V7]
4550test { try toUnicodeFail(".xn--q5g000cll06u.xn--vnd8618j"); } // [B5, B6, V7, X4_2]
4551test { try toUnicodeFail("xn--q5g000c056n0226g.xn--vnd8618j"); } // [B1, B5, B6, V7]
4552test { try toUnicodeFail("\xd8\x80.\xd6\xb1"); } // [B1, V6, V7]
4553test { try toUnicodeFail("xn--ifb.xn--8cb"); } // [B1, V6, V7]
4554test { try toUnicodeFail("\xcf\x82\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
4555test { try toUnicodeFail("\xcf\x82>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
4556test { try toUnicodeFail("\xcf\x82\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
4557test { try toUnicodeFail("\xcf\x82>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
4558test { try toUnicodeFail("\xce\xa3>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
4559test { try toUnicodeFail("\xce\xa3\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
4560test { try toUnicodeFail("\xcf\x83\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
4561test { try toUnicodeFail("\xcf\x83>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6]
4562test { try toUnicodeFail("xn--4xa818m.xn--1o0d"); } // [B1, B6]
4563test { try toUnicodeFail("xn--3xa028m.xn--1o0d"); } // [B1, B6]
4564test { try toUnicodeFail("\xce\xa3>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
4565test { try toUnicodeFail("\xce\xa3\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
4566test { try toUnicodeFail("\xcf\x83\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
4567test { try toUnicodeFail("\xcf\x83>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6]
4568test { try toUnicodeFail("\xe1\x9f\x92\xe2\x80\x8d\xdd\x9f\xe3\x80\x82\xf0\x90\xb9\xb6"); } // [B1, V6]
4569test { try toUnicodeFail("xn--jpb535f.xn--uo0d"); } // [B1, V6]
4570test { try toUnicodeFail("xn--jpb535fv9f.xn--uo0d"); } // [B1, V6]
4571test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.\xe2\x89\xae"); } // [V7]
4572test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.<\xcc\xb8"); } // [V7]
4573test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.<\xcc\xb8"); } // [V7]
4574test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.\xe2\x89\xae"); } // [V7]
4575test { try toUnicodeFail("xn--nbc229o4y27dgskb.xn--gdh"); } // [V7]
4576test { try toUnicodeFail("xn--nbc493aro75ggskb.xn--gdh"); } // [V7]
1336test { try toUnicodePass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "\xea\xa1\xa0.\xdb\xb2"); }4577test { try toUnicodePass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "\xea\xa1\xa0.\xdb\xb2"); }
1337test { try toAsciiPass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "xn--5c9a.xn--fmb", false); }4578test { try toAsciiPass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "xn--5c9a.xn--fmb", false); }
1338test { try toAsciiPass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "xn--5c9a.xn--fmb", true); }4579test { try toAsciiPass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "xn--5c9a.xn--fmb", true); }
...@@ -1342,17 +4583,89 @@ test { try toAsciiPass("\xea\xa1\xa0.\xdb\xb2", "xn--5c9a.xn--fmb", true); }...@@ -1342,17 +4583,89 @@ test { try toAsciiPass("\xea\xa1\xa0.\xdb\xb2", "xn--5c9a.xn--fmb", true); }
1342test { try toUnicodePass("xn--5c9a.xn--fmb", "\xea\xa1\xa0.\xdb\xb2"); }4583test { try toUnicodePass("xn--5c9a.xn--fmb", "\xea\xa1\xa0.\xdb\xb2"); }
1343test { try toAsciiPass("xn--5c9a.xn--fmb", "xn--5c9a.xn--fmb", false); }4584test { try toAsciiPass("xn--5c9a.xn--fmb", "xn--5c9a.xn--fmb", false); }
1344test { try toAsciiPass("xn--5c9a.xn--fmb", "xn--5c9a.xn--fmb", true); }4585test { try toAsciiPass("xn--5c9a.xn--fmb", "xn--5c9a.xn--fmb", true); }
4586test { try toUnicodeFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xef\xbd\xa1\xea\xa1\xac\xf0\x9f\x84\x84"); } // [B1, B6, V7, U1]
4587test { try toUnicodeFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xe3\x80\x82\xea\xa1\xac3,"); } // [B1, B6, V7, U1]
4588test { try toUnicodeFail("xn--bo0d0203l.xn--3,-yj9h"); } // [B1, B6, V7, U1]
4589test { try toUnicodeFail("xn--bo0d0203l.xn--id9a4443d"); } // [B1, V7]
4590test { 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]
4591test { 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]
4592test { try toUnicodeFail("xn----x6e0220sclug.xn--wxc"); } // [B1, V3, V6, V7]
4593test { try toUnicodeFail("xn----x6e0220sclug.xn--wxc317g"); } // [B1, C2, V3, V7]
4594test { 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]
4595test { 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]
4596test { 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]
4597test { try toUnicodeFail("xn--5,-op8g373c.xn--4sf0725i"); } // [V6, U1]
4598test { try toUnicodeFail("xn--5,-i1tz135dnbqa.xn--4sf36u6u4w"); } // [C1, V6, U1]
4599test { try toUnicodeFail("xn--2q5a751a653w.xn--4sf0725i"); } // [V6, V7]
4600test { try toUnicodeFail("xn--0ug4208b2vjuk63a.xn--4sf36u6u4w"); } // [C1, V6, V7]
4601test { try toUnicodeFail("\xe5\x85\x8e\xef\xbd\xa1\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf"); } // [V7]
4602test { try toUnicodeFail("\xe5\x85\x8e\xe3\x80\x82\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf"); } // [V7]
4603test { try toUnicodeFail("xn--b5q.xn--v7e6041kqqd4m251b"); } // [V7]
1345test { 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); }4604test { 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); }
4605test { try toUnicodeFail("\xf0\x9d\x9f\x99\xef\xbd\xa1\xe2\x80\x8d\xf0\x9d\x9f\xb8\xe2\x80\x8d\xe2\x81\xb7"); } // [C2]
1346test { try toAsciiPass("1\xe3\x80\x82\xe2\x80\x8d2\xe2\x80\x8d7", "1.27", true); }4606test { try toAsciiPass("1\xe3\x80\x82\xe2\x80\x8d2\xe2\x80\x8d7", "1.27", true); }
4607test { try toUnicodeFail("1\xe3\x80\x82\xe2\x80\x8d2\xe2\x80\x8d7"); } // [C2]
1347test { try toUnicodePass("1.2h", "1.2h"); }4608test { try toUnicodePass("1.2h", "1.2h"); }
1348test { try toAsciiPass("1.2h", "1.2h", false); }4609test { try toAsciiPass("1.2h", "1.2h", false); }
1349test { try toAsciiPass("1.2h", "1.2h", true); }4610test { try toAsciiPass("1.2h", "1.2h", true); }
4611test { try toUnicodeFail("1.xn--27-l1tb"); } // [C2]
4612test { try toUnicodeFail("\xe1\xa1\xa8-\xef\xbd\xa1\xf3\xa0\xbb\x8b\xf0\x9d\x9f\xb7"); } // [V3, V7]
4613test { try toUnicodeFail("\xe1\xa1\xa8-\xe3\x80\x82\xf3\xa0\xbb\x8b1"); } // [V3, V7]
4614test { try toUnicodeFail("xn----z8j.xn--1-5671m"); } // [V3, V7]
4615test { 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]
4616test { try toUnicodeFail("\xf0\x91\xb0\xbb\xf1\xb5\x80\x90\xf0\x90\xab\x9a.\xd9\xa89"); } // [B1, V6, V7]
4617test { try toUnicodeFail("xn--gx9cr01aul57i.xn--9-oqc"); } // [B1, V6, V7]
4618test { 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]
4619test { 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]
4620test { 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]
4621test { try toUnicodeFail("xn--zed372mdj2do3v4h.xn--e5h11w"); } // [V7]
4622test { try toUnicodeFail("xn--zed372mdj2do3v4h.xn--0uga678bgyh"); } // [C1, V7]
4623test { 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]
4624test { try toUnicodeFail("xn--zed54dz10wo343g.xn--nnd651i"); } // [V7]
4625test { try toUnicodeFail("xn--zed54dz10wo343g.xn--nnd089ea464d"); } // [C1, V7]
4626test { try toUnicodeFail("\xf0\x91\x81\x86\xf0\x9d\x9f\xb0.\xe2\x80\x8d"); } // [C2, V6]
4627test { try toUnicodeFail("\xf0\x91\x81\x864.\xe2\x80\x8d"); } // [C2, V6]
4628test { try toUnicodeFail("xn--4-xu7i."); } // [V6]
4629test { try toUnicodeFail("xn--4-xu7i.xn--1ug"); } // [C2, V6]
4630test { 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]
4631test { 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]
4632test { 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]
4633test { 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]
4634test { 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]
4635test { 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]
4636test { try toUnicodeFail("xn--mlju35u7qx2f.xn--et3bn23n"); } // [V6, V7]
4637test { try toUnicodeFail("xn--mlju35u7qx2f.xn--0ugb6122js83c"); } // [C1, V6, V7]
4638test { 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]
4639test { 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]
4640test { try toUnicodeFail("xn--2nd6803c7q37d.xn--et3bn23n"); } // [V6, V7]
4641test { try toUnicodeFail("xn--2nd6803c7q37d.xn--0ugb6122js83c"); } // [C1, V6, V7]
4642test { try toUnicodeFail("\xf3\x9a\x80\x85-\xe0\xaf\x8d\xe3\x80\x82\xda\xb9"); } // [B6, V7]
4643test { try toUnicodeFail("xn----mze84808x.xn--skb"); } // [B6, V7]
4644test { 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]
4645test { 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]
4646test { try toUnicodeFail("\xe1\xa1\x835\xe2\x89\xaf\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab"); } // [V7]
4647test { try toUnicodeFail("\xe1\xa1\x835>\xcc\xb8\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab"); } // [V7]
4648test { try toUnicodeFail("xn--5-24jyf768b.xn--lqw213ime95g"); } // [V7]
4649test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbd\xb6"); } // [B1, V6]
4650test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbe\xb2\xe0\xbe\x80"); } // [B1, V6]
4651test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87.\xe0\xbe\xb2\xe0\xbe\x80"); } // [B1, V6]
4652test { try toUnicodeFail("xn--ko0d8295a.xn--zed3h"); } // [B1, V6]
4653test { 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]
4654test { try toUnicodeFail("-\xf0\x91\x88\xb68..7.\xf0\xb0\x9b\xa2\xf3\xa0\x8e\xad"); } // [V3, V7, X4_2]
4655test { try toUnicodeFail("xn---8-bv5o..7.xn--c35nf1622b"); } // [V3, V7, X4_2]
4656test { try toUnicodeFail("xn----scp6252h.xn--zshy411yzpx2d"); } // [V3, V7]
1350test { 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); }4657test { 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); }
4658test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae"); } // [C1, C2]
1351test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }4659test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }
4660test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8"); } // [C1, C2]
1352test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }4661test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }
4662test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae"); } // [C1, C2]
1353test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }4663test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }
4664test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8"); } // [C1, C2]
1354test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }4665test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }
4666test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8"); } // [C1, C2]
1355test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }4667test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }
4668test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae"); } // [C1, C2]
1356test { try toUnicodePass("xn--skjy82u.xn--gdh", "\xe2\xb4\x81\xe7\x95\x9d.\xe2\x89\xae"); }4669test { try toUnicodePass("xn--skjy82u.xn--gdh", "\xe2\xb4\x81\xe7\x95\x9d.\xe2\x89\xae"); }
1357test { try toAsciiPass("xn--skjy82u.xn--gdh", "xn--skjy82u.xn--gdh", false); }4670test { try toAsciiPass("xn--skjy82u.xn--gdh", "xn--skjy82u.xn--gdh", false); }
1358test { try toAsciiPass("xn--skjy82u.xn--gdh", "xn--skjy82u.xn--gdh", true); }4671test { try toAsciiPass("xn--skjy82u.xn--gdh", "xn--skjy82u.xn--gdh", true); }
...@@ -1368,12 +4681,164 @@ test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.<\xcc\xb8", "xn--skjy82u.xn--gd...@@ -1368,12 +4681,164 @@ test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.<\xcc\xb8", "xn--skjy82u.xn--gd
1368test { try toUnicodePass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "\xe2\xb4\x81\xe7\x95\x9d.\xe2\x89\xae"); }4681test { try toUnicodePass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "\xe2\xb4\x81\xe7\x95\x9d.\xe2\x89\xae"); }
1369test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", false); }4682test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", false); }
1370test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }4683test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); }
4684test { try toUnicodeFail("xn--0ugc160hb36e.xn--gdh"); } // [C1, C2]
1371test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }4685test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", "xn--skjy82u.xn--gdh", true); }
4686test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8"); } // [C1, C2]
1372test { 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); }4687test { 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); }
4688test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae"); } // [C1, C2]
4689test { try toUnicodeFail("xn--8md0962c.xn--gdh"); } // [V7]
4690test { try toUnicodeFail("xn--8md700fea3748f.xn--gdh"); } // [C1, C2, V7]
4691test { 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]
4692test { try toUnicodeFail("\xe6\xad\xb7\xef\xbd\xa1\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d"); } // [B1, C2, V7]
4693test { 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]
4694test { try toUnicodeFail("\xe6\xad\xb7\xe3\x80\x82\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d"); } // [B1, C2, V7]
4695test { try toUnicodeFail("xn--nmw.xn--hdh7804gdms2h"); } // [B1, V7]
4696test { try toUnicodeFail("xn--nmw.xn--1ugx6gs128a1134j"); } // [B1, C2, V7]
4697test { try toUnicodeFail("\xe0\xbb\x8b\xe2\x80\x8d\xef\xbc\x8e\xe9\x8e\x81\xf3\xa0\xb0\x91"); } // [C2, V6, V7]
4698test { try toUnicodeFail("\xe0\xbb\x8b\xe2\x80\x8d.\xe9\x8e\x81\xf3\xa0\xb0\x91"); } // [C2, V6, V7]
4699test { try toUnicodeFail("xn--t8c.xn--iz4a43209d"); } // [V6, V7]
4700test { try toUnicodeFail("xn--t8c059f.xn--iz4a43209d"); } // [C2, V6, V7]
4701test { 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]
4702test { 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]
4703test { 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]
4704test { 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]
4705test { try toUnicodeFail("xn--9d6h.xn--wh0dj799f"); } // [B5, B6]
4706test { try toUnicodeFail("xn--0ugb45126a.xn--wh0dj799f"); } // [B1, B5, B6, C1, C2]
4707test { 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]
4708test { 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]
4709test { 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]
4710test { 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]
4711test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x826.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3]
4712test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xcf\x826.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3]
4713test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xce\xa36.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3]
4714test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xce\xa36.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3]
4715test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x836.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3]
4716test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xcf\x836.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3]
4717test { try toUnicodeFail("xn--9--etd0100a.xn--6-zmb.xn--1ch8704g"); } // [B1, B3, V3]
4718test { try toUnicodeFail("xn--9--etd0100a.xn--6-xmb.xn--1ch8704g"); } // [B1, B3, V3]
4719test { 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]
4720test { 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]
4721test { 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]
4722test { 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]
4723test { try toUnicodeFail("xn--9--etd0100a.xn--4xa887mzpbzz04b"); } // [B3, B5, B6, V3, V7]
4724test { try toUnicodeFail("xn--9--etd0100a.xn--3xa097mzpbzz04b"); } // [B3, B5, B6, V3, V7]
4725test { try toUnicodeFail("\xf2\x89\x9b\xb4.-\xe1\xa1\xa2\xd6\x92\xf0\x9d\xa8\xa0"); } // [V3, V7]
4726test { try toUnicodeFail("xn--ep37b.xn----hec165lho83b"); } // [V3, V7]
4727test { 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]
4728test { try toUnicodeFail("\xdb\x8b1.\xc3\x9f\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7]
4729test { try toUnicodeFail("\xdb\x8b1.SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7]
4730test { try toUnicodeFail("\xdb\x8b1.ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7]
4731test { try toUnicodeFail("\xdb\x8b1.Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7]
4732test { try toUnicodeFail("xn--1-cwc.ss.xn----q001f"); } // [B6, V3, V7]
4733test { try toUnicodeFail("xn--1-cwc.xn--zca.xn----q001f"); } // [B6, V3, V7]
4734test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7]
4735test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7]
4736test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7]
4737test { try toUnicodeFail("xn--ss-d7d6651a.xn----q001f"); } // [B2, B3, B6, V3, V7]
4738test { try toUnicodeFail("xn--zca541ato3a.xn----q001f"); } // [B2, B3, B6, V3, V7]
4739test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7]
4740test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7]
4741test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
4742test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7]
4743test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
4744test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
4745test { try toUnicodeFail("xn--nu4s.xn--4xa153j7im"); } // [V6, V7]
4746test { try toUnicodeFail("xn--nu4s.xn--4xa153jk8cs1q"); } // [C2, V6, V7]
4747test { try toUnicodeFail("xn--nu4s.xn--3xa353jk8cs1q"); } // [C2, V6, V7]
4748test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
4749test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7]
4750test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
4751test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7]
4752test { try toUnicodeFail("xn--nu4s.xn--4xa217dxri"); } // [V6, V7]
4753test { try toUnicodeFail("xn--nu4s.xn--4xa217dxriome"); } // [C2, V6, V7]
4754test { try toUnicodeFail("xn--nu4s.xn--3xa417dxriome"); } // [C2, V6, V7]
4755test { try toUnicodeFail("\xe2\xbe\x86\xe0\xa3\xa2.\xf0\x9d\x88\xb4"); } // [B1, B5, B6, V7]
4756test { try toUnicodeFail("\xe8\x88\x8c\xe0\xa3\xa2.\xf0\x9d\x88\xb4"); } // [B1, B5, B6, V7]
4757test { try toUnicodeFail("xn--l0b9413d.xn--kl1h"); } // [B1, B5, B6, V7]
4758test { try toUnicodeFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa0\xe2\x92\x88"); } // [B1, V7]
4759test { try toUnicodeFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa01."); } // [B1]
4760test { try toUnicodeFail("xn--53ix188et88b.xn--1-h6r."); } // [B1]
4761test { try toUnicodeFail("xn--53ix188et88b.xn--tsh52w"); } // [B1, V7]
4762test { try toUnicodeFail("\xe2\x92\x88\xe2\x80\x8c\xea\xab\xac\xef\xb8\x92\xef\xbc\x8e\xe0\xab\x8d"); } // [C1, V6, V7]
4763test { try toUnicodeFail("1.\xe2\x80\x8c\xea\xab\xac\xe3\x80\x82.\xe0\xab\x8d"); } // [C1, V6, X4_2]
4764test { try toUnicodeFail("1.xn--sv9a..xn--mfc"); } // [V6, X4_2]
4765test { try toUnicodeFail("1.xn--0ug7185c..xn--mfc"); } // [C1, V6, X4_2]
4766test { try toUnicodeFail("xn--tsh0720cse8b.xn--mfc"); } // [V6, V7]
4767test { try toUnicodeFail("xn--0ug78o720myr1c.xn--mfc"); } // [C1, V6, V7]
4768test { 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]
4769test { try toUnicodeFail("xn--eqc.xn--hib5476aim6t"); } // [B1, B5, B6, V6, V7]
4770test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7]
4771test { try toUnicodeFail("SS\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7]
4772test { try toUnicodeFail("ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7]
4773test { try toUnicodeFail("Ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7]
4774test { try toUnicodeFail("ss.xn--0zf22107b"); } // [V6, V7]
4775test { try toUnicodeFail("xn--ss-n1t.xn--0zf22107b"); } // [C2, V6, V7]
4776test { try toUnicodeFail("xn--zca870n.xn--0zf22107b"); } // [C2, V6, V7]
4777test { try toUnicodeFail("\xf0\x91\x93\x82\xe2\x80\x8c\xe2\x89\xae.\xe2\x89\xae"); } // [V6]
4778test { try toUnicodeFail("\xf0\x91\x93\x82\xe2\x80\x8c<\xcc\xb8.<\xcc\xb8"); } // [V6]
4779test { try toUnicodeFail("xn--gdhz656g.xn--gdh"); } // [V6]
4780test { try toUnicodeFail("xn--0ugy6glz29a.xn--gdh"); } // [V6]
1373test { try toUnicodePass("\xf0\x9f\x95\xbc\xef\xbc\x8e\xef\xbe\xa0", "\xf0\x9f\x95\xbc."); }4781test { try toUnicodePass("\xf0\x9f\x95\xbc\xef\xbc\x8e\xef\xbe\xa0", "\xf0\x9f\x95\xbc."); }
1374test { try toUnicodePass("\xf0\x9f\x95\xbc.\xe1\x85\xa0", "\xf0\x9f\x95\xbc."); }4782test { try toUnicodePass("\xf0\x9f\x95\xbc.\xe1\x85\xa0", "\xf0\x9f\x95\xbc."); }
1375test { try toUnicodePass("xn--my8h.", "\xf0\x9f\x95\xbc."); }4783test { try toUnicodePass("xn--my8h.", "\xf0\x9f\x95\xbc."); }
1376test { try toUnicodePass("\xf0\x9f\x95\xbc.", "\xf0\x9f\x95\xbc."); }4784test { try toUnicodePass("\xf0\x9f\x95\xbc.", "\xf0\x9f\x95\xbc."); }
4785test { try toUnicodeFail("xn--my8h.xn--psd"); } // [V7]
4786test { try toUnicodeFail("xn--my8h.xn--cl7c"); } // [V7]
4787test { try toUnicodeFail("\xe1\xa1\x94\xef\xb6\x82\xe3\x80\x82\xf1\xb7\x98\x8e"); } // [B5, B6, V7]
4788test { try toUnicodeFail("\xe1\xa1\x94\xd9\x84\xd8\xad\xd9\x89\xe3\x80\x82\xf1\xb7\x98\x8e"); } // [B5, B6, V7]
4789test { try toUnicodeFail("xn--sgb9bq785p.xn--bc31b"); } // [B5, B6, V7]
4790test { try toUnicodeFail("\xe7\x88\x95\xf2\xb3\x99\x91\xef\xbc\x8e\xf0\x9d\x9f\xb0\xe6\xb0\x97"); } // [V7]
4791test { try toUnicodeFail("\xe7\x88\x95\xf2\xb3\x99\x91.4\xe6\xb0\x97"); } // [V7]
4792test { try toUnicodeFail("xn--1zxq3199c.xn--4-678b"); } // [V7]
4793test { 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]
4794test { try toUnicodeFail("4.\xf0\x91\x8d\x8d\xe1\x82\xbd-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5"); } // [B1, B6, V3, V6, V7]
4795test { try toUnicodeFail("4.\xf0\x91\x8d\x8d\xe2\xb4\x9d-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5"); } // [B1, B6, V3, V6, V7]
4796test { try toUnicodeFail("4.xn----wwsx259f.xn--ddb152b7y23b"); } // [B1, B6, V3, V6, V7]
4797test { 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]
4798test { try toUnicodeFail("xn----jcp487avl3w.xn--ddb152b7y23b"); } // [B1, V3, V7]
4799test { try toUnicodeFail("4.xn----t1g9869q.xn--ddb152b7y23b"); } // [B1, B6, V3, V6, V7]
4800test { try toUnicodeFail("xn----t1g323mnk9t.xn--ddb152b7y23b"); } // [B1, V3, V7]
4801test { try toUnicodeFail("\xf3\x9e\x9d\x83\xe3\x80\x82\xf2\x91\x86\x83\xf1\x89\xa2\x97--"); } // [V2, V3, V7]
4802test { try toUnicodeFail("xn--2y75e.xn-----1l15eer88n"); } // [V2, V3, V7]
4803test { try toUnicodeFail("\xe2\x80\x8d\xdf\x9f\xef\xbd\xa1\xe2\x80\x8c\xea\xaf\xad"); } // [B1, C1, C2]
4804test { try toUnicodeFail("\xe2\x80\x8d\xdf\x9f\xe3\x80\x82\xe2\x80\x8c\xea\xaf\xad"); } // [B1, C1, C2]
4805test { try toUnicodeFail("xn--6sb.xn--429a"); } // [B1, V6]
4806test { try toUnicodeFail("xn--6sb394j.xn--0ug1126c"); } // [B1, C1, C2]
4807test { 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]
4808test { 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]
4809test { try toUnicodeFail("xn--3tb2nz468k.xn--69e8615j5rn5d"); } // [B5, B6, V7]
4810test { 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]
4811test { try toUnicodeFail("\xdb\xad\xd9\x85\xf0\x91\x84\x9a\xe1\x9c\x94.\xea\xa1\x9e\xe0\xa2\xb7"); } // [B1, B5, B6, V6]
4812test { try toUnicodeFail("xn--hhb94ag41b739u.xn--dzb5582f"); } // [B1, B5, B6, V6]
4813test { 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]
4814test { 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]
4815test { 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]
4816test { 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]
4817test { 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]
4818test { 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]
4819test { 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]
4820test { 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]
4821test { 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]
4822test { 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]
4823test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--4xaa21q"); } // [B5, B6, V7]
4824test { 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]
4825test { 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]
4826test { 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]
4827test { 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]
4828test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--3xab31q"); } // [B5, B6, V7]
4829test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--3xaa51q"); } // [B5, B6, V7]
4830test { 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]
4831test { 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]
4832test { 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]
4833test { 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]
4834test { 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]
4835test { 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]
4836test { 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]
4837test { 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]
4838test { 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]
4839test { 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]
4840test { try toUnicodeFail("\xe8\x94\xb0\xe3\x80\x82\xf3\xa0\x81\xb9\xe0\xa3\x9d-\xf0\x91\x88\xb5"); } // [V7]
4841test { try toUnicodeFail("xn--sz1a.xn----mrd9984r3dl0i"); } // [V7]
1377test { try toUnicodePass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "\xcf\x82\xe2\xb4\xa5.\xdd\x9a"); }4842test { try toUnicodePass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "\xcf\x82\xe2\xb4\xa5.\xdd\x9a"); }
1378test { try toAsciiPass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "xn--3xa403s.xn--epb", false); }4843test { try toAsciiPass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "xn--3xa403s.xn--epb", false); }
1379test { try toAsciiPass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "xn--4xa203s.xn--epb", true); }4844test { try toAsciiPass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "xn--4xa203s.xn--epb", true); }
...@@ -1407,12 +4872,29 @@ test { try toAsciiPass("xn--3xa403s.xn--epb", "xn--3xa403s.xn--epb", true); }...@@ -1407,12 +4872,29 @@ test { try toAsciiPass("xn--3xa403s.xn--epb", "xn--3xa403s.xn--epb", true); }
1407test { try toUnicodePass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "\xcf\x82\xe2\xb4\xa5.\xdd\x9a"); }4872test { try toUnicodePass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "\xcf\x82\xe2\xb4\xa5.\xdd\x9a"); }
1408test { try toAsciiPass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "xn--3xa403s.xn--epb", false); }4873test { try toAsciiPass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "xn--3xa403s.xn--epb", false); }
1409test { try toAsciiPass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "xn--4xa203s.xn--epb", true); }4874test { try toAsciiPass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "xn--4xa203s.xn--epb", true); }
4875test { try toUnicodeFail("xn--4xa477d.xn--epb"); } // [V7]
4876test { try toUnicodeFail("xn--3xa677d.xn--epb"); } // [V7]
4877test { try toUnicodeFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2"); } // [B1, V6, V7]
4878test { try toUnicodeFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93.\xe1\xad\xb2"); } // [B1, V6, V7]
4879test { try toUnicodeFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93.\xe1\xad\xb2"); } // [B1, V6, V7]
4880test { try toUnicodeFail("xn--lqc478nlr02a.xn--dwf"); } // [B1, V6, V7]
4881test { try toUnicodeFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2"); } // [B1, V6, V7]
4882test { try toUnicodeFail("xn--lqc64t7t26c.xn--dwf"); } // [B1, V6, V7]
4883test { 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]
4884test { try toUnicodeFail("\xe2\xae\xb7<\xcc\xb8\xf1\x8e\x88\xb4\xf3\xa0\x84\x9f\xe3\x80\x82\xf0\x90\xa0\x84"); } // [B1, V7]
4885test { try toUnicodeFail("xn--gdh877a3513h.xn--pc9c"); } // [B1, V7]
1410test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4886test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4887test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
1411test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4888test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4889test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
1412test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4890test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4891test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
1413test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4892test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4893test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
1414test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4894test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4895test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
1415test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4896test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4897test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
1416test { try toUnicodePass("xn--vkb.xn--08e172a", "\xda\xbc.\xe1\xba\x8f\xe1\xa1\xa4"); }4898test { try toUnicodePass("xn--vkb.xn--08e172a", "\xda\xbc.\xe1\xba\x8f\xe1\xa1\xa4"); }
1417test { try toAsciiPass("xn--vkb.xn--08e172a", "xn--vkb.xn--08e172a", false); }4899test { try toAsciiPass("xn--vkb.xn--08e172a", "xn--vkb.xn--08e172a", false); }
1418test { try toAsciiPass("xn--vkb.xn--08e172a", "xn--vkb.xn--08e172a", true); }4900test { try toAsciiPass("xn--vkb.xn--08e172a", "xn--vkb.xn--08e172a", true); }
...@@ -1428,12 +4910,38 @@ test { try toAsciiPass("\xda\xbc.Y\xcc\x87\xe1\xa1\xa4", "xn--vkb.xn--08e172a",...@@ -1428,12 +4910,38 @@ test { try toAsciiPass("\xda\xbc.Y\xcc\x87\xe1\xa1\xa4", "xn--vkb.xn--08e172a",
1428test { try toUnicodePass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "\xda\xbc.\xe1\xba\x8f\xe1\xa1\xa4"); }4910test { try toUnicodePass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "\xda\xbc.\xe1\xba\x8f\xe1\xa1\xa4"); }
1429test { try toAsciiPass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "xn--vkb.xn--08e172a", false); }4911test { try toAsciiPass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "xn--vkb.xn--08e172a", false); }
1430test { try toAsciiPass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4912test { try toAsciiPass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4913test { try toUnicodeFail("xn--vkb.xn--08e172ax6aca"); } // [B1, C1, C2]
1431test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4914test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4915test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
1432test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }4916test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); }
4917test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2]
4918test { try toUnicodeFail("\xf0\x90\xb9\xb9\xf0\x91\xb2\x9b\xe3\x80\x82\xf1\x91\x82\x90\xe0\xb7\x8a"); } // [B1, V7]
4919test { try toUnicodeFail("xn--xo0dg5v.xn--h1c39876d"); } // [B1, V7]
4920test { 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]
4921test { 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]
4922test { 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]
4923test { try toUnicodeFail("-=\xcc\xb8\xf0\x91\x88\xb5\xe3\x80\x82\xe5\xb5\x95\xd9\x8a\xdb\xb4\xea\xa5\x93"); } // [B1, B5, V3]
4924test { try toUnicodeFail("xn----ufo4749h.xn--mhb45a235sns3c"); } // [B1, B5, V3]
4925test { 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]
4926test { 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]
4927test { 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]
4928test { 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]
4929test { try toUnicodeFail("xn--ypb5875khz9y.xn--0kb682l"); } // [B3, B5, B6, V7]
4930test { try toUnicodeFail("xn--ypb717jrx2o7v94a.xn--0kb660ka35v"); } // [B1, B3, C1, C2, V7]
4931test { try toUnicodeFail("\xe2\x89\xae\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1]
4932test { try toUnicodeFail("<\xcc\xb8\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1]
4933test { try toUnicodeFail("\xe2\x89\xae.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1]
4934test { try toUnicodeFail("<\xcc\xb8.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1]
4935test { try toUnicodeFail("xn--gdh.xn--kwb4643k"); } // [B1]
4936test { try toUnicodeFail("xn--gdh.xn--kwb589e217p"); } // [B1, V6, V7]
1433test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn--0kjya", true); }4937test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn--0kjya", true); }
4938test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe1\x82\xb5"); } // [B3, C2]
1434test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn--0kjya", true); }4939test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn--0kjya", true); }
4940test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe1\x82\xb5"); } // [B3, C2]
1435test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe2\xb4\x89\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }4941test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe2\xb4\x89\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
4942test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe2\xb4\x89\xe2\xb4\x95"); } // [B3, C2]
1436test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }4943test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
4944test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe2\xb4\x95"); } // [B3, C2]
1437test { try toUnicodePass("xn--pt9c.xn--0kjya", "\xf0\x90\xa9\x97.\xe2\xb4\x89\xe2\xb4\x95"); }4945test { try toUnicodePass("xn--pt9c.xn--0kjya", "\xf0\x90\xa9\x97.\xe2\xb4\x89\xe2\xb4\x95"); }
1438test { try toAsciiPass("xn--pt9c.xn--0kjya", "xn--pt9c.xn--0kjya", false); }4946test { try toAsciiPass("xn--pt9c.xn--0kjya", "xn--pt9c.xn--0kjya", false); }
1439test { try toAsciiPass("xn--pt9c.xn--0kjya", "xn--pt9c.xn--0kjya", true); }4947test { try toAsciiPass("xn--pt9c.xn--0kjya", "xn--pt9c.xn--0kjya", true); }
...@@ -1446,10 +4954,115 @@ test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn...@@ -1446,10 +4954,115 @@ test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn
1446test { try toUnicodePass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "\xf0\x90\xa9\x97.\xe2\xb4\x89\xe2\xb4\x95"); }4954test { try toUnicodePass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "\xf0\x90\xa9\x97.\xe2\xb4\x89\xe2\xb4\x95"); }
1447test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", false); }4955test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", false); }
1448test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }4956test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
4957test { try toUnicodeFail("xn--1ug4933g.xn--0kjya"); } // [B3, C2]
1449test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe2\xb4\x89\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }4958test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe2\xb4\x89\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
4959test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe2\xb4\x89\xe2\xb4\x95"); } // [B3, C2]
1450test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }4960test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); }
4961test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe2\xb4\x95"); } // [B3, C2]
4962test { try toUnicodeFail("xn--pt9c.xn--hnd666l"); } // [V7]
4963test { try toUnicodeFail("xn--1ug4933g.xn--hnd666l"); } // [B3, C2, V7]
4964test { try toUnicodeFail("xn--pt9c.xn--hndy"); } // [V7]
4965test { try toUnicodeFail("xn--1ug4933g.xn--hndy"); } // [B3, C2, V7]
4966test { 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]
4967test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x84\xa4.\xcc\xae\xf3\x95\xa8\x91\xe0\xa7\x82"); } // [C1, V6, V7]
4968test { try toUnicodeFail("xn--1fk.xn--vta284a9o563a"); } // [V6, V7]
4969test { try toUnicodeFail("xn--0uga242k.xn--vta284a9o563a"); } // [C1, V6, V7]
4970test { try toUnicodeFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7"); } // [B1, C1, V3]
4971test { try toUnicodeFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7"); } // [B1, C1, V3]
4972test { try toUnicodeFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97"); } // [B1, C1, V3]
4973test { try toUnicodeFail("xn--v97c.xn----lws0526f"); } // [B1, V3]
4974test { try toUnicodeFail("xn--v97c.xn----sgnv20du99s"); } // [B1, C1, V3]
4975test { try toUnicodeFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97"); } // [B1, C1, V3]
4976test { try toUnicodeFail("xn--v97c.xn----i1g2513q"); } // [B1, V3, V7]
4977test { try toUnicodeFail("xn--v97c.xn----i1g888ih12u"); } // [B1, C1, V3, V7]
4978test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8c"); } // [B1, C1, V7]
4979test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8c"); } // [B1, C1, V7]
4980test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.\xe2\x89\xa0\xe2\x80\x8c"); } // [B1, C1, V7]
4981test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.=\xcc\xb8\xe2\x80\x8c"); } // [B1, C1, V7]
4982test { try toUnicodeFail("xn--bl0dh970b.xn--1ch"); } // [B1, V7]
4983test { try toUnicodeFail("xn--bl0dh970b.xn--0ug83g"); } // [B1, C1, V7]
4984test { try toUnicodeFail("\xd9\x8c\xe1\xb3\x92\xef\xbd\xa1\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e"); } // [B1, B3, V6, V7]
4985test { try toUnicodeFail("\xd9\x8c\xe1\xb3\x92\xe3\x80\x82\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e"); } // [B1, B3, V6, V7]
4986test { try toUnicodeFail("xn--ohb646i.xn--ewi38jf765c"); } // [B1, B3, V6, V7]
4987test { 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]
4988test { try toUnicodeFail("\xe1\x82\xb4\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82"); } // [V7]
4989test { try toUnicodeFail("\xe2\xb4\x94\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82"); } // [V7]
4990test { try toUnicodeFail("xn--3-ews6985n35s3g.xn--7-cve6271r"); } // [V7]
4991test { 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]
4992test { try toUnicodeFail("xn--3-b1g83426a35t0g.xn--7-cve6271r"); } // [V7]
4993test { try toUnicodeFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xe2\x92\x88\xf1\xb1\xa2\x95"); } // [C1, V7]
4994test { try toUnicodeFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c1.\xf1\xb1\xa2\x95"); } // [C1, V7]
4995test { try toUnicodeFail("xn--eco.1.xn--ms39a"); } // [V7]
4996test { try toUnicodeFail("xn--0ug491l.xn--1-rgn.xn--ms39a"); } // [C1, V7]
4997test { try toUnicodeFail("xn--eco.xn--tsh21126d"); } // [V7]
4998test { try toUnicodeFail("xn--0ug491l.xn--0ug88oot66q"); } // [C1, V7]
4999test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6]
5000test { try toUnicodeFail("1\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6]
5001test { try toUnicodeFail("1\xea\xab\xb6SS\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6]
5002test { try toUnicodeFail("1\xea\xab\xb6ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6]
5003test { try toUnicodeFail("xn--1ss-ir6ln166b.xn--weg"); } // [V6]
5004test { try toUnicodeFail("xn--1-qfa2471kdb0d.xn--weg"); } // [V6]
5005test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6SS\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6]
5006test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6]
5007test { try toUnicodeFail("1\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6]
5008test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6]
5009test { 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]
5010test { try toUnicodeFail("\xe2\x80\x8d\xf1\xab\xb6\xa9\xf0\x9e\xaa\xaf\xe0\xb3\x8d\xe3\x80\x82\xdd\xbc1."); } // [B1, C2, V7]
5011test { try toUnicodeFail("xn--8tc9875v5is1a.xn--1-g6c."); } // [B5, B6, V7]
5012test { try toUnicodeFail("xn--8tc969gzn94a4lm8a.xn--1-g6c."); } // [B1, C2, V7]
5013test { try toUnicodeFail("xn--8tc9875v5is1a.xn--dqb689l"); } // [B5, B6, V7]
5014test { try toUnicodeFail("xn--8tc969gzn94a4lm8a.xn--dqb689l"); } // [B1, C2, V7]
5015test { 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]
5016test { try toUnicodeFail("\xe1\xaa\xb6.\xf0\x9e\xa4\xb3\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97"); } // [B1, B2, V6, V7]
5017test { try toUnicodeFail("\xe1\xaa\xb6.\xf0\x9e\xa4\x91\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97"); } // [B1, B2, V6, V7]
5018test { try toUnicodeFail("xn--zqf.xn--ysb9657vuiz5bj0ep"); } // [B1, B2, V6, V7]
5019test { 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]
5020test { 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]
5021test { try toUnicodeFail("\xe0\xa1\x82\xf0\x9e\xa9\x9a1..\xf3\xa0\xac\x8c8\xf2\x8f\xb3\x8f\xdd\xb0"); } // [B1, V7, X4_2]
5022test { try toUnicodeFail("xn--1-rid26318a..xn--8-s5c22427ox454a"); } // [B1, V7, X4_2]
5023test { try toUnicodeFail("xn--0vb095ldg52a.xn--8-s5c22427ox454a"); } // [B1, V7]
5024test { 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]
5025test { try toUnicodeFail("xn--cvaq482npv5t.xn----yg7dt1332g"); } // [B1, V3, V6, V7]
5026test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98\xc3\x9f\xf0\x90\xab\x83"); } // [B1, V3, V6]
5027test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98SS\xf0\x90\xab\x83"); } // [B1, V3, V6]
5028test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98ss\xf0\x90\xab\x83"); } // [B1, V3, V6]
5029test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98Ss\xf0\x90\xab\x83"); } // [B1, V3, V6]
5030test { try toUnicodeFail("-.xn--ss-bqg4734erywk"); } // [B1, V3, V6]
5031test { try toUnicodeFail("-.xn--zca791c493duf8i"); } // [B1, V3, V6]
5032test { try toUnicodeFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xef\xbd\xa1-"); } // [B1, V3, V6, V7]
5033test { try toUnicodeFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xe3\x80\x82-"); } // [B1, V3, V6, V7]
5034test { try toUnicodeFail("xn--b1b2719v.-"); } // [B1, V3, V6, V7]
5035test { 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]
5036test { 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]
5037test { 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]
5038test { try toUnicodeFail("1.\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xe3\x80\x82=\xcc\xb8\xd8\x83\xf0\x90\xb9\xbd"); } // [B1, V7]
5039test { try toUnicodeFail("1.xn--qo0dl3077c.xn--lfb536lb35n"); } // [B1, V7]
5040test { try toUnicodeFail("xn--tshw766f1153g.xn--lfb536lb35n"); } // [B1, V7]
5041test { 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]
5042test { 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]
5043test { try toUnicodeFail("xn--5kjx323em053g.xn--pelu572d"); } // [B1, B5, B6, V7]
5044test { try toUnicodeFail("xn--0ug342clq0pqxv4i.xn--pelu572d"); } // [B1, B5, B6, C1, V7]
5045test { try toUnicodeFail("xn--mnd9001km0o0g.xn--pelu572d"); } // [B1, B5, B6, V7]
5046test { try toUnicodeFail("xn--mnd289ezj4pqxp0i.xn--pelu572d"); } // [B1, B5, B6, C1, V7]
5047test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7"); } // [B2, B3, V7]
5048test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7"); } // [B2, B3, V7]
5049test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87"); } // [B2, B3, V7]
5050test { try toUnicodeFail("xn--te28c.xn--isb295fbtpmb"); } // [B2, B3, V7]
5051test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87"); } // [B2, B3, V7]
5052test { try toUnicodeFail("xn--te28c.xn--isb856b9a631d"); } // [B2, B3, V7]
5053test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87"); } // [B2, B3, V7]
5054test { try toUnicodeFail("xn--te28c.xn--isb286btrgo7w"); } // [B2, B3, V7]
5055test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87"); } // [B2, B3, V7]
5056test { try toUnicodeFail("\xe2\x80\x8d\xf4\x85\x8d\x89.\xda\xb3\xdd\xb5"); } // [B1, C2, V7]
5057test { try toUnicodeFail("xn--3j78f.xn--mkb20b"); } // [V7]
5058test { try toUnicodeFail("xn--1ug39444n.xn--mkb20b"); } // [B1, C2, V7]
5059test { try toUnicodeFail("\xf0\xb2\xa4\xb1\xe2\x92\x9b\xe2\xbe\xb3\xef\xbc\x8e\xea\xa1\xa6\xe2\x92\x88"); } // [V7]
1451test { try toUnicodePass("\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61.", "\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61."); }5060test { try toUnicodePass("\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61.", "\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61."); }
1452test { try toUnicodePass("xn--20-9802c.xn--0w5a.xn--1-eg4e.", "\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61."); }5061test { try toUnicodePass("xn--20-9802c.xn--0w5a.xn--1-eg4e.", "\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61."); }
5062test { try toUnicodeFail("xn--dth6033bzbvx.xn--tsh9439b"); } // [V7]
5063test { 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]
5064test { 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]
5065test { try toUnicodeFail("xn--8--rve13079p.xn--b7b9842k42df776x"); } // [B2, B3, B5, B6, V3, V7]
1453test { 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"); }5066test { 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"); }
1454test { try toAsciiPass("\xe1\x82\xb5\xe3\x80\x82\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn--dlj.xn--zca912alh227g", false); }5067test { try toAsciiPass("\xe1\x82\xb5\xe3\x80\x82\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn--dlj.xn--zca912alh227g", false); }
1455test { try toAsciiPass("\xe1\x82\xb5\xe3\x80\x82\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn--dlj.xn--ss-jbe65aw27i", true); }5068test { try toAsciiPass("\xe1\x82\xb5\xe3\x80\x82\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn--dlj.xn--ss-jbe65aw27i", true); }
...@@ -1510,9 +5123,38 @@ test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn-...@@ -1510,9 +5123,38 @@ test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn-
1510test { try toUnicodePass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "\xe2\xb4\x95.\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85"); }5123test { try toUnicodePass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "\xe2\xb4\x95.\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85"); }
1511test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "xn--dlj.xn--zca912alh227g", false); }5124test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "xn--dlj.xn--zca912alh227g", false); }
1512test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "xn--dlj.xn--ss-jbe65aw27i", true); }5125test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "xn--dlj.xn--ss-jbe65aw27i", true); }
5126test { try toUnicodeFail("xn--tnd.xn--ss-jbe65aw27i"); } // [V7]
5127test { try toUnicodeFail("xn--tnd.xn--zca912alh227g"); } // [V7]
5128test { try toUnicodeFail("\xdf\xa9-.\xf0\x9d\xa8\x97\xea\x92\xb1\xe1\xad\xb2"); } // [B1, B3, V3, V6]
5129test { try toUnicodeFail("xn----odd.xn--dwf8994dc8wj"); } // [B1, B3, V3, V6]
5130test { try toUnicodeFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.\xe2\x89\xaf\xe4\x95\xb5\xe2\xab\xa7"); } // [B1, B3, C1, V7]
5131test { try toUnicodeFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.>\xcc\xb8\xe4\x95\xb5\xe2\xab\xa7"); } // [B1, B3, C1, V7]
5132test { try toUnicodeFail("xn--sn7h.xn--hdh754ax6w"); } // [B1, V7]
5133test { try toUnicodeFail("xn--0ugx453p.xn--hdh754ax6w"); } // [B1, B3, C1, V7]
5134test { try toUnicodeFail("\xf0\x90\xa8\x85\xc3\x9f\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7]
5135test { try toUnicodeFail("\xf0\x90\xa8\x85\xc3\x9f\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6]
5136test { try toUnicodeFail("\xf0\x90\xa8\x85SS\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6]
5137test { try toUnicodeFail("\xf0\x90\xa8\x85ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6]
5138test { try toUnicodeFail("\xf0\x90\xa8\x85Ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6]
5139test { try toUnicodeFail("xn--ss-ytd5i7765l.xn--fkb6l."); } // [B1, V6]
5140test { try toUnicodeFail("xn--zca23yncs877j.xn--fkb6l."); } // [B1, V6]
5141test { try toUnicodeFail("\xf0\x90\xa8\x85SS\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7]
5142test { try toUnicodeFail("\xf0\x90\xa8\x85ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7]
5143test { try toUnicodeFail("\xf0\x90\xa8\x85Ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7]
5144test { try toUnicodeFail("xn--ss-ytd5i7765l.xn--fkb6lp314e"); } // [B1, B3, V6, V7]
5145test { try toUnicodeFail("xn--zca23yncs877j.xn--fkb6lp314e"); } // [B1, B3, V6, V7]
5146test { try toUnicodeFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94"); } // [B1, V3, V7]
5147test { try toUnicodeFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94"); } // [B1, V3, V7]
5148test { try toUnicodeFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94"); } // [B1, V3, V7]
5149test { try toUnicodeFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94"); } // [B1, V3, V7]
5150test { try toUnicodeFail("xn----44l04zxt68c.xn--enb135qf106f"); } // [B1, V3, V7]
5151test { try toUnicodeFail("xn----44l04zxt68c.xn--enb300c1597h"); } // [B1, V3, V7]
1513test { try toAsciiPass("\xf0\x9e\xa4\xa8\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }5152test { try toAsciiPass("\xf0\x9e\xa4\xa8\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }
5153test { try toUnicodeFail("\xf0\x9e\xa4\xa8\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2]
1514test { try toAsciiPass("\xf0\x9e\xa4\xa8\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }5154test { try toAsciiPass("\xf0\x9e\xa4\xa8\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }
5155test { try toUnicodeFail("\xf0\x9e\xa4\xa8\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2]
1515test { try toAsciiPass("\xf0\x9e\xa4\x86\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }5156test { try toAsciiPass("\xf0\x9e\xa4\x86\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }
5157test { try toUnicodeFail("\xf0\x9e\xa4\x86\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2]
1516test { try toUnicodePass("xn--ge6h.xn--oc9a", "\xf0\x9e\xa4\xa8.\xea\xa1\x8f"); }5158test { try toUnicodePass("xn--ge6h.xn--oc9a", "\xf0\x9e\xa4\xa8.\xea\xa1\x8f"); }
1517test { try toAsciiPass("xn--ge6h.xn--oc9a", "xn--ge6h.xn--oc9a", false); }5159test { try toAsciiPass("xn--ge6h.xn--oc9a", "xn--ge6h.xn--oc9a", false); }
1518test { try toAsciiPass("xn--ge6h.xn--oc9a", "xn--ge6h.xn--oc9a", true); }5160test { try toAsciiPass("xn--ge6h.xn--oc9a", "xn--ge6h.xn--oc9a", true); }
...@@ -1522,7 +5164,60 @@ test { try toAsciiPass("\xf0\x9e\xa4\xa8.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", tru...@@ -1522,7 +5164,60 @@ test { try toAsciiPass("\xf0\x9e\xa4\xa8.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", tru
1522test { try toUnicodePass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "\xf0\x9e\xa4\xa8.\xea\xa1\x8f"); }5164test { try toUnicodePass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "\xf0\x9e\xa4\xa8.\xea\xa1\x8f"); }
1523test { try toAsciiPass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", false); }5165test { try toAsciiPass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", false); }
1524test { try toAsciiPass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", true); }5166test { try toAsciiPass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", true); }
5167test { try toUnicodeFail("xn--ge6h.xn--0ugb9575h"); } // [B6, C1, C2]
1525test { try toAsciiPass("\xf0\x9e\xa4\x86\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }5168test { try toAsciiPass("\xf0\x9e\xa4\x86\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); }
5169test { try toUnicodeFail("\xf0\x9e\xa4\x86\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2]
5170test { 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]
5171test { try toUnicodeFail("\xf3\xa0\x85\xb9\xf0\x91\x82\xb6.\xe1\xa2\x8c\xf0\x91\x82\xb9\xd9\xa9"); } // [B1, B5, B6, V6]
5172test { try toUnicodeFail("xn--b50d.xn--iib993gyp5p"); } // [B1, B5, B6, V6]
5173test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91"); } // [V7]
5174test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91"); } // [V7]
5175test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe"); } // [V7]
5176test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe"); } // [V7]
5177test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe"); } // [V7]
5178test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe"); } // [V7]
5179test { try toUnicodeFail("xn--73g39298c.xn--hdhz171b"); } // [V7]
5180test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91"); } // [V7]
5181test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91"); } // [V7]
5182test { try toUnicodeFail("xn--f3g73398c.xn--hdhz171b"); } // [V7]
5183test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3]
5184test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3]
5185test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3]
5186test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3]
5187test { try toUnicodeFail("xn--4xa25ks2j.-"); } // [B1, B5, B6, V3]
5188test { try toUnicodeFail("xn--4xa25ks2jenu.-"); } // [B1, B5, B6, C2, V3]
5189test { try toUnicodeFail("xn--3xa45ks2jenu.-"); } // [B1, B5, B6, C2, V3]
5190test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3]
5191test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3]
5192test { try toUnicodeFail("\xe2\x80\x8c.\xc3\x9f\xe1\x82\xa9-"); } // [C1, V3]
5193test { try toUnicodeFail("\xe2\x80\x8c.\xc3\x9f\xe2\xb4\x89-"); } // [C1, V3]
5194test { try toUnicodeFail("\xe2\x80\x8c.SS\xe1\x82\xa9-"); } // [C1, V3]
5195test { try toUnicodeFail("\xe2\x80\x8c.ss\xe2\xb4\x89-"); } // [C1, V3]
5196test { try toUnicodeFail("\xe2\x80\x8c.Ss\xe2\xb4\x89-"); } // [C1, V3]
5197test { try toUnicodeFail(".xn--ss--bi1b"); } // [V3, X4_2]
5198test { try toUnicodeFail("xn--0ug.xn--ss--bi1b"); } // [C1, V3]
5199test { try toUnicodeFail("xn--0ug.xn----pfa2305a"); } // [C1, V3]
5200test { try toUnicodeFail(".xn--ss--4rn"); } // [V3, V7, X4_2]
5201test { try toUnicodeFail("xn--0ug.xn--ss--4rn"); } // [C1, V3, V7]
5202test { try toUnicodeFail("xn--0ug.xn----pfa042j"); } // [C1, V3, V7]
5203test { try toUnicodeFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe2\xbe\x91"); } // [B5, V7]
5204test { try toUnicodeFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe8\xa5\xbe"); } // [B5, V7]
5205test { try toUnicodeFail("xn--u7kt691dlj09f.xn--9v2a"); } // [B5, V7]
5206test { 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]
5207test { 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]
5208test { try toUnicodeFail("xn--2jb053lf13nyoc.xn--hdh08821l"); } // [B1, B3, V7]
5209test { try toUnicodeFail("xn--2jb053lf13nyoc.xn--1ugx6gc8096c"); } // [B1, B3, C2, V7]
5210test { 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]
5211test { try toUnicodeFail("6\xe3\x80\x82\xf1\x83\xb0\xb6\xdd\xb7\xe0\xa2\xb0\xe2\xa9\x8b"); } // [B1, B5, B6, V7]
5212test { try toUnicodeFail("6.xn--7pb04do15eq748f"); } // [B1, B5, B6, V7]
5213test { try toUnicodeFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x8d\xb4\xf0\x91\x87\x80"); } // [B1, V3, V6]
5214test { try toUnicodeFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4"); } // [B1, V3, V6]
5215test { try toUnicodeFail("-\xd8\xb4\xd9\x89\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4"); } // [B1, V3, V6]
5216test { try toUnicodeFail("xn----qnc7d.xn--wd1d62a"); } // [B1, V3, V6]
5217test { 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]
5218test { 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]
5219test { try toUnicodeFail("xn--1-f521m.xn--mxc0872kcu37dnmem"); } // [B1, V6, V7]
5220test { try toUnicodeFail("xn--1-rgnu0071n.xn--mxc0872kcu37dnmem"); } // [B1, C1, V6, V7]
1526test { try toUnicodePass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "\xe9\xbd\x99--4.\xc3\x9f"); }5221test { try toUnicodePass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "\xe9\xbd\x99--4.\xc3\x9f"); }
1527test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "xn----4-p16k.xn--zca", false); }5222test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "xn----4-p16k.xn--zca", false); }
1528test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "xn----4-p16k.ss", true); }5223test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "xn----4-p16k.ss", true); }
...@@ -1553,10 +5248,75 @@ test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.ss", "xn----4-p16k.ss", t...@@ -1553,10 +5248,75 @@ test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.ss", "xn----4-p16k.ss", t
1553test { try toUnicodePass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "\xe9\xbd\x99--4.ss"); }5248test { try toUnicodePass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "\xe9\xbd\x99--4.ss"); }
1554test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "xn----4-p16k.ss", false); }5249test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "xn----4-p16k.ss", false); }
1555test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "xn----4-p16k.ss", true); }5250test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "xn----4-p16k.ss", true); }
5251test { try toUnicodeFail("\xe1\xaf\xb2.\xf0\x90\xb9\xa2\xf0\x9e\x80\x96\xe2\x80\x8c"); } // [B1, C1, V6]
5252test { try toUnicodeFail("xn--0zf.xn--9n0d2296a"); } // [B1, V6]
5253test { try toUnicodeFail("xn--0zf.xn--0ug9894grqqf"); } // [B1, C1, V6]
5254test { try toUnicodeFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xef\xbd\xa1?-\xe2\x80\x8d"); } // [C2, V7, U1]
5255test { try toUnicodeFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xe3\x80\x82?-\xe2\x80\x8d"); } // [C2, V7, U1]
5256test { try toUnicodeFail("xn--ct86d8w51a.?-"); } // [V3, V7, U1]
5257test { try toUnicodeFail("xn--ct86d8w51a.xn--?--n1t"); } // [C2, V7, U1]
5258test { try toUnicodeFail("xn--ct86d8w51a.?-\xe2\x80\x8d"); } // [C2, V7, U1]
5259test { try toUnicodeFail("XN--CT86D8W51A.?-\xe2\x80\x8d"); } // [C2, V7, U1]
5260test { try toUnicodeFail("Xn--Ct86d8w51a.?-\xe2\x80\x8d"); } // [C2, V7, U1]
5261test { try toUnicodeFail("\xe1\xa9\xa0\xef\xbc\x8e\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e"); } // [B1, B2, B3, V6, V7]
5262test { try toUnicodeFail("\xe1\xa9\xa0.\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e"); } // [B1, B2, B3, V6, V7]
5263test { try toUnicodeFail("xn--jof.xn----gf4bq282iezpa"); } // [B1, B2, B3, V6, V7]
5264test { 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]
5265test { try toUnicodeFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\xb3\xf1\x8f\xa5\xbe"); } // [B2, B3, B6, V7]
5266test { try toUnicodeFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\x91\xf1\x8f\xa5\xbe"); } // [B2, B3, B6, V7]
5267test { try toUnicodeFail("xn--xx5gy2741c.xn--re6hw266j"); } // [B2, B3, B6, V7]
5268test { 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]
5269test { try toUnicodeFail("\xdc\x9c\xf0\x90\xab\x92\xd8\xae.\xf0\x90\x8b\xb2"); } // [B1]
5270test { try toUnicodeFail("xn--tgb98b8643d.xn--m97c"); } // [B1]
5271test { try toUnicodeFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\x93\xd8\xb7\xe0\xa3\xa2.?"); } // [B1, V7, U1]
5272test { try toUnicodeFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\xb5\xd8\xb7\xe0\xa3\xa2.?"); } // [B1, V7, U1]
5273test { try toUnicodeFail("xn--2gb08k9w69agm0g.?"); } // [B1, V7, U1]
5274test { try toUnicodeFail("\xe2\x86\x83\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3"); } // [B1, V6, V7]
5275test { try toUnicodeFail("\xe2\x86\x83\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3"); } // [B1, V6, V7]
5276test { try toUnicodeFail("\xe2\x86\x84\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3"); } // [B1, V6, V7]
5277test { try toUnicodeFail("xn--r5g.xn--ybc995g0835a"); } // [B1, V6, V7]
5278test { try toUnicodeFail("\xe2\x86\x84\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3"); } // [B1, V6, V7]
5279test { try toUnicodeFail("xn--q5g.xn--ybc995g0835a"); } // [B1, V6, V7]
5280test { try toUnicodeFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f\xe2\x89\xae\xf0\x91\x9c\xab"); } // [V3, V7]
5281test { try toUnicodeFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f<\xcc\xb8\xf0\x91\x9c\xab"); } // [V3, V7]
5282test { try toUnicodeFail("xn----bh61m.xn--gdhz157g0em1d"); } // [V3, V7]
5283test { 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]
5284test { 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]
5285test { 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]
5286test { 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]
5287test { try toUnicodeFail("xn--3n36e.xn--gdh992byu01p"); } // [V7]
5288test { try toUnicodeFail("xn--0ugc90904y.xn--gdh992byu01p"); } // [C1, C2, V7]
5289test { try toUnicodeFail("xn--3n36e.xn--hnd112gpz83n"); } // [V7]
5290test { try toUnicodeFail("xn--0ugc90904y.xn--hnd112gpz83n"); } // [C1, C2, V7]
5291test { 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]
5292test { 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]
5293test { try toUnicodeFail("xn----rpd7902rclc..xn--fpo216m"); } // [B1, X4_2]
5294test { try toUnicodeFail("xn----rpd7902rclc.xn--fpo216mn07e"); } // [B1, V7]
5295test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xec\xaa\xa1"); } // [V6]
5296test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6]
5297test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xec\xaa\xa1"); } // [V6]
5298test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6]
5299test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6]
5300test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xec\xaa\xa1"); } // [V6]
5301test { try toUnicodeFail("xn--7kj1858k.xn--pi6b"); } // [V6]
5302test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6]
5303test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xec\xaa\xa1"); } // [V6]
5304test { try toUnicodeFail("xn--ond3755u.xn--pi6b"); } // [V6, V7]
5305test { try toUnicodeFail("\xe0\xb8\xba\xec\xa9\x81\xf0\x90\xb9\xac.\xf4\x8b\x89\xb3"); } // [B1, V6, V7]
5306test { 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]
5307test { try toUnicodeFail("xn--o4c4837g2zvb.xn--5f70g"); } // [B1, V6, V7]
5308test { try toUnicodeFail("\xe1\xa1\x85\xef\xbc\x90\xe2\x80\x8c\xef\xbd\xa1\xe2\x8e\xa2\xf3\xa4\xa8\x84"); } // [C1, V7]
5309test { try toUnicodeFail("\xe1\xa1\x850\xe2\x80\x8c\xe3\x80\x82\xe2\x8e\xa2\xf3\xa4\xa8\x84"); } // [C1, V7]
5310test { try toUnicodeFail("xn--0-z6j.xn--8lh28773l"); } // [V7]
5311test { try toUnicodeFail("xn--0-z6jy93b.xn--8lh28773l"); } // [C1, V7]
1556test { 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); }5312test { 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); }
5313test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8d\xc3\x9f"); } // [C2]
1557test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8d\xc3\x9f", "xn--9-i0j5967eg3qz.ss", true); }5314test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8d\xc3\x9f", "xn--9-i0j5967eg3qz.ss", true); }
5315test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8d\xc3\x9f"); } // [C2]
1558test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSS", "xn--9-i0j5967eg3qz.ss", true); }5316test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSS", "xn--9-i0j5967eg3qz.ss", true); }
5317test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSS"); } // [C2]
1559test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dss", "xn--9-i0j5967eg3qz.ss", true); }5318test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dss", "xn--9-i0j5967eg3qz.ss", true); }
5319test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dss"); } // [C2]
1560test { try toUnicodePass("xn--9-i0j5967eg3qz.ss", "\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss"); }5320test { try toUnicodePass("xn--9-i0j5967eg3qz.ss", "\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss"); }
1561test { try toAsciiPass("xn--9-i0j5967eg3qz.ss", "xn--9-i0j5967eg3qz.ss", false); }5321test { try toAsciiPass("xn--9-i0j5967eg3qz.ss", "xn--9-i0j5967eg3qz.ss", false); }
1562test { try toAsciiPass("xn--9-i0j5967eg3qz.ss", "xn--9-i0j5967eg3qz.ss", true); }5322test { try toAsciiPass("xn--9-i0j5967eg3qz.ss", "xn--9-i0j5967eg3qz.ss", true); }
...@@ -1566,27 +5326,257 @@ test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss", "xn--9-i0...@@ -1566,27 +5326,257 @@ test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss", "xn--9-i0
1566test { try toUnicodePass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss"); }5326test { try toUnicodePass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss"); }
1567test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "xn--9-i0j5967eg3qz.ss", false); }5327test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "xn--9-i0j5967eg3qz.ss", false); }
1568test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "xn--9-i0j5967eg3qz.ss", true); }5328test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "xn--9-i0j5967eg3qz.ss", true); }
5329test { try toUnicodeFail("xn--9-i0j5967eg3qz.xn--ss-l1t"); } // [C2]
5330test { try toUnicodeFail("xn--9-i0j5967eg3qz.xn--zca770n"); } // [C2]
1569test { 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); }5331test { 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); }
5332test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSS"); } // [C2]
1570test { 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); }5333test { 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); }
5334test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dss"); } // [C2]
1571test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSs", "xn--9-i0j5967eg3qz.ss", true); }5335test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSs", "xn--9-i0j5967eg3qz.ss", true); }
5336test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSs"); } // [C2]
1572test { 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); }5337test { 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); }
5338test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSs"); } // [C2]
1573test { 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"); }5339test { 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"); }
1574test { try toAsciiPass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "xn--ju8a625r.xn--hpb0073k", false); }5340test { try toAsciiPass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "xn--ju8a625r.xn--hpb0073k", false); }
1575test { try toAsciiPass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "xn--ju8a625r.xn--hpb0073k", true); }5341test { try toAsciiPass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "xn--ju8a625r.xn--hpb0073k", true); }
1576test { try toUnicodePass("xn--ju8a625r.xn--hpb0073k", "\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92"); }5342test { try toUnicodePass("xn--ju8a625r.xn--hpb0073k", "\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92"); }
1577test { try toAsciiPass("xn--ju8a625r.xn--hpb0073k", "xn--ju8a625r.xn--hpb0073k", false); }5343test { try toAsciiPass("xn--ju8a625r.xn--hpb0073k", "xn--ju8a625r.xn--hpb0073k", false); }
1578test { try toAsciiPass("xn--ju8a625r.xn--hpb0073k", "xn--ju8a625r.xn--hpb0073k", true); }5344test { try toAsciiPass("xn--ju8a625r.xn--hpb0073k", "xn--ju8a625r.xn--hpb0073k", true); }
5345test { try toUnicodeFail("\xe2\x92\x90\xe2\x89\xaf-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7]
5346test { try toUnicodeFail("\xe2\x92\x90>\xcc\xb8-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7]
5347test { try toUnicodeFail("9.\xe2\x89\xaf-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7, X4_2]
5348test { try toUnicodeFail("9.>\xcc\xb8-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7, X4_2]
5349test { try toUnicodeFail("9.xn----ogo..xn----xj54d1s69k"); } // [V3, V7, X4_2]
5350test { try toUnicodeFail("xn----ogot9g.xn----n89hl0522az9u2a"); } // [V3, V7]
5351test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d"); } // [B6, V7]
5352test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f.\xd8\x9d"); } // [B6, V7]
5353test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f.\xd8\x9d"); } // [B6, V7]
5354test { try toUnicodeFail("xn--vuc226n8n28lmju7a.xn--cgb"); } // [B6, V7]
5355test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d"); } // [B6, V7]
5356test { try toUnicodeFail("xn--vuc49qvu85xmju7a.xn--cgb"); } // [B6, V7]
5357test { try toUnicodeFail("\xe1\xb7\xab\xe3\x80\x82\xf0\x90\x8b\xa9\xd8\xb8-\xf0\x90\xab\xae"); } // [B1, V6]
5358test { try toUnicodeFail("xn--gfg.xn----xnc0815qyyg"); } // [B1, V6]
5359test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe1\x82\xbd"); } // [B5]
5360test { 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]
5361test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe1\x82\xbd"); } // [B5]
5362test { 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]
5363test { 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]
5364test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe2\xb4\x9d"); } // [B5]
5365test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe1\x82\xbd"); } // [B5]
5366test { 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]
5367test { 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]
5368test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe2\xb4\x9d"); } // [B5]
5369test { try toUnicodeFail("xn--9u4b.xn--llj123yh74e"); } // [B5]
5370test { 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]
5371test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe2\xb4\x9d"); } // [B5]
5372test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe1\x82\xbd"); } // [B5]
5373test { 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]
5374test { 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]
5375test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe2\xb4\x9d"); } // [B5]
5376test { try toUnicodeFail("xn--9u4b.xn--1nd7519ch79d"); } // [B5, V7]
5377test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80"); } // [B1, C1]
5378test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1]
5379test { try toUnicodeFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80"); } // [B1, C1]
5380test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x83\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1]
5381test { try toUnicodeFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1]
5382test { try toUnicodeFail("xn--4xa9167k.xn--ykb467q"); } // [B1, B2, B3]
5383test { try toUnicodeFail("xn--4xa9167k.xn--ykb760k9hj"); } // [B1, C1]
5384test { try toUnicodeFail("xn--3xa1267k.xn--ykb760k9hj"); } // [B1, C1]
5385test { try toUnicodeFail("xn--4xa9167k.xn--ykb632c"); } // [B1, B2, B3, V7]
5386test { try toUnicodeFail("xn--4xa9167k.xn--ykb632cvxm"); } // [B1, C1, V7]
5387test { try toUnicodeFail("xn--3xa1267k.xn--ykb632cvxm"); } // [B1, C1, V7]
5388test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-\xc3\x9f"); } // [B2, B3, B5, B6, C1, V7]
5389test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-SS"); } // [B2, B3, B5, B6, C1, V7]
5390test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-ss"); } // [B2, B3, B5, B6, C1, V7]
5391test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-Ss"); } // [B2, B3, B5, B6, C1, V7]
5392test { try toUnicodeFail("xn--mfb98261i.xn---ss-sdf"); } // [B2, B3, B5, B6, V7]
5393test { try toUnicodeFail("xn--mfb144kqo32m.xn---ss-sdf"); } // [B2, B3, B5, B6, C1, V7]
5394test { try toUnicodeFail("xn--mfb144kqo32m.xn----qfa315b"); } // [B2, B3, B5, B6, C1, V7]
5395test { 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]
5396test { 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]
5397test { 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]
5398test { try toUnicodeFail("xn--zib.xn----twc1133r17r6g"); } // [B1, V3, V7]
5399test { try toUnicodeFail("xn--zib502kda.xn----twc1133r17r6g"); } // [B1, C1, C2, V3, V7]
5400test { try toUnicodeFail("xn--zib539f.xn----twc1133r17r6g"); } // [B1, V3, V6, V7]
5401test { try toUnicodeFail("xn--zib539f8igea.xn----twc1133r17r6g"); } // [B1, C1, C2, V3, V7]
5402test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac\xe2\x89\xa0"); } // [B3, V7]
5403test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac=\xcc\xb8"); } // [B3, V7]
5404test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac\xe2\x89\xa0"); } // [B3, V7]
5405test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac=\xcc\xb8"); } // [B3, V7]
5406test { try toUnicodeFail("xn--dd55c.xn--1ch3003g"); } // [B3, V7]
5407test { 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]
5408test { 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]
5409test { 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]
5410test { 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]
5411test { try toUnicodeFail("xn--fgd0675v.xn--imb5839fidpcbba"); } // [B1, V6, V7]
5412test { try toUnicodeFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe1\x82\xa9"); } // [C2, V3]
5413test { try toUnicodeFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe1\x82\xa9"); } // [C2, V3]
5414test { try toUnicodeFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe2\xb4\x89"); } // [C2, V3]
5415test { try toUnicodeFail("xn----3vs.xn--0kj"); } // [V3]
5416test { try toUnicodeFail("xn----3vs.xn--1ug532c"); } // [C2, V3]
5417test { try toUnicodeFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe2\xb4\x89"); } // [C2, V3]
5418test { try toUnicodeFail("xn----00g.xn--hnd"); } // [V3, V7]
5419test { try toUnicodeFail("xn----00g.xn--hnd399e"); } // [C2, V3, V7]
5420test { 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]
5421test { try toUnicodeFail("xn--l8g5552g64t4g46xf.xn--ifb08144p"); } // [B1, V7]
5422test { try toUnicodeFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88"); } // [B1, V7, U1]
5423test { try toUnicodeFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88"); } // [B1, V7, U1]
5424test { try toUnicodeFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x916,1."); } // [B1, U1]
5425test { try toUnicodeFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x916,1."); } // [B1, U1]
5426test { try toUnicodeFail("xn--1chy492g.xn--6,1-pw1a."); } // [B1, U1]
5427test { try toUnicodeFail("xn--1chy492g.xn--6,-uzus5m"); } // [B1, V7, U1]
5428test { try toUnicodeFail("xn--1chy492g.xn--45gx9iuy44d"); } // [B1, V7]
5429test { 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]
5430test { 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]
5431test { 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]
5432test { 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]
5433test { try toUnicodeFail("xn--ss-zb11ap1427e.xn--ubf2596jbt61c"); } // [B1, B5, B6, V6, V7]
5434test { try toUnicodeFail("xn--ss-zb11ap1427e.xn--ubf609atw1tynn3d"); } // [B1, B5, B6, C1, V6, V7]
5435test { try toUnicodeFail("xn--zca3153vupz3e.xn--ubf609atw1tynn3d"); } // [B1, B5, B6, C1, V6, V7]
5436test { 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]
5437test { 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]
5438test { 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]
5439test { try toUnicodeFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
5440test { try toUnicodeFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
5441test { try toUnicodeFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
5442test { try toUnicodeFail("xn--ss-e61ar955h4hs7b.xn--9x8a"); } // [B1, B5, V6, V7]
5443test { try toUnicodeFail("xn--zca227tpy4lkns1b.xn--9x8a"); } // [B1, B5, V6, V7]
5444test { 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]
5445test { try toUnicodeFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
5446test { try toUnicodeFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
5447test { try toUnicodeFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
5448test { try toUnicodeFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7]
5449test { try toUnicodeFail("xn--ss-rek7420r4hs7b.xn--9x8a"); } // [B1, B5, V6, V7]
5450test { try toUnicodeFail("xn--zca491fci5qkn79a.xn--9x8a"); } // [B1, B5, V6, V7]
5451test { try toUnicodeFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7]
5452test { try toUnicodeFail("\xe1\x9c\x94\xe3\x80\x82\xf3\xa0\x86\xa3-\xf0\x91\x8b\xaa"); } // [V3, V6]
5453test { try toUnicodeFail("xn--fze.xn----ly8i"); } // [V3, V6]
5454test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f"); } // [V3, V6, V7]
5455test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f"); } // [V3, V6, V7]
5456test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSS"); } // [V3, V6, V7]
5457test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdss"); } // [V3, V6, V7]
5458test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSs"); } // [V3, V6, V7]
5459test { try toUnicodeFail("xn----pw5e.xn--ss-7jd10716y"); } // [V3, V6, V7]
5460test { try toUnicodeFail("xn----pw5e.xn--zca50wfv060a"); } // [V3, V6, V7]
5461test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSS"); } // [V3, V6, V7]
5462test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdss"); } // [V3, V6, V7]
5463test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSs"); } // [V3, V6, V7]
5464test { try toUnicodeFail("\xe1\xa1\x93-\xe2\x89\xae\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84"); } // [B1, B6]
5465test { try toUnicodeFail("\xe1\xa1\x93-<\xcc\xb8\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84"); } // [B1, B6]
5466test { try toUnicodeFail("xn----s7j866c.xn--kib252g"); } // [B1, B6]
5467test { 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]
5468test { 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]
5469test { try toUnicodeFail("xn--3-ksd277tlo7s.xn--8-f0jx021l"); } // [V6]
5470test { try toUnicodeFail("-\xef\xbd\xa1\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1"); } // [C2, V3, V7]
5471test { try toUnicodeFail("-\xe3\x80\x82\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1"); } // [C2, V3, V7]
5472test { try toUnicodeFail("-.xn--nei54421f"); } // [V3, V7]
5473test { try toUnicodeFail("-.xn--1ug800aq795s"); } // [C2, V3, V7]
5474test { 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]
5475test { try toUnicodeFail("5\xe2\x98\xb12\xf2\xa5\xb0\xb5\xe3\x80\x82\xf0\x9d\xaa\xae\xf1\x90\xa1\xb3"); } // [V6, V7]
5476test { try toUnicodeFail("xn--52-dwx47758j.xn--kd3hk431k"); } // [V6, V7]
5477test { try toUnicodeFail("-.-\xe2\x94\x9c\xf2\x96\xa6\xa3"); } // [V3, V7]
5478test { try toUnicodeFail("-.xn----ukp70432h"); } // [V3, V7]
5479test { try toUnicodeFail("\xd6\xa5\xdd\xad\xef\xbd\xa1\xe2\x80\x8d\xf3\xa0\x80\x98"); } // [B1, C2, V6, V7]
5480test { try toUnicodeFail("\xd6\xa5\xdd\xad\xe3\x80\x82\xe2\x80\x8d\xf3\xa0\x80\x98"); } // [B1, C2, V6, V7]
5481test { try toUnicodeFail("xn--wcb62g.xn--p526e"); } // [B1, V6, V7]
5482test { try toUnicodeFail("xn--wcb62g.xn--1ugy8001l"); } // [B1, C2, V6, V7]
5483test { 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]
5484test { 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]
5485test { try toUnicodeFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe1\x82\xae.\xe2\x80\x8c1.1.\xf0\x90\xab\x92"); } // [B1, C1, V7]
5486test { 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]
5487test { 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]
5488test { try toUnicodeFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe2\xb4\x8e.\xe2\x80\x8c1.1.\xf0\x90\xab\x92"); } // [B1, C1, V7]
5489test { try toUnicodeFail("xn--5kj3511ccyw3h.1.1.xn--7w9c"); } // [B1, V7]
5490test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--1-rgn.1.xn--7w9c"); } // [B1, C1, V7]
5491test { 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]
5492test { 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]
5493test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--tsha6797o"); } // [B1, V7]
5494test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--0ug88oa0396u"); } // [B1, C1, V7]
5495test { try toUnicodeFail("xn--mnd7865gcy28g.1.1.xn--7w9c"); } // [B1, V7]
5496test { try toUnicodeFail("xn--mnd7865gcy28g.xn--1-rgn.1.xn--7w9c"); } // [B1, C1, V7]
5497test { try toUnicodeFail("xn--mnd7865gcy28g.xn--tsha6797o"); } // [B1, V7]
5498test { try toUnicodeFail("xn--mnd7865gcy28g.xn--0ug88oa0396u"); } // [B1, C1, V7]
5499test { try toUnicodeFail("\xe0\xa0\xa7\xf0\x9d\x9f\xb6\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3"); } // [B1, V3, V6]
5500test { try toUnicodeFail("\xe0\xa0\xa70\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3"); } // [B1, V3, V6]
5501test { try toUnicodeFail("xn--0--p3d67m.xn--v80d"); } // [B1, V3, V6]
5502test { try toUnicodeFail("\xcf\x82\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7]
1579test { 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."); }5503test { 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."); }
1580test { 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."); }5504test { 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."); }
1581test { 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."); }5505test { 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."); }
1582test { try toUnicodePass("xn--4xa.xn--1-gocmu97674d.", "\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }5506test { try toUnicodePass("xn--4xa.xn--1-gocmu97674d.", "\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }
1583test { try toUnicodePass("xn--3xa.xn--1-gocmu97674d.", "\xcf\x82.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }5507test { try toUnicodePass("xn--3xa.xn--1-gocmu97674d.", "\xcf\x82.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); }
5508test { try toUnicodeFail("\xce\xa3\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7]
5509test { try toUnicodeFail("\xcf\x83\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7]
5510test { try toUnicodeFail("xn--4xa.xn--dhbip2802atb20c"); } // [V7]
5511test { try toUnicodeFail("xn--3xa.xn--dhbip2802atb20c"); } // [V7]
5512test { try toUnicodeFail("\xf0\x9f\x97\xa9-\xef\xbd\xa1\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae"); } // [B1, V3, V7]
5513test { try toUnicodeFail("\xf0\x9f\x97\xa9-\xe3\x80\x82\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae"); } // [B1, V3, V7]
5514test { try toUnicodeFail("xn----6t3s.xn--zo0d4811u6ru6a"); } // [B1, V3, V7]
5515test { 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]
5516test { try toUnicodeFail("\xf0\x90\xa1\x9c-\xf0\x9f\x94\xaa\xe3\x80\x825\xe2\x80\x8c\xf0\x90\xbf\x80"); } // [B1, B3, C1]
5517test { try toUnicodeFail("xn----5j4iv089c.xn--5-bn7i"); } // [B1, B3]
5518test { try toUnicodeFail("xn----5j4iv089c.xn--5-sgn7149h"); } // [B1, B3, C1]
5519test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5520test { 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]
5521test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5522test { 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]
5523test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5524test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5525test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5526test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5527test { try toUnicodeFail("xn--ss-i05i7041a.xn--0-vgc50n"); } // [B1]
5528test { try toUnicodeFail("xn--ss-l1tu910fo0xd.xn--0-vgc50n"); } // [B1, C2]
5529test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5530test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5531test { try toUnicodeFail("xn--zca770n5s4hev6c.xn--0-vgc50n"); } // [B1, C2]
5532test { 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]
5533test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5534test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5535test { 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]
5536test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2]
5537test { 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]
5538test { try toUnicodeFail("9\xf3\xa0\x87\xa5\xef\xbc\x8e\xf3\xaa\xb4\xb4\xe1\xa2\x93"); } // [V7]
5539test { try toUnicodeFail("9\xf3\xa0\x87\xa5.\xf3\xaa\xb4\xb4\xe1\xa2\x93"); } // [V7]
5540test { try toUnicodeFail("9.xn--dbf91222q"); } // [V7]
5541test { 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]
5542test { 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]
5543test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe7\x8e\x89"); } // [B1, B2, B3, C1]
5544test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe7\x8e\x89"); } // [B1, B2, B3, C1]
5545test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe7\x8e\x89"); } // [B1, B2, B3, C1]
5546test { try toUnicodeFail(".xn--ss-je6eq954cp25j"); } // [B2, B3, X4_2]
5547test { try toUnicodeFail("xn--0ug.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1]
5548test { try toUnicodeFail("xn--0ug.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1]
5549test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe2\xbd\x9f"); } // [B1, B2, B3, C1]
5550test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe2\xbd\x9f"); } // [B1, B2, B3, C1]
5551test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe2\xbd\x9f"); } // [B1, B2, B3, C1]
5552test { try toUnicodeFail("xn--psd.xn--ss-je6eq954cp25j"); } // [B2, B3, V7]
5553test { try toUnicodeFail("xn--psd526e.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1, V7]
5554test { try toUnicodeFail("xn--psd526e.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1, V7]
5555test { try toUnicodeFail("xn--cl7c.xn--ss-je6eq954cp25j"); } // [B2, B3, V7]
5556test { try toUnicodeFail("xn--0ug7719f.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1, V7]
5557test { try toUnicodeFail("xn--0ug7719f.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1, V7]
5558test { try toUnicodeFail("\xef\xb8\x92\xe1\x82\xb6\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V7]
5559test { try toUnicodeFail("\xe3\x80\x82\xe1\x82\xb6\xcd\xa6.\xe2\x80\x8c"); } // [C1, X4_2]
5560test { try toUnicodeFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c"); } // [C1, X4_2]
5561test { try toUnicodeFail(".xn--hva754s."); } // [X4_2]
5562test { try toUnicodeFail(".xn--hva754s.xn--0ug"); } // [C1, X4_2]
5563test { try toUnicodeFail("\xef\xb8\x92\xe2\xb4\x96\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V7]
5564test { try toUnicodeFail("xn--hva754sy94k."); } // [V7]
5565test { try toUnicodeFail("xn--hva754sy94k.xn--0ug"); } // [C1, V7]
5566test { try toUnicodeFail(".xn--hva929d."); } // [V7, X4_2]
5567test { try toUnicodeFail(".xn--hva929d.xn--0ug"); } // [C1, V7, X4_2]
5568test { try toUnicodeFail("xn--hva929dl29p."); } // [V7]
5569test { try toUnicodeFail("xn--hva929dl29p.xn--0ug"); } // [C1, V7]
1584test { try toUnicodePass("xn--hva754s.", "\xe2\xb4\x96\xcd\xa6."); }5570test { try toUnicodePass("xn--hva754s.", "\xe2\xb4\x96\xcd\xa6."); }
1585test { try toUnicodePass("\xe2\xb4\x96\xcd\xa6.", "\xe2\xb4\x96\xcd\xa6."); }5571test { try toUnicodePass("\xe2\xb4\x96\xcd\xa6.", "\xe2\xb4\x96\xcd\xa6."); }
1586test { try toUnicodePass("\xe1\x82\xb6\xcd\xa6.", "\xe2\xb4\x96\xcd\xa6."); }5572test { try toUnicodePass("\xe1\x82\xb6\xcd\xa6.", "\xe2\xb4\x96\xcd\xa6."); }
5573test { try toUnicodeFail("xn--hva929d."); } // [V7]
1587test { try toAsciiPass("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }5574test { try toAsciiPass("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
5575test { try toUnicodeFail("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92"); } // [B1, C1]
1588test { try toAsciiPass("\xe0\xa2\xbb.\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }5576test { try toAsciiPass("\xe0\xa2\xbb.\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
5577test { try toUnicodeFail("\xe0\xa2\xbb.\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92"); } // [B1, C1]
1589test { try toAsciiPass("\xe0\xa2\xbb.\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }5578test { try toAsciiPass("\xe0\xa2\xbb.\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
5579test { try toUnicodeFail("\xe0\xa2\xbb.\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92"); } // [B1, C1]
1590test { try toUnicodePass("xn--hzb.xn--ukj4430l", "\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92"); }5580test { try toUnicodePass("xn--hzb.xn--ukj4430l", "\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92"); }
1591test { try toAsciiPass("xn--hzb.xn--ukj4430l", "xn--hzb.xn--ukj4430l", false); }5581test { try toAsciiPass("xn--hzb.xn--ukj4430l", "xn--hzb.xn--ukj4430l", false); }
1592test { try toAsciiPass("xn--hzb.xn--ukj4430l", "xn--hzb.xn--ukj4430l", true); }5582test { try toAsciiPass("xn--hzb.xn--ukj4430l", "xn--hzb.xn--ukj4430l", true); }
...@@ -1596,9 +5586,105 @@ test { try toAsciiPass("\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn-...@@ -1596,9 +5586,105 @@ test { try toAsciiPass("\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn-
1596test { try toUnicodePass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92"); }5586test { try toUnicodePass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92"); }
1597test { try toAsciiPass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", false); }5587test { try toAsciiPass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", false); }
1598test { try toAsciiPass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }5588test { try toAsciiPass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
5589test { try toUnicodeFail("xn--hzb.xn--0ug822cp045a"); } // [B1, C1]
1599test { try toAsciiPass("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }5590test { try toAsciiPass("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); }
5591test { try toUnicodeFail("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92"); } // [B1, C1]
5592test { try toUnicodeFail("xn--hzb.xn--bnd2938u"); } // [V7]
5593test { try toUnicodeFail("xn--hzb.xn--bnd300f7225a"); } // [B1, C1, V7]
5594test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xef\xbc\x92\xe4\xab\xb7\xf3\xa0\xa7\xb7"); } // [C1, C2, V7]
5595test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x822\xe4\xab\xb7\xf3\xa0\xa7\xb7"); } // [C1, C2, V7]
5596test { try toUnicodeFail(".xn--2-me5ay1273i"); } // [V7, X4_2]
5597test { try toUnicodeFail("xn--0ugb.xn--2-me5ay1273i"); } // [C1, C2, V7]
5598test { try toUnicodeFail("-\xf0\x9e\x80\xa4\xf3\x9c\xa0\x90\xe3\x80\x82\xf2\x88\xac\x96"); } // [V3, V7]
5599test { try toUnicodeFail("xn----rq4re4997d.xn--l707b"); } // [V3, V7]
5600test { 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]
5601test { 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]
5602test { try toUnicodeFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd8\xa41."); } // [B1, C1, V7]
5603test { try toUnicodeFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd9\x88\xd9\x941."); } // [B1, C1, V7]
5604test { try toUnicodeFail("xn--z272f.xn--etl.xn--1-smc."); } // [V7]
5605test { try toUnicodeFail("xn--z272f.xn--0ug754g.xn--1-smc."); } // [B1, C1, V7]
5606test { try toUnicodeFail("xn--etlt457ccrq7h.xn--jgb476m"); } // [V7]
5607test { try toUnicodeFail("xn--0ug754gxl4ldlt0k.xn--jgb476m"); } // [C1, V7]
5608test { try toUnicodeFail("\xf0\x91\xb2\x9c\xdf\x8a\xf0\x9d\x85\xbc\xe3\x80\x82-\xe2\x80\x8d"); } // [B1, C2, V3, V6]
5609test { try toUnicodeFail("xn--lsb5482l7nre.-"); } // [B1, V3, V6]
5610test { try toUnicodeFail("xn--lsb5482l7nre.xn----ugn"); } // [B1, C2, V3, V6]
5611test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
5612test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
5613test { try toUnicodeFail("\xe2\x80\x8c.\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
5614test { try toUnicodeFail("\xe2\x80\x8c.\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
5615test { try toUnicodeFail("\xe2\x80\x8c.\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
5616test { try toUnicodeFail("\xe2\x80\x8c.\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
5617test { try toUnicodeFail(".xn--1chx23bzj4p"); } // [B5, B6, X4_2]
5618test { try toUnicodeFail("xn--0ug.xn--1chx23bzj4p"); } // [B1, B5, B6, C1]
5619test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
5620test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1]
5621test { try toUnicodeFail(".xn--hnd481gv73o"); } // [B5, B6, V7, X4_2]
5622test { try toUnicodeFail("xn--0ug.xn--hnd481gv73o"); } // [B1, B5, B6, C1, V7]
5623test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x82"); } // [B1]
5624test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x82"); } // [B1]
5625test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xce\xa3"); } // [B1]
5626test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xce\xa3"); } // [B1]
5627test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x83"); } // [B1]
5628test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x83"); } // [B1]
5629test { try toUnicodeFail("xn--3ob.xn--4xa718m"); } // [B1]
5630test { try toUnicodeFail("xn--3ob.xn--3xa918m"); } // [B1]
5631test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe1\x82\xb0"); } // [V7]
5632test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe1\x82\xb0"); } // [V7]
5633test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe2\xb4\x90"); } // [V7]
5634test { try toUnicodeFail("xn--0tb8725k.xn--tu8d.xn--7kj73887a"); } // [V7]
5635test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe2\xb4\x90"); } // [V7]
5636test { try toUnicodeFail("xn--0tb8725k.xn--7kj9008dt18a7py9c"); } // [V7]
5637test { try toUnicodeFail("xn--0tb8725k.xn--tu8d.xn--ond97931d"); } // [V7]
5638test { try toUnicodeFail("xn--0tb8725k.xn--ond3562jt18a7py9c"); } // [V7]
5639test { try toUnicodeFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc"); } // [V6, V7]
5640test { try toUnicodeFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc"); } // [V6, V7]
5641test { try toUnicodeFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc"); } // [V6, V7]
5642test { try toUnicodeFail("xn--vfh16m67gx1162b.xn--ro1d"); } // [V6, V7]
5643test { try toUnicodeFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc"); } // [V6, V7]
5644test { try toUnicodeFail("xn--9nd623g4zc5z060c.xn--ro1d"); } // [V6, V7]
5645test { try toUnicodeFail("\xf0\x9f\x84\x88\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84"); } // [B1, V7, U1]
5646test { try toUnicodeFail("7,\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84"); } // [B1, V7, U1]
5647test { try toUnicodeFail("7,.xn--2vb13094p"); } // [B1, V7, U1]
5648test { try toUnicodeFail("xn--107h.xn--2vb13094p"); } // [B1, V7]
5649test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96\xc3\x9f"); } // [B1]
5650test { 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]
5651test { 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]
5652test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96SS"); } // [B1]
5653test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96ss"); } // [B1]
5654test { 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]
5655test { try toUnicodeFail("xn--4vb505k.xn--ss-5z4j006a"); } // [B1]
5656test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96Ss"); } // [B1]
5657test { 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]
5658test { try toUnicodeFail("xn--4vb505k.xn--zca7259goug"); } // [B1]
5659test { try toUnicodeFail("\xf3\xa0\x86\x93\xe2\x9b\x8f-\xe3\x80\x82\xea\xa1\x92"); } // [V3]
5660test { try toUnicodeFail("xn----o9p.xn--rc9a"); } // [V3]
5661test { 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]
5662test { 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]
5663test { try toUnicodeFail("xn--lgb32f2753cosb.xn--jkb91hlz1a"); } // [B2, B3, V7]
5664test { try toUnicodeFail("xn--lgb32f2753cosb.xn--jkb91hlz1azih"); } // [B2, B3, V7]
5665test { try toUnicodeFail("\xe0\xa0\x96.\xf0\x90\xa8\x95\xf0\x9a\x9a\x95"); } // [B1, B2, B3, V6, V7]
5666test { try toUnicodeFail("xn--rub.xn--tr9c248x"); } // [B1, B2, B3, V6, V7]
5667test { try toUnicodeFail("--\xe3\x80\x82\xf0\xbd\x8a\x86\xdd\xa7\xf0\x90\xbd\x8b\xf0\x9e\xa0\xac"); } // [B1, B5, B6, V3, V7]
5668test { try toUnicodeFail("--.xn--rpb6226k77pfh58p"); } // [B1, B5, B6, V3, V7]
5669test { 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]
5670test { 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]
5671test { try toUnicodeFail("xn--887c2298i5mv6a.xn--vybt688qm8981a"); } // [B1, V7]
5672test { 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]
5673test { 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]
5674test { try toUnicodeFail("xn--2loy662coo60e.xn----0n4a"); } // [B1, B5, B6, V3, V7]
5675test { try toUnicodeFail("\xf0\x90\xb9\xa9\xef\xbc\x8e\xe2\x80\x8d-"); } // [B1, C2, V3]
5676test { try toUnicodeFail("\xf0\x90\xb9\xa9.\xe2\x80\x8d-"); } // [B1, C2, V3]
5677test { try toUnicodeFail("xn--ho0d.-"); } // [B1, V3]
5678test { try toUnicodeFail("xn--ho0d.xn----tgn"); } // [B1, C2, V3]
5679test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7]
5680test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7]
5681test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7]
5682test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7]
5683test { try toUnicodeFail("xn--qutw175s.xn----mimu6tf67j"); } // [V3, V7]
1600test { 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); }5684test { 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); }
5685test { try toUnicodeFail("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe1\x82\xb8"); } // [C2]
1601test { 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); }5686test { 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); }
5687test { try toUnicodeFail("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe2\xb4\x98"); } // [C2]
1602test { try toUnicodePass("xn--p9ut19m.xn----mck373i", "\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe2\xb4\x98"); }5688test { try toUnicodePass("xn--p9ut19m.xn----mck373i", "\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe2\xb4\x98"); }
1603test { try toAsciiPass("xn--p9ut19m.xn----mck373i", "xn--p9ut19m.xn----mck373i", false); }5689test { try toAsciiPass("xn--p9ut19m.xn----mck373i", "xn--p9ut19m.xn----mck373i", false); }
1604test { try toAsciiPass("xn--p9ut19m.xn----mck373i", "xn--p9ut19m.xn----mck373i", true); }5690test { try toAsciiPass("xn--p9ut19m.xn----mck373i", "xn--p9ut19m.xn----mck373i", true); }
...@@ -1608,8 +5694,15 @@ test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe2\xb4\x98", "xn...@@ -1608,8 +5694,15 @@ test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe2\xb4\x98", "xn
1608test { try toUnicodePass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe2\xb4\x98"); }5694test { try toUnicodePass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe2\xb4\x98"); }
1609test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", false); }5695test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", false); }
1610test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", true); }5696test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", true); }
5697test { try toUnicodeFail("xn--1ug592ykp6b.xn----mck373i"); } // [C2]
5698test { try toUnicodeFail("xn--p9ut19m.xn----k1g451d"); } // [V7]
5699test { try toUnicodeFail("xn--1ug592ykp6b.xn----k1g451d"); } // [C2, V7]
5700test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8\xef\xbc\x8e\xe2\x92\x97\xef\xbc\x93\xed\x88\x92\xdb\xb3"); } // [C1, V7]
5701test { 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]
1611test { try toAsciiPass("\xe2\x80\x8c\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3", "xn--9r8a.16.xn--3-nyc0117m", true); }5702test { try toAsciiPass("\xe2\x80\x8c\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3", "xn--9r8a.16.xn--3-nyc0117m", true); }
5703test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); } // [C1]
1612test { 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); }5704test { 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); }
5705test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3"); } // [C1]
1613test { try toUnicodePass("xn--9r8a.16.xn--3-nyc0117m", "\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); }5706test { try toUnicodePass("xn--9r8a.16.xn--3-nyc0117m", "\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); }
1614test { try toAsciiPass("xn--9r8a.16.xn--3-nyc0117m", "xn--9r8a.16.xn--3-nyc0117m", false); }5707test { try toAsciiPass("xn--9r8a.16.xn--3-nyc0117m", "xn--9r8a.16.xn--3-nyc0117m", false); }
1615test { try toAsciiPass("xn--9r8a.16.xn--3-nyc0117m", "xn--9r8a.16.xn--3-nyc0117m", true); }5708test { try toAsciiPass("xn--9r8a.16.xn--3-nyc0117m", "xn--9r8a.16.xn--3-nyc0117m", true); }
...@@ -1619,13 +5712,173 @@ test { try toAsciiPass("\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3", "xn--9r8a.16.xn-...@@ -1619,13 +5712,173 @@ test { try toAsciiPass("\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3", "xn--9r8a.16.xn-
1619test { try toUnicodePass("\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3", "\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); }5712test { try toUnicodePass("\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3", "\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); }
1620test { 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); }5713test { 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); }
1621test { 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); }5714test { 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); }
5715test { try toUnicodeFail("xn--0ug2473c.16.xn--3-nyc0117m"); } // [C1]
5716test { try toUnicodeFail("xn--9r8a.xn--3-nyc678tu07m"); } // [V7]
5717test { try toUnicodeFail("xn--0ug2473c.xn--3-nyc678tu07m"); } // [C1, V7]
5718test { try toUnicodeFail("\xe2\x92\x88\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90"); } // [B1, V7]
5719test { try toUnicodeFail("\xe2\x92\x88\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90"); } // [B1, V7]
5720test { try toUnicodeFail("1.\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90"); } // [B1]
5721test { try toUnicodeFail("1.\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90"); } // [B1]
5722test { try toUnicodeFail("1.xn--6-945e.xn--glb1794k"); } // [B1]
5723test { try toUnicodeFail("xn--6-dcps419c.xn--glb1794k"); } // [B1, V7]
5724test { 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]
5725test { try toUnicodeFail("\xf0\x90\xb2\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
5726test { try toUnicodeFail("\xf0\x90\xb2\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
5727test { try toUnicodeFail("\xf0\x90\xb2\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
5728test { try toUnicodeFail("\xf0\x90\xb3\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
5729test { try toUnicodeFail("\xf0\x90\xb3\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
5730test { try toUnicodeFail("xn--0-ngoa5711v.xn--4gb31034p"); } // [B1, B3, V7]
5731test { try toUnicodeFail("\xf0\x90\xb3\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7]
5732test { 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]
5733test { try toUnicodeFail("\xe0\xab\xa3.\xf0\x90\xb9\xba\xe1\x85\x9f"); } // [B1, V6]
5734test { try toUnicodeFail("xn--8fc.xn--yo0d"); } // [B1, V6]
5735test { try toUnicodeFail("xn--8fc.xn--osd3070k"); } // [B1, V6, V7]
5736test { try toUnicodeFail("\xf0\x9d\x9f\x8f\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d"); } // [C2]
5737test { try toUnicodeFail("1\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d"); } // [C2]
1622test { try toUnicodePass("xn--1-5bt6845n.", "1\xf0\x9d\xa8\x99\xe2\xb8\x96."); }5738test { try toUnicodePass("xn--1-5bt6845n.", "1\xf0\x9d\xa8\x99\xe2\xb8\x96."); }
1623test { try toUnicodePass("1\xf0\x9d\xa8\x99\xe2\xb8\x96.", "1\xf0\x9d\xa8\x99\xe2\xb8\x96."); }5739test { try toUnicodePass("1\xf0\x9d\xa8\x99\xe2\xb8\x96.", "1\xf0\x9d\xa8\x99\xe2\xb8\x96."); }
5740test { try toUnicodeFail("xn--1-5bt6845n.xn--1ug"); } // [C2]
5741test { 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]
5742test { try toUnicodeFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
5743test { 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]
5744test { try toUnicodeFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
5745test { try toUnicodeFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
5746test { 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]
5747test { try toUnicodeFail("xn--wnb859grzfzw60c.xn----kcd"); } // [B1, V3]
5748test { try toUnicodeFail("xn--wnb859grzfzw60c.xn----kcd017p"); } // [B1, C1, V3]
5749test { try toUnicodeFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3]
5750test { 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]
5751test { try toUnicodeFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xef\xbd\xa1\xd9\xb5"); } // [B1]
5752test { try toUnicodeFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xe3\x80\x82\xd8\xa7\xd9\xb4"); } // [B1]
5753test { try toUnicodeFail("xn----shb2387jgkqd.xn--mgb8m"); } // [B1]
5754test { try toUnicodeFail("F\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7]
5755test { try toUnicodeFail("F\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7]
5756test { try toUnicodeFail("f\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7]
5757test { try toUnicodeFail("f.xn--45hz6953f"); } // [V7]
5758test { try toUnicodeFail("f\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7]
5759test { 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]
5760test { 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]
5761test { 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]
5762test { try toUnicodeFail("xn--9ic246gs21p.xn--2-nws2918ndrjr"); } // [V6, V7]
5763test { 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]
5764test { try toUnicodeFail("xn--9ic246gs21p.xn--2-k1g43076adrwq"); } // [V6, V7]
5765test { 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]
5766test { 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]
5767test { try toUnicodeFail("xn--1-yi00h..xn--4grs325b"); } // [V7, X4_2]
5768test { try toUnicodeFail("xn--1-rgna61159u..xn--4grs325b"); } // [C1, V7, X4_2]
5769test { try toUnicodeFail("xn--tsh11906f.xn--4grs325b"); } // [V7]
5770test { try toUnicodeFail("xn--0uga855aez302a.xn--4grs325b"); } // [C1, V7]
5771test { try toUnicodeFail("\xe1\xa1\x83.\xe7\x8e\xbf\xf1\xab\x88\x9c\xf3\x95\x9e\x90"); } // [V7]
5772test { try toUnicodeFail("xn--27e.xn--7cy81125a0yq4a"); } // [V7]
5773test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88\xe2\x89\xaf\xf0\x9d\x9f\xb5"); } // [C1, V7]
5774test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88>\xcc\xb8\xf0\x9d\x9f\xb5"); } // [C1, V7]
5775test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.\xe2\x89\xaf9"); } // [C1]
5776test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89"); } // [C1]
5777test { try toUnicodeFail(".1.xn--9-ogo"); } // [X4_2]
5778test { try toUnicodeFail("xn--0uga.1.xn--9-ogo"); } // [C1]
5779test { try toUnicodeFail(".xn--9-ogo37g"); } // [V7, X4_2]
5780test { try toUnicodeFail("xn--0uga.xn--9-ogo37g"); } // [C1, V7]
5781test { 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]
5782test { 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]
5783test { try toUnicodeFail("xn--4eg41418g.xn--hdh5192gkm6r"); } // [B1, B5, B6, V6, V7]
5784test { try toUnicodeFail("xn--osd615d5659o.xn--hdh5192gkm6r"); } // [B5, B6, V7]
5785test { 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]
5786test { try toUnicodeFail("xn--9gb5080v.xn----qgd52296avol4f"); } // [B1, V6, V7]
5787test { try toUnicodeFail("xn--9gb723kg862a.xn----qgd52296avol4f"); } // [B1, C2, V6, V7]
5788test { try toUnicodeFail("\xe2\x83\x9a\xef\xbc\x8e\xf0\x91\x98\xbf-"); } // [V3, V6]
5789test { try toUnicodeFail("\xe2\x83\x9a.\xf0\x91\x98\xbf-"); } // [V3, V6]
5790test { try toUnicodeFail("xn--w0g.xn----bd0j"); } // [V3, V6]
5791test { try toUnicodeFail("\xe4\xae\xb8\xc3\x9f.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7]
5792test { try toUnicodeFail("\xe4\xae\xb8SS.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7]
5793test { try toUnicodeFail("\xe4\xae\xb8ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7]
5794test { try toUnicodeFail("\xe4\xae\xb8Ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7]
5795test { try toUnicodeFail("xn--ss-sf1c.xn--xyb1370div70kpzba"); } // [B1, V7]
5796test { try toUnicodeFail("xn--zca5349a.xn--xyb1370div70kpzba"); } // [B1, V7]
5797test { try toUnicodeFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95"); } // [B1, V3]
5798test { try toUnicodeFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95"); } // [B1, V3]
5799test { try toUnicodeFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95"); } // [B1, V3]
5800test { try toUnicodeFail("xn----zws.xn---23-pt0a0433lk3jj"); } // [B1, V3]
5801test { try toUnicodeFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95"); } // [B1, V3]
5802test { try toUnicodeFail("xn----w1g.xn---23-pt0a0433lk3jj"); } // [B1, V3, V7]
5803test { 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]
5804test { 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]
5805test { try toUnicodeFail("xn--bfc7604kv8m3g.xn--17e5565jl7zw4h16a"); } // [B5, B6, V7]
5806test { 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]
5807test { try toUnicodeFail("\xe1\x82\x82-\xe2\x80\x8d\xea\xa3\xaa.\xea\xa1\x8a\xe2\x80\x8d\xf1\xbc\xb8\xb3"); } // [C2, V6, V7]
5808test { try toUnicodeFail("xn----gyg3618i.xn--jc9ao4185a"); } // [V6, V7]
5809test { try toUnicodeFail("xn----gyg250jio7k.xn--1ug8774cri56d"); } // [C2, V6, V7]
5810test { try toUnicodeFail("\xdb\xb1\xe3\x80\x82\xe2\x89\xa0\xd9\xa8"); } // [B1]
5811test { try toUnicodeFail("\xdb\xb1\xe3\x80\x82=\xcc\xb8\xd9\xa8"); } // [B1]
5812test { try toUnicodeFail("xn--emb.xn--hib334l"); } // [B1]
5813test { try toUnicodeFail("\xf0\x91\x88\xb5\xe5\xbb\x8a.\xf0\x90\xa0\x8d"); } // [V6]
5814test { try toUnicodeFail("xn--xytw701b.xn--yc9c"); } // [V6]
5815test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe1\x82\xb0\xd9\xa1"); } // [B1, C2, V3]
5816test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-.-\xe1\x82\xb0\xd9\xa1"); } // [B1, C2, V3]
5817test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-.-\xe2\xb4\x90\xd9\xa1"); } // [B1, C2, V3]
5818test { try toUnicodeFail("xn----rgb.xn----bqc2280a"); } // [B1, V3, V6]
5819test { try toUnicodeFail("xn----rgb661t.xn----bqc2280a"); } // [B1, C2, V3]
5820test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe2\xb4\x90\xd9\xa1"); } // [B1, C2, V3]
5821test { try toUnicodeFail("xn----rgb.xn----bqc030f"); } // [B1, V3, V6, V7]
5822test { try toUnicodeFail("xn----rgb661t.xn----bqc030f"); } // [B1, C2, V3, V7]
5823test { try toUnicodeFail("\xd8\xba\xd9\xa1\xe6\x8c\x8f\xf3\xbe\xaf\x90.-"); } // [B1, B2, B3, V3, V7]
5824test { try toUnicodeFail("xn--5gb2f4205aqi47p.-"); } // [B1, B2, B3, V3, V7]
5825test { try toUnicodeFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd"); } // [B1]
5826test { try toUnicodeFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd"); } // [B1]
5827test { try toUnicodeFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b"); } // [B1]
5828test { try toUnicodeFail("xn--cmb.xn--fo0dy848a"); } // [B1]
5829test { try toUnicodeFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b"); } // [B1]
5830test { try toUnicodeFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab"); } // [V7]
5831test { 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]
5832test { try toUnicodeFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab"); } // [V7]
5833test { 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]
5834test { 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]
5835test { try toUnicodeFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab"); } // [V7]
5836test { try toUnicodeFail("xn--mlj0486jgl2j.xn--hbf6853f"); } // [V7]
5837test { 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]
5838test { try toUnicodeFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab"); } // [V7]
5839test { try toUnicodeFail("xn--2nd8876sgl2j.xn--hbf6853f"); } // [V7]
5840test { 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]
5841test { 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]
5842test { 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]
5843test { 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]
5844test { try toUnicodeFail("xn--qkb4516kbi06fg2id.xn--zfg31q"); } // [B1, V7]
5845test { try toUnicodeFail("xn--qkb4516kbi06fg2id.xn--zfg59fm0c"); } // [B1, C1, V7]
5846test { 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]
5847test { 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]
5848test { try toUnicodeFail("xn--fxe63563p.xn----q26i2bvu"); } // [B1, B6, V3, V7]
5849test { try toUnicodeFail("xn--fxe848bq3411a.xn----q26i2bvu"); } // [B1, B6, C2, V3, V7]
5850test { try toUnicodeFail("\xf0\x90\xb9\xb6.\xf0\x90\xab\x82"); } // [B1]
5851test { try toUnicodeFail("xn--uo0d.xn--rw9c"); } // [B1]
5852test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7]
5853test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2]
5854test { try toUnicodeFail("SS\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2]
5855test { try toUnicodeFail("ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2]
5856test { try toUnicodeFail("Ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2]
1624test { try toUnicodePass("xn--ss-f4j.b.", "ss\xe1\x80\xba.b."); }5857test { try toUnicodePass("xn--ss-f4j.b.", "ss\xe1\x80\xba.b."); }
1625test { try toUnicodePass("ss\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }5858test { try toUnicodePass("ss\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }
1626test { try toUnicodePass("SS\xe1\x80\xba.B.", "ss\xe1\x80\xba.b."); }5859test { try toUnicodePass("SS\xe1\x80\xba.B.", "ss\xe1\x80\xba.b."); }
1627test { try toUnicodePass("Ss\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }5860test { try toUnicodePass("Ss\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }
5861test { try toUnicodeFail("xn--ss-f4j585j.b."); } // [C2]
5862test { try toUnicodeFail("xn--zca679eh2l.b."); } // [C2]
5863test { try toUnicodeFail("SS\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7]
5864test { try toUnicodeFail("ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7]
5865test { try toUnicodeFail("Ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7]
5866test { try toUnicodeFail("xn--ss-f4j.xn--tsh"); } // [V7]
5867test { try toUnicodeFail("xn--ss-f4j585j.xn--tsh"); } // [C2, V7]
5868test { try toUnicodeFail("xn--zca679eh2l.xn--tsh"); } // [C2, V7]
1628test { try toUnicodePass("SS\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }5869test { try toUnicodePass("SS\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); }
5870test { 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]
5871test { try toUnicodeFail("xn--9ic6417rn4xb."); } // [B1, V6, V7]
5872test { try toUnicodeFail("xn--9ic637hz82z32jc.xn--1ug"); } // [B1, C2, V6, V7]
5873test { try toUnicodeFail("\xf0\x90\xae\x85\xef\xbd\xa1\xda\xbc\xf0\x9f\x81\x95"); } // [B3]
5874test { try toUnicodeFail("\xf0\x90\xae\x85\xe3\x80\x82\xda\xbc\xf0\x9f\x81\x95"); } // [B3]
5875test { try toUnicodeFail("xn--c29c.xn--vkb8871w"); } // [B3]
5876test { 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]
5877test { try toUnicodeFail("xn--fgb471g.xn--9w9c29jw3931a"); } // [B2, B3, V7]
5878test { try toUnicodeFail("xn--fgb471g.xn--0ug9853g7verp838a"); } // [B2, B3, C1, V7]
5879test { try toUnicodeFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\x8a"); } // [B1, V6, V7]
5880test { try toUnicodeFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\xac"); } // [B1, V6, V7]
5881test { try toUnicodeFail("xn--tf5w.xn--2b6hof"); } // [B1, V6, V7]
1629test { 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"); }5882test { 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"); }
1630test { 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); }5883test { 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); }
1631test { 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); }5884test { 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); }
...@@ -1656,9 +5909,95 @@ test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf.Ss\xe0\xbe\x84\xf0\x91\x8d\xac"...@@ -1656,9 +5909,95 @@ test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf.Ss\xe0\xbe\x84\xf0\x91\x8d\xac"
1656test { try toUnicodePass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "\xdb\x8c\xf0\x90\xa8\xbf.ss\xe0\xbe\x84\xf0\x91\x8d\xac"); }5909test { try toUnicodePass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "\xdb\x8c\xf0\x90\xa8\xbf.ss\xe0\xbe\x84\xf0\x91\x8d\xac"); }
1657test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", false); }5910test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", false); }
1658test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", true); }5911test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", true); }
5912test { try toUnicodeFail("\xf0\x9d\x9f\xa0\xe2\x89\xae\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1]
5913test { try toUnicodeFail("\xf0\x9d\x9f\xa0<\xcc\xb8\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1]
5914test { try toUnicodeFail("8\xe2\x89\xae\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1]
5915test { try toUnicodeFail("8<\xcc\xb8\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1]
1659test { try toUnicodePass("xn--8-ngo.", "8\xe2\x89\xae."); }5916test { try toUnicodePass("xn--8-ngo.", "8\xe2\x89\xae."); }
1660test { try toUnicodePass("8\xe2\x89\xae.", "8\xe2\x89\xae."); }5917test { try toUnicodePass("8\xe2\x89\xae.", "8\xe2\x89\xae."); }
1661test { try toUnicodePass("8<\xcc\xb8.", "8\xe2\x89\xae."); }5918test { try toUnicodePass("8<\xcc\xb8.", "8\xe2\x89\xae."); }
5919test { try toUnicodeFail("xn--8-sgn10i."); } // [C1]
5920test { try toUnicodeFail("xn--8-ngo.xn--z3e"); } // [V6, V7]
5921test { try toUnicodeFail("xn--8-sgn10i.xn--z3e"); } // [C1, V6, V7]
5922test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0"); } // [V7]
5923test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0"); } // [V7]
5924test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0"); } // [V7]
5925test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0"); } // [V7]
5926test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80"); } // [V7]
5927test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80"); } // [V7]
5928test { try toUnicodeFail("xn--fbf851c.xn--ko1u.xn--rkj"); } // [V7]
5929test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80"); } // [V7]
5930test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80"); } // [V7]
5931test { try toUnicodeFail("xn--fbf851cq98poxw1a.xn--rkj"); } // [V7]
5932test { try toUnicodeFail("xn--fbf851c.xn--ko1u.xn--7md"); } // [V7]
5933test { try toUnicodeFail("xn--fbf851cq98poxw1a.xn--7md"); } // [V7]
5934test { try toUnicodeFail("\xe0\xbe\x9f\xef\xbc\x8e-\xe0\xa0\xaa"); } // [V3, V6]
5935test { try toUnicodeFail("\xe0\xbe\x9f.-\xe0\xa0\xaa"); } // [V3, V6]
5936test { try toUnicodeFail("xn--vfd.xn----fhd"); } // [V3, V6]
5937test { 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]
5938test { 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]
5939test { try toUnicodeFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xed\x95\x9211.1.\xf4\x88\x84\xa6"); } // [V7]
5940test { try toUnicodeFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xe1\x84\x91\xe1\x85\xb5\xe1\x86\xbd11.1.\xf4\x88\x84\xa6"); } // [V7]
5941test { try toUnicodeFail("xn--tbg.xn--11-5o7k.1.xn--k469f"); } // [V7]
5942test { try toUnicodeFail("xn--tbg.xn--tsht7586kyts9l"); } // [V7]
5943test { try toUnicodeFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1]
5944test { try toUnicodeFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1]
5945test { try toUnicodeFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1]
5946test { try toUnicodeFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1]
5947test { try toUnicodeFail("xn--4xa6371khhl.xn--hib"); } // [B1]
5948test { try toUnicodeFail("xn--3xa8371khhl.xn--hib"); } // [B1]
5949test { try toUnicodeFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1]
5950test { try toUnicodeFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1]
5951test { 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]
5952test { try toUnicodeFail("xn--3j9a531o.xn--urju692efj0f"); } // [B1, V6, V7]
5953test { try toUnicodeFail("xn--0ugc8356he76c.xn--urju692efj0f"); } // [B1, B6, C2, V6, V7]
5954test { try toUnicodeFail("\xe2\x8a\xbc\xe3\x80\x82\xf1\xaa\xa7\x96\xda\x95"); } // [B1, B5, B6, V7]
5955test { try toUnicodeFail("xn--ofh.xn--rjb13118f"); } // [B1, B5, B6, V7]
5956test { try toUnicodeFail("\xf0\x90\xaf\xac\xf1\x96\x8b\x94\xe3\x80\x82\xf3\x9c\xb3\xa5"); } // [B2, B3, V7]
5957test { try toUnicodeFail("xn--949co370q.xn--7g25e"); } // [B2, B3, V7]
5958test { 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]
5959test { 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]
5960test { 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]
5961test { try toUnicodeFail("xn--jfb66gt010c.xn--4xa0023w4nq4c"); } // [B1, B6, V7]
5962test { try toUnicodeFail("xn--jfb66gt010c.xn--3xa2023w4nq4c"); } // [B1, B6, V7]
5963test { try toUnicodeFail("xn--jfb66gt010c.xn--4xa623h9p95ars26d"); } // [B1, B6, V7]
5964test { try toUnicodeFail("xn--jfb66gt010c.xn--3xa823h9p95ars26d"); } // [B1, B6, V7]
5965test { 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]
5966test { try toUnicodeFail("-\xf0\x90\xb3\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3"); } // [B1, V3, V6, V7]
5967test { try toUnicodeFail("-\xf0\x90\xb2\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3"); } // [B1, V3, V6, V7]
5968test { try toUnicodeFail("xn----roc5482rek10i.xn--3-zw5e"); } // [B1, V3, V6, V7]
5969test { 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]
5970test { 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]
5971test { 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]
5972test { 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]
5973test { 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]
5974test { try toUnicodeFail("xn--6v56e.xn--gdhz712gzlr6b"); } // [B1, B5, B6, V7]
5975test { try toUnicodeFail("xn--0ug22251l.xn--gdhz712gzlr6b"); } // [B1, B5, B6, C1, V7]
5976test { try toUnicodeFail("\xe2\x92\x88\xe2\x9c\x8c\xf2\x9f\xac\x9f\xef\xbc\x8e\xf0\x9d\x9f\xa1\xf1\xa0\xb1\xa3"); } // [V7]
5977test { try toUnicodeFail("1.\xe2\x9c\x8c\xf2\x9f\xac\x9f.9\xf1\xa0\xb1\xa3"); } // [V7]
5978test { try toUnicodeFail("1.xn--7bi44996f.xn--9-o706d"); } // [V7]
5979test { try toUnicodeFail("xn--tsh24g49550b.xn--9-o706d"); } // [V7]
5980test { try toUnicodeFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\xac\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94"); } // [B1, V6]
5981test { try toUnicodeFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\x8a\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94"); } // [B1, V6]
5982test { try toUnicodeFail("xn--d29c79hf98r.xn--fib011j"); } // [B1, V6]
5983test { try toUnicodeFail("\xcf\x82\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6]
5984test { try toUnicodeFail("\xcf\x82.\xea\xa7\x80\xea\xa3\x84"); } // [V6]
5985test { try toUnicodeFail("\xce\xa3.\xea\xa7\x80\xea\xa3\x84"); } // [V6]
5986test { try toUnicodeFail("\xcf\x83.\xea\xa7\x80\xea\xa3\x84"); } // [V6]
5987test { try toUnicodeFail("xn--4xa.xn--0f9ars"); } // [V6]
5988test { try toUnicodeFail("xn--3xa.xn--0f9ars"); } // [V6]
5989test { try toUnicodeFail("\xce\xa3\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6]
5990test { try toUnicodeFail("\xcf\x83\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6]
5991test { 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]
5992test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90\xef\xbc\x8e\xe0\xa1\x9b"); } // [B1, C1, V6]
5993test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb3\x90.\xe0\xa1\x9b"); } // [B1, C1, V6]
5994test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90.\xe0\xa1\x9b"); } // [B1, C1, V6]
5995test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90.\xe0\xa1\x9b"); } // [B1, C1, V6]
5996test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb2\x90.\xe0\xa1\x9b"); } // [B1, C1, V6]
5997test { try toUnicodeFail("xn--hdhz343g3wj.xn--qwb"); } // [B1, V6]
5998test { try toUnicodeFail("xn--0ug06g7697ap4ma.xn--qwb"); } // [B1, C1, V6]
5999test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90\xef\xbc\x8e\xe0\xa1\x9b"); } // [B1, C1, V6]
6000test { 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]
1662test { try toUnicodePass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "\xe7\xbe\x9a.\xe2\x89\xaf"); }6001test { try toUnicodePass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "\xe7\xbe\x9a.\xe2\x89\xaf"); }
1663test { try toAsciiPass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "xn--xt0a.xn--hdh", false); }6002test { try toAsciiPass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "xn--xt0a.xn--hdh", false); }
1664test { try toAsciiPass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "xn--xt0a.xn--hdh", true); }6003test { try toAsciiPass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "xn--xt0a.xn--hdh", true); }
...@@ -1680,6 +6019,53 @@ test { try toAsciiPass("\xe7\xbe\x9a.\xe2\x89\xaf", "xn--xt0a.xn--hdh", true); }...@@ -1680,6 +6019,53 @@ test { try toAsciiPass("\xe7\xbe\x9a.\xe2\x89\xaf", "xn--xt0a.xn--hdh", true); }
1680test { try toUnicodePass("\xe7\xbe\x9a.>\xcc\xb8", "\xe7\xbe\x9a.\xe2\x89\xaf"); }6019test { try toUnicodePass("\xe7\xbe\x9a.>\xcc\xb8", "\xe7\xbe\x9a.\xe2\x89\xaf"); }
1681test { try toAsciiPass("\xe7\xbe\x9a.>\xcc\xb8", "xn--xt0a.xn--hdh", false); }6020test { try toAsciiPass("\xe7\xbe\x9a.>\xcc\xb8", "xn--xt0a.xn--hdh", false); }
1682test { try toAsciiPass("\xe7\xbe\x9a.>\xcc\xb8", "xn--xt0a.xn--hdh", true); }6021test { try toAsciiPass("\xe7\xbe\x9a.>\xcc\xb8", "xn--xt0a.xn--hdh", true); }
6022test { try toUnicodeFail("\xf0\x91\x93\x82\xe1\x9d\x99\xef\xbc\x8e\xe0\xa2\xa8"); } // [B1, V6, V7]
6023test { try toUnicodeFail("\xf0\x91\x93\x82\xe1\x9d\x99.\xe0\xa2\xa8"); } // [B1, V6, V7]
6024test { try toUnicodeFail("xn--e1e9580k.xn--xyb"); } // [B1, V6, V7]
6025test { 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]
6026test { 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]
6027test { 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]
6028test { try toUnicodeFail("xn--1r19e.xn--3-ozb36ko13f"); } // [B1, V7]
6029test { try toUnicodeFail("xn--1ug89936l.xn--3-ozb36ko13f"); } // [B1, B6, C2, V7]
6030test { 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]
6031test { try toUnicodeFail("xn--1r19e.xn--3-ozb36kixu"); } // [B1, V7]
6032test { try toUnicodeFail("xn--1ug89936l.xn--3-ozb36kixu"); } // [B1, B6, C2, V7]
6033test { 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]
6034test { 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]
6035test { try toUnicodeFail("\xe1\xa1\xb7\xe3\x80\x82\xf0\x90\xb9\xa2\xe0\xa3\xa0"); } // [B1]
6036test { try toUnicodeFail("xn--k9e.xn--j0b5005k"); } // [B1]
6037test { 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]
6038test { 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]
6039test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS"); } // [B1, V7]
6040test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss"); } // [B1, V7]
6041test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss"); } // [B1, V7]
6042test { try toUnicodeFail("xn--1zf58212h.xn--ss-pyd459o3258m"); } // [B1, V7]
6043test { try toUnicodeFail("xn--1zf58212h.xn--zca34zk4qx711k"); } // [B1, V7]
6044test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS"); } // [B1, V7]
6045test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss"); } // [B1, V7]
6046test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss"); } // [B1, V7]
6047test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92\xe2\x89\xa0"); } // [B1, V7]
6048test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92=\xcc\xb8"); } // [B1, V7]
6049test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82\xe2\x89\xa0"); } // [B1, V7]
6050test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82=\xcc\xb8"); } // [B1, V7]
6051test { try toUnicodeFail("xn--dib0653l2i02d.xn--k736e.xn--1ch"); } // [B1, V7]
6052test { try toUnicodeFail("xn--dib0653l2i02d.xn--1ch7467f14u4g"); } // [B1, V7]
6053test { 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]
6054test { 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]
6055test { 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]
6056test { 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]
6057test { 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]
6058test { 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]
6059test { try toUnicodeFail("xn--1-3xm292b6044r..xn--9-6jd87310jtcqs"); } // [V7, X4_2]
6060test { 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]
6061test { 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]
6062test { try toUnicodeFail("xn--6lg26tvvc6v99z.xn--9-6jd87310jtcqs"); } // [V7]
6063test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\x98"); } // [B1, C2]
6064test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x98"); } // [B1, C2]
6065test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba"); } // [B1, C2]
6066test { try toUnicodeFail(".xn--ye6h"); } // [X4_2]
6067test { try toUnicodeFail("xn--1ug.xn--ye6h"); } // [B1, C2]
6068test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\xba"); } // [B1, C2]
1683test { try toUnicodePass("xn--ye6h", "\xf0\x9e\xa4\xba"); }6069test { try toUnicodePass("xn--ye6h", "\xf0\x9e\xa4\xba"); }
1684test { try toAsciiPass("xn--ye6h", "xn--ye6h", false); }6070test { try toAsciiPass("xn--ye6h", "xn--ye6h", false); }
1685test { try toAsciiPass("xn--ye6h", "xn--ye6h", true); }6071test { try toAsciiPass("xn--ye6h", "xn--ye6h", true); }
...@@ -1689,6 +6075,137 @@ test { try toAsciiPass("\xf0\x9e\xa4\xba", "xn--ye6h", true); }...@@ -1689,6 +6075,137 @@ test { try toAsciiPass("\xf0\x9e\xa4\xba", "xn--ye6h", true); }
1689test { try toUnicodePass("\xf0\x9e\xa4\x98", "\xf0\x9e\xa4\xba"); }6075test { try toUnicodePass("\xf0\x9e\xa4\x98", "\xf0\x9e\xa4\xba"); }
1690test { try toAsciiPass("\xf0\x9e\xa4\x98", "xn--ye6h", false); }6076test { try toAsciiPass("\xf0\x9e\xa4\x98", "xn--ye6h", false); }
1691test { try toAsciiPass("\xf0\x9e\xa4\x98", "xn--ye6h", true); }6077test { try toAsciiPass("\xf0\x9e\xa4\x98", "xn--ye6h", true); }
6078test { try toUnicodeFail("\xe0\xa0\xa9\xdc\xa4.\xe1\xa2\xa3"); } // [B1, V6]
6079test { try toUnicodeFail("xn--unb53c.xn--tbf"); } // [B1, V6]
6080test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbe\xc3\x9f"); } // [C1, V3, V6, V7]
6081test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSS"); } // [C1, V3, V6, V7]
6082test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbess"); } // [C1, V3, V6, V7]
6083test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSs"); } // [C1, V3, V6, V7]
6084test { try toUnicodeFail("xn----s2c.xn--ss-066q"); } // [V3, V6, V7]
6085test { try toUnicodeFail("xn----s2c071q.xn--ss-066q"); } // [C1, V3, V6, V7]
6086test { try toUnicodeFail("xn----s2c071q.xn--zca7848m"); } // [C1, V3, V6, V7]
6087test { 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]
6088test { 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]
6089test { 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]
6090test { 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]
6091test { try toUnicodeFail("xn--16-ubc66061c..xn--9ob79ycx2e"); } // [B5, B6, V6, X4_2]
6092test { try toUnicodeFail("xn--16-ubc7700avy99b..xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, X4_2]
6093test { try toUnicodeFail("xn--16-rbc1800avy99b..xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, X4_2]
6094test { 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]
6095test { 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]
6096test { try toUnicodeFail("xn--4xa229nbu92a.xn--9ob79ycx2e"); } // [B5, B6, V6, V7]
6097test { try toUnicodeFail("xn--4xa595lz9czy52d.xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, V7]
6098test { try toUnicodeFail("xn--3xa795lz9czy52d.xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, V7]
6099test { try toUnicodeFail("-.\xf0\x9e\xb8\x9a"); } // [B1, V3]
6100test { try toUnicodeFail("-.\xd8\xb8"); } // [B1, V3]
6101test { try toUnicodeFail("-.xn--3gb"); } // [B1, V3]
6102test { try toUnicodeFail("\xf2\x8f\x9b\x93\xda\x83.\xe0\xbd\xbe\xd8\xb4"); } // [B1, B5, B6, V6, V7]
6103test { try toUnicodeFail("xn--8ib92728i.xn--zgb968b"); } // [B1, B5, B6, V6, V7]
6104test { try toUnicodeFail("\xe0\xbf\xa6\xe0\xa1\x83\xf1\xbd\xb6\xac.\xf0\x90\xae\x8f"); } // [B5, V7]
6105test { try toUnicodeFail("xn--1vb320b5m04p.xn--m29c"); } // [B5, V7]
6106test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8b\xc3\x9f\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7]
6107test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bSS\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7]
6108test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bss\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7]
6109test { try toUnicodeFail("xn--2ss-odg83511n.xn--w7e"); } // [B1, V7]
6110test { try toUnicodeFail("xn--2-qfa924cez02l.xn--w7e"); } // [B1, V7]
6111test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bSs\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7]
6112test { 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]
6113test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6114test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6115test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6116test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6117test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6118test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6119test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6120test { try toUnicodeFail("xn--lsb457kkut.xn--ss--qjf"); } // [B2, B3, B5, B6, V3]
6121test { try toUnicodeFail("xn--lsb457kkut.xn--ss--qjf2343a"); } // [B2, B3, B5, B6, C2]
6122test { try toUnicodeFail("xn--lsb457kkut.xn----pfa076bys4a"); } // [B2, B3, B5, B6, C2]
6123test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6124test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6125test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6126test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6127test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6128test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6129test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6130test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2]
6131test { try toUnicodeFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xef\xb8\x92"); } // [V3, V6, V7]
6132test { try toUnicodeFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xe3\x80\x82"); } // [V3, V6, V7]
6133test { try toUnicodeFail("xn----b5h1837n2ok9f.xn----mkm."); } // [V3, V6, V7]
6134test { try toUnicodeFail("xn----b5h1837n2ok9f.xn----mkmw278h"); } // [V3, V6, V7]
6135test { try toUnicodeFail("\xef\xb8\x92.\xf2\x9a\xa0\xa1\xe1\xa9\x99"); } // [V7]
6136test { try toUnicodeFail("\xe3\x80\x82.\xf2\x9a\xa0\xa1\xe1\xa9\x99"); } // [V7, X4_2]
6137test { try toUnicodeFail("..xn--cof61594i"); } // [V7, X4_2]
6138test { try toUnicodeFail("xn--y86c.xn--cof61594i"); } // [V7]
6139test { try toUnicodeFail("\xcc\xa3\xe2\xb7\xa1\xe3\x80\x82\xe2\x80\x8c\xe2\x93\xbe\xe2\x80\x8c\xda\xb9"); } // [B1, C1, V6]
6140test { try toUnicodeFail("xn--kta899s.xn--skb116m"); } // [B1, V6]
6141test { try toUnicodeFail("xn--kta899s.xn--skb970ka771c"); } // [B1, C1, V6]
6142test { 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]
6143test { 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]
6144test { 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]
6145test { try toUnicodeFail("xn--tlb199fwl35a.xn--yld4613v"); } // [B1, B2, V6, V7]
6146test { 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]
6147test { try toUnicodeFail("\xf0\x91\xb0\xba.-\xf2\x91\x9f\x8f"); } // [V3, V6, V7]
6148test { try toUnicodeFail("xn--jk3d.xn----iz68g"); } // [V3, V6, V7]
6149test { try toUnicodeFail("\xf3\xa0\xbb\xa9\xef\xbc\x8e\xe8\xb5\x8f"); } // [V7]
6150test { try toUnicodeFail("\xf3\xa0\xbb\xa9.\xe8\xb5\x8f"); } // [V7]
6151test { try toUnicodeFail("xn--2856e.xn--6o3a"); } // [V7]
6152test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe1\x82\xa1"); } // [B2, B3]
6153test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe1\x82\xa1"); } // [B2, B3]
6154test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe2\xb4\x81"); } // [B2, B3]
6155test { try toUnicodeFail("xn--jkb440g.xn--skj"); } // [B2, B3]
6156test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe2\xb4\x81"); } // [B2, B3]
6157test { try toUnicodeFail("xn--jkb440g.xn--8md"); } // [B2, B3, V7]
6158test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xef\xbd\xa1-"); } // [B1, V3, V6]
6159test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xe3\x80\x82-"); } // [B1, V3, V6]
6160test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xe3\x80\x82-"); } // [B1, V3, V6]
6161test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xe3\x80\x82-"); } // [B1, V3, V6]
6162test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xe3\x80\x82-"); } // [B1, V3, V6]
6163test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xe3\x80\x82-"); } // [B1, V3, V6]
6164test { try toUnicodeFail("xn--4xa33mr38aeel.-"); } // [B1, V3, V6]
6165test { try toUnicodeFail("xn--3xa53mr38aeel.-"); } // [B1, V3, V6]
6166test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xef\xbd\xa1-"); } // [B1, V3, V6]
6167test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xef\xbd\xa1-"); } // [B1, V3, V6]
6168test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xef\xbd\xa1-"); } // [B1, V3, V6]
6169test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xef\xbd\xa1-"); } // [B1, V3, V6]
6170test { try toUnicodeFail("xn--4xa33m7zmb0q.-"); } // [B1, V3, V6, V7]
6171test { try toUnicodeFail("xn--3xa53m7zmb0q.-"); } // [B1, V3, V6, V7]
6172test { try toUnicodeFail("\xe1\x82\xad\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7]
6173test { try toUnicodeFail("\xe1\x82\xad.\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7]
6174test { try toUnicodeFail("\xe2\xb4\x8d.\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7]
6175test { try toUnicodeFail("xn--4kj.xn--p01x"); } // [V7]
6176test { try toUnicodeFail("xn--4kj.xn--0ug56448b"); } // [C1, V7]
6177test { try toUnicodeFail("\xe2\xb4\x8d\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7]
6178test { try toUnicodeFail("xn--lnd.xn--p01x"); } // [V7]
6179test { try toUnicodeFail("xn--lnd.xn--0ug56448b"); } // [C1, V7]
6180test { 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]
6181test { try toUnicodeFail("xn--9u37blu98h.xn--jof13bt568cork1j"); } // [B2, B3, B6, V7]
6182test { try toUnicodeFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1]
6183test { try toUnicodeFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1]
6184test { try toUnicodeFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1]
6185test { try toUnicodeFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1]
6186test { try toUnicodeFail("xn--i7e163ct2d.xn--vwj7372e"); } // [B1]
6187test { 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]
6188test { 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]
6189test { try toUnicodeFail("xn--fo0de1270ope54j.xn--zkjo0151o"); } // [B5, B6, V7]
6190test { try toUnicodeFail("xn--fo0de1270ope54j.xn--gndo2033q"); } // [B5, B6, V7]
6191test { try toUnicodeFail("\xf0\x9e\xa0\x82\xe3\x80\x82\xea\xa4\xa6"); } // [B1, V6]
6192test { try toUnicodeFail("xn--145h.xn--ti9a"); } // [B1, V6]
6193test { 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]
6194test { 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]
6195test { try toUnicodeFail("6\xf0\x90\xb9\xab.\xe1\x80\xb7\xdc\xb39\xea\xa1\x87"); } // [B1, V6]
6196test { try toUnicodeFail("xn--6-t26i.xn--9-91c730e8u8n"); } // [B1, V6]
6197test { try toUnicodeFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6\xef\xbc\x8e\xdb\x98"); } // [B1, V6, V7]
6198test { try toUnicodeFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6.\xdb\x98"); } // [B1, V6, V7]
6199test { try toUnicodeFail("xn--lfb19ct414i.xn--olb"); } // [B1, V6, V7]
6200test { 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]
6201test { try toUnicodeFail("\xe2\x9c\x86\xf1\xb1\x94\xa9\xea\xa1\x8b.\xd8\xb2\xe2\x80\x8d\xf0\x9e\xa3\xb4"); } // [B1, C2, V7]
6202test { try toUnicodeFail("xn--1biv525bcix0d.xn--xgb6828v"); } // [B1, V7]
6203test { try toUnicodeFail("xn--1biv525bcix0d.xn--xgb253k0m73a"); } // [B1, C2, V7]
6204test { 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]
6205test { 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]
6206test { 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]
6207test { 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]
6208test { try toUnicodeFail("xn----qoc64my971s.xn--1ch7585g76o3c"); } // [B1, B2, B3, V3, V7]
1692test { try toUnicodePass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.\xe7\xac\xa0"); }6209test { try toUnicodePass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.\xe7\xac\xa0"); }
1693test { try toAsciiPass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.xn--6vz", false); }6210test { try toAsciiPass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.xn--6vz", false); }
1694test { try toAsciiPass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.xn--6vz", true); }6211test { try toAsciiPass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.xn--6vz", true); }
...@@ -1701,17 +6218,188 @@ test { try toAsciiPass("3.\xe7\xac\xa0", "3.xn--6vz", true); }...@@ -1701,17 +6218,188 @@ test { try toAsciiPass("3.\xe7\xac\xa0", "3.xn--6vz", true); }
1701test { try toUnicodePass("3.xn--6vz", "3.\xe7\xac\xa0"); }6218test { try toUnicodePass("3.xn--6vz", "3.\xe7\xac\xa0"); }
1702test { try toAsciiPass("3.xn--6vz", "3.xn--6vz", false); }6219test { try toAsciiPass("3.xn--6vz", "3.xn--6vz", false); }
1703test { try toAsciiPass("3.xn--6vz", "3.xn--6vz", true); }6220test { try toAsciiPass("3.xn--6vz", "3.xn--6vz", true); }
6221test { try toUnicodeFail("-\xe2\x80\x8d.\xe1\x82\xbe\xf0\x90\x8b\xb7"); } // [C2, V3]
6222test { try toUnicodeFail("-\xe2\x80\x8d.\xe2\xb4\x9e\xf0\x90\x8b\xb7"); } // [C2, V3]
6223test { try toUnicodeFail("-.xn--mlj8559d"); } // [V3]
6224test { try toUnicodeFail("xn----ugn.xn--mlj8559d"); } // [C2, V3]
6225test { try toUnicodeFail("-.xn--2nd2315j"); } // [V3, V7]
6226test { try toUnicodeFail("xn----ugn.xn--2nd2315j"); } // [C2, V3, V7]
6227test { try toUnicodeFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
6228test { try toUnicodeFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
6229test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
6230test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
6231test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
6232test { try toUnicodeFail("xn--ss-ubc826a.xn--xmc"); } // [V6]
6233test { try toUnicodeFail("xn--ss-ubc826ab34b.xn--xmc"); } // [C2, V6]
6234test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
6235test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6]
6236test { try toUnicodeFail("xn--zca39lk1di19a.xn--xmc"); } // [C2, V6]
6237test { try toUnicodeFail("xn--zca19ln1di19a.xn--xmc"); } // [C2, V6]
6238test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
6239test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
6240test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
6241test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
6242test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6]
6243test { try toUnicodeFail("\xe2\x89\xa0\xef\xbc\x8e\xe2\x80\x8d"); } // [C2]
6244test { try toUnicodeFail("=\xcc\xb8\xef\xbc\x8e\xe2\x80\x8d"); } // [C2]
6245test { try toUnicodeFail("\xe2\x89\xa0.\xe2\x80\x8d"); } // [C2]
6246test { try toUnicodeFail("=\xcc\xb8.\xe2\x80\x8d"); } // [C2]
1704test { try toUnicodePass("xn--1ch.", "\xe2\x89\xa0."); }6247test { try toUnicodePass("xn--1ch.", "\xe2\x89\xa0."); }
1705test { try toUnicodePass("\xe2\x89\xa0.", "\xe2\x89\xa0."); }6248test { try toUnicodePass("\xe2\x89\xa0.", "\xe2\x89\xa0."); }
1706test { try toUnicodePass("=\xcc\xb8.", "\xe2\x89\xa0."); }6249test { try toUnicodePass("=\xcc\xb8.", "\xe2\x89\xa0."); }
6250test { try toUnicodeFail("xn--1ch.xn--1ug"); } // [C2]
6251test { try toUnicodeFail("\xef\xb0\x81\xef\xbd\xa1\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b"); } // [B1, V6, V7]
6252test { 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]
6253test { 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]
6254test { try toUnicodeFail("xn--lgbo.xn--2rc021dcxkrx55t"); } // [B1, V6, V7]
6255test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
6256test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
6257test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xce\xa3\xf0\x90\xa8\xbf"); } // [V7]
6258test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
6259test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x83\xf0\x90\xa8\xbf"); } // [V7]
6260test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x83\xf0\x90\xa8\xbf"); } // [V7]
6261test { try toUnicodeFail("xn--4xa502av8297a.xn--4xa6055k"); } // [V7]
6262test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
6263test { try toUnicodeFail("xn--4xa502av8297a.xn--3xa8055k"); } // [V7]
6264test { try toUnicodeFail("xn--3xa702av8297a.xn--3xa8055k"); } // [V7]
6265test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xce\xa3\xf0\x90\xa8\xbf"); } // [V7]
6266test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
6267test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf"); } // [V7]
6268test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf"); } // [V7]
6269test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7]
6270test { 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]
6271test { 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]
6272test { 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]
6273test { try toUnicodeFail("xn--zsb09cu46vjs6f.xn--gmf469fr883am5r1e"); } // [B2, B3, V7]
6274test { 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]
6275test { try toUnicodeFail("xn--zsb09cu46vjs6f.xn--xnd909bv540bm5k9d"); } // [B2, B3, V7]
6276test { try toUnicodeFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xeb\xa5\xa7"); } // [V7]
6277test { try toUnicodeFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6"); } // [V7]
6278test { try toUnicodeFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xeb\xa5\xa7"); } // [V7]
6279test { try toUnicodeFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6"); } // [V7]
6280test { try toUnicodeFail("xn--s264a.xn--pw2b"); } // [V7]
6281test { try toUnicodeFail("\xf0\x90\xb9\xb7\xe2\x80\x8d\xe3\x80\x82\xf3\x89\xb5\xa2"); } // [B1, C2, V7]
6282test { try toUnicodeFail("xn--vo0d.xn--8088d"); } // [B1, V7]
6283test { try toUnicodeFail("xn--1ugx205g.xn--8088d"); } // [B1, C2, V7]
6284test { try toUnicodeFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3]
6285test { try toUnicodeFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3]
6286test { try toUnicodeFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3]
6287test { try toUnicodeFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3]
6288test { try toUnicodeFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3]
6289test { try toUnicodeFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3]
6290test { try toUnicodeFail("xn--1kb147qfk3n.-"); } // [B1, B5, B6, V3]
6291test { try toUnicodeFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3]
6292test { try toUnicodeFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3]
6293test { try toUnicodeFail("xn--1kb312c139t.-"); } // [B1, B5, B6, V3, V7]
6294test { 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]
6295test { try toUnicodeFail("\xea\xa0\x86\xd9\xbb6\xe1\xa1\x90\xe3\x80\x82\xf0\x9f\x9b\x87\xd9\x8a\xd9\x85"); } // [B1, V6]
6296test { try toUnicodeFail("xn--6-rrc018krt9k.xn--hhbj61429a"); } // [B1, V6]
6297test { try toUnicodeFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa2"); } // [B1, V7]
6298test { try toUnicodeFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa7\xd9\x93"); } // [B1, V7]
6299test { try toUnicodeFail("xn--p292d.xn--hgb154ghrsvm2r"); } // [B1, V7]
6300test { try toUnicodeFail("\xdf\x9f\xf2\xb5\x9a\x8c\xe3\x80\x82-\xdf\xa9"); } // [B1, B2, B3, V3, V7]
6301test { try toUnicodeFail("xn--6sb88139l.xn----pdd"); } // [B1, B2, B3, V3, V7]
6302test { 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]
6303test { try toUnicodeFail("\xcf\x82\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1]
6304test { try toUnicodeFail("\xce\xa3\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1]
6305test { try toUnicodeFail("\xcf\x83\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1]
6306test { try toUnicodeFail("xn--4xa49jux8r.xn--1-4ck."); } // [B5]
6307test { try toUnicodeFail("xn--4xa49jux8r.xn--1-4ck691bba."); } // [B1, B5, C1]
6308test { try toUnicodeFail("xn--3xa69jux8r.xn--1-4ck691bba."); } // [B1, B5, C1]
6309test { 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]
6310test { 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]
6311test { try toUnicodeFail("xn--4xa49jux8r.xn--pbf212d"); } // [B5, V7]
6312test { try toUnicodeFail("xn--4xa49jux8r.xn--pbf519aba607b"); } // [B1, B5, C1, V7]
6313test { try toUnicodeFail("xn--3xa69jux8r.xn--pbf519aba607b"); } // [B1, B5, C1, V7]
6314test { try toUnicodeFail("\xe1\xa1\x86\xf0\x91\x93\x9d\xef\xbc\x8e\xf0\x9e\xb5\x86"); } // [V7]
6315test { try toUnicodeFail("\xe1\xa1\x86\xf0\x91\x93\x9d.\xf0\x9e\xb5\x86"); } // [V7]
6316test { try toUnicodeFail("xn--57e0440k.xn--k86h"); } // [V7]
6317test { 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]
6318test { 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]
6319test { try toUnicodeFail("xn--ybc461hph93b.xn--jzb29857e"); } // [B1, B2, B3, V6, V7]
6320test { try toUnicodeFail("xn--ybc461hph93b.xn--jzb740j1y45h"); } // [B1, C1, V6, V7]
6321test { 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]
6322test { 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]
6323test { try toUnicodeFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-.\xe2\x80\x8c\xeb\xa8\xbf"); } // [B1, B2, B3, C1, V3, V7]
6324test { 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]
6325test { try toUnicodeFail("xn----dnc06f42153a.xn--v22b"); } // [B2, B3, V3, V7]
6326test { try toUnicodeFail("xn----dnc06f42153a.xn--0ug1581d"); } // [B1, B2, B3, C1, V3, V7]
6327test { try toUnicodeFail("\xf4\x8b\xbf\xa6\xef\xbd\xa1\xe1\xa0\xbd"); } // [V7]
6328test { try toUnicodeFail("\xf4\x8b\xbf\xa6\xe3\x80\x82\xe1\xa0\xbd"); } // [V7]
6329test { try toUnicodeFail("xn--j890g.xn--w7e"); } // [V7]
6330test { try toUnicodeFail("\xe5\xac\x83\xf0\x9d\x8d\x8c\xef\xbc\x8e\xe2\x80\x8d\xe0\xad\x84"); } // [C2]
6331test { try toUnicodeFail("\xe5\xac\x83\xf0\x9d\x8d\x8c.\xe2\x80\x8d\xe0\xad\x84"); } // [C2]
6332test { try toUnicodeFail("xn--b6s0078f.xn--0ic"); } // [V6]
6333test { try toUnicodeFail("xn--b6s0078f.xn--0ic557h"); } // [C2]
6334test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7]
6335test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7]
6336test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7]
6337test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7]
6338test { try toUnicodeFail("xn--kfb866llx01a.xn--wp1gm3570b"); } // [B1, V7]
6339test { try toUnicodeFail("\xf2\xab\xbe\xa5\xe0\xa2\xb7\xe1\x9f\x8c\xea\xa7\x80.\xf0\x9e\xbc\xa0"); } // [B5, V7]
6340test { try toUnicodeFail("xn--dzb638ewm4i1iy1h.xn--3m7h"); } // [B5, V7]
6341test { try toUnicodeFail("\xe2\x80\x8c.\xf1\x9f\x9b\xa4"); } // [C1, V7]
6342test { try toUnicodeFail(".xn--q823a"); } // [V7, X4_2]
6343test { try toUnicodeFail("xn--0ug.xn--q823a"); } // [C1, V7]
6344test { try toUnicodeFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91"); } // [V7]
6345test { try toUnicodeFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85.\xf0\x90\xb8\x91"); } // [V7]
6346test { try toUnicodeFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85.\xf0\x90\xb8\x91"); } // [V7]
6347test { try toUnicodeFail("xn--ukju77frl47r.xn--yl0d"); } // [V7]
6348test { try toUnicodeFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91"); } // [V7]
6349test { try toUnicodeFail("xn--bnd074zr557n.xn--yl0d"); } // [V7]
6350test { 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]
6351test { 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]
6352test { 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]
6353test { 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]
6354test { try toUnicodeFail("xn--zzfy954hga2415t.xn--6-kvs"); } // [B1, V6]
6355test { 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]
6356test { 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]
6357test { try toUnicodeFail("xn--zzfy954hga2415t.xn--6-h0g"); } // [B1, V6, V7]
6358test { try toUnicodeFail("-\xef\xbd\xa1\xef\xb8\x92"); } // [V3, V7]
6359test { try toUnicodeFail("-\xe3\x80\x82\xe3\x80\x82"); } // [V3, X4_2]
6360test { try toUnicodeFail("-.."); } // [V3, X4_2]
6361test { try toUnicodeFail("-.xn--y86c"); } // [V3, V7]
6362test { try toUnicodeFail("\xdf\x9b\xe1\x83\x80\xef\xbd\xa1-\xe2\x81\xb5--"); } // [B1, B2, B3, V2, V3]
6363test { try toUnicodeFail("\xdf\x9b\xe1\x83\x80\xe3\x80\x82-5--"); } // [B1, B2, B3, V2, V3]
6364test { try toUnicodeFail("\xdf\x9b\xe2\xb4\xa0\xe3\x80\x82-5--"); } // [B1, B2, B3, V2, V3]
6365test { try toUnicodeFail("xn--2sb691q.-5--"); } // [B1, B2, B3, V2, V3]
6366test { try toUnicodeFail("\xdf\x9b\xe2\xb4\xa0\xef\xbd\xa1-\xe2\x81\xb5--"); } // [B1, B2, B3, V2, V3]
6367test { try toUnicodeFail("xn--2sb866b.-5--"); } // [B1, B2, B3, V2, V3, V7]
6368test { 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]
6369test { 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]
6370test { 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]
6371test { 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]
6372test { try toUnicodeFail("xn--?-ogo25661n.xn--hdh8283gdoaqa"); } // [B1, V7, U1]
6373test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa"); } // [B1, V7, U1]
6374test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa"); } // [B1, V7, U1]
6375test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA"); } // [B1, V7, U1]
6376test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA"); } // [B1, V7, U1]
6377test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa"); } // [B1, V7, U1]
6378test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa"); } // [B1, V7, U1]
6379test { 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]
6380test { 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]
6381test { 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]
6382test { try toUnicodeFail("xn--dqb73el09fncab4h.xn--kua81lx7141a"); } // [B1, B5, B6, V6, V7]
6383test { try toUnicodeFail("xn--dqb73ec22c9kp8cb1j.xn--kua81lx7141a"); } // [B1, B5, B6, C2, V6, V7]
6384test { try toUnicodeFail("xn--dqb73el09fncab4h.xn--kua81ls548d3608b"); } // [B1, B5, B6, V6, V7]
6385test { try toUnicodeFail("xn--dqb73ec22c9kp8cb1j.xn--kua81ls548d3608b"); } // [B1, B5, B6, C2, V6, V7]
6386test { try toUnicodeFail("\xe2\x80\x8d.F"); } // [C2]
6387test { try toUnicodeFail("\xe2\x80\x8d.f"); } // [C2]
6388test { try toUnicodeFail(".f"); } // [X4_2]
6389test { try toUnicodeFail("xn--1ug.f"); } // [C2]
1707test { try toUnicodePass("f", "f"); }6390test { try toUnicodePass("f", "f"); }
1708test { try toAsciiPass("f", "f", false); }6391test { try toAsciiPass("f", "f", false); }
1709test { try toAsciiPass("f", "f", true); }6392test { try toAsciiPass("f", "f", true); }
1710test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1\xc3\x9f", "xn--9bm.ss", true); }6393test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1\xc3\x9f", "xn--9bm.ss", true); }
6394test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1\xc3\x9f"); } // [C2]
1711test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82\xc3\x9f", "xn--9bm.ss", true); }6395test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82\xc3\x9f", "xn--9bm.ss", true); }
6396test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82\xc3\x9f"); } // [C2]
1712test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82SS", "xn--9bm.ss", true); }6397test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82SS", "xn--9bm.ss", true); }
6398test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82SS"); } // [C2]
1713test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82ss", "xn--9bm.ss", true); }6399test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82ss", "xn--9bm.ss", true); }
6400test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82ss"); } // [C2]
1714test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82Ss", "xn--9bm.ss", true); }6401test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82Ss", "xn--9bm.ss", true); }
6402test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82Ss"); } // [C2]
1715test { try toUnicodePass("xn--9bm.ss", "\xe3\xa8\xb2.ss"); }6403test { try toUnicodePass("xn--9bm.ss", "\xe3\xa8\xb2.ss"); }
1716test { try toAsciiPass("xn--9bm.ss", "xn--9bm.ss", false); }6404test { try toAsciiPass("xn--9bm.ss", "xn--9bm.ss", false); }
1717test { try toAsciiPass("xn--9bm.ss", "xn--9bm.ss", true); }6405test { try toAsciiPass("xn--9bm.ss", "xn--9bm.ss", true); }
...@@ -1724,9 +6412,85 @@ test { try toAsciiPass("\xe3\xa8\xb2.SS", "xn--9bm.ss", true); }...@@ -1724,9 +6412,85 @@ test { try toAsciiPass("\xe3\xa8\xb2.SS", "xn--9bm.ss", true); }
1724test { try toUnicodePass("\xe3\xa8\xb2.Ss", "\xe3\xa8\xb2.ss"); }6412test { try toUnicodePass("\xe3\xa8\xb2.Ss", "\xe3\xa8\xb2.ss"); }
1725test { try toAsciiPass("\xe3\xa8\xb2.Ss", "xn--9bm.ss", false); }6413test { try toAsciiPass("\xe3\xa8\xb2.Ss", "xn--9bm.ss", false); }
1726test { try toAsciiPass("\xe3\xa8\xb2.Ss", "xn--9bm.ss", true); }6414test { try toAsciiPass("\xe3\xa8\xb2.Ss", "xn--9bm.ss", true); }
6415test { try toUnicodeFail("xn--1ug914h.ss"); } // [C2]
6416test { try toUnicodeFail("xn--1ug914h.xn--zca"); } // [C2]
1727test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1SS", "xn--9bm.ss", true); }6417test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1SS", "xn--9bm.ss", true); }
6418test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1SS"); } // [C2]
1728test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1ss", "xn--9bm.ss", true); }6419test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1ss", "xn--9bm.ss", true); }
6420test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1ss"); } // [C2]
1729test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1Ss", "xn--9bm.ss", true); }6421test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1Ss", "xn--9bm.ss", true); }
6422test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1Ss"); } // [C2]
6423test { try toUnicodeFail("\xd8\x85\xd9\xbe\xef\xbd\xa1\xe0\xa2\xa8"); } // [B1, V7]
6424test { try toUnicodeFail("\xd8\x85\xd9\xbe\xe3\x80\x82\xe0\xa2\xa8"); } // [B1, V7]
6425test { try toUnicodeFail("xn--nfb6v.xn--xyb"); } // [B1, V7]
6426test { try toUnicodeFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6]
6427test { try toUnicodeFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6]
6428test { try toUnicodeFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6]
6429test { try toUnicodeFail("xn--6ob9577deqwl.xn--7ib5526k"); } // [B1, B5, B6]
6430test { try toUnicodeFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6]
6431test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
6432test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
6433test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
6434test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
6435test { try toUnicodeFail("xn----zmb705tuo34l.xn----53c4874j"); } // [B2, B3, B6, V7]
6436test { try toUnicodeFail("xn----xmb015tuo34l.xn----53c4874j"); } // [B2, B3, B6, V7]
6437test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
6438test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7]
6439test { try toUnicodeFail("\xe2\x80\x8d\xef\xbc\x8e\xf4\x80\xb8\xa8"); } // [C2, V7]
6440test { try toUnicodeFail("\xe2\x80\x8d.\xf4\x80\xb8\xa8"); } // [C2, V7]
6441test { try toUnicodeFail(".xn--h327f"); } // [V7, X4_2]
6442test { try toUnicodeFail("xn--1ug.xn--h327f"); } // [C2, V7]
6443test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1\xe2\x89\xa0\xf0\x9d\x9f\xb2"); } // [V7]
6444test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1=\xcc\xb8\xf0\x9d\x9f\xb2"); } // [V7]
6445test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82\xe2\x89\xa06"); } // [V7]
6446test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82=\xcc\xb86"); } // [V7]
6447test { try toUnicodeFail("xn--h79w4z99a.xn--6-tfo"); } // [V7]
6448test { try toUnicodeFail("\xf3\xa0\x85\x8a\xe1\xa1\xad\xe2\x80\x8d.\xf0\x90\xa5\xa1"); } // [B6, C2, V7]
6449test { try toUnicodeFail("xn--98e.xn--om9c"); } // [V7]
6450test { try toUnicodeFail("xn--98e810b.xn--om9c"); } // [B6, C2, V7]
6451test { 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]
6452test { try toUnicodeFail("\xe0\xb1\x80\xe0\xa1\x95\xf0\x90\xa5\x9b\xf0\x91\x84\xb4.\xf3\xad\xb0\xb5"); } // [B1, V6, V7]
6453test { try toUnicodeFail("xn--kwb91r5112avtg.xn--o580f"); } // [B1, V6, V7]
6454test { 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]
6455test { try toUnicodeFail("\xf0\x9e\xa4\xae\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6"); } // [B1, C1, V6]
6456test { try toUnicodeFail("\xf0\x9e\xa4\x8c\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6"); } // [B1, C1, V6]
6457test { 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]
6458test { try toUnicodeFail("xn--me6h.xn--z6fz8ueq2v"); } // [B1, V6]
6459test { try toUnicodeFail("xn--me6h.xn--z6f16kn9b2642b"); } // [B1, C1, V6]
6460test { 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]
6461test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe1\x82\xa9"); } // [B1, B2, B3, V7]
6462test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\xae\xf1\x9b\x97\x93\xe2\xb4\x89"); } // [B1, B2, B3, V7]
6463test { try toUnicodeFail("7.xn--0kjz523lv1vv"); } // [B1, B2, B3, V7]
6464test { 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]
6465test { try toUnicodeFail("7.xn--hnd3403vv1vv"); } // [B1, B2, B3, V7]
6466test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe2\xb4\x89"); } // [B1, B2, B3, V7]
6467test { 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]
6468test { 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]
6469test { 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]
6470test { try toUnicodeFail("xn--9-3j6dk517f.xn--iib28ij3c4t9a"); } // [B5, B6]
6471test { try toUnicodeFail("xn--9-3j6dk517f.xn--iib28ij3c0t9a"); } // [B5, B6, V7]
6472test { 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]
6473test { try toUnicodeFail("\xea\xab\xb6\xe1\xa2\x8f\xe0\xb8\xba2.\xf0\x90\x8b\xa2\xdd\x85\xe0\xbe\x9f\xe3\x80\x82"); } // [V6]
6474test { try toUnicodeFail("xn--2-2zf840fk16m.xn--sob093b2m7s."); } // [V6]
6475test { try toUnicodeFail("xn--2-2zf840fk16m.xn--sob093bj62sz9d"); } // [V6, V7]
6476test { try toUnicodeFail("\xf3\x85\xb4\xa7\xef\xbd\xa1\xe2\x89\xa0-\xf3\xa0\x99\x84\xe2\xbe\x9b"); } // [V7]
6477test { try toUnicodeFail("\xf3\x85\xb4\xa7\xef\xbd\xa1=\xcc\xb8-\xf3\xa0\x99\x84\xe2\xbe\x9b"); } // [V7]
6478test { try toUnicodeFail("\xf3\x85\xb4\xa7\xe3\x80\x82\xe2\x89\xa0-\xf3\xa0\x99\x84\xe8\xb5\xb0"); } // [V7]
6479test { try toUnicodeFail("\xf3\x85\xb4\xa7\xe3\x80\x82=\xcc\xb8-\xf3\xa0\x99\x84\xe8\xb5\xb0"); } // [V7]
6480test { try toUnicodeFail("xn--gm57d.xn----tfo4949b3664m"); } // [V7]
6481test { try toUnicodeFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7]
6482test { try toUnicodeFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7]
6483test { try toUnicodeFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7]
6484test { try toUnicodeFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7]
6485test { try toUnicodeFail("xn--mfb73ek93f.xn----ufo"); } // [B1, B2, B3, V3, V7]
6486test { try toUnicodeFail("xn--mfb73ek93f.xn----5bh589i"); } // [B1, B2, B3, V3, V7]
6487test { try toUnicodeFail("xn--mfb73ex6r.xn----5bh589i"); } // [B1, B2, B3, V3, V7]
6488test { 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]
6489test { 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]
6490test { try toUnicodeFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74\xe2\x89\xaf\xe3\x80\x82\xe2\x80\x8c"); } // [B1, B3, B4, C1]
6491test { try toUnicodeFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74>\xcc\xb8\xe3\x80\x82\xe2\x80\x8c"); } // [B1, B3, B4, C1]
6492test { try toUnicodeFail("xn--4-zhc0by36txt0w."); } // [B3, B4]
6493test { try toUnicodeFail("xn--4-zhc0by36txt0w.xn--0ug"); } // [B1, B3, B4, C1]
1730test { try toUnicodePass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.\xe7\x94\xaf"); }6494test { try toUnicodePass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.\xe7\x94\xaf"); }
1731test { try toAsciiPass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.xn--qny", false); }6495test { try toAsciiPass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.xn--qny", false); }
1732test { try toAsciiPass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.xn--qny", true); }6496test { try toAsciiPass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.xn--qny", true); }
...@@ -1739,6 +6503,12 @@ test { try toAsciiPass("0.xn--qny", "0.xn--qny", true); }...@@ -1739,6 +6503,12 @@ test { try toAsciiPass("0.xn--qny", "0.xn--qny", true); }
1739test { try toUnicodePass("0.\xe7\x94\xaf", "0.\xe7\x94\xaf"); }6503test { try toUnicodePass("0.\xe7\x94\xaf", "0.\xe7\x94\xaf"); }
1740test { try toAsciiPass("0.\xe7\x94\xaf", "0.xn--qny", false); }6504test { try toAsciiPass("0.\xe7\x94\xaf", "0.xn--qny", false); }
1741test { try toAsciiPass("0.\xe7\x94\xaf", "0.xn--qny", true); }6505test { try toAsciiPass("0.\xe7\x94\xaf", "0.xn--qny", true); }
6506test { try toUnicodeFail("-\xe2\xbe\x86\xef\xbc\x8e\xea\xab\xb6"); } // [V3, V6]
6507test { try toUnicodeFail("-\xe8\x88\x8c.\xea\xab\xb6"); } // [V3, V6]
6508test { try toUnicodeFail("xn----ef8c.xn--2v9a"); } // [V3, V6]
6509test { try toUnicodeFail("-\xef\xbd\xa1\xe1\xa2\x98"); } // [V3]
6510test { try toUnicodeFail("-\xe3\x80\x82\xe1\xa2\x98"); } // [V3]
6511test { try toUnicodeFail("-.xn--ibf"); } // [V3]
1742test { try toUnicodePass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae"); }6512test { try toUnicodePass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae"); }
1743test { try toAsciiPass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "xn--2kj7565l.xn--gdh", false); }6513test { try toAsciiPass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "xn--2kj7565l.xn--gdh", false); }
1744test { try toAsciiPass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "xn--2kj7565l.xn--gdh", true); }6514test { try toAsciiPass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "xn--2kj7565l.xn--gdh", true); }
...@@ -1754,10 +6524,21 @@ test { try toAsciiPass("\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae", "xn--2kj7565...@@ -1754,10 +6524,21 @@ test { try toAsciiPass("\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae", "xn--2kj7565
1754test { try toUnicodePass("xn--2kj7565l.xn--gdh", "\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae"); }6524test { try toUnicodePass("xn--2kj7565l.xn--gdh", "\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae"); }
1755test { try toAsciiPass("xn--2kj7565l.xn--gdh", "xn--2kj7565l.xn--gdh", false); }6525test { try toAsciiPass("xn--2kj7565l.xn--gdh", "xn--2kj7565l.xn--gdh", false); }
1756test { try toAsciiPass("xn--2kj7565l.xn--gdh", "xn--2kj7565l.xn--gdh", true); }6526test { try toAsciiPass("xn--2kj7565l.xn--gdh", "xn--2kj7565l.xn--gdh", true); }
6527test { try toUnicodeFail("xn--jnd1986v.xn--gdh"); } // [V7]
6528test { try toUnicodeFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xef\xbd\xa1\xe2\x80\x8c\xf3\xa0\x87\x9f"); } // [C1]
6529test { try toUnicodeFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\x87\x9f"); } // [C1]
1757test { try toUnicodePass("xn--gky8837e.", "\xe7\x92\xbc\xf0\x9d\xa8\xad."); }6530test { try toUnicodePass("xn--gky8837e.", "\xe7\x92\xbc\xf0\x9d\xa8\xad."); }
1758test { try toUnicodePass("\xe7\x92\xbc\xf0\x9d\xa8\xad.", "\xe7\x92\xbc\xf0\x9d\xa8\xad."); }6531test { try toUnicodePass("\xe7\x92\xbc\xf0\x9d\xa8\xad.", "\xe7\x92\xbc\xf0\x9d\xa8\xad."); }
6532test { try toUnicodeFail("xn--gky8837e.xn--0ug"); } // [C1]
6533test { try toUnicodeFail("\xd9\xa98\xf1\x82\x8d\xbd\xef\xbd\xa1-5\xf0\x9f\x9e\xa5"); } // [B1, V3, V7]
6534test { try toUnicodeFail("\xd9\xa98\xf1\x82\x8d\xbd\xe3\x80\x82-5\xf0\x9f\x9e\xa5"); } // [B1, V3, V7]
6535test { try toUnicodeFail("xn--8-qqc97891f.xn---5-rp92a"); } // [B1, V3, V7]
6536test { try toUnicodeFail("\xe2\x80\x8c.\xe2\x80\x8c"); } // [C1]
6537test { try toUnicodeFail("xn--0ug.xn--0ug"); } // [C1]
1759test { try toAsciiPass("\xe2\x80\x8d\xed\x8a\x9b.\xdc\x96", "xn--157b.xn--gnb", true); }6538test { try toAsciiPass("\xe2\x80\x8d\xed\x8a\x9b.\xdc\x96", "xn--157b.xn--gnb", true); }
6539test { try toUnicodeFail("\xe2\x80\x8d\xed\x8a\x9b.\xdc\x96"); } // [B1, C2]
1760test { try toAsciiPass("\xe2\x80\x8d\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", true); }6540test { try toAsciiPass("\xe2\x80\x8d\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", true); }
6541test { try toUnicodeFail("\xe2\x80\x8d\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96"); } // [B1, C2]
1761test { try toUnicodePass("xn--157b.xn--gnb", "\xed\x8a\x9b.\xdc\x96"); }6542test { try toUnicodePass("xn--157b.xn--gnb", "\xed\x8a\x9b.\xdc\x96"); }
1762test { try toAsciiPass("xn--157b.xn--gnb", "xn--157b.xn--gnb", false); }6543test { try toAsciiPass("xn--157b.xn--gnb", "xn--157b.xn--gnb", false); }
1763test { try toAsciiPass("xn--157b.xn--gnb", "xn--157b.xn--gnb", true); }6544test { try toAsciiPass("xn--157b.xn--gnb", "xn--157b.xn--gnb", true); }
...@@ -1767,14 +6548,92 @@ test { try toAsciiPass("\xed\x8a\x9b.\xdc\x96", "xn--157b.xn--gnb", true); }...@@ -1767,14 +6548,92 @@ test { try toAsciiPass("\xed\x8a\x9b.\xdc\x96", "xn--157b.xn--gnb", true); }
1767test { try toUnicodePass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "\xed\x8a\x9b.\xdc\x96"); }6548test { try toUnicodePass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "\xed\x8a\x9b.\xdc\x96"); }
1768test { try toAsciiPass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", false); }6549test { try toAsciiPass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", false); }
1769test { try toAsciiPass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", true); }6550test { try toAsciiPass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", true); }
6551test { try toUnicodeFail("xn--1ug4441e.xn--gnb"); } // [B1, C2]
6552test { try toUnicodeFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe2\xb4\x9e"); } // [B2, B3, B5, B6, V7]
6553test { try toUnicodeFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe1\x82\xbe"); } // [B2, B3, B5, B6, V7]
6554test { try toUnicodeFail("xn--b8e0417jocvf.xn--9pb883q"); } // [B2, B3, B5, B6, V7]
6555test { try toUnicodeFail("xn--b8e0417jocvf.xn--9pb068b"); } // [B2, B3, B5, B6, V7]
6556test { 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]
6557test { 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]
6558test { 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]
6559test { try toUnicodeFail("xn--5-cqc8833rhv7f.xn--ykjz523efa"); } // [B1, B4, V7]
6560test { 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]
6561test { try toUnicodeFail("xn--5-cqc8833rhv7f.xn--fnd3401kfa"); } // [B1, B4, V7]
6562test { try toUnicodeFail("\xe1\x82\xb7\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
6563test { try toUnicodeFail("\xe1\x82\xb7\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
6564test { try toUnicodeFail("\xe1\x82\xb7.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
6565test { try toUnicodeFail("\xe2\xb4\x97.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
6566test { try toUnicodeFail("xn--flj.xn--qdb0605f14ycrms3c"); } // [V6, V7]
6567test { try toUnicodeFail("\xe2\xb4\x97\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
6568test { try toUnicodeFail("\xe2\xb4\x97\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7]
6569test { try toUnicodeFail("xn--vnd.xn--qdb0605f14ycrms3c"); } // [V6, V7]
6570test { try toUnicodeFail("\xf0\x9d\x9f\xbe\xf0\xbe\xa4\x98\xef\xbc\x8e\xf2\x87\x95\x9b\xd9\xac"); } // [B1, B5, B6, V7]
6571test { try toUnicodeFail("8\xf0\xbe\xa4\x98.\xf2\x87\x95\x9b\xd9\xac"); } // [B1, B5, B6, V7]
6572test { try toUnicodeFail("xn--8-kh23b.xn--lib78461i"); } // [B1, B5, B6, V7]
6573test { try toUnicodeFail("\xe2\x92\x88\xe9\x85\xab\xef\xb8\x92\xe3\x80\x82\xe0\xa3\x96"); } // [V6, V7]
6574test { try toUnicodeFail("1.\xe9\x85\xab\xe3\x80\x82\xe3\x80\x82\xe0\xa3\x96"); } // [V6, X4_2]
6575test { try toUnicodeFail("1.xn--8j4a..xn--8zb"); } // [V6, X4_2]
6576test { try toUnicodeFail("xn--tsh4490bfe8c.xn--8zb"); } // [V6, V7]
6577test { try toUnicodeFail("\xe2\xb7\xa3\xe2\x80\x8c\xe2\x89\xae\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba"); } // [C1, V6]
6578test { try toUnicodeFail("\xe2\xb7\xa3\xe2\x80\x8c<\xcc\xb8\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba"); } // [C1, V6]
6579test { try toUnicodeFail("xn--uof548an0j.xn--o4c"); } // [V6]
6580test { try toUnicodeFail("xn--uof63xk4bf3s.xn--o4c732g"); } // [C1, V6]
6581test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7]
6582test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd1\xe2\x80\x8d"); } // [B6, C2, V7]
6583test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d1\xe2\x80\x8d"); } // [B6, C2, V7]
6584test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d1\xe2\x80\x8d"); } // [B6, C2, V7]
6585test { try toUnicodeFail("xn--co6h.xn--1-kwssa"); } // [V7]
6586test { try toUnicodeFail("xn--co6h.xn--1-ugn710dya"); } // [B6, C2, V7]
6587test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7]
6588test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7]
6589test { try toUnicodeFail("xn--co6h.xn--1-h1g429s"); } // [V7]
6590test { try toUnicodeFail("xn--co6h.xn--1-h1g398iewm"); } // [B6, C2, V7]
6591test { try toUnicodeFail("xn--co6h.xn--1-h1gs"); } // [V7]
6592test { try toUnicodeFail("xn--co6h.xn--1-h1gs597m"); } // [B6, C2, V7]
6593test { try toUnicodeFail("\xf0\x91\x84\xb4\xf0\x91\x84\xb32.\xf0\x9e\xb3\xbf\xf3\xa0\x80\xb3-"); } // [B1, B3, V3, V6, V7]
6594test { try toUnicodeFail("xn--2-h87ic.xn----s39r33498d"); } // [B1, B3, V3, V6, V7]
6595test { 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]
6596test { 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]
6597test { 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]
6598test { try toUnicodeFail("xn--eib57614py3ea.xn--9mb5737kqnpfzkwr"); } // [B1, B5, B6, V7]
6599test { 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]
6600test { 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]
6601test { 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]
6602test { 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]
6603test { 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]
6604test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--4xa847hli46a"); } // [B2, B6, V7]
6605test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--4xa847h6ofgl44c"); } // [B2, B6, C1, V7]
6606test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--3xa057h6ofgl44c"); } // [B2, B6, C1, V7]
6607test { 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]
6608test { 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]
6609test { try toUnicodeFail("\xe2\x80\x8d--\xe2\x89\xae\xe3\x80\x82\xf0\x90\xb9\xa7"); } // [B1, C2]
6610test { try toUnicodeFail("\xe2\x80\x8d--<\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xa7"); } // [B1, C2]
6611test { try toUnicodeFail("xn-----ujv.xn--fo0d"); } // [B1, V3]
6612test { try toUnicodeFail("xn-----l1tz1k.xn--fo0d"); } // [B1, C2]
6613test { try toUnicodeFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb0\xe2\x92\x95"); } // [V6, V7]
6614test { try toUnicodeFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb014."); } // [V6, V7]
6615test { try toUnicodeFail("xn--l98a.xn--14-jsj57880f."); } // [V6, V7]
6616test { try toUnicodeFail("xn--l98a.xn--dgd218hhp28d"); } // [V6, V7]
6617test { try toUnicodeFail("\xf2\xae\x89\x82\xda\xbc\xef\xbc\x8e\xf0\x91\x86\xba\xd9\xa9"); } // [B1, B5, B6, V6, V7]
6618test { try toUnicodeFail("\xf2\xae\x89\x82\xda\xbc.\xf0\x91\x86\xba\xd9\xa9"); } // [B1, B5, B6, V6, V7]
6619test { try toUnicodeFail("xn--vkb92243l.xn--iib9797k"); } // [B1, B5, B6, V6, V7]
6620test { try toUnicodeFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\xb4"); } // [B1, V3, V7]
6621test { try toUnicodeFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\x92"); } // [B1, V3, V7]
6622test { try toUnicodeFail("xn----mwc72685y.xn--se6h"); } // [B1, V3, V7]
1770test { 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); }6623test { 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); }
6624test { 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]
1771test { 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); }6625test { 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); }
6626test { 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]
1772test { try toUnicodePass("xn--84-s850a.xn--59h6326e", "84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7"); }6627test { try toUnicodePass("xn--84-s850a.xn--59h6326e", "84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7"); }
1773test { try toAsciiPass("xn--84-s850a.xn--59h6326e", "xn--84-s850a.xn--59h6326e", false); }6628test { try toAsciiPass("xn--84-s850a.xn--59h6326e", "xn--84-s850a.xn--59h6326e", false); }
1774test { try toAsciiPass("xn--84-s850a.xn--59h6326e", "xn--84-s850a.xn--59h6326e", true); }6629test { try toAsciiPass("xn--84-s850a.xn--59h6326e", "xn--84-s850a.xn--59h6326e", true); }
1775test { try toUnicodePass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7"); }6630test { try toUnicodePass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7"); }
1776test { try toAsciiPass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "xn--84-s850a.xn--59h6326e", false); }6631test { try toAsciiPass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "xn--84-s850a.xn--59h6326e", false); }
1777test { try toAsciiPass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "xn--84-s850a.xn--59h6326e", true); }6632test { try toAsciiPass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "xn--84-s850a.xn--59h6326e", true); }
6633test { try toUnicodeFail("xn--84-s850a.xn--1uga573cfq1w"); } // [C2]
6634test { try toUnicodeFail("-\xd8\x81\xef\xbd\xa1\xe1\xa1\xaa"); } // [B1, V3, V7]
6635test { try toUnicodeFail("-\xd8\x81\xe3\x80\x82\xe1\xa1\xaa"); } // [B1, V3, V7]
6636test { try toUnicodeFail("xn----tkc.xn--68e"); } // [B1, V3, V7]
1778test { 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"); }6637test { 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"); }
1779test { 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); }6638test { 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); }
1780test { 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); }6639test { 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); }
...@@ -1829,6 +6688,46 @@ test { try toAsciiPass("<\xcc\xb8\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96Ss>\xcc...@@ -1829,6 +6688,46 @@ test { try toAsciiPass("<\xcc\xb8\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96Ss>\xcc
1829test { try toUnicodePass("\xe2\x89\xae\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96Ss\xe2\x89\xaf", "\xe2\x89\xae7.\xe8\xac\x96ss\xe2\x89\xaf"); }6688test { try toUnicodePass("\xe2\x89\xae\xf0\x9d\x9f\x95\xef\xbc\x8e\xe8\xac\x96Ss\xe2\x89\xaf", "\xe2\x89\xae7.\xe8\xac\x96ss\xe2\x89\xaf"); }
1830test { 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); }6689test { 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); }
1831test { 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); }6690test { 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); }
6691test { 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]
6692test { 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]
6693test { try toUnicodeFail("xn--0kjz47pd57t.xn----3gd37096apmwa"); } // [B1, B5, B6, V3, V6, V7]
6694test { try toUnicodeFail("xn--hnd7245bd56p.xn----3gd37096apmwa"); } // [B1, B5, B6, V3, V6, V7]
6695test { 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]
6696test { 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]
6697test { try toUnicodeFail("xn--bk9c.xn--gdhx6802k"); } // [B6, V7]
6698test { try toUnicodeFail("xn--bk9c.xn--0ugc04p2u638c"); } // [B6, C1, C2, V7]
6699test { try toUnicodeFail("\xf1\xad\x9c\x8e\xe2\x92\x88\xef\xbd\xa1\xe2\x80\x8c\xf0\x9d\x9f\xa4"); } // [C1, V7]
6700test { try toUnicodeFail("\xf1\xad\x9c\x8e1.\xe3\x80\x82\xe2\x80\x8c2"); } // [C1, V7, X4_2]
6701test { try toUnicodeFail("xn--1-ex54e..c"); } // [V7, X4_2]
6702test { try toUnicodeFail("xn--1-ex54e..xn--2-rgn"); } // [C1, V7, X4_2]
6703test { try toUnicodeFail("xn--tsh94183d.c"); } // [V7]
6704test { try toUnicodeFail("xn--tsh94183d.xn--2-rgn"); } // [C1, V7]
6705test { 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]
6706test { 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]
6707test { try toUnicodeFail("xn--co0d98977c.xn--ro0dga22807v"); } // [B1, V7]
6708test { try toUnicodeFail("xn--1ugy994g7k93g.xn--ro0dga22807v"); } // [B1, C2, V7]
6709test { 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]
6710test { 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]
6711test { 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]
6712test { try toUnicodeFail("xn--609c96c09grp2w.xn--n3b28708s"); } // [B1, V6, V7]
6713test { 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]
6714test { try toUnicodeFail("\xd9\xa8\xef\xbd\xa1\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6"); } // [B1, V7]
6715test { try toUnicodeFail("\xd9\xa8\xe3\x80\x82\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6"); } // [B1, V7]
6716test { try toUnicodeFail("xn--hib.xn--7n0d2bu9196b"); } // [B1, V7]
6717test { try toUnicodeFail("\xe1\x85\xa0\xf1\x8d\x80\x9c.8\xf2\xb6\xbe\xb5\xda\x9c"); } // [B1, V7]
6718test { try toUnicodeFail("xn--mn1x.xn--8-otc61545t"); } // [B1, V7]
6719test { try toUnicodeFail("xn--psd85033d.xn--8-otc61545t"); } // [B1, V7]
6720test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1\xc3\x9f\xf0\x91\x93\x83"); } // [C1, C2]
6721test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82\xc3\x9f\xf0\x91\x93\x83"); } // [C1, C2]
6722test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82SS\xf0\x91\x93\x83"); } // [C1, C2]
6723test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82ss\xf0\x91\x93\x83"); } // [C1, C2]
6724test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83"); } // [C1, C2]
6725test { try toUnicodeFail(".xn--ss-bh7o"); } // [X4_2]
6726test { try toUnicodeFail("xn--0ugb.xn--ss-bh7o"); } // [C1, C2]
6727test { try toUnicodeFail("xn--0ugb.xn--zca0732l"); } // [C1, C2]
6728test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1SS\xf0\x91\x93\x83"); } // [C1, C2]
6729test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1ss\xf0\x91\x93\x83"); } // [C1, C2]
6730test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1Ss\xf0\x91\x93\x83"); } // [C1, C2]
1832test { try toUnicodePass("xn--ss-bh7o", "ss\xf0\x91\x93\x83"); }6731test { try toUnicodePass("xn--ss-bh7o", "ss\xf0\x91\x93\x83"); }
1833test { try toAsciiPass("xn--ss-bh7o", "xn--ss-bh7o", false); }6732test { try toAsciiPass("xn--ss-bh7o", "xn--ss-bh7o", false); }
1834test { try toAsciiPass("xn--ss-bh7o", "xn--ss-bh7o", true); }6733test { try toAsciiPass("xn--ss-bh7o", "xn--ss-bh7o", true); }
...@@ -1841,15 +6740,52 @@ test { try toAsciiPass("SS\xf0\x91\x93\x83", "xn--ss-bh7o", true); }...@@ -1841,15 +6740,52 @@ test { try toAsciiPass("SS\xf0\x91\x93\x83", "xn--ss-bh7o", true); }
1841test { try toUnicodePass("Ss\xf0\x91\x93\x83", "ss\xf0\x91\x93\x83"); }6740test { try toUnicodePass("Ss\xf0\x91\x93\x83", "ss\xf0\x91\x93\x83"); }
1842test { try toAsciiPass("Ss\xf0\x91\x93\x83", "xn--ss-bh7o", false); }6741test { try toAsciiPass("Ss\xf0\x91\x93\x83", "xn--ss-bh7o", false); }
1843test { try toAsciiPass("Ss\xf0\x91\x93\x83", "xn--ss-bh7o", true); }6742test { try toAsciiPass("Ss\xf0\x91\x93\x83", "xn--ss-bh7o", true); }
6743test { try toUnicodeFail("\xef\xb8\x92\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } // [C1, V7]
6744test { try toUnicodeFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } // [C1, X4_2]
6745test { try toUnicodeFail(".xn--qekw60d.xn--gd9a"); } // [X4_2]
6746test { try toUnicodeFail(".xn--0ug287dj0o.xn--gd9a"); } // [C1, X4_2]
6747test { try toUnicodeFail("xn--qekw60dns9k.xn--gd9a"); } // [V7]
6748test { try toUnicodeFail("xn--0ug287dj0or48o.xn--gd9a"); } // [C1, V7]
1844test { try toUnicodePass("xn--qekw60d.xn--gd9a", "\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); }6749test { try toUnicodePass("xn--qekw60d.xn--gd9a", "\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); }
1845test { try toAsciiPass("xn--qekw60d.xn--gd9a", "xn--qekw60d.xn--gd9a", false); }6750test { try toAsciiPass("xn--qekw60d.xn--gd9a", "xn--qekw60d.xn--gd9a", false); }
1846test { try toAsciiPass("xn--qekw60d.xn--gd9a", "xn--qekw60d.xn--gd9a", true); }6751test { try toAsciiPass("xn--qekw60d.xn--gd9a", "xn--qekw60d.xn--gd9a", true); }
1847test { try toUnicodePass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); }6752test { try toUnicodePass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); }
1848test { try toAsciiPass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "xn--qekw60d.xn--gd9a", false); }6753test { try toAsciiPass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "xn--qekw60d.xn--gd9a", false); }
1849test { try toAsciiPass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "xn--qekw60d.xn--gd9a", true); }6754test { try toAsciiPass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "xn--qekw60d.xn--gd9a", true); }
6755test { try toUnicodeFail("\xe2\x80\x8c\xe2\x92\x88\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0"); } // [C1, V7]
6756test { try toUnicodeFail("\xe2\x80\x8c1.\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0"); } // [C1, V7]
6757test { try toUnicodeFail("1.xn--4x6j.xn--jof45148n"); } // [V7]
6758test { try toUnicodeFail("xn--1-rgn.xn--4x6j.xn--jof45148n"); } // [C1, V7]
6759test { try toUnicodeFail("xn--tshw462r.xn--jof45148n"); } // [V7]
6760test { try toUnicodeFail("xn--0ug88o7471d.xn--jof45148n"); } // [C1, V7]
6761test { 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]
6762test { 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]
6763test { try toUnicodeFail("1.xn--8w9c40377c.xn--jofz5294e"); } // [B1, B3, V6, V7]
6764test { try toUnicodeFail("1.xn--0ug8853gk263g.xn--jof95xex98m"); } // [B1, C1, C2, V6, V7]
6765test { try toUnicodeFail("xn--tsh4435fk263g.xn--jofz5294e"); } // [B1, V6, V7]
6766test { try toUnicodeFail("xn--0ug78ol75wzcx4i.xn--jof95xex98m"); } // [B1, C1, C2, V6, V7]
6767test { 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]
6768test { try toUnicodeFail("\xf0\x9d\x85\xb5\xe3\x80\x829\xf0\x9e\x80\x88\xe4\xac\xba1."); } // [X4_2]
6769test { try toUnicodeFail(".xn--91-030c1650n."); } // [X4_2]
6770test { try toUnicodeFail(".xn--9-ecp936non25a"); } // [V7, X4_2]
6771test { try toUnicodeFail("xn--3f1h.xn--91-030c1650n."); } // [V7]
6772test { try toUnicodeFail("xn--3f1h.xn--9-ecp936non25a"); } // [V7]
6773test { try toUnicodeFail("\xf2\xa1\xbc\xba\xe2\x89\xaf\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5"); } // [B5, B6, V7]
6774test { try toUnicodeFail("\xf2\xa1\xbc\xba>\xcc\xb8\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5"); } // [B5, B6, V7]
6775test { try toUnicodeFail("xn--hdh30181h.xn--0gb7878c"); } // [B5, B6, V7]
6776test { 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]
6777test { try toUnicodeFail("-\xf1\xbf\xb0\xad\xd6\xb4\xe3\x80\x82-\xf3\xa0\x81\x8a\xf0\x90\xa2\xb8>\xcc\xb8"); } // [B1, V3, V7]
6778test { try toUnicodeFail("xn----fgc06667m.xn----pgoy615he5y4i"); } // [B1, V3, V7]
6779test { 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]
6780test { 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]
6781test { try toUnicodeFail("xn--ybc997fb5881a.xn--409c6100y"); } // [B2, B3, V7]
6782test { try toUnicodeFail("xn--ybc997f6rd2n772c.xn--409c6100y"); } // [B2, B3, B6, V7]
1850test { try toAsciiPass("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }6783test { try toAsciiPass("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }
6784test { try toUnicodeFail("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d"); } // [B3, C2]
1851test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }6785test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }
6786test { try toUnicodeFail("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d"); } // [B3, C2]
1852test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }6787test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }
6788test { try toUnicodeFail("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d"); } // [B3, C2]
1853test { try toUnicodePass("xn--8c1a.xn--2ib8jn539l", "\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb"); }6789test { try toUnicodePass("xn--8c1a.xn--2ib8jn539l", "\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb"); }
1854test { try toAsciiPass("xn--8c1a.xn--2ib8jn539l", "xn--8c1a.xn--2ib8jn539l", false); }6790test { try toAsciiPass("xn--8c1a.xn--2ib8jn539l", "xn--8c1a.xn--2ib8jn539l", false); }
1855test { try toAsciiPass("xn--8c1a.xn--2ib8jn539l", "xn--8c1a.xn--2ib8jn539l", true); }6791test { try toAsciiPass("xn--8c1a.xn--2ib8jn539l", "xn--8c1a.xn--2ib8jn539l", true); }
...@@ -1859,21 +6795,522 @@ test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb", "xn--8c1...@@ -1859,21 +6795,522 @@ test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb", "xn--8c1
1859test { try toUnicodePass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb"); }6795test { try toUnicodePass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb"); }
1860test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "xn--8c1a.xn--2ib8jn539l", false); }6796test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "xn--8c1a.xn--2ib8jn539l", false); }
1861test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "xn--8c1a.xn--2ib8jn539l", true); }6797test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "xn--8c1a.xn--2ib8jn539l", true); }
6798test { try toUnicodeFail("xn--8c1a.xn--2ib8jv19e6413b"); } // [B3, C2]
1862test { try toAsciiPass("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }6799test { try toAsciiPass("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); }
6800test { try toUnicodeFail("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d"); } // [B3, C2]
6801test { try toUnicodeFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7\xe2\x89\xaf"); } // [B1, B3, V7]
6802test { try toUnicodeFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7>\xcc\xb8"); } // [B1, B3, V7]
6803test { try toUnicodeFail("xn--4-xn17i.xn--rpb459k"); } // [B1, B3, V7]
6804test { try toUnicodeFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2\xef\xbc\x8e\xda\xad"); } // [B5, V7]
6805test { try toUnicodeFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2.\xda\xad"); } // [B5, V7]
6806test { try toUnicodeFail("xn--lcz1610fn78gk609a.xn--gkb"); } // [B5, V7]
6807test { try toUnicodeFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe1\x82\xa6\xe2\x84\xae"); } // [B1, C1]
6808test { try toUnicodeFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe2\xb4\x86\xe2\x84\xae"); } // [B1, C1]
6809test { try toUnicodeFail(".xn--fib628k4li"); } // [B1, X4_2]
6810test { try toUnicodeFail("xn--0ug.xn--fib628k4li"); } // [B1, C1]
6811test { try toUnicodeFail(".xn--fib263c0yn"); } // [B1, V7, X4_2]
6812test { try toUnicodeFail("xn--0ug.xn--fib263c0yn"); } // [B1, C1, V7]
6813test { try toUnicodeFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e"); } // [B1, V6]
6814test { try toUnicodeFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e"); } // [B1, V6]
6815test { try toUnicodeFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f"); } // [B1, V6]
6816test { try toUnicodeFail("xn--5jb.xn--xya149b"); } // [B1, V6]
6817test { try toUnicodeFail("xn--5jb.xn--xya149bpvp"); } // [B1, V6]
6818test { try toUnicodeFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f"); } // [B1, V6]
6819test { 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]
6820test { 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]
6821test { 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]
6822test { 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]
6823test { try toUnicodeFail("xn--sgb4140l.xn----qmc5075grs9e"); } // [B2, B3]
6824test { try toUnicodeFail("xn--sgb953kmi8o.xn----qmc5075grs9e"); } // [B1, B2, B3, C1]
6825test { 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]
6826test { try toUnicodeFail("-\xf2\xad\xb7\x99\xd9\xab\xe7\xba\x9b\xe3\x80\x823\xf1\xad\xa4\x874,"); } // [B1, V3, V7, U1]
6827test { try toUnicodeFail("xn----vqc8143g0tt4i.xn--34,-8787l"); } // [B1, V3, V7, U1]
6828test { try toUnicodeFail("xn----vqc8143g0tt4i.xn--3-os1sn476y"); } // [B1, V3, V7]
6829test { try toUnicodeFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5]
6830test { try toUnicodeFail("\xf0\x9f\x94\x94.\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5]
6831test { try toUnicodeFail("\xf0\x9f\x94\x94.\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5]
6832test { try toUnicodeFail("xn--nv8h.xn--nsb46rvz1b222p"); } // [B1, B5]
6833test { try toUnicodeFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5]
6834test { try toUnicodeFail("xn--nv8h.xn--nsb46r83e8112a"); } // [B1, B5, V7]
6835test { try toUnicodeFail("\xe8\xbb\xa5\xda\xb3.-\xf0\x96\xac\xb5"); } // [B1, B5, B6, V3]
6836test { try toUnicodeFail("xn--mkb5480e.xn----6u5m"); } // [B1, B5, B6, V3]
6837test { try toUnicodeFail("\xf0\x90\xb9\xa4\xdf\x8a\xda\xb6.\xf0\x90\xa8\x82-"); } // [B1, V3, V6]
6838test { try toUnicodeFail("xn--pkb56cn614d.xn----974i"); } // [B1, V3, V6]
6839test { try toUnicodeFail("-\xf3\xa0\x85\xb10\xef\xbd\xa1\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad"); } // [V3, V6]
6840test { 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]
6841test { try toUnicodeFail("-\xf3\xa0\x85\xb10\xe3\x80\x82\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad"); } // [V3, V6]
6842test { 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]
6843test { try toUnicodeFail("-0.xn--r4e872ah77nghm"); } // [V3, V6]
6844test { 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]
6845test { 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]
6846test { try toUnicodeFail("xn--md9a.--.xn--o4e6836dpxudz0v1c"); } // [B1, V3, V6, V7]
6847test { try toUnicodeFail("xn-----bk9hu24z.xn--o4e6836dpxudz0v1c"); } // [B1, B6, V2, V3, V6, V7]
6848test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6]
6849test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6]
6850test { try toUnicodeFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6]
6851test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6]
6852test { try toUnicodeFail("xn--1od555l3a.xn--9ic"); } // [V6]
6853test { try toUnicodeFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6]
6854test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6]
6855test { try toUnicodeFail("xn--tndt4hvw.xn--9ic"); } // [V6, V7]
6856test { try toUnicodeFail("xn--1od7wz74eeb.xn--9ic"); } // [V6, V7]
6857test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6]
6858test { try toUnicodeFail("xn--3nd0etsm92g.xn--9ic"); } // [V6, V7]
6859test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6]
6860test { try toUnicodeFail("\xf0\x9f\x84\x83\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87"); } // [B1, U1]
6861test { try toUnicodeFail("2,\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87"); } // [B1, U1]
6862test { try toUnicodeFail("xn--2,-5g3o.xn--dib"); } // [B1, U1]
6863test { try toUnicodeFail("xn--7n0d1189a.xn--dib"); } // [B1, V7]
6864test { 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]
6865test { 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]
6866test { try toUnicodeFail("xn--vgb2kp1223g.xn--tsb0vz43c"); } // [B2, B3, B5, B6, V7]
6867test { try toUnicodeFail("xn--vgb2kq00fl213y.xn--tsb0vz43c"); } // [B2, B3, B5, B6, C1, V7]
6868test { 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]
6869test { try toUnicodeFail("xn--l96h.xn--o8e4044k"); } // [V7]
6870test { try toUnicodeFail("xn--0ugba05538b.xn--o8e4044k"); } // [B1, C1, C2, V7]
6871test { try toUnicodeFail("xn--l96h.xn--03e93aq365d"); } // [V7]
6872test { try toUnicodeFail("xn--0ugba05538b.xn--03e93aq365d"); } // [B1, C1, C2, V7]
6873test { try toUnicodeFail("\xf0\x9e\xb7\xbb\xe3\x80\x82\xe2\x9a\x84\xf1\x97\x91\x87\xf0\x91\x81\xbf"); } // [B1, V7]
6874test { try toUnicodeFail("xn--qe7h.xn--c7h2966f7so4a"); } // [B1, V7]
6875test { try toUnicodeFail("\xea\xa3\x84\xe2\x89\xa0\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6]
6876test { try toUnicodeFail("\xea\xa3\x84=\xcc\xb8\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6]
6877test { try toUnicodeFail("\xea\xa3\x84\xe2\x89\xa0.\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6]
6878test { try toUnicodeFail("\xea\xa3\x84=\xcc\xb8.\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6]
6879test { try toUnicodeFail("xn--1chy504c.xn--gib1777v"); } // [B1, V6]
6880test { try toUnicodeFail("\xf0\x9d\x9f\x9b\xf0\x9d\x86\xaa\xea\xa3\x84\xef\xbd\xa1\xea\xa3\xaa-"); } // [V3, V6]
6881test { try toUnicodeFail("\xf0\x9d\x9f\x9b\xea\xa3\x84\xf0\x9d\x86\xaa\xef\xbd\xa1\xea\xa3\xaa-"); } // [V3, V6]
6882test { try toUnicodeFail("3\xea\xa3\x84\xf0\x9d\x86\xaa\xe3\x80\x82\xea\xa3\xaa-"); } // [V3, V6]
6883test { try toUnicodeFail("xn--3-sl4eu679e.xn----xn4e"); } // [V3, V6]
6884test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.e"); } // [B2, B3]
6885test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe2\xb4\x87.e"); } // [B2, B3]
6886test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.E"); } // [B2, B3]
6887test { try toUnicodeFail("xn--jpb846bjzj7pr.e"); } // [B2, B3]
6888test { try toUnicodeFail("xn--jpb846bmjw88a.e"); } // [B2, B3, V7]
6889test { try toUnicodeFail("\xe1\x84\xb9\xef\xbd\xa1\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e"); } // [V6, V7]
6890test { try toUnicodeFail("\xe1\x84\xb9\xe3\x80\x82\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e"); } // [V6, V7]
6891test { try toUnicodeFail("xn--lrd.xn--s8c05302k"); } // [V6, V7]
6892test { try toUnicodeFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7]
6893test { try toUnicodeFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7]
6894test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf"); } // [V7]
6895test { try toUnicodeFail("xn--xkjw3965g.xn--ne6h"); } // [V7]
6896test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf"); } // [V7]
6897test { try toUnicodeFail("xn--end82983m.xn--ne6h"); } // [V7]
6898test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7]
6899test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7]
6900test { 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]
6901test { 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]
6902test { 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]
6903test { 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]
6904test { 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]
6905test { 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]
6906test { try toUnicodeFail("xn--ss-uze.xn--0ib.xn--f-tcoa9162d"); } // [B5, B6]
6907test { try toUnicodeFail("xn--ss-uze.xn--0ib.xn--f-sgn48ga6997e"); } // [B5, B6, C1]
6908test { try toUnicodeFail("xn--zca687a.xn--0ib.xn--f-sgn48ga6997e"); } // [B5, B6, C1]
6909test { 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]
6910test { 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]
6911test { 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]
6912test { 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]
6913test { try toUnicodeFail("xn--ss-k0d31nu121d.xn--f-tcoa9162d"); } // [B5, B6, V7]
6914test { try toUnicodeFail("xn--ss-k0d31nu121d.xn--f-sgn48ga6997e"); } // [B5, B6, C1, V7]
6915test { try toUnicodeFail("xn--zca68zj8ac956c.xn--f-sgn48ga6997e"); } // [B5, B6, C1, V7]
6916test { try toUnicodeFail("\xf3\x98\xaa\x97\xef\xbd\xa1\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d"); } // [B1, C2, V7]
6917test { try toUnicodeFail("\xf3\x98\xaa\x97\xe3\x80\x82\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d"); } // [B1, C2, V7]
6918test { try toUnicodeFail("xn--8l83e.xn--so0dw168a"); } // [B1, V7]
6919test { try toUnicodeFail("xn--8l83e.xn--1ug4105gsxwf"); } // [B1, C2, V7]
6920test { try toUnicodeFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa2\xf0\x9d\x9f\xa8\xea\xa3\x84"); } // [V7]
6921test { try toUnicodeFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa26\xea\xa3\x84"); } // [V7]
6922test { try toUnicodeFail("xn--mi60a.xn--6-sl4es8023c"); } // [V7]
6923test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe1\x82\xa8"); } // [B1, V3, V6]
6924test { 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]
6925test { 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]
6926test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc3430a9a"); } // [B1, V3, V6]
6927test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe2\xb4\x91\xe2\xb4\x88"); } // [B1, V3, V6]
6928test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc155e9a"); } // [B1, V3, V6, V7]
6929test { 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]
6930test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc875efr3a"); } // [B1, V3, V6, V7]
6931test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe2\xb4\x88"); } // [B1, V3, V6]
6932test { try toUnicodeFail("\xf0\x9e\xa4\xa4\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92"); } // [B1, V3, V7]
6933test { try toUnicodeFail("\xf0\x9e\xa4\xa4.-\xe0\xa2\xa3\xe3\x80\x82"); } // [B1, V3]
6934test { try toUnicodeFail("\xf0\x9e\xa4\x82.-\xe0\xa2\xa3\xe3\x80\x82"); } // [B1, V3]
6935test { try toUnicodeFail("xn--ce6h.xn----cod."); } // [B1, V3]
6936test { try toUnicodeFail("\xf0\x9e\xa4\x82\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92"); } // [B1, V3, V7]
6937test { try toUnicodeFail("xn--ce6h.xn----cod7069p"); } // [B1, V3, V7]
6938test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xba\xa8.\xe0\xa1\x99--"); } // [B1, C1, V3, V6]
6939test { try toUnicodeFail("xn--9p0d.xn-----h6e"); } // [B1, V3, V6]
6940test { try toUnicodeFail("xn--0ug7905g.xn-----h6e"); } // [B1, C1, V3, V6]
6941test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe1\x82\xa1"); } // [V7]
6942test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe2\xb4\xa2.\xe2\xb4\x81"); } // [V7]
6943test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe2\xb4\x81"); } // [V7]
6944test { try toUnicodeFail("xn--qlj1559dr224h.xn--skj"); } // [V7]
6945test { try toUnicodeFail("xn--6nd5215jr2u0h.xn--skj"); } // [V7]
6946test { try toUnicodeFail("xn--6nd5215jr2u0h.xn--8md"); } // [V7]
6947test { 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]
6948test { 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]
6949test { 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]
6950test { 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]
6951test { try toUnicodeFail("xn--4-w93ej7463a9io5a.xn--4xa31142bk3f0d"); } // [V7]
6952test { try toUnicodeFail("xn--4-w93ej7463a9io5a.xn--3xa51142bk3f0d"); } // [V7]
6953test { 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]
6954test { 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]
6955test { try toUnicodeFail("\xf3\xa0\x86\x80\xdc\xa3\xe3\x80\x82\xe1\xb7\xb4\xdd\xb5"); } // [B1, V6]
6956test { try toUnicodeFail("xn--tnb.xn--5pb136i"); } // [B1, V6]
6957test { 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]
6958test { 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]
6959test { 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]
6960test { try toUnicodeFail("xn--0vb1535kdb6e.xn--8kjz186s"); } // [B1]
6961test { try toUnicodeFail("xn--0vb1535kdb6e.xn--1ug742c5714c"); } // [B1, B6, C2]
6962test { 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]
6963test { try toUnicodeFail("xn--0vb1535kdb6e.xn--pnd93707a"); } // [B1, V7]
6964test { try toUnicodeFail("xn--0vb1535kdb6e.xn--pnd879eqy33c"); } // [B1, B6, C2, V7]
6965test { 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]
6966test { 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]
6967test { try toUnicodeFail("xn--fze4126jujt0g.xn----c36i"); } // [B1, V3, V6, V7]
6968test { try toUnicodeFail("xn--fze807bso0spy14i.xn----c36i"); } // [B1, C2, V3, V6, V7]
6969test { try toUnicodeFail("\xf0\xbe\xa2\xac\xef\xbd\xa1\xdc\xa9\xef\xb8\x92\xec\xaf\x99\xf0\x9d\x9f\xa7"); } // [B2, V7]
6970test { 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]
6971test { try toUnicodeFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xec\xaf\x995"); } // [V7]
6972test { try toUnicodeFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xb3\xe1\x86\xac5"); } // [V7]
6973test { try toUnicodeFail("xn--t92s.xn--znb.xn--5-y88f"); } // [V7]
6974test { try toUnicodeFail("xn--t92s.xn--5-p1c0712mm8rb"); } // [B2, V7]
6975test { try toUnicodeFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90"); } // [B2, B3, V3]
6976test { try toUnicodeFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5"); } // [B2, B3, V3]
6977test { try toUnicodeFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5"); } // [B2, B3, V3]
6978test { try toUnicodeFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90"); } // [B2, B3, V3]
6979test { try toUnicodeFail("xn----1j8r.xn--mpb269krv4i"); } // [B2, B3, V3]
6980test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4\xe2\x89\xa0"); } // [B2, B3, V7]
6981test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4=\xcc\xb8"); } // [B2, B3, V7]
6982test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4\xe2\x89\xa0"); } // [B2, B3, V7]
6983test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4=\xcc\xb8"); } // [B2, B3, V7]
6984test { try toUnicodeFail("xn----cm8rp3609a.xn--9yb852k"); } // [B2, B3, V7]
6985test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
6986test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc.\xd9\xa1"); } // [B1, V3, V7]
6987test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7]
6988test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc.\xd9\xa1"); } // [B1, V3, V7]
6989test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7]
6990test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7]
6991test { try toUnicodeFail("xn----0mb9682aov12f.xn--9hb"); } // [B1, V3, V7]
6992test { try toUnicodeFail("xn----ymb2782aov12f.xn--9hb"); } // [B1, V3, V7]
6993test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
6994test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
6995test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
6996test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7]
6997test { try toUnicodeFail("xn----0mb770hun11i.xn--9hb"); } // [B1, V3, V7]
6998test { try toUnicodeFail("xn----ymb080hun11i.xn--9hb"); } // [B1, V3, V7]
6999test { try toUnicodeFail("\xe1\x9f\x8a.\xe2\x80\x8d\xf0\x9d\x9f\xae\xf0\x91\x80\xbf"); } // [C2, V6]
7000test { try toUnicodeFail("\xe1\x9f\x8a.\xe2\x80\x8d2\xf0\x91\x80\xbf"); } // [C2, V6]
7001test { try toUnicodeFail("xn--m4e.xn--2-ku7i"); } // [V6]
7002test { try toUnicodeFail("xn--m4e.xn--2-tgnv469h"); } // [C2, V6]
7003test { 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]
7004test { 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]
7005test { try toUnicodeFail("\xe2\x89\xaf8\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91"); } // [B1, V6, V7]
7006test { try toUnicodeFail(">\xcc\xb88\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91"); } // [B1, V6, V7]
7007test { try toUnicodeFail("xn--8-ogo.xn--jof5303iv1z5d"); } // [B1, V6, V7]
7008test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c"); } // [B1, C1, V6]
7009test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xe3\x80\x82\xe2\x80\x8c"); } // [B1, C1, V6]
7010test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xe3\x80\x82\xe2\x80\x8c"); } // [B1, C1, V6]
7011test { try toUnicodeFail("xn--dib100l8x1p."); } // [B1, V6]
7012test { try toUnicodeFail("xn--dib100l8x1p.xn--0ug"); } // [B1, C1, V6]
7013test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c"); } // [B1, C1, V6]
7014test { try toUnicodeFail("xn--dib999kcy1p."); } // [B1, V6, V7]
7015test { try toUnicodeFail("xn--dib999kcy1p.xn--0ug"); } // [B1, C1, V6, V7]
7016test { 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]
7017test { try toUnicodeFail("\xe0\xb0\x809\xe2\x80\x8d\xd8\xa8\xd8\xad.\xe2\x80\x8d\xdd\x901."); } // [B1, C2, V6]
7018test { try toUnicodeFail("xn--9-1mcp570d.xn--1-x3c."); } // [B1, V6]
7019test { try toUnicodeFail("xn--9-1mcp570dl51a.xn--1-x3c211q."); } // [B1, C2, V6]
7020test { try toUnicodeFail("xn--9-1mcp570d.xn--3ob470m"); } // [B1, V6, V7]
7021test { try toUnicodeFail("xn--9-1mcp570dl51a.xn--3ob977jmfd"); } // [B1, C2, V6, V7]
7022test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6\xc3\x9f\xe8\x91\xbd"); } // [V6]
7023test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6SS\xe8\x91\xbd"); } // [V6]
7024test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6ss\xe8\x91\xbd"); } // [V6]
7025test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6Ss\xe8\x91\xbd"); } // [V6]
7026test { try toUnicodeFail("xn--2v9a.xn--ss-q40dp97m"); } // [V6]
7027test { try toUnicodeFail("xn--2v9a.xn--zca7637b14za"); } // [V6]
7028test { try toUnicodeFail("\xf0\x91\x9a\xb6\xe2\x92\x88\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba"); } // [B5, B6, V6, V7]
7029test { try toUnicodeFail("\xf0\x91\x9a\xb61.\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba"); } // [B5, B6, V6, V7, X4_2]
7030test { try toUnicodeFail("xn--1-3j0j..xn--yo0d5914s"); } // [B5, B6, V6, V7, X4_2]
7031test { try toUnicodeFail("xn--tshz969f.xn--yo0d5914s"); } // [B5, B6, V6, V7]
7032test { 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]
7033test { 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]
7034test { 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]
7035test { 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]
7036test { try toUnicodeFail("xn--ci2d.xn--gdh.xn--deb0091w5q9u"); } // [B1, B5, B6, V6, V7]
7037test { try toUnicodeFail("xn--gdh5267fdzpa.xn--deb0091w5q9u"); } // [B1, B5, B6, V6, V7]
7038test { 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]
7039test { 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]
7040test { 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]
7041test { try toUnicodeFail("xn--lfb04106d.xn--4xa964mxv16m8moq"); } // [B1, V7]
7042test { try toUnicodeFail("xn--lfb04106d.xn--3xa174mxv16m8moq"); } // [B1, V7]
7043test { 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]
7044test { 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]
7045test { 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]
7046test { 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]
7047test { try toUnicodeFail("xn--4xa2260lk3b8z15g.xn--tw9ct349a"); } // [V7]
7048test { try toUnicodeFail("xn--4xa2260lk3b8z15g.xn--0ug4653g2xzf"); } // [C1, V7]
7049test { try toUnicodeFail("xn--3xa4260lk3b8z15g.xn--0ug4653g2xzf"); } // [C1, V7]
7050test { 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]
7051test { 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]
7052test { try toUnicodeFail("-\xf2\xb5\x8f\xbd\xef\xbd\xa1-\xef\xb1\x8c\xdd\x9b"); } // [B1, V3, V7]
7053test { try toUnicodeFail("-\xf2\xb5\x8f\xbd\xe3\x80\x82-\xd9\x86\xd8\xad\xdd\x9b"); } // [B1, V3, V7]
7054test { try toUnicodeFail("xn----o452j.xn----cnc8e38c"); } // [B1, V3, V7]
7055test { 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]
7056test { try toUnicodeFail("\xe2\xba\xa2\xf2\x87\xba\x852\xe3\x80\x82\xe2\x80\x8d\xf0\x9f\x9a\xb7"); } // [C2, V7]
7057test { try toUnicodeFail("xn--2-4jtr4282f.xn--m78h"); } // [V7]
7058test { try toUnicodeFail("xn--2-4jtr4282f.xn--1ugz946p"); } // [C2, V7]
7059test { 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]
7060test { 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]
7061test { try toUnicodeFail("xn--hvc220of37m.xn--3e36c"); } // [B5, B6, V7]
7062test { try toUnicodeFail("xn--hvc488g69j402t.xn--3e36c"); } // [B5, B6, C2, V7]
7063test { try toUnicodeFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe1\x82\xad\xe2\x82\x89\xe2\x81\xb8"); } // [B1]
7064test { try toUnicodeFail("\xf0\x90\xb9\xa2.\xe1\x82\xad98"); } // [B1]
7065test { try toUnicodeFail("\xf0\x90\xb9\xa2.\xe2\xb4\x8d98"); } // [B1]
7066test { try toUnicodeFail("xn--9n0d.xn--98-u61a"); } // [B1]
7067test { try toUnicodeFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe2\xb4\x8d\xe2\x82\x89\xe2\x81\xb8"); } // [B1]
7068test { try toUnicodeFail("xn--9n0d.xn--98-7ek"); } // [B1, V7]
7069test { 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]
7070test { 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]
7071test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7]
7072test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7]
7073test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7]
7074test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7]
7075test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7]
7076test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7]
7077test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7]
7078test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7]
7079test { try toUnicodeFail(".xn--ss19-w0i.xn--hdh"); } // [B1, B5, V7, X4_2]
7080test { try toUnicodeFail("xn--0ug.xn--ss19-w0i.xn--hdh"); } // [B1, B5, C1, V7]
7081test { try toUnicodeFail("xn--0ug.xn--19-fia813f.xn--hdh"); } // [B1, B5, C1, V7]
7082test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7]
7083test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7]
7084test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7]
7085test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7]
7086test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7]
7087test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7]
7088test { try toUnicodeFail(".xn--ss-9if872xjjc"); } // [B5, B6, V7, X4_2]
7089test { try toUnicodeFail("xn--0ug.xn--ss-9if872xjjc"); } // [B1, B5, B6, C1, V7]
7090test { try toUnicodeFail("xn--0ug.xn--zca612bx9vo5b"); } // [B1, B5, B6, C1, V7]
7091test { try toUnicodeFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c\xef\xbc\x8e\xf0\xa3\x83\x94"); } // [B1, C1, V7]
7092test { try toUnicodeFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c.\xf0\xa3\x83\x94"); } // [B1, C1, V7]
7093test { try toUnicodeFail("xn--c8e5919u.xn--od1j"); } // [B2, B3, V7]
7094test { try toUnicodeFail("xn--c8e180bqz13b.xn--od1j"); } // [B1, C1, V7]
7095test { 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]
7096test { 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]
7097test { try toUnicodeFail("xn----8bd11730jefvw.xn--wfd802mpm20agsxa"); } // [B1, B2, B3, V6, V7]
7098test { try toUnicodeFail("xn----8bd11730jefvw.xn--wfd08cd265hgsxa"); } // [B1, B2, B3, V6, V7]
7099test { try toUnicodeFail("\xf0\x9d\xa8\xa5\xe3\x80\x82\xe2\xab\x9f\xf0\x91\x88\xbe"); } // [V6]
7100test { try toUnicodeFail("xn--n82h.xn--63iw010f"); } // [V6]
7101test { try toUnicodeFail("\xe2\xbe\x9b\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7]
7102test { try toUnicodeFail("\xe8\xb5\xb0\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7]
7103test { try toUnicodeFail("\xe8\xb5\xb0\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7]
7104test { try toUnicodeFail("xn--6ob9779d.xn--mfb511rxu80a"); } // [B5, B6, V7]
7105test { try toUnicodeFail("xn--6ob9779d.xn--mfb444k5gjt754b"); } // [B5, B6, C2, V7]
7106test { try toUnicodeFail("\xe2\xbe\x9b\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7]
7107test { try toUnicodeFail("xn--6ob9779d.xn--mfb785ck569a"); } // [B5, B6, V7]
7108test { try toUnicodeFail("xn--6ob9779d.xn--mfb785czmm0y85b"); } // [B5, B6, C2, V7]
7109test { try toUnicodeFail("-\xe1\xa2\x97\xe2\x80\x8c\xf0\x9f\x84\x84.\xf0\x91\x9c\xa2"); } // [C1, V3, V6, U1]
7110test { try toUnicodeFail("-\xe1\xa2\x97\xe2\x80\x8c3,.\xf0\x91\x9c\xa2"); } // [C1, V3, V6, U1]
7111test { try toUnicodeFail("xn---3,-3eu.xn--9h2d"); } // [V3, V6, U1]
7112test { try toUnicodeFail("xn---3,-3eu051c.xn--9h2d"); } // [C1, V3, V6, U1]
7113test { try toUnicodeFail("xn----pck1820x.xn--9h2d"); } // [V3, V6, V7]
7114test { try toUnicodeFail("xn----pck312bx563c.xn--9h2d"); } // [C1, V3, V6, V7]
7115test { 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]
7116test { 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]
7117test { 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]
7118test { 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]
7119test { try toUnicodeFail("xn--1ch2293gv3nr.xn--ilj23531g"); } // [B1, V7]
7120test { try toUnicodeFail("xn--0ug83gn618a21ov.xn--ilj23531g"); } // [B1, C1, V7]
7121test { try toUnicodeFail("xn--1ch2293gv3nr.xn--ynd49496l"); } // [B1, V7]
7122test { try toUnicodeFail("xn--0ug83gn618a21ov.xn--ynd49496l"); } // [B1, C1, V7]
7123test { try toUnicodeFail("\xd9\xa9\xef\xbd\xa1\xf3\xa0\x87\x80\xf0\x91\x87\x8a"); } // [B1, V6]
7124test { try toUnicodeFail("\xd9\xa9\xe3\x80\x82\xf3\xa0\x87\x80\xf0\x91\x87\x8a"); } // [B1, V6]
7125test { try toUnicodeFail("xn--iib.xn--6d1d"); } // [B1, V6]
7126test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf\xe2\x92\x8d\xe3\x80\x82-"); } // [B1, V3, V6, V7]
7127test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb8\xe2\x92\x8d\xe3\x80\x82-"); } // [B1, V3, V6, V7]
7128test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf6.\xe3\x80\x82-"); } // [B1, V3, V6, V7, X4_2]
7129test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb86.\xe3\x80\x82-"); } // [B1, V3, V6, V7, X4_2]
7130test { try toUnicodeFail("xn--6-oyg968k7h74b..-"); } // [B1, V3, V6, V7, X4_2]
7131test { try toUnicodeFail("xn--hmd482gqqb8730g.-"); } // [B1, V3, V6, V7]
7132test { try toUnicodeFail("\xe1\x9e\xb4.\xec\xae\x87-"); } // [V3, X4_2]
7133test { try toUnicodeFail("\xe1\x9e\xb4.\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xae-"); } // [V3, X4_2]
7134test { try toUnicodeFail(".xn----938f"); } // [V3, X4_2]
7135test { try toUnicodeFail("xn--z3e.xn----938f"); } // [V3, V6, V7]
7136test { try toUnicodeFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x82\xe2\x92\x88-\xf4\x80\xaa\x9b"); } // [C1, V7]
7137test { try toUnicodeFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x821.-\xf4\x80\xaa\x9b"); } // [C1, V3, V7]
7138test { try toUnicodeFail("xn--wz1d.1.xn----rg03o"); } // [V3, V6, V7]
7139test { try toUnicodeFail("xn--0ugy057g.1.xn----rg03o"); } // [C1, V3, V7]
7140test { try toUnicodeFail("xn--wz1d.xn----dcp29674o"); } // [V6, V7]
7141test { try toUnicodeFail("xn--0ugy057g.xn----dcp29674o"); } // [C1, V7]
7142test { 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]
7143test { 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]
7144test { try toUnicodeFail("1.xn--wgb.xn--c1g6021kg18c"); } // [B1, V6]
7145test { try toUnicodeFail("1.xn--wgb253k.xn--0ugz6a8040fty5d"); } // [B1, B3, C1, V6]
7146test { try toUnicodeFail("xn--wgb746m.xn--c1g6021kg18c"); } // [B1, V6, V7]
7147test { try toUnicodeFail("xn--wgb253kmfd.xn--0ugz6a8040fty5d"); } // [B1, C1, V6, V7]
7148test { try toUnicodeFail("\xf3\x8c\xad\x87\xef\xbd\xa1\xf0\x9d\x9f\x90\xe1\xae\xa8\xdf\x94"); } // [B1, V7]
7149test { try toUnicodeFail("\xf3\x8c\xad\x87\xe3\x80\x822\xe1\xae\xa8\xdf\x94"); } // [B1, V7]
7150test { try toUnicodeFail("xn--xm89d.xn--2-icd143m"); } // [B1, V7]
7151test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
7152test { 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]
7153test { 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]
7154test { 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]
7155test { try toUnicodeFail("xn--tgb9bb64691z.xn--4xa6667k"); } // [B2, B3, B5, B6, V7]
7156test { try toUnicodeFail("xn--tgb9bb64691z.xn--4xa895lrp7n"); } // [B2, B3, B5, B6, C2, V7]
7157test { try toUnicodeFail("xn--tgb9bb64691z.xn--3xa006lrp7n"); } // [B2, B3, B5, B6, C2, V7]
7158test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
7159test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7]
7160test { try toUnicodeFail("\xe2\x92\x8e\xdb\x81\xd8\x85\xef\xbd\xa1\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd"); } // [B1, V6, V7]
7161test { try toUnicodeFail("7.\xdb\x81\xd8\x85\xe3\x80\x82\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd"); } // [B1, V6, V7]
7162test { try toUnicodeFail("7.xn--nfb98a.xn--imb3805fxt8b"); } // [B1, V6, V7]
7163test { try toUnicodeFail("xn--nfb98ai25e.xn--imb3805fxt8b"); } // [B1, V6, V7]
7164test { 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]
7165test { try toUnicodeFail("xn----f3j6s87156i.xn--nfb035hoo2p"); } // [B1, V3, V7]
7166test { try toUnicodeFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96"); } // [B1, C2]
7167test { try toUnicodeFail(".xn--hcb32bni"); } // [X4_2]
7168test { try toUnicodeFail("xn--1ug.xn--hcb32bni"); } // [B1, C2]
1863test { try toUnicodePass("xn--hcb32bni", "\xda\xbd\xd9\xa3\xd6\x96"); }7169test { try toUnicodePass("xn--hcb32bni", "\xda\xbd\xd9\xa3\xd6\x96"); }
1864test { try toAsciiPass("xn--hcb32bni", "xn--hcb32bni", false); }7170test { try toAsciiPass("xn--hcb32bni", "xn--hcb32bni", false); }
1865test { try toAsciiPass("xn--hcb32bni", "xn--hcb32bni", true); }7171test { try toAsciiPass("xn--hcb32bni", "xn--hcb32bni", true); }
1866test { try toUnicodePass("\xda\xbd\xd9\xa3\xd6\x96", "\xda\xbd\xd9\xa3\xd6\x96"); }7172test { try toUnicodePass("\xda\xbd\xd9\xa3\xd6\x96", "\xda\xbd\xd9\xa3\xd6\x96"); }
1867test { try toAsciiPass("\xda\xbd\xd9\xa3\xd6\x96", "xn--hcb32bni", false); }7173test { try toAsciiPass("\xda\xbd\xd9\xa3\xd6\x96", "xn--hcb32bni", false); }
1868test { try toAsciiPass("\xda\xbd\xd9\xa3\xd6\x96", "xn--hcb32bni", true); }7174test { try toAsciiPass("\xda\xbd\xd9\xa3\xd6\x96", "xn--hcb32bni", true); }
7175test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\xb8\xe2\x80\x8d"); } // [B5, B6, C2]
7176test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\x8a\xd9\xb4\xe2\x80\x8d"); } // [B5, B6, C2]
7177test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\x8a\xd9\xb4\xe2\x80\x8d"); } // [B5, B6, C2]
7178test { try toUnicodeFail("xn--emb715u.xn--mhb8fy26k"); } // [B5, B6]
7179test { try toUnicodeFail("xn--emb715u.xn--mhb8f960g03l"); } // [B5, B6, C2]
7180test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\xb8\xe2\x80\x8d"); } // [B5, B6, C2]
7181test { try toUnicodeFail("xn--emb715u.xn--mhb8f817a"); } // [B5, B6, V7]
7182test { try toUnicodeFail("xn--emb715u.xn--mhb8f817ao2p"); } // [B5, B6, C2, V7]
7183test { try toUnicodeFail("\xe0\xbe\x94\xea\xa1\x8b-\xef\xbc\x8e-\xf0\x96\xac\xb4"); } // [V3, V6]
7184test { try toUnicodeFail("\xe0\xbe\x94\xea\xa1\x8b-.-\xf0\x96\xac\xb4"); } // [V3, V6]
7185test { try toUnicodeFail("xn----ukg9938i.xn----4u5m"); } // [V3, V6]
7186test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-"); } // [C1, V3, V7]
7187test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-"); } // [C1, V3, V7]
7188test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c.\xe6\xa0\x87-"); } // [C1, V3, V7]
7189test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c.\xe6\xa0\x87-"); } // [C1, V3, V7]
7190test { try toUnicodeFail("xn----9mo67451g.xn----qj7b"); } // [V3, V7]
7191test { try toUnicodeFail("xn----sgn90kn5663a.xn----qj7b"); } // [C1, V3, V7]
7192test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xcf\x82\xdf\x9c"); } // [B5, B6]
7193test { try toUnicodeFail("\xd9\xb1.\xcf\x82\xdf\x9c"); } // [B5, B6]
7194test { try toUnicodeFail("\xd9\xb1.\xce\xa3\xdf\x9c"); } // [B5, B6]
7195test { try toUnicodeFail("\xd9\xb1.\xcf\x83\xdf\x9c"); } // [B5, B6]
7196test { try toUnicodeFail("xn--qib.xn--4xa21s"); } // [B5, B6]
7197test { try toUnicodeFail("xn--qib.xn--3xa41s"); } // [B5, B6]
7198test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xce\xa3\xdf\x9c"); } // [B5, B6]
7199test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xcf\x83\xdf\x9c"); } // [B5, B6]
7200test { 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]
7201test { 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]
7202test { try toUnicodeFail("xn--nfb17942h.xn--nzb6708kx3pn"); } // [B2, B3, B5, B6, V7]
7203test { try toUnicodeFail("xn--nfb17942h.xn--nzb240jv06otevq"); } // [B2, B3, B5, B6, C2, V7]
7204test { try toUnicodeFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xef\xbd\xa1\xe1\xaf\xb2"); } // [B1, V6, V7]
7205test { try toUnicodeFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xe3\x80\x82\xe1\xaf\xb2"); } // [B1, V6, V7]
7206test { try toUnicodeFail("xn--d97cn8rn44p.xn--0zf"); } // [B1, V6, V7]
7207test { 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]
7208test { 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]
7209test { 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]
7210test { try toUnicodeFail("xn--6-iuly4983p.xn--4xa95ohw6pk078g"); } // [B1, B5, V7]
7211test { try toUnicodeFail("xn--6-iuly4983p.xn--3xa16ohw6pk078g"); } // [B1, B5, V7]
7212test { try toUnicodeFail("xn--6-5bh476ewr517a.xn--4xa95ohw6pk078g"); } // [B1, B5, V7]
7213test { try toUnicodeFail("xn--6-5bh476ewr517a.xn--3xa16ohw6pk078g"); } // [B1, B5, V7]
7214test { 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]
7215test { try toUnicodeFail("\xda\xb3\xef\xb8\x84\xf1\x85\x8e\xa67\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B2, V7]
7216test { try toUnicodeFail("xn--7-yuc34665f.xn--1o0d"); } // [B1, B2, V7]
7217test { try toUnicodeFail("\xf0\x9e\xae\xa7\xef\xbc\x8e\xe2\x80\x8c\xe2\xab\x9e"); } // [B1, C1, V7]
7218test { try toUnicodeFail("\xf0\x9e\xae\xa7.\xe2\x80\x8c\xe2\xab\x9e"); } // [B1, C1, V7]
7219test { try toUnicodeFail("xn--pw6h.xn--53i"); } // [B1, V7]
7220test { try toUnicodeFail("xn--pw6h.xn--0ug283b"); } // [B1, C1, V7]
7221test { try toUnicodeFail("-\xf1\x95\x89\xb4.\xdb\xa0\xe1\xa2\x9a-"); } // [V3, V6, V7]
7222test { try toUnicodeFail("xn----qi38c.xn----jxc827k"); } // [V3, V6, V7]
7223test { 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]
7224test { try toUnicodeFail("\xe2\x8c\x81\xe2\x80\x8d\xf0\x91\x84\xb4.\xe2\x80\x8c7\xd9\xac"); } // [B1, C1, C2]
7225test { try toUnicodeFail("xn--nhh5394g.xn--7-xqc"); } // [B1]
7226test { try toUnicodeFail("xn--1ug38i2093a.xn--7-xqc297q"); } // [B1, C1, C2]
7227test { 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]
7228test { 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]
7229test { try toUnicodeFail(".xn--mgb1a7bt462h.xn--17e10qe61f9r71s"); } // [V7, X4_2]
7230test { try toUnicodeFail("xn--mgb1a7bt462hf267a.xn--17e10qe61f9r71s"); } // [B1, V7]
7231test { try toUnicodeFail("\xf0\x90\xb9\xa8\xe3\x80\x828\xf0\x91\x81\x86"); } // [B1]
7232test { try toUnicodeFail("xn--go0d.xn--8-yu7i"); } // [B1]
7233test { 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]
7234test { 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]
7235test { try toUnicodeFail("xn--mxc5210v.xn--90b01t8u2p1ltd"); } // [B1, B5, B6, V6]
7236test { try toUnicodeFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xef\xbd\xa1\xf3\xa0\x8d\x85"); } // [B1, B5, B6, V7]
7237test { try toUnicodeFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xe3\x80\x82\xf3\xa0\x8d\x85"); } // [B1, B5, B6, V7]
7238test { try toUnicodeFail("xn--nsa1265kp9z9e.xn--xt36e"); } // [B1, B5, B6, V7]
7239test { try toUnicodeFail("\xe1\xa2\x8c\xef\xbc\x8e-\xe0\xa1\x9a"); } // [V3]
7240test { try toUnicodeFail("\xe1\xa2\x8c.-\xe0\xa1\x9a"); } // [V3]
7241test { try toUnicodeFail("xn--59e.xn----5jd"); } // [V3]
7242test { 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]
7243test { 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]
7244test { try toUnicodeFail("xn--jb2dj685c.xn--xmc5562kmcb"); } // [B1, V7]
7245test { try toUnicodeFail("\xe1\x82\xb0\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c"); } // [B1, B5, B6, C1]
7246test { try toUnicodeFail("\xe1\x82\xb0\xdd\xbf.\xe2\x80\x8c"); } // [B1, B5, B6, C1]
7247test { try toUnicodeFail("\xe2\xb4\x90\xdd\xbf.\xe2\x80\x8c"); } // [B1, B5, B6, C1]
7248test { try toUnicodeFail("xn--gqb743q."); } // [B5, B6]
7249test { try toUnicodeFail("xn--gqb743q.xn--0ug"); } // [B1, B5, B6, C1]
7250test { try toUnicodeFail("\xe2\xb4\x90\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c"); } // [B1, B5, B6, C1]
7251test { try toUnicodeFail("xn--gqb918b."); } // [B5, B6, V7]
7252test { try toUnicodeFail("xn--gqb918b.xn--0ug"); } // [B1, B5, B6, C1, V7]
7253test { 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]
7254test { try toUnicodeFail("4,\xf0\x91\xb2\x9e-1.\xe3\x80\x82\xe2\x80\x8d\xe1\xa0\xa9\xda\xa5"); } // [B1, C2, U1, X4_2]
7255test { try toUnicodeFail("xn--4,-1-w401a..xn--7jb180g"); } // [B1, B5, B6, U1, X4_2]
7256test { try toUnicodeFail("xn--4,-1-w401a..xn--7jb180gexf"); } // [B1, C2, U1, X4_2]
7257test { try toUnicodeFail("xn--4,--je4aw745l.xn--7jb180g"); } // [B1, B5, B6, V7, U1]
7258test { try toUnicodeFail("xn--4,--je4aw745l.xn--7jb180gexf"); } // [B1, C2, V7, U1]
7259test { try toUnicodeFail("xn----ecp8796hjtvg.xn--7jb180g"); } // [B1, B5, B6, V7]
7260test { try toUnicodeFail("xn----ecp8796hjtvg.xn--7jb180gexf"); } // [B1, C2, V7]
7261test { try toUnicodeFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\xaa\xf2\xae\xbf\x8b"); } // [B2, B3, V7]
7262test { try toUnicodeFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\x88\xf2\xae\xbf\x8b"); } // [B2, B3, V7]
7263test { try toUnicodeFail("xn--4240a.xn--ie6h83808a"); } // [B2, B3, V7]
7264test { 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]
7265test { 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]
7266test { try toUnicodeFail("xn--pdb42d.xn--lib6412enztdwv6h"); } // [B1, B2, B3, V6]
7267test { try toUnicodeFail("\xf0\x9e\xad\xb3-\xea\xa1\x81\xe3\x80\x82\xe1\xa9\xa9\xe0\xaf\x8d-"); } // [B1, B2, B3, V3, V6, V7]
7268test { try toUnicodeFail("xn----be4e4276f.xn----lze333i"); } // [B1, B2, B3, V3, V6, V7]
7269test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8e\xc3\x9f"); } // [V6, V7]
7270test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.\xc3\x9f"); } // [V6, V7]
7271test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.SS"); } // [V6, V7]
7272test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.ss"); } // [V6, V7]
7273test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.Ss"); } // [V6, V7]
7274test { try toUnicodeFail("xn----9tg11172akr8b.ss"); } // [V6, V7]
7275test { try toUnicodeFail("xn----9tg11172akr8b.xn--zca"); } // [V6, V7]
7276test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSS"); } // [V6, V7]
7277test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8ess"); } // [V6, V7]
7278test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSs"); } // [V6, V7]
7279test { try toUnicodeFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe1\x82\xbf\xe2\x80\x8c\xe2\x90\xa3"); } // [B3, B6, C1]
7280test { 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]
7281test { 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]
7282test { try toUnicodeFail("xn----eoc6bm.xn--xph904a"); } // [B3, B6, V3]
7283test { try toUnicodeFail("xn----eoc6bm0504a.xn--0ug13nd0j"); } // [B3, B6, C1]
7284test { try toUnicodeFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe2\xb4\x9f\xe2\x80\x8c\xe2\x90\xa3"); } // [B3, B6, C1]
7285test { try toUnicodeFail("xn----eoc6bm.xn--3nd240h"); } // [B3, B6, V3, V7]
7286test { try toUnicodeFail("xn----eoc6bm0504a.xn--3nd849e05c"); } // [B3, B6, C1, V7]
7287test { 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]
7288test { 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]
7289test { 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]
7290test { try toUnicodeFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xf1\xa5\x9e\xa75=\xcc\xb8"); } // [C1, C2, V6, V7]
7291test { try toUnicodeFail("xn----jmf.xn--5-ufo50192e"); } // [V3, V6, V7]
7292test { try toUnicodeFail("xn----jmf215lda.xn--5-ufo50192e"); } // [C1, C2, V6, V7]
7293test { try toUnicodeFail("\xe9\x94\xa3\xe3\x80\x82\xe0\xa9\x8d\xf3\xa0\x98\xbb\xf3\xa0\x9a\x86"); } // [V6, V7]
7294test { try toUnicodeFail("xn--gc5a.xn--ybc83044ppga"); } // [V6, V7]
1869test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe\xef\xbc\x8e\xd9\x89\xe2\x80\x8d\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }7295test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe\xef\xbc\x8e\xd9\x89\xe2\x80\x8d\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }
7296test { try toUnicodeFail("\xd8\xbd\xf0\x91\x88\xbe\xef\xbc\x8e\xd9\x89\xe2\x80\x8d\xea\xa4\xab"); } // [B3, C2]
1870test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xe2\x80\x8d\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }7297test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xe2\x80\x8d\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }
7298test { try toUnicodeFail("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xe2\x80\x8d\xea\xa4\xab"); } // [B3, C2]
1871test { try toUnicodePass("xn--8gb2338k.xn--lhb0154f", "\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab"); }7299test { try toUnicodePass("xn--8gb2338k.xn--lhb0154f", "\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab"); }
1872test { try toAsciiPass("xn--8gb2338k.xn--lhb0154f", "xn--8gb2338k.xn--lhb0154f", false); }7300test { try toAsciiPass("xn--8gb2338k.xn--lhb0154f", "xn--8gb2338k.xn--lhb0154f", false); }
1873test { try toAsciiPass("xn--8gb2338k.xn--lhb0154f", "xn--8gb2338k.xn--lhb0154f", true); }7301test { try toAsciiPass("xn--8gb2338k.xn--lhb0154f", "xn--8gb2338k.xn--lhb0154f", true); }
1874test { try toUnicodePass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab"); }7302test { try toUnicodePass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab"); }
1875test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", false); }7303test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", false); }
1876test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }7304test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); }
7305test { try toUnicodeFail("xn--8gb2338k.xn--lhb603k060h"); } // [B3, C2]
7306test { try toUnicodeFail("\xd9\xa6\xe2\x81\xb4\xe1\x82\xa5\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1]
7307test { try toUnicodeFail("\xd9\xa64\xe1\x82\xa5.\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1]
7308test { try toUnicodeFail("\xd9\xa64\xe2\xb4\x85.\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1]
7309test { try toUnicodeFail("xn--4-kqc6770a.xn--jzb"); } // [B1]
7310test { try toUnicodeFail("xn--4-kqc6770a.xn--jzb840j"); } // [B1, B3, C1]
7311test { try toUnicodeFail("\xd9\xa6\xe2\x81\xb4\xe2\xb4\x85\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1]
7312test { try toUnicodeFail("xn--4-kqc489e.xn--jzb"); } // [B1, V7]
7313test { try toUnicodeFail("xn--4-kqc489e.xn--jzb840j"); } // [B1, B3, C1, V7]
1877test { 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"); }7314test { 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"); }
1878test { try toAsciiPass("\xe1\x83\x81\xe1\x82\xb16\xcc\x98\xe3\x80\x82\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--zca894k", false); }7315test { try toAsciiPass("\xe1\x83\x81\xe1\x82\xb16\xcc\x98\xe3\x80\x82\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--zca894k", false); }
1879test { 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); }7316test { 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); }
...@@ -1907,12 +7344,118 @@ test { try toAsciiPass("xn--6-8cb7433a2ba.xn--zca894k", "xn--6-8cb7433a2ba.xn--z...@@ -1907,12 +7344,118 @@ test { try toAsciiPass("xn--6-8cb7433a2ba.xn--zca894k", "xn--6-8cb7433a2ba.xn--z
1907test { try toUnicodePass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83"); }7344test { try toUnicodePass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83"); }
1908test { try toAsciiPass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--zca894k", false); }7345test { try toAsciiPass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--zca894k", false); }
1909test { try toAsciiPass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--ss-2vq", true); }7346test { try toAsciiPass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--ss-2vq", true); }
7347test { try toUnicodeFail("xn--6-8cb306hms1a.xn--ss-2vq"); } // [V7]
7348test { try toUnicodeFail("xn--6-8cb555h2b.xn--ss-2vq"); } // [V7]
7349test { try toUnicodeFail("xn--6-8cb555h2b.xn--zca894k"); } // [V7]
7350test { try toUnicodeFail("\xf2\x8b\xa1\x90\xef\xbd\xa1\xe2\x89\xaf\xf0\x91\x8b\xaa"); } // [V7]
7351test { try toUnicodeFail("\xf2\x8b\xa1\x90\xef\xbd\xa1>\xcc\xb8\xf0\x91\x8b\xaa"); } // [V7]
7352test { try toUnicodeFail("\xf2\x8b\xa1\x90\xe3\x80\x82\xe2\x89\xaf\xf0\x91\x8b\xaa"); } // [V7]
7353test { try toUnicodeFail("\xf2\x8b\xa1\x90\xe3\x80\x82>\xcc\xb8\xf0\x91\x8b\xaa"); } // [V7]
7354test { try toUnicodeFail("xn--eo08b.xn--hdh3385g"); } // [V7]
7355test { try toUnicodeFail("\xd9\x9a\xdb\xb2\xe3\x80\x82\xe2\x80\x8c-\xe1\xaf\xb3\xe0\xa3\xa2"); } // [B1, C1, V6, V7]
7356test { try toUnicodeFail("xn--2hb81a.xn----xrd657l"); } // [B1, V3, V6, V7]
7357test { try toUnicodeFail("xn--2hb81a.xn----xrd657l30d"); } // [B1, C1, V6, V7]
7358test { try toUnicodeFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xef\xbd\xa1\xef\xbe\xa0"); } // [V6, V7]
7359test { try toUnicodeFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xe3\x80\x82\xe1\x85\xa0"); } // [V6, V7]
7360test { try toUnicodeFail("xn--619ep9154c."); } // [V6, V7]
7361test { try toUnicodeFail("xn--619ep9154c.xn--psd"); } // [V6, V7]
7362test { try toUnicodeFail("xn--619ep9154c.xn--cl7c"); } // [V6, V7]
7363test { 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]
7364test { 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]
7365test { 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]
7366test { 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]
7367test { 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]
7368test { try toUnicodeFail("ss1.xn--kpb6677h.xn--nfb09923ifkyyb"); } // [B2, B3, B5, V7]
7369test { try toUnicodeFail("xn--1-pfa.xn--kpb6677h.xn--nfb09923ifkyyb"); } // [B2, B3, B5, V7]
7370test { 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]
7371test { 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]
7372test { 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]
7373test { try toUnicodeFail("xn--ss-6ke9690a0g1q.xn--nfb09923ifkyyb"); } // [B5, V7]
7374test { try toUnicodeFail("xn--zca444a0s1ao12n.xn--nfb09923ifkyyb"); } // [B5, V7]
7375test { try toUnicodeFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb1\xe2\x82\x82"); } // [V7]
7376test { try toUnicodeFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb12"); } // [V7]
7377test { try toUnicodeFail("xn--vi56e.xn--2-w91i"); } // [V7]
7378test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-\xc3\x9f\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3]
7379test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-SS\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3]
7380test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-ss\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3]
7381test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-Ss\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3]
7382test { try toUnicodeFail("xn--gnb63i.xn---ss-4ef"); } // [B1, V3]
7383test { try toUnicodeFail("xn--gnb63i.xn---ss-4ef9263a"); } // [B1, C1, V3]
7384test { try toUnicodeFail("xn--gnb63i.xn----qfa845bhx4a"); } // [B1, C1, V3]
7385test { 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]
7386test { 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]
7387test { 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]
7388test { try toUnicodeFail("xn--pgb911izv33i.xn--i6f270etuy"); } // [B1, V6, V7]
7389test { try toUnicodeFail("xn--pgb911imgdrw34r.xn--i6f270etuy"); } // [B1, C2, V6, V7]
7390test { 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]
7391test { try toUnicodeFail("xn--pgb911izv33i.xn--5nd792dgv3b"); } // [B1, V6, V7]
7392test { try toUnicodeFail("xn--pgb911imgdrw34r.xn--5nd792dgv3b"); } // [B1, C2, V6, V7]
7393test { try toUnicodeFail("\xe2\xb6\xbf.\xc3\x9f\xe2\x80\x8d"); } // [C2, V7]
7394test { try toUnicodeFail("\xe2\xb6\xbf.SS\xe2\x80\x8d"); } // [C2, V7]
7395test { try toUnicodeFail("\xe2\xb6\xbf.ss\xe2\x80\x8d"); } // [C2, V7]
7396test { try toUnicodeFail("\xe2\xb6\xbf.Ss\xe2\x80\x8d"); } // [C2, V7]
7397test { try toUnicodeFail("xn--7pj.ss"); } // [V7]
7398test { try toUnicodeFail("xn--7pj.xn--ss-n1t"); } // [C2, V7]
7399test { try toUnicodeFail("xn--7pj.xn--zca870n"); } // [C2, V7]
7400test { try toUnicodeFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82"); } // [B2, B3, B6, V6, V7]
7401test { try toUnicodeFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa>\xcc\xb8\xea\xa1\x82"); } // [B2, B3, B6, V6, V7]
7402test { try toUnicodeFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82"); } // [B2, B3, V6, X4_2]
7403test { try toUnicodeFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa>\xcc\xb8\xea\xa1\x82"); } // [B2, B3, V6, X4_2]
7404test { try toUnicodeFail("xn--1zf..xn--pgb885lry5g"); } // [B2, B3, V6, X4_2]
7405test { try toUnicodeFail("xn--1zf8957g.xn--pgb885lry5g"); } // [B2, B3, B6, V6, V7]
7406test { 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]
7407test { 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]
7408test { 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]
7409test { 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]
7410test { try toUnicodeFail("xn--1ch1a29470f.xn----7uc5363rc1rn"); } // [B1, V3, V7]
7411test { try toUnicodeFail("\xf0\x90\xb9\xa1\xdd\xb7\xe3\x80\x82\xea\xa1\x82"); } // [B1]
7412test { try toUnicodeFail("xn--7pb5275k.xn--bc9a"); } // [B1]
7413test { 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]
7414test { 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]
7415test { 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]
7416test { 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]
7417test { 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]
7418test { try toUnicodeFail("xn--7fb940rwt3z7xvz.xn--ss-zme7575xp0e"); } // [B5, B6, V7]
7419test { try toUnicodeFail("xn--7fb940rwt3z7xvz.xn--zca684a699vf2d"); } // [B5, B6, V7]
7420test { try toUnicodeFail("xn--7fb125cjv87a7xvz.xn--ss-zme7575xp0e"); } // [B5, B6, V7]
7421test { try toUnicodeFail("xn--7fb125cjv87a7xvz.xn--zca684a699vf2d"); } // [B5, B6, V7]
7422test { try toUnicodeFail("\xe2\x80\x8d\xd9\x83\xf0\x90\xa7\xbe\xe2\x86\x99.\xf1\x8a\xbd\xa1"); } // [B1, C2, V7]
7423test { try toUnicodeFail("xn--fhb011lnp8n.xn--7s4w"); } // [B3, V7]
7424test { try toUnicodeFail("xn--fhb713k87ag053c.xn--7s4w"); } // [B1, C2, V7]
7425test { try toUnicodeFail("\xe6\xa2\x89\xe3\x80\x82\xe2\x80\x8c"); } // [C1]
1910test { try toUnicodePass("xn--7zv.", "\xe6\xa2\x89."); }7426test { try toUnicodePass("xn--7zv.", "\xe6\xa2\x89."); }
1911test { try toUnicodePass("\xe6\xa2\x89.", "\xe6\xa2\x89."); }7427test { try toUnicodePass("\xe6\xa2\x89.", "\xe6\xa2\x89."); }
7428test { try toUnicodeFail("xn--7zv.xn--0ug"); } // [C1]
7429test { 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]
7430test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x83"); } // [B1, B6, C2]
7431test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\xb9\xf0\x90\x85\xa2\xe2\x86\x84"); } // [B1, B6, C2]
7432test { 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]
7433test { 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]
7434test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x84"); } // [B1, B6, C2]
7435test { try toUnicodeFail("xn----ufo9661d.xn--r5gy929fhm4f"); } // [B2, B3, B6]
7436test { try toUnicodeFail("xn----ufo9661d.xn--1ug99cj620c71sh"); } // [B1, B6, C2]
7437test { try toUnicodeFail("xn----ufo9661d.xn--q5g0929fhm4f"); } // [B2, B3, B6, V7]
7438test { try toUnicodeFail("xn----ufo9661d.xn--1ug79cm620c71sh"); } // [B1, B6, C2, V7]
7439test { 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]
7440test { try toUnicodeFail("\xcf\x829.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1]
7441test { try toUnicodeFail("\xce\xa39.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1]
7442test { try toUnicodeFail("\xcf\x839.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1]
7443test { try toUnicodeFail("xn--9-zmb.xn--ltj1535k.xn--9,7-r67t"); } // [B1, V6, V7, U1]
7444test { try toUnicodeFail("xn--9-xmb.xn--ltj1535k.xn--9,7-r67t"); } // [B1, V6, V7, U1]
7445test { 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]
7446test { 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]
7447test { try toUnicodeFail("xn--4xa809nwtghi25b.xn--9,7-r67t"); } // [B6, V7, U1]
7448test { try toUnicodeFail("xn--3xa019nwtghi25b.xn--9,7-r67t"); } // [B6, V7, U1]
7449test { try toUnicodeFail("xn--4xa809nwtghi25b.xn--7-075iy877c"); } // [B6, V7]
7450test { try toUnicodeFail("xn--3xa019nwtghi25b.xn--7-075iy877c"); } // [B6, V7]
1912test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8c\xc3\x9f", "xn--iwb.ss", true); }7451test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8c\xc3\x9f", "xn--iwb.ss", true); }
7452test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8c\xc3\x9f"); } // [B1, C1]
1913test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8c\xc3\x9f", "xn--iwb.ss", true); }7453test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8c\xc3\x9f", "xn--iwb.ss", true); }
7454test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8c\xc3\x9f"); } // [B1, C1]
1914test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8cSS", "xn--iwb.ss", true); }7455test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8cSS", "xn--iwb.ss", true); }
7456test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8cSS"); } // [B1, C1]
1915test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8css", "xn--iwb.ss", true); }7457test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8css", "xn--iwb.ss", true); }
7458test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8css"); } // [B1, C1]
1916test { try toUnicodePass("xn--iwb.ss", "\xe0\xa1\x93.ss"); }7459test { try toUnicodePass("xn--iwb.ss", "\xe0\xa1\x93.ss"); }
1917test { try toAsciiPass("xn--iwb.ss", "xn--iwb.ss", false); }7460test { try toAsciiPass("xn--iwb.ss", "xn--iwb.ss", false); }
1918test { try toAsciiPass("xn--iwb.ss", "xn--iwb.ss", true); }7461test { try toAsciiPass("xn--iwb.ss", "xn--iwb.ss", true); }
...@@ -1922,18 +7465,148 @@ test { try toAsciiPass("\xe0\xa1\x93.ss", "xn--iwb.ss", true); }...@@ -1922,18 +7465,148 @@ test { try toAsciiPass("\xe0\xa1\x93.ss", "xn--iwb.ss", true); }
1922test { try toUnicodePass("\xe0\xa1\x93.SS", "\xe0\xa1\x93.ss"); }7465test { try toUnicodePass("\xe0\xa1\x93.SS", "\xe0\xa1\x93.ss"); }
1923test { try toAsciiPass("\xe0\xa1\x93.SS", "xn--iwb.ss", false); }7466test { try toAsciiPass("\xe0\xa1\x93.SS", "xn--iwb.ss", false); }
1924test { try toAsciiPass("\xe0\xa1\x93.SS", "xn--iwb.ss", true); }7467test { try toAsciiPass("\xe0\xa1\x93.SS", "xn--iwb.ss", true); }
7468test { try toUnicodeFail("xn--iwb.xn--ss-i1t"); } // [B1, C1]
7469test { try toUnicodeFail("xn--iwb.xn--zca570n"); } // [B1, C1]
1925test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSS", "xn--iwb.ss", true); }7470test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSS", "xn--iwb.ss", true); }
7471test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSS"); } // [B1, C1]
1926test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8css", "xn--iwb.ss", true); }7472test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8css", "xn--iwb.ss", true); }
7473test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8css"); } // [B1, C1]
1927test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8cSs", "xn--iwb.ss", true); }7474test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8cSs", "xn--iwb.ss", true); }
7475test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8cSs"); } // [B1, C1]
1928test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSs", "xn--iwb.ss", true); }7476test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSs", "xn--iwb.ss", true); }
7477test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSs"); } // [B1, C1]
7478test { try toUnicodeFail("\xf1\xaf\xb6\xa3-.\xe2\x80\x8d\xdd\x8e\xea\xa5\x8d\xf3\xa0\xbb\xa8"); } // [B1, B6, C2, V3, V7]
7479test { try toUnicodeFail("xn----s116e.xn--1ob6504fmf40i"); } // [B3, B6, V3, V7]
7480test { try toUnicodeFail("xn----s116e.xn--1ob387jy90hq459k"); } // [B1, B6, C2, V3, V7]
7481test { try toUnicodeFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x98\xe2\x92\x88"); } // [V3, V7]
7482test { try toUnicodeFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x981."); } // [V3, V7]
7483test { try toUnicodeFail("xn----n50a258u.xn---1-up07j."); } // [V3, V7]
7484test { try toUnicodeFail("xn----n50a258u.xn----ecp33805f"); } // [V3, V7]
7485test { try toUnicodeFail("\xf0\x90\xb9\xb8\xe4\x9a\xb5-\xea\xa1\xa1\xe3\x80\x82\xe2\xba\x87"); } // [B1]
7486test { try toUnicodeFail("xn----bm3an932a1l5d.xn--xvj"); } // [B1]
7487test { try toUnicodeFail("\xf0\x91\x84\xb3\xe3\x80\x82\xe1\xab\x9c\xf0\x90\xb9\xbb"); } // [B1, V6]
7488test { try toUnicodeFail("xn--v80d.xn--2rf1154i"); } // [B1, V6]
7489test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V7]
7490test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V7]
7491test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V6, V7]
7492test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V6, V7]
7493test { try toUnicodeFail("xn--gdhx904g.7.xn--kfb18an307d"); } // [B1, V6, V7]
7494test { try toUnicodeFail("xn--gdhx904g.xn--kfb18a325efm3s"); } // [B1, V7]
7495test { try toUnicodeFail("\xe1\xa2\x94\xe2\x89\xa0\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2"); } // [C2, V7]
7496test { try toUnicodeFail("\xe1\xa2\x94=\xcc\xb8\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2"); } // [C2, V7]
7497test { try toUnicodeFail("xn--ebf031cf7196a.xn--587c"); } // [V7]
7498test { try toUnicodeFail("xn--ebf031cf7196a.xn--1ug9540g"); } // [C2, V7]
7499test { 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]
7500test { 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]
7501test { 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]
7502test { 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]
7503test { try toUnicodeFail("xn--gdhc0519o0y27b.xn--lib468q0d21a"); } // [B1, B2, B3, V7]
7504test { try toUnicodeFail("-\xef\xbd\xa1\xe2\xba\x90"); } // [V3]
7505test { try toUnicodeFail("-\xe3\x80\x82\xe2\xba\x90"); } // [V3]
7506test { try toUnicodeFail("-.xn--6vj"); } // [V3]
7507test { try toUnicodeFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac\xef\xbc\x8e\xd9\x9c"); } // [V6, V7]
7508test { try toUnicodeFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac.\xd9\x9c"); } // [V6, V7]
7509test { try toUnicodeFail("xn--sn3d59267c.xn--4hb"); } // [V6, V7]
7510test { try toUnicodeFail("\xf0\x90\x8d\xba.\xf1\x9a\x87\x83\xe2\x80\x8c"); } // [C1, V6, V7]
7511test { try toUnicodeFail("xn--ie8c.xn--2g51a"); } // [V6, V7]
7512test { try toUnicodeFail("xn--ie8c.xn--0ug03366c"); } // [C1, V6, V7]
7513test { try toUnicodeFail("\xd8\xbd\xdb\xa3.\xf0\x90\xa8\x8e"); } // [B1, V6]
7514test { try toUnicodeFail("xn--8gb64a.xn--mr9c"); } // [B1, V6]
7515test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
7516test { try toUnicodeFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
7517test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xce\xa3.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
7518test { try toUnicodeFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
7519test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7]
7520test { try toUnicodeFail("xn--4xa772sl47b.xn--9d0d3162t"); } // [B5, B6, V7]
7521test { try toUnicodeFail("xn--3xa972sl47b.xn--9d0d3162t"); } // [B5, B6, V7]
7522test { try toUnicodeFail("xn--4xa947d717e.xn--9d0d3162t"); } // [B5, B6, V7]
7523test { try toUnicodeFail("xn--3xa157d717e.xn--9d0d3162t"); } // [B5, B6, V7]
7524test { 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]
7525test { 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]
7526test { try toUnicodeFail("xn--8tc1437dro0d6q06h.xn--1-p948l.xn--m82h"); } // [B1, V6, V7]
7527test { try toUnicodeFail("xn--8tc1437dro0d6q06h.xn--tsh2611ncu71e"); } // [B1, V7]
7528test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xae\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7]
7529test { try toUnicodeFail("\xe2\x80\x8d<\xcc\xb8\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7]
7530test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xae.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7]
7531test { try toUnicodeFail("\xe2\x80\x8d<\xcc\xb8.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7]
7532test { try toUnicodeFail("xn--gdh.xn----cr99a1w710b"); } // [V3, V7]
7533test { try toUnicodeFail("xn--1ug95g.xn----cr99a1w710b"); } // [C2, V3, V7]
7534test { 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]
7535test { 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]
7536test { try toUnicodeFail("xn--2u2a.xn--5-uws5848bpf44e"); } // [V7]
7537test { try toUnicodeFail("xn--1uga7691f.xn--5-uws5848bpf44e"); } // [C2, V7]
7538test { try toUnicodeFail("xn--2u2a.xn--5-r1g7167ipfw8d"); } // [V7]
7539test { try toUnicodeFail("xn--1uga7691f.xn--5-r1g7167ipfw8d"); } // [C2, V7]
1929test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d\xef\xbc\x8e\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }7540test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d\xef\xbc\x8e\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }
7541test { try toUnicodeFail("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d\xef\xbc\x8e\xe5\xa9\x80"); } // [B3, C2]
1930test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }7542test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }
7543test { try toUnicodeFail("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d.\xe5\xa9\x80"); } // [B3, C2]
1931test { try toUnicodePass("xn--ix9c26l.xn--q0s", "\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80"); }7544test { try toUnicodePass("xn--ix9c26l.xn--q0s", "\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80"); }
1932test { try toAsciiPass("xn--ix9c26l.xn--q0s", "xn--ix9c26l.xn--q0s", false); }7545test { try toAsciiPass("xn--ix9c26l.xn--q0s", "xn--ix9c26l.xn--q0s", false); }
1933test { try toAsciiPass("xn--ix9c26l.xn--q0s", "xn--ix9c26l.xn--q0s", true); }7546test { try toAsciiPass("xn--ix9c26l.xn--q0s", "xn--ix9c26l.xn--q0s", true); }
1934test { try toUnicodePass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80"); }7547test { try toUnicodePass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80"); }
1935test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", false); }7548test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", false); }
1936test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }7549test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); }
7550test { try toUnicodeFail("xn--1ugx063g1if.xn--q0s"); } // [B3, C2]
7551test { 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]
7552test { 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]
7553test { try toUnicodeFail("..xn--no0d.xn--7of309e"); } // [B1, X4_2]
7554test { try toUnicodeFail("xn--y86ca186j.xn--7of309e"); } // [B1, V7]
7555test { try toUnicodeFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
7556test { try toUnicodeFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
7557test { try toUnicodeFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1]
7558test { try toUnicodeFail("8SS.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
7559test { try toUnicodeFail("8ss.\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1]
7560test { try toUnicodeFail("8ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
7561test { try toUnicodeFail("8ss.xn---?-261a"); } // [V3, U1]
7562test { try toUnicodeFail("xn--8-qfa.xn---?-261a"); } // [V3, U1]
7563test { try toUnicodeFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1]
7564test { try toUnicodeFail("\xf0\x9d\x9f\x96SS\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
7565test { try toUnicodeFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1]
7566test { try toUnicodeFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
7567test { try toUnicodeFail("8ss.xn---?-gfk"); } // [V3, V7, U1]
7568test { try toUnicodeFail("xn--8-qfa.xn---?-gfk"); } // [V3, V7, U1]
7569test { try toUnicodeFail("8ss.-?\xe1\x82\xaf"); } // [V3, U1]
7570test { try toUnicodeFail("8ss.-?\xe2\xb4\x8f"); } // [V3, U1]
7571test { try toUnicodeFail("8SS.-?\xe1\x82\xaf"); } // [V3, U1]
7572test { try toUnicodeFail("xn--8-qfa.-?\xe2\xb4\x8f"); } // [V3, U1]
7573test { try toUnicodeFail("XN--8-QFA.-?\xe1\x82\xaf"); } // [V3, U1]
7574test { try toUnicodeFail("Xn--8-Qfa.-?\xe1\x82\xaf"); } // [V3, U1]
7575test { try toUnicodeFail("xn--8-qfa.-?\xe1\x82\xaf"); } // [V3, U1]
7576test { try toUnicodeFail("\xf0\x9d\x9f\x96Ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
7577test { try toUnicodeFail("8Ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1]
7578test { try toUnicodeFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe1\x82\xa5"); } // [B1, C1, C2, V3, V7]
7579test { try toUnicodeFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe2\xb4\x85"); } // [B1, C1, C2, V3, V7]
7580test { try toUnicodeFail("xn----s721m.xn--wkj1423e"); } // [B1, V3, V7]
7581test { try toUnicodeFail("xn----ugnv7071n.xn--0ugz32cgr0p"); } // [B1, C1, C2, V3, V7]
7582test { try toUnicodeFail("xn----s721m.xn--dnd9201k"); } // [B1, V3, V7]
7583test { try toUnicodeFail("xn----ugnv7071n.xn--dnd999e4j4p"); } // [B1, C1, C2, V3, V7]
7584test { try toUnicodeFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xef\xbd\xa1\xe2\x82\x82"); } // [C2, V6, V7]
7585test { 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]
7586test { try toUnicodeFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xe3\x80\x822"); } // [C2, V6, V7]
7587test { 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]
7588test { try toUnicodeFail("xn--0m9as84e2e21c.c"); } // [V6, V7]
7589test { try toUnicodeFail("xn--1ug1435cfkyaoi04d.c"); } // [C2, V6, V7]
7590test { try toUnicodeFail("?.\xf0\x9f\x84\x84\xf0\x9e\xaf\x98"); } // [B1, V7, U1]
7591test { try toUnicodeFail("?.3,\xf0\x9e\xaf\x98"); } // [B1, V7, U1]
7592test { try toUnicodeFail("?.xn--3,-tb22a"); } // [B1, V7, U1]
7593test { try toUnicodeFail("?.xn--3x6hx6f"); } // [B1, V7, U1]
7594test { 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]
7595test { 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]
7596test { try toUnicodeFail("xn--rt9cl956a.xn--1-dxc8545j0693i."); } // [B1, V6, V7]
7597test { try toUnicodeFail("xn--rt9cl956a.xn--tlb403mxv4g06s9i"); } // [B1, V6, V7]
7598test { try toUnicodeFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe1\x82\xa8\xe2\x80\x8d"); } // [B5, B6, C2, V7]
7599test { try toUnicodeFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe2\xb4\x88\xe2\x80\x8d"); } // [B5, B6, C2, V7]
7600test { try toUnicodeFail("xn--meb44b57607c.xn--zkj"); } // [B5, B6, V7]
7601test { try toUnicodeFail("xn--meb44b57607c.xn--1ug232c"); } // [B5, B6, C2, V7]
7602test { try toUnicodeFail("xn--meb44b57607c.xn--gnd"); } // [B5, B6, V7]
7603test { try toUnicodeFail("xn--meb44b57607c.xn--gnd699e"); } // [B5, B6, C2, V7]
7604test { 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]
7605test { 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]
7606test { try toUnicodeFail("xn--1-idd62296a1fr6e..xn--uj6at43v"); } // [B1, B5, V6, V7, X4_2]
7607test { try toUnicodeFail("xn--1-idd62296a1fr6e..xn--0ugx259bocxd"); } // [B1, B5, C1, V6, V7, X4_2]
7608test { try toUnicodeFail("xn--etb477lq931a1f58e.xn--uj6at43v"); } // [B1, B5, V6, V7]
7609test { try toUnicodeFail("xn--etb477lq931a1f58e.xn--0ugx259bocxd"); } // [B1, B5, C1, V6, V7]
1937test { 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"); }7610test { 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"); }
1938test { try toAsciiPass("\xf0\x90\xab\x80\xef\xbc\x8e\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn--fjb8658k", false); }7611test { try toAsciiPass("\xf0\x90\xab\x80\xef\xbc\x8e\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn--fjb8658k", false); }
1939test { try toAsciiPass("\xf0\x90\xab\x80\xef\xbc\x8e\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn--fjb8658k", true); }7612test { try toAsciiPass("\xf0\x90\xab\x80\xef\xbc\x8e\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn--fjb8658k", true); }
...@@ -1943,5 +7616,62 @@ test { try toAsciiPass("\xf0\x90\xab\x80.\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn...@@ -1943,5 +7616,62 @@ test { try toAsciiPass("\xf0\x90\xab\x80.\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn
1943test { try toUnicodePass("xn--pw9c.xn--fjb8658k", "\xf0\x90\xab\x80.\xda\x89\xf0\x91\x8c\x80"); }7616test { try toUnicodePass("xn--pw9c.xn--fjb8658k", "\xf0\x90\xab\x80.\xda\x89\xf0\x91\x8c\x80"); }
1944test { try toAsciiPass("xn--pw9c.xn--fjb8658k", "xn--pw9c.xn--fjb8658k", false); }7617test { try toAsciiPass("xn--pw9c.xn--fjb8658k", "xn--pw9c.xn--fjb8658k", false); }
1945test { try toAsciiPass("xn--pw9c.xn--fjb8658k", "xn--pw9c.xn--fjb8658k", true); }7618test { try toAsciiPass("xn--pw9c.xn--fjb8658k", "xn--pw9c.xn--fjb8658k", true); }
7619test { try toUnicodeFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb3\x9d"); } // [B1, V6]
7620test { try toUnicodeFail("\xf0\x91\x8b\xaa.\xf0\x90\xb3\x9d"); } // [B1, V6]
7621test { try toUnicodeFail("\xf0\x91\x8b\xaa.\xf0\x90\xb2\x9d"); } // [B1, V6]
7622test { try toUnicodeFail("xn--fm1d.xn--5c0d"); } // [B1, V6]
7623test { try toUnicodeFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb2\x9d"); } // [B1, V6]
7624test { try toUnicodeFail("\xe2\x89\xa0\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83"); } // [V6]
7625test { try toUnicodeFail("=\xcc\xb8\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83"); } // [V6]
7626test { try toUnicodeFail("xn--1chy468a.xn--2ed"); } // [V6]
7627test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1\xc3\x9f"); } // [B5, B6, V7]
7628test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82\xc3\x9f"); } // [B5, B6, V7]
7629test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82SS"); } // [B5, B6, V7]
7630test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82ss"); } // [B5, B6, V7]
7631test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82Ss"); } // [B5, B6, V7]
7632test { try toUnicodeFail("xn----j6c95618k.ss"); } // [B5, B6, V7]
7633test { try toUnicodeFail("xn----j6c95618k.xn--zca"); } // [B5, B6, V7]
7634test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1SS"); } // [B5, B6, V7]
7635test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1ss"); } // [B5, B6, V7]
7636test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1Ss"); } // [B5, B6, V7]
7637test { 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]
7638test { 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]
7639test { 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]
7640test { 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]
7641test { try toUnicodeFail("xn--4xa656hp23pxmc.xn--es5a888tvjc2u15h"); } // [B5, B6, V7]
7642test { try toUnicodeFail("xn--3xa856hp23pxmc.xn--es5a888tvjc2u15h"); } // [B5, B6, V7]
7643test { 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]
7644test { 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]
7645test { try toUnicodeFail("\xf0\x90\x8b\xb7\xe3\x80\x82\xe2\x80\x8d"); } // [C2]
1946test { try toUnicodePass("xn--r97c.", "\xf0\x90\x8b\xb7."); }7646test { try toUnicodePass("xn--r97c.", "\xf0\x90\x8b\xb7."); }
1947test { try toUnicodePass("\xf0\x90\x8b\xb7.", "\xf0\x90\x8b\xb7."); }7647test { try toUnicodePass("\xf0\x90\x8b\xb7.", "\xf0\x90\x8b\xb7."); }
7648test { try toUnicodeFail("xn--r97c.xn--1ug"); } // [C2]
7649test { try toUnicodeFail("\xf0\x91\xb0\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xe2\xa5\xaa"); } // [V6]
7650test { try toUnicodeFail("xn--2g1d14o.xn--jti"); } // [V6]
7651test { 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]
7652test { try toUnicodeFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe1\x82\xb54\xe2\x80\x8c\xcd\x88"); } // [C1, V6, V7]
7653test { try toUnicodeFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe2\xb4\x954\xe2\x80\x8c\xcd\x88"); } // [C1, V6, V7]
7654test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb5123a"); } // [V6, V7]
7655test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb502tlsl"); } // [C1, V6, V7]
7656test { 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]
7657test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb324h"); } // [V6, V7]
7658test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb324h32o"); } // [C1, V6, V7]
7659test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0"); } // [C1, C2, U1]
7660test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8"); } // [C1, C2, U1]
7661test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8"); } // [C1, C2, U1]
7662test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0"); } // [C1, C2, U1]
7663test { try toUnicodeFail("xn--?-fwsr13r.xn--1chz659f"); } // [U1]
7664test { try toUnicodeFail("xn--?-sgn310doh5c.xn--1ug73gl146a"); } // [C1, C2, U1]
7665test { try toUnicodeFail("xn--?-c1g3623d.xn--1chz659f"); } // [V7, U1]
7666test { try toUnicodeFail("xn--?-c1g798iy27d.xn--1ug73gl146a"); } // [C1, C2, V7, U1]
7667test { try toUnicodeFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1chz659f"); } // [U1]
7668test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1CHZ659F"); } // [U1]
7669test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1chz659f"); } // [U1]
7670test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.xn--1ug73gl146a"); } // [C1, C2, U1]
7671test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.XN--1UG73GL146A"); } // [C1, C2, U1]
7672test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.xn--1ug73gl146a"); } // [C1, C2, U1]
7673test { try toUnicodeFail("xn--?-fwsr13r.xn--1ug73gl146a"); } // [C2, U1]
7674test { try toUnicodeFail("xn--?-c1g3623d.xn--1ug73gl146a"); } // [C2, V7, U1]
7675test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1ug73gl146a"); } // [C2, U1]
7676test { try toUnicodeFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1ug73gl146a"); } // [C2, U1]
7677test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1UG73GL146A"); } // [C2, U1]