diff --git a/generate.ts b/generate.ts index 5cb0f9636a454ec11180b6bd6f062fa0d3bdd66b..85cefceafa365884aafe5fc1d5bccc1e376859d2 100644 --- a/generate.ts +++ b/generate.ts @@ -242,9 +242,9 @@ fn toAsciiFail( if (toAsciiNStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiN)}", false); }\n`); if (toAsciiTStatus === "[]") w.write(`test { try toAsciiPass("${E(source)}", "${E(toAsciiT)}", true); }\n`); - // if (toUnicodeStatus !== "[]") w.write(`test { try toUnicodeFail("${E(source)}"); }\n`); - // if (toAsciiNStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", false); }\n`); - // if (toAsciiTStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", true); }\n`); + if (toUnicodeStatus !== "[]") w.write(`test { try toUnicodeFail("${E(source)}"); } // ${toUnicodeStatus}\n`); + // if (toAsciiNStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", false); } // ${toAsciiNStatus}\n`); + // if (toAsciiTStatus !== "[]") w.write(`test { try toAsciiFail("${E(source)}", true); } // ${toAsciiTStatus}\n`); } w.flush(); diff --git a/idna.zig b/idna.zig index 2f738ff976f626e140aa9654dc20a1c43b127db7..154a190c40bd4497fa2b534da449d8744b708f1f 100644 --- a/idna.zig +++ b/idna.zig @@ -40,7 +40,12 @@ pub fn ToASCII( } if (VerifyDnsLength) { - // + // 1. The length of the domain name, excluding the root label and its dot, is from 1 to 253. + // 2. The length of each label is from 1 to 63. + for (map.lengths.items, 0..) |l, n| { + if (n % 2 == 1) continue; + if (l < 1 or l > 63) return error.IDNAFailure; + } } return map.toOwnedSlice(); @@ -170,6 +175,10 @@ fn Processing( try Validity_Criteria(label, CheckHyphens, Transitional_Processing, UseSTD3ASCIIRules, CheckJoiners, CheckBidi and domain_is_bidi); } } + + // X4_2 + if (std.mem.indexOf(u8, map.list.items, "..") != null) return error.IDNAFailure; + if (std.mem.startsWith(u8, map.list.items, ".")) return error.IDNAFailure; } // @@ -230,10 +239,42 @@ fn Validity_Criteria( // 7. Each code point in the label must only have certain Status values according to Section 5, IDNA Mapping Table: var it = std.unicode.Utf8View.initUnchecked(label).iterator(); + var prev_ccc: u8 = 0; + var prev_cp: u21 = 0; while (it.nextCodepointSlice()) |sl| { const cp = std.unicode.utf8Decode(sl) catch unreachable; const status, _, _ = mappingRow(cp); + // [V1] + const ccc = normalization.cpCCC(cp); + if (prev_ccc > ccc and ccc > 0) return error.IDNAFailure; + for (&ucd.derived_normalization_props.nfc_qc_n.data) |d| if (cp == d) return error.IDNAFailure; + for (&ucd.derived_normalization_props.nfc_qc_n.data_range) |d| if (cp >= d.from and cp <= d.to) return error.IDNAFailure; + for (&ucd.derived_normalization_props.nfc_qc_m.data) |d| if (cp == d) { + for (&ucd.unicode_data.data) |r| { + if (r[5] != .__canonical) continue; + if (r[6].len != 2) continue; + if (r[6][0] != prev_cp) continue; + if (r[6][1] != cp) continue; + if (std.sort.binarySearch(u21, &ucd.composition_exclusions.data, r[0], extras.compareFnBasic(u21)) != null) continue; + // if (r[3] != 0) continue; + return error.IDNAFailure; + } + }; + for (&ucd.derived_normalization_props.nfc_qc_m.data_range) |d| if (cp >= d.from and cp <= d.to) { + for (&ucd.unicode_data.data) |r| { + if (r[5] != .__canonical) continue; + if (r[6].len != 2) continue; + if (r[6][0] != prev_cp) continue; + if (r[6][1] != cp) continue; + if (std.sort.binarySearch(u21, &ucd.composition_exclusions.data, r[0], extras.compareFnBasic(u21)) != null) continue; + // if (r[3] != 0) continue; + return error.IDNAFailure; + } + }; + prev_ccc = ccc; + prev_cp = cp; + // 1. For Transitional Processing (deprecated), each value must be valid. // 2. For Nontransitional Processing, each value must be either valid or deviation. if (Transitional_Processing) { @@ -254,7 +295,95 @@ fn Validity_Criteria( // 8. If CheckJoiners, the label must satisify the ContextJ rules from RFC 5892 Appendix A. if (CheckJoiners) { - // + it.i = 0; + var point_2before: ucd.unicode_data.Codepoint = ucd.unicode_data.data[0]; + var point_before: ucd.unicode_data.Codepoint = ucd.unicode_data.data[0]; + var zwnj_state: enum { start, dual_joining, transparent1, zwnj, transparent2, right_joining } = .start; + var check_zwnj_state: ?bool = null; + + while (it.nextCodepointSlice()) |s| { + const c = std.unicode.utf8Decode(s) catch unreachable; + const p = ucd.unicode_data.find(c); + { + // Appendix A.1. ZERO WIDTH NON-JOINER + if (c == 0x200C) { + if (check_zwnj_state == null) check_zwnj_state = true; + if (point_before[3] == 9) check_zwnj_state = false; + } + switch (zwnj_state) { + .start => { + if (Joining_Type(c)) |t| { + if (t == .L) zwnj_state = .dual_joining; + if (t == .D) zwnj_state = .dual_joining; + } + }, + .dual_joining => { + if (Joining_Type(c)) |t| { + switch (t) { + .T => zwnj_state = .transparent1, + .L, .D => {}, + else => zwnj_state = .transparent1, + } + } else { + zwnj_state = .transparent1; + } + if (c == 0x200C) zwnj_state = .zwnj; + }, + .transparent1 => { + if (c == 0x200C) { + zwnj_state = .zwnj; + } else { + zwnj_state = .start; + } + }, + .zwnj => { + if (Joining_Type(c)) |t| { + switch (t) { + .T => zwnj_state = .transparent2, + .R, .D => zwnj_state = .right_joining, + .L => zwnj_state = .dual_joining, + else => zwnj_state = .transparent2, + } + } else { + zwnj_state = .transparent2; + } + }, + .transparent2 => { + if (Joining_Type(c)) |t| { + switch (t) { + .R, .D => zwnj_state = .right_joining, + .L => zwnj_state = .dual_joining, + else => zwnj_state = .start, + } + } else { + zwnj_state = .start; + } + }, + .right_joining => { + //rule passed + }, + } + // Appendix A.2. ZERO WIDTH JOINER + if (c == 0x200D and point_before[3] != 9) return error.IDNAFailure; + // Appendix A.3. MIDDLE DOT + if (point_before[0] == 0x00B7 and !(point_2before[0] == 0x006C and c == 0x006C)) return error.IDNAFailure; + // Appendix A.4. GREEK LOWER NUMERAL SIGN (KERAIA) + if (point_before[0] == 0x0375 and !(Script(c) == .Greek)) return error.IDNAFailure; + // Appendix A.5. HEBREW PUNCTUATION GERESH + if (c == 0x05F3 and !(Script(point_before[0]) == .Hebrew)) return error.IDNAFailure; + // Appendix A.6. HEBREW PUNCTUATION GERSHAYIM + if (c == 0x05F4 and !(Script(point_before[0]) == .Hebrew)) return error.IDNAFailure; + // Appendix A.7. KATAKANA MIDDLE DOT + if (false) return error.IDNAFailure; + // Appendix A.8. ARABIC-INDIC DIGITS + if (false) return error.IDNAFailure; + // Appendix A.9. EXTENDED ARABIC-INDIC DIGITS + if (false) return error.IDNAFailure; + } + point_2before = point_before; + point_before = p; + } + if (check_zwnj_state == true and zwnj_state != .right_joining) return error.IDNAFailure; } // 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( switch (first_p[4]) { .L => { it.i = 0; + var last_bidi_class: ucd.BidiClass = .NSM; while (it.nextCodepointSlice()) |sl| { const cp = std.unicode.utf8Decode(sl) catch unreachable; const point = ucd.unicode_data.find(cp); switch (point[4]) { - .L, .EN, .ES, .CS, .ET, .ON, .BN, .NSM => {}, + .L, .EN, .ES, .CS, .ET, .ON, .BN => |cl| last_bidi_class = cl, + .NSM => {}, else => return error.IDNAFailure, } } + switch (last_bidi_class) { + .L, .EN => {}, + else => return error.IDNAFailure, + } }, .R, .AL => { it.i = 0; var seen_en = false; var seen_an = false; + var last_bidi_class: ucd.BidiClass = .NSM; while (it.nextCodepointSlice()) |sl| { const cp = std.unicode.utf8Decode(sl) catch unreachable; const point = ucd.unicode_data.find(cp); switch (point[4]) { - .R, .AL, .AN, .EN, .ES, .CS, .ET, .ON, .BN, .NSM => {}, + .R, .AL, .AN, .EN, .ES, .CS, .ET, .ON, .BN => |cl| last_bidi_class = cl, + .NSM => {}, else => return error.IDNAFailure, } if (point[4] == .EN and seen_an) return error.IDNAFailure; @@ -293,8 +430,29 @@ fn Validity_Criteria( if (point[4] == .AN and seen_en) return error.IDNAFailure; if (point[4] == .AN) seen_an = true; } + switch (last_bidi_class) { + .R, .AL, .EN, .AN => {}, + else => return error.IDNAFailure, + } }, else => return error.IDNAFailure, } } } + +fn Script(cp: u21) ucd.ScriptLong { + for (&ucd.scripts.data) |d| { + if (cp >= d.from and cp <= d.to) { + return d.script; + } + } + unreachable; +} +fn Joining_Type(cp: u21) ?ucd.arabic_shaping.Joining.Type { + for (&ucd.arabic_shaping.data) |d| { + if (cp == d.codepoint) { + return d.joining_type; + } + } + return null; +} diff --git a/normalization.zig b/normalization.zig index 1776e1afbe0080bbc972cb3986a9fb08f033e31d..a121eb34ac812fad13d24fa1b46a7073603cd255 100644 --- a/normalization.zig +++ b/normalization.zig @@ -1,3 +1,5 @@ +//! https://unicode.org/reports/tr15/ + const std = @import("std"); const extras = @import("extras"); const ucd = @import("unicode-ucd"); @@ -185,7 +187,7 @@ fn CanonicalComposition(map: *extras.ManyArrayList(u8)) !void { } } -fn cpCCC(cp: u21) u8 { +pub fn cpCCC(cp: u21) u8 { if (cp < data_first_gap) { return data.items[3][cp]; } diff --git a/punycode.zig b/punycode.zig index 488796f499641279d2e12743366822b5ba8213f9..c6108c74ef03c610b6f099a57355d38011816275 100644 --- a/punycode.zig +++ b/punycode.zig @@ -157,6 +157,7 @@ pub fn encode(map: *extras.ManyArrayList(u8), map_n: usize) !void { } try map.list.ensureUnusedCapacity(map.allocator, b + 1); input = map.items(map_n)[0..initial_len]; + it.bytes = input; i = 0; while (i < input.len) : (i += 1) { if (std.ascii.isAscii(input[i])) map.appendSlice(map_n, &.{input[i]}) catch unreachable; diff --git a/testv2.zig b/testv2.zig index e911dab4388acec72de92cc8bc7c39bc6fb84667..0163a43ae26f28be990d5df0e413f3007b304ddd 100755 --- a/testv2.zig +++ b/testv2.zig @@ -68,6 +68,16 @@ test { try toAsciiPass("Fa\xc3\x9f.de", "fass.de", true); } test { try toUnicodePass("xn--fa-hia.de", "fa\xc3\x9f.de"); } test { try toAsciiPass("xn--fa-hia.de", "xn--fa-hia.de", false); } test { try toAsciiPass("xn--fa-hia.de", "xn--fa-hia.de", true); } +test { try toUnicodeFail("\xc3\xa0\xd7\x90"); } // [B5, B6] +test { try toUnicodeFail("a\xcc\x80\xd7\x90"); } // [B5, B6] +test { try toUnicodeFail("A\xcc\x80\xd7\x90"); } // [B5, B6] +test { try toUnicodeFail("\xc3\x80\xd7\x90"); } // [B5, B6] +test { try toUnicodeFail("xn--0ca24w"); } // [B5, B6] +test { try toUnicodeFail("0\xc3\xa0.\xd7\x90"); } // [B1] +test { try toUnicodeFail("0a\xcc\x80.\xd7\x90"); } // [B1] +test { try toUnicodeFail("0A\xcc\x80.\xd7\x90"); } // [B1] +test { try toUnicodeFail("0\xc3\x80.\xd7\x90"); } // [B1] +test { try toUnicodeFail("xn--0-sfa.xn--4db"); } // [B1] test { try toUnicodePass("\xc3\xa0.\xd7\x90\xcc\x88", "\xc3\xa0.\xd7\x90\xcc\x88"); } test { try toAsciiPass("\xc3\xa0.\xd7\x90\xcc\x88", "xn--0ca.xn--ssa73l", false); } test { 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); test { try toUnicodePass("xn--0ca.xn--ssa73l", "\xc3\xa0.\xd7\x90\xcc\x88"); } test { try toAsciiPass("xn--0ca.xn--ssa73l", "xn--0ca.xn--ssa73l", false); } test { try toAsciiPass("xn--0ca.xn--ssa73l", "xn--0ca.xn--ssa73l", true); } +test { try toUnicodeFail("\xc3\xa0.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4] +test { try toUnicodeFail("a\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4] +test { try toUnicodeFail("A\xcc\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4] +test { try toUnicodeFail("\xc3\x80.\xd7\x900\xd9\xa0\xd7\x90"); } // [B4] +test { try toUnicodeFail("xn--0ca.xn--0-zhcb98c"); } // [B4] +test { try toUnicodeFail("\xcc\x88.\xd7\x90"); } // [B1, V6] +test { try toUnicodeFail("xn--ssa.xn--4db"); } // [B1, V6] +test { try toUnicodeFail("\xc3\xa0.\xd7\x900\xd9\xa0"); } // [B4] +test { try toUnicodeFail("a\xcc\x80.\xd7\x900\xd9\xa0"); } // [B4] +test { try toUnicodeFail("A\xcc\x80.\xd7\x900\xd9\xa0"); } // [B4] +test { try toUnicodeFail("\xc3\x80.\xd7\x900\xd9\xa0"); } // [B4] +test { try toUnicodeFail("xn--0ca.xn--0-zhc74b"); } // [B4] +test { try toUnicodeFail("\xc3\xa0\xcb\x87.\xd7\x90"); } // [B6] +test { try toUnicodeFail("a\xcc\x80\xcb\x87.\xd7\x90"); } // [B6] +test { try toUnicodeFail("A\xcc\x80\xcb\x87.\xd7\x90"); } // [B6] +test { try toUnicodeFail("\xc3\x80\xcb\x87.\xd7\x90"); } // [B6] +test { try toUnicodeFail("xn--0ca88g.xn--4db"); } // [B6] test { try toUnicodePass("\xc3\xa0\xcc\x88.\xd7\x90", "\xc3\xa0\xcc\x88.\xd7\x90"); } test { try toAsciiPass("\xc3\xa0\xcc\x88.\xd7\x90", "xn--0ca81i.xn--4db", false); } test { 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"); } test { try toAsciiPass("xn--0ca81i.xn--4db", "xn--0ca81i.xn--4db", false); } test { try toAsciiPass("xn--0ca81i.xn--4db", "xn--0ca81i.xn--4db", true); } test { try toAsciiPass("a\xe2\x80\x8cb", "ab", true); } +test { try toUnicodeFail("a\xe2\x80\x8cb"); } // [C1] test { try toAsciiPass("A\xe2\x80\x8cB", "ab", true); } +test { try toUnicodeFail("A\xe2\x80\x8cB"); } // [C1] test { try toAsciiPass("A\xe2\x80\x8cb", "ab", true); } +test { try toUnicodeFail("A\xe2\x80\x8cb"); } // [C1] test { try toUnicodePass("ab", "ab"); } test { try toAsciiPass("ab", "ab", false); } test { try toAsciiPass("ab", "ab", true); } +test { try toUnicodeFail("xn--ab-j1t"); } // [C1] test { try toUnicodePass("a\xe0\xa5\x8d\xe2\x80\x8cb", "a\xe0\xa5\x8d\xe2\x80\x8cb"); } test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8cb", "xn--ab-fsf604u", false); } test { 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); } test { try toUnicodePass("xn--ab-fsf604u", "a\xe0\xa5\x8d\xe2\x80\x8cb"); } test { try toAsciiPass("xn--ab-fsf604u", "xn--ab-fsf604u", false); } test { try toAsciiPass("xn--ab-fsf604u", "xn--ab-fsf604u", true); } +test { try toUnicodeFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B1, C1, V6] +test { try toUnicodeFail("\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B"); } // [B1, C1, V6] +test { try toUnicodeFail("xn--b-bcba413a"); } // [B1, V6] +test { try toUnicodeFail("xn--b-bcba413a2w8b"); } // [B1, C1, V6] +test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88"); } // [B5, B6, C1] +test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88"); } // [B5, B6, C1] +test { try toUnicodeFail("xn--a-ccba213a"); } // [B5, B6] +test { try toUnicodeFail("xn--a-ccba213a5w8b"); } // [B5, B6, C1] +test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B5] +test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8B"); } // [B5] +test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8c\xcc\x88\xd8\xa8b"); } // [B5] +test { try toUnicodeFail("xn--ab-uuba211bca"); } // [B5] +test { try toUnicodeFail("xn--ab-uuba211bca8057b"); } // [B5] test { try toAsciiPass("a\xe2\x80\x8db", "ab", true); } +test { try toUnicodeFail("a\xe2\x80\x8db"); } // [C2] test { try toAsciiPass("A\xe2\x80\x8dB", "ab", true); } +test { try toUnicodeFail("A\xe2\x80\x8dB"); } // [C2] test { try toAsciiPass("A\xe2\x80\x8db", "ab", true); } +test { try toUnicodeFail("A\xe2\x80\x8db"); } // [C2] +test { try toUnicodeFail("xn--ab-m1t"); } // [C2] test { try toUnicodePass("a\xe0\xa5\x8d\xe2\x80\x8db", "a\xe0\xa5\x8d\xe2\x80\x8db"); } test { try toAsciiPass("a\xe0\xa5\x8d\xe2\x80\x8db", "xn--ab-fsf014u", false); } 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); } test { try toUnicodePass("xn--ab-fsf014u", "a\xe0\xa5\x8d\xe2\x80\x8db"); } test { try toAsciiPass("xn--ab-fsf014u", "xn--ab-fsf014u", false); } test { try toAsciiPass("xn--ab-fsf014u", "xn--ab-fsf014u", true); } +test { try toUnicodeFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B1, C2, V6] +test { try toUnicodeFail("\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B"); } // [B1, C2, V6] +test { try toUnicodeFail("xn--b-bcba413a7w8b"); } // [B1, C2, V6] +test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88"); } // [B5, B6, C2] +test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88"); } // [B5, B6, C2] +test { try toUnicodeFail("xn--a-ccba213abx8b"); } // [B5, B6, C2] +test { try toUnicodeFail("a\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B5, C2] +test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8B"); } // [B5, C2] +test { try toUnicodeFail("A\xd8\xa8\xcc\x88\xe2\x80\x8d\xcc\x88\xd8\xa8b"); } // [B5, C2] +test { try toUnicodeFail("xn--ab-uuba211bca5157b"); } // [B5, C2] test { try toUnicodePass("\xc2\xa1", "\xc2\xa1"); } test { try toAsciiPass("\xc2\xa1", "xn--7a", false); } test { try toAsciiPass("\xc2\xa1", "xn--7a", true); } @@ -155,6 +213,9 @@ test { try toAsciiPass("\xe1\xa7\x9a", "xn--pkf", true); } test { try toUnicodePass("xn--pkf", "\xe1\xa7\x9a"); } test { try toAsciiPass("xn--pkf", "xn--pkf", false); } test { try toAsciiPass("xn--pkf", "xn--pkf", true); } +test { try toUnicodeFail("\"\""); } // [X4_2] +test { try toUnicodeFail("\xe3\x80\x82"); } // [X4_2] +test { try toUnicodeFail("."); } // [X4_2] test { try toUnicodePass("\xea\xad\xa0", "\xea\xad\xa0"); } test { try toAsciiPass("\xea\xad\xa0", "xn--3y9a", false); } test { try toAsciiPass("\xea\xad\xa0", "xn--3y9a", true); } @@ -395,9 +456,26 @@ test { try toAsciiPass("\xc3\x9c.\xc3\xbc", "xn--tda.xn--tda", true); } test { try toUnicodePass("U\xcc\x88.u\xcc\x88", "\xc3\xbc.\xc3\xbc"); } test { try toAsciiPass("U\xcc\x88.u\xcc\x88", "xn--tda.xn--tda", false); } test { try toAsciiPass("U\xcc\x88.u\xcc\x88", "xn--tda.xn--tda", true); } +test { try toUnicodeFail("xn--u-ccb"); } // [V1] +test { try toUnicodeFail("a\xe2\x92\x88com"); } // [V7] test { try toUnicodePass("a1.com", "a1.com"); } test { try toAsciiPass("a1.com", "a1.com", false); } test { try toAsciiPass("a1.com", "a1.com", true); } +test { try toUnicodeFail("A\xe2\x92\x88COM"); } // [V7] +test { try toUnicodeFail("A\xe2\x92\x88Com"); } // [V7] +test { try toUnicodeFail("xn--acom-0w1b"); } // [V7] +test { try toUnicodeFail("xn--a-ecp.ru"); } // [V7] +test { try toUnicodeFail("xn--0.pt"); } // [P4] +test { try toUnicodeFail("xn--a.pt"); } // [V7] +test { try toUnicodeFail("xn--a-\xc3\x84.pt"); } // [P4] +test { try toUnicodeFail("xn--a-A\xcc\x88.pt"); } // [P4] +test { try toUnicodeFail("xn--a-a\xcc\x88.pt"); } // [P4] +test { try toUnicodeFail("xn--a-\xc3\xa4.pt"); } // [P4] +test { try toUnicodeFail("XN--A-\xc3\x84.PT"); } // [P4] +test { try toUnicodeFail("XN--A-A\xcc\x88.PT"); } // [P4] +test { try toUnicodeFail("Xn--A-A\xcc\x88.pt"); } // [P4] +test { try toUnicodeFail("Xn--A-\xc3\x84.pt"); } // [P4] +test { try toUnicodeFail("xn--xn--a--gua.pt"); } // [V2, V4] test { 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"); } test { try toAsciiPass("\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xe3\x80\x82\xef\xbc\xaa\xef\xbc\xb0", "xn--wgv71a119e.jp", false); } test { 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); } test { try toUnicodePass("xn--53h", "\xe2\x98\x95"); } test { try toAsciiPass("xn--53h", "xn--53h", false); } test { try toAsciiPass("xn--53h", "xn--53h", true); } +test { 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] +test { try toUnicodeFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\xcc\x82SSZ"); } // [C1, C2] +test { try toUnicodeFail("1.ASS\xe2\x80\x8c\xe2\x80\x8dB\xe2\x80\x8c\xe2\x80\x8dCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ"); } // [C1, C2] +test { try toUnicodeFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } // [C1, C2] +test { try toUnicodeFail("1.ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz"); } // [C1, C2] +test { try toUnicodeFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz"); } // [C1, C2] +test { try toUnicodeFail("1.Ass\xe2\x80\x8c\xe2\x80\x8db\xe2\x80\x8c\xe2\x80\x8dcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } // [C1, C2] test { try toUnicodePass("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } test { try toUnicodePass("1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } test { 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 test { try toUnicodePass("1.ASSBCSSSSSSSSD\xce\xa3\xce\xa3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\xc5\x9cSSZ", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } test { try toUnicodePass("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } test { try toUnicodePass("1.Assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\xcc\x82ssz", "1.assbcssssssssd\xcf\x83\xcf\x83ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\xc5\x9dssz"); } +test { try toUnicodeFail("1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa69989dba9gc"); } // [C1, C2] +test { 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] +test { try toUnicodeFail("1.xn--abcdexyz-qyacaaabaaaaaaabaaaaaaaaabaaaaaaaaabaaaaaaaa010ze2isb1140zba8cc"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-b\xc3\x9f", "xn--bss", true); } +test { try toUnicodeFail("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-b\xc3\x9f"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dN\xe2\x80\x8c-\xe2\x80\x8d-BSS", "xn--bss", true); } +test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dN\xe2\x80\x8c-\xe2\x80\x8d-BSS"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-bss", "xn--bss", true); } +test { try toUnicodeFail("\xe2\x80\x8cx\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-bss"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-Bss", "xn--bss", true); } +test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-Bss"); } // [C1, C2] test { try toUnicodePass("xn--bss", "\xe5\xa4\x99"); } test { try toAsciiPass("xn--bss", "xn--bss", false); } test { try toAsciiPass("xn--bss", "xn--bss", true); } test { try toUnicodePass("\xe5\xa4\x99", "\xe5\xa4\x99"); } test { try toAsciiPass("\xe5\xa4\x99", "xn--bss", false); } test { try toAsciiPass("\xe5\xa4\x99", "xn--bss", true); } +test { try toUnicodeFail("xn--xn--bss-7z6ccid"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-B\xc3\x9f", "xn--bss", true); } +test { try toUnicodeFail("\xe2\x80\x8cX\xe2\x80\x8dn\xe2\x80\x8c-\xe2\x80\x8d-B\xc3\x9f"); } // [C1, C2] +test { try toUnicodeFail("xn--xn--b-pqa5796ccahd"); } // [C1, C2] test { 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"); } test { 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); } test { 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 test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); } test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890B", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); } test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.xn--12345678901234567890123456789012345678901234567890123456-fxe.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); } +test { try toUnicodeFail("a.b..-q--a-.e"); } // [V2, V3, X4_2] +test { try toUnicodeFail("a.b..-q--\xc3\xa4-.e"); } // [V2, V3, X4_2] +test { try toUnicodeFail("a.b..-q--a\xcc\x88-.e"); } // [V2, V3, X4_2] +test { try toUnicodeFail("A.B..-Q--A\xcc\x88-.E"); } // [V2, V3, X4_2] +test { try toUnicodeFail("A.B..-Q--\xc3\x84-.E"); } // [V2, V3, X4_2] +test { try toUnicodeFail("A.b..-Q--\xc3\x84-.E"); } // [V2, V3, X4_2] +test { try toUnicodeFail("A.b..-Q--A\xcc\x88-.E"); } // [V2, V3, X4_2] +test { try toUnicodeFail("a.b..xn---q----jra.e"); } // [V2, V3, X4_2] +test { try toUnicodeFail("a..c"); } // [X4_2] +test { try toUnicodeFail("a.-b."); } // [V3] +test { try toUnicodeFail("a.b-.c"); } // [V3] +test { try toUnicodeFail("a.-.c"); } // [V3] +test { try toUnicodeFail("a.bc--de.f"); } // [V2] +test { try toUnicodeFail("xn--xn---epa"); } // [V2, V4] +test { try toUnicodeFail("\xc3\xa4.\xc2\xad.c"); } // [X4_2] +test { try toUnicodeFail("a\xcc\x88.\xc2\xad.c"); } // [X4_2] +test { try toUnicodeFail("A\xcc\x88.\xc2\xad.C"); } // [X4_2] +test { try toUnicodeFail("\xc3\x84.\xc2\xad.C"); } // [X4_2] +test { try toUnicodeFail("xn--4ca..c"); } // [X4_2] +test { try toUnicodeFail("\xc3\xa4.-b."); } // [V3] +test { try toUnicodeFail("a\xcc\x88.-b."); } // [V3] +test { try toUnicodeFail("A\xcc\x88.-B."); } // [V3] +test { try toUnicodeFail("\xc3\x84.-B."); } // [V3] +test { try toUnicodeFail("xn--4ca.-b."); } // [V3] +test { try toUnicodeFail("\xc3\xa4.b-.c"); } // [V3] +test { try toUnicodeFail("a\xcc\x88.b-.c"); } // [V3] +test { try toUnicodeFail("A\xcc\x88.B-.C"); } // [V3] +test { try toUnicodeFail("\xc3\x84.B-.C"); } // [V3] +test { try toUnicodeFail("\xc3\x84.b-.C"); } // [V3] +test { try toUnicodeFail("A\xcc\x88.b-.C"); } // [V3] +test { try toUnicodeFail("xn--4ca.b-.c"); } // [V3] +test { try toUnicodeFail("\xc3\xa4.-.c"); } // [V3] +test { try toUnicodeFail("a\xcc\x88.-.c"); } // [V3] +test { try toUnicodeFail("A\xcc\x88.-.C"); } // [V3] +test { try toUnicodeFail("\xc3\x84.-.C"); } // [V3] +test { try toUnicodeFail("xn--4ca.-.c"); } // [V3] +test { try toUnicodeFail("\xc3\xa4.bc--de.f"); } // [V2] +test { try toUnicodeFail("a\xcc\x88.bc--de.f"); } // [V2] +test { try toUnicodeFail("A\xcc\x88.BC--DE.F"); } // [V2] +test { try toUnicodeFail("\xc3\x84.BC--DE.F"); } // [V2] +test { try toUnicodeFail("\xc3\x84.bc--De.f"); } // [V2] +test { try toUnicodeFail("A\xcc\x88.bc--De.f"); } // [V2] +test { try toUnicodeFail("xn--4ca.bc--de.f"); } // [V2] +test { try toUnicodeFail("a.b.\xcc\x88c.d"); } // [V6] +test { try toUnicodeFail("A.B.\xcc\x88C.D"); } // [V6] +test { try toUnicodeFail("A.b.\xcc\x88c.d"); } // [V6] +test { try toUnicodeFail("a.b.xn--c-bcb.d"); } // [V6] test { try toUnicodePass("A0", "a0"); } test { try toAsciiPass("A0", "a0", false); } test { try toAsciiPass("A0", "a0", true); } test { try toUnicodePass("0A", "0a"); } test { try toAsciiPass("0A", "0a", false); } test { try toAsciiPass("0A", "0a", true); } +test { try toUnicodeFail("0A.\xd7\x90"); } // [B1] +test { try toUnicodeFail("0a.\xd7\x90"); } // [B1] +test { try toUnicodeFail("0a.xn--4db"); } // [B1] +test { try toUnicodeFail("c.xn--0-eha.xn--4db"); } // [B1] +test { try toUnicodeFail("b-.\xd7\x90"); } // [B6, V3] +test { try toUnicodeFail("B-.\xd7\x90"); } // [B6, V3] +test { try toUnicodeFail("b-.xn--4db"); } // [B6, V3] +test { try toUnicodeFail("d.xn----dha.xn--4db"); } // [B6, V3] +test { try toUnicodeFail("a\xd7\x90"); } // [B5, B6] +test { try toUnicodeFail("A\xd7\x90"); } // [B5, B6] +test { try toUnicodeFail("xn--a-0hc"); } // [B5, B6] test { try toUnicodePass("\xd7\x90\xd7\x87", "\xd7\x90\xd7\x87"); } test { try toAsciiPass("\xd7\x90\xd7\x87", "xn--vdbr", false); } test { try toAsciiPass("\xd7\x90\xd7\x87", "xn--vdbr", true); } @@ -563,6 +716,9 @@ test { try toAsciiPass("\xd7\x909\xd7\x87", "xn--9-ihcz", true); } test { try toUnicodePass("xn--9-ihcz", "\xd7\x909\xd7\x87"); } test { try toAsciiPass("xn--9-ihcz", "xn--9-ihcz", false); } test { try toAsciiPass("xn--9-ihcz", "xn--9-ihcz", true); } +test { try toUnicodeFail("\xd7\x90a\xd7\x87"); } // [B2, B3] +test { try toUnicodeFail("\xd7\x90A\xd7\x87"); } // [B2, B3] +test { try toUnicodeFail("xn--a-ihcz"); } // [B2, B3] test { try toUnicodePass("\xd7\x90\xd7\xaa", "\xd7\x90\xd7\xaa"); } test { try toAsciiPass("\xd7\x90\xd7\xaa", "xn--4db6c", false); } test { 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); } test { try toUnicodePass("xn--4db6c0a", "\xd7\x90\xd7\xb3\xd7\xaa"); } test { try toAsciiPass("xn--4db6c0a", "xn--4db6c0a", false); } test { try toAsciiPass("xn--4db6c0a", "xn--4db6c0a", true); } +test { try toUnicodeFail("a\xd7\x90Tz"); } // [B5] +test { try toUnicodeFail("a\xd7\x90tz"); } // [B5] +test { try toUnicodeFail("A\xd7\x90TZ"); } // [B5] +test { try toUnicodeFail("A\xd7\x90tz"); } // [B5] +test { try toUnicodeFail("xn--atz-qpe"); } // [B5] +test { try toUnicodeFail("\xd7\x90T\xd7\xaa"); } // [B2] +test { try toUnicodeFail("\xd7\x90t\xd7\xaa"); } // [B2] +test { try toUnicodeFail("xn--t-zhc3f"); } // [B2] test { try toUnicodePass("\xd7\x907\xd7\xaa", "\xd7\x907\xd7\xaa"); } test { try toAsciiPass("\xd7\x907\xd7\xaa", "xn--7-zhc3f", false); } test { 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); } test { try toUnicodePass("xn--4db6c6t", "\xd7\x90\xd9\xa7\xd7\xaa"); } test { try toAsciiPass("xn--4db6c6t", "xn--4db6c6t", false); } test { try toAsciiPass("xn--4db6c6t", "xn--4db6c6t", true); } +test { try toUnicodeFail("a7\xd9\xa7z"); } // [B5] +test { try toUnicodeFail("A7\xd9\xa7Z"); } // [B5] +test { try toUnicodeFail("A7\xd9\xa7z"); } // [B5] +test { try toUnicodeFail("xn--a7z-06e"); } // [B5] +test { try toUnicodeFail("\xd7\x907\xd9\xa7\xd7\xaa"); } // [B4] +test { try toUnicodeFail("xn--7-zhc3fty"); } // [B4] test { try toUnicodePass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d"); } test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8d", "xn--dmc4b194h", false); } test { 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" test { try toAsciiPass("xn--dmc4b194h", "xn--dmc4b194h", false); } test { try toAsciiPass("xn--dmc4b194h", "xn--dmc4b194h", true); } test { try toAsciiPass("\xe0\xae\xb9\xe2\x80\x8d", "xn--dmc", true); } +test { try toUnicodeFail("\xe0\xae\xb9\xe2\x80\x8d"); } // [C2] test { try toUnicodePass("xn--dmc", "\xe0\xae\xb9"); } test { try toAsciiPass("xn--dmc", "xn--dmc", false); } test { try toAsciiPass("xn--dmc", "xn--dmc", true); } test { try toUnicodePass("\xe0\xae\xb9", "\xe0\xae\xb9"); } test { try toAsciiPass("\xe0\xae\xb9", "xn--dmc", false); } test { try toAsciiPass("\xe0\xae\xb9", "xn--dmc", true); } +test { try toUnicodeFail("xn--dmc225h"); } // [C2] +test { try toUnicodeFail("\xe2\x80\x8d"); } // [C2] +test { try toUnicodeFail("xn--1ug"); } // [C2] test { try toUnicodePass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c"); } test { try toAsciiPass("\xe0\xae\xb9\xe0\xaf\x8d\xe2\x80\x8c", "xn--dmc4by94h", false); } test { 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" test { try toAsciiPass("xn--dmc4by94h", "xn--dmc4by94h", false); } test { try toAsciiPass("xn--dmc4by94h", "xn--dmc4by94h", true); } test { try toAsciiPass("\xe0\xae\xb9\xe2\x80\x8c", "xn--dmc", true); } +test { try toUnicodeFail("\xe0\xae\xb9\xe2\x80\x8c"); } // [C1] +test { try toUnicodeFail("xn--dmc025h"); } // [C1] +test { try toUnicodeFail("\xe2\x80\x8c"); } // [C1] +test { try toUnicodeFail("xn--0ug"); } // [C1] test { try toUnicodePass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf"); } test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad\xdb\xaf", "xn--ghb2gxqia7523a", false); } test { 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"); } test { try toAsciiPass("xn--ghb65a953d", "xn--ghb65a953d", false); } test { try toAsciiPass("xn--ghb65a953d", "xn--ghb65a953d", true); } test { try toAsciiPass("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad", "xn--ghb2gxq", true); } +test { try toUnicodeFail("\xd9\x84\xd9\xb0\xe2\x80\x8c\xdb\xad"); } // [B3, C1] test { try toUnicodePass("xn--ghb2gxq", "\xd9\x84\xd9\xb0\xdb\xad"); } test { try toAsciiPass("xn--ghb2gxq", "xn--ghb2gxq", false); } test { try toAsciiPass("xn--ghb2gxq", "xn--ghb2gxq", true); } test { try toUnicodePass("\xd9\x84\xd9\xb0\xdb\xad", "\xd9\x84\xd9\xb0\xdb\xad"); } test { try toAsciiPass("\xd9\x84\xd9\xb0\xdb\xad", "xn--ghb2gxq", false); } test { try toAsciiPass("\xd9\x84\xd9\xb0\xdb\xad", "xn--ghb2gxq", true); } +test { try toUnicodeFail("xn--ghb2gxqy34f"); } // [B3, C1] test { try toAsciiPass("\xdb\xaf\xe2\x80\x8c\xdb\xaf", "xn--cmba", true); } +test { try toUnicodeFail("\xdb\xaf\xe2\x80\x8c\xdb\xaf"); } // [C1] test { try toUnicodePass("xn--cmba", "\xdb\xaf\xdb\xaf"); } test { try toAsciiPass("xn--cmba", "xn--cmba", false); } test { try toAsciiPass("xn--cmba", "xn--cmba", true); } test { try toUnicodePass("\xdb\xaf\xdb\xaf", "\xdb\xaf\xdb\xaf"); } test { try toAsciiPass("\xdb\xaf\xdb\xaf", "xn--cmba", false); } test { try toAsciiPass("\xdb\xaf\xdb\xaf", "xn--cmba", true); } +test { try toUnicodeFail("xn--cmba004q"); } // [C1] test { try toAsciiPass("\xd9\x84\xe2\x80\x8c", "xn--ghb", true); } +test { try toUnicodeFail("\xd9\x84\xe2\x80\x8c"); } // [B3, C1] test { try toUnicodePass("xn--ghb", "\xd9\x84"); } test { try toAsciiPass("xn--ghb", "xn--ghb", false); } test { try toAsciiPass("xn--ghb", "xn--ghb", true); } test { try toUnicodePass("\xd9\x84", "\xd9\x84"); } test { try toAsciiPass("\xd9\x84", "xn--ghb", false); } test { try toAsciiPass("\xd9\x84", "xn--ghb", true); } +test { try toUnicodeFail("xn--ghb413k"); } // [B3, C1] +test { try toUnicodeFail("a\xe3\x80\x82\xe3\x80\x82b"); } // [X4_2] +test { try toUnicodeFail("A\xe3\x80\x82\xe3\x80\x82B"); } // [X4_2] +test { try toUnicodeFail("a..b"); } // [X4_2] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xe3\x80\x82\xda\xb9\xe2\x80\x8c"); } // [B1, B3, C1, C2, X4_2] +test { try toUnicodeFail("..xn--skb"); } // [X4_2] +test { try toUnicodeFail("xn--1ug..xn--skb080k"); } // [B1, B3, C1, C2, X4_2] +test { try toUnicodeFail("\xd7\x900\xd9\xa0"); } // [B4] +test { try toUnicodeFail("xn--0-zhc74b"); } // [B4] +test { try toUnicodeFail("$"); } // [U1] +test { try toUnicodeFail("\xe2\x91\xb7.four"); } // [U1] +test { try toUnicodeFail("(4).four"); } // [U1] +test { try toUnicodeFail("\xe2\x91\xb7.FOUR"); } // [U1] +test { try toUnicodeFail("\xe2\x91\xb7.Four"); } // [U1] +test { try toUnicodeFail("a\xef\xbf\xbdz"); } // [V7] +test { try toUnicodeFail("A\xef\xbf\xbdZ"); } // [V7] +test { try toUnicodeFail("xn--"); } // [P4, X4_2] +test { try toUnicodeFail("xn---"); } // [P4] +test { try toUnicodeFail("xn--ASCII-"); } // [P4] test { try toUnicodePass("ascii", "ascii"); } test { try toAsciiPass("ascii", "ascii", false); } test { try toAsciiPass("ascii", "ascii", true); } +test { try toUnicodeFail("xn--unicode-.org"); } // [P4] test { try toUnicodePass("unicode.org", "unicode.org"); } test { try toAsciiPass("unicode.org", "unicode.org", false); } test { try toAsciiPass("unicode.org", "unicode.org", true); } @@ -752,16 +955,51 @@ test { try toUnicodePass("123456789012345678901234567890123456789012345678901234 test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a.", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.12345678901234567890123456789012345678901234567890123456789a."); } test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890A\xcc\x881234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); } test { try toUnicodePass("123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\x841234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b", "123456789012345678901234567890123456789012345678901234567890123.1234567890\xc3\xa41234567890123456789012345678901234567890123456.123456789012345678901234567890123456789012345678901234567890123.123456789012345678901234567890123456789012345678901234567890b"); } +test { try toUnicodeFail("c.0\xc3\xbc.\xd7\x90"); } // [B1] +test { try toUnicodeFail("c.0u\xcc\x88.\xd7\x90"); } // [B1] +test { try toUnicodeFail("C.0U\xcc\x88.\xd7\x90"); } // [B1] +test { try toUnicodeFail("C.0\xc3\x9c.\xd7\x90"); } // [B1] +test { try toUnicodeFail("C.0\xc3\xbc.\xd7\x90"); } // [B1] +test { try toUnicodeFail("C.0u\xcc\x88.\xd7\x90"); } // [B1] +test { try toUnicodeFail("\xe2\x92\x95\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6\xef\xbc\x8e-\xf3\xa0\x84\xaf"); } // [V3, V7] +test { try toUnicodeFail("14.\xe2\x88\x9d\xd9\x9f\xf2\x93\xa4\xa6.-\xf3\xa0\x84\xaf"); } // [V3, V7] +test { try toUnicodeFail("14.xn--7hb713l3v90n.-"); } // [V3, V7] +test { try toUnicodeFail("xn--7hb713lfwbi1311b.-"); } // [V3, V7] test { try toUnicodePass("\xea\xa1\xa3.\xdf\x8f", "\xea\xa1\xa3.\xdf\x8f"); } test { try toAsciiPass("\xea\xa1\xa3.\xdf\x8f", "xn--8c9a.xn--qsb", false); } test { try toAsciiPass("\xea\xa1\xa3.\xdf\x8f", "xn--8c9a.xn--qsb", true); } test { try toUnicodePass("xn--8c9a.xn--qsb", "\xea\xa1\xa3.\xdf\x8f"); } test { try toAsciiPass("xn--8c9a.xn--qsb", "xn--8c9a.xn--qsb", false); } test { try toAsciiPass("xn--8c9a.xn--qsb", "xn--8c9a.xn--qsb", true); } +test { try toUnicodeFail("\xe2\x89\xaf\xd8\x83\xef\xbd\xa1-"); } // [B1, V3, V7] +test { try toUnicodeFail(">\xcc\xb8\xd8\x83\xef\xbd\xa1-"); } // [B1, V3, V7] +test { try toUnicodeFail("\xe2\x89\xaf\xd8\x83\xe3\x80\x82-"); } // [B1, V3, V7] +test { try toUnicodeFail(">\xcc\xb8\xd8\x83\xe3\x80\x82-"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--lfb566l.-"); } // [B1, V3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa452s5d17u"); } // [B1, B5, V7] +test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa652s5d17u"); } // [B1, B5, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa180eotvh7453a"); } // [B5, V7] +test { try toUnicodeFail("xn--6g3a1x434z.xn--4xa627dhpae6345i"); } // [B5, V7] +test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa380eotvh7453a"); } // [B5, V7] +test { try toUnicodeFail("xn--6g3a1x434z.xn--3xa827dhpae6345i"); } // [B5, V7] test { 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); } +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe1\x82\xa0"); } // [C2] test { 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); } +test { 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] test { 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); } +test { 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] test { 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); } +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); } // [C2] test { try toUnicodePass("xn--jbf911clb.xn----p9j493ivi4l", "\xe2\x89\xa0\xe1\xa2\x99\xe2\x89\xaf.\xec\x86\xa3-\xe1\xa1\xb4\xe2\xb4\x80"); } test { try toAsciiPass("xn--jbf911clb.xn----p9j493ivi4l", "xn--jbf911clb.xn----p9j493ivi4l", false); } test { 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\ test { 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"); } test { 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); } test { 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); } +test { try toUnicodeFail("xn--jbf929a90b0b.xn----p9j493ivi4l"); } // [C2] +test { try toUnicodeFail("xn--jbf911clb.xn----6zg521d196p"); } // [V7] +test { try toUnicodeFail("xn--jbf929a90b0b.xn----6zg521d196p"); } // [C2, V7] +test { try toUnicodeFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa2\xdd\xbd\xd8\x80"); } // [V7] +test { try toUnicodeFail("\xf1\xaf\x9e\x9c\xef\xbc\x8e\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80"); } // [V7] +test { try toUnicodeFail("\xf1\xaf\x9e\x9c.\xf0\x90\xbf\x87\xe0\xbe\xa1\xe0\xbe\xb7\xdd\xbd\xd8\x80"); } // [V7] +test { try toUnicodeFail("xn--gw68a.xn--ifb57ev2psc6027m"); } // [V7] +test { try toUnicodeFail("\xf0\xa3\xb3\x94\xcc\x83.\xf0\x91\x93\x82"); } // [V6] +test { try toUnicodeFail("xn--nsa95820a.xn--wz1d"); } // [V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--9d6hgcy3556a.xn--rlju750b"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--9d6hgcy3556a.xn--7nd0578e"); } // [B2, B3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4xa53xp48ys2xc.xn--kn2b"); } // [B1, V7] +test { try toUnicodeFail("xn--3xa73xp48ys2xc.xn--kn2b"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x8d\xe2\x80\x8c\xe2\x80\x8d1."); } // [B1, C1, C2, V3] +test { try toUnicodeFail("-\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xaf\xe2\x80\x8c\xe2\x80\x8d1."); } // [B1, C1, C2, V3] +test { try toUnicodeFail("-.xn--1-0i8r."); } // [B1, V3] +test { try toUnicodeFail("xn----ugn.xn--1-rgnd61297b."); } // [B1, C1, C2, V3] +test { 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] +test { try toUnicodeFail("-.xn--tsh3666n"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----ugn.xn--0ugc555aiv51d"); } // [B1, C1, C2, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe1\x82\xb2\xf0\x91\x87\x80"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf2\x85\x8e\xad.\xe2\xb4\x92\xf0\x91\x87\x80"); } // [C1, V7] +test { try toUnicodeFail("xn--bn95b.xn--9kj2034e"); } // [V7] +test { try toUnicodeFail("xn--0ug15083f.xn--9kj2034e"); } // [C1, V7] +test { try toUnicodeFail("xn--bn95b.xn--qnd6272k"); } // [V7] +test { try toUnicodeFail("xn--0ug15083f.xn--qnd6272k"); } // [C1, V7] +test { try toUnicodeFail("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.\xef\xbc\x98\xef\xb8\x92"); } // [V7] test { 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."); } test { try toUnicodePass("xn--gl0as212a.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf.i."); } test { 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 test { try toUnicodePass("xn--1ug6928ac48e.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); } test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); } test { try toUnicodePass("\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.I.", "\xe7\xb9\xb1\xf0\x91\x96\xbf\xe2\x80\x8d.i."); } +test { try toUnicodeFail("xn--gl0as212a.xn--8-o89h"); } // [V7] +test { try toUnicodeFail("xn--1ug6928ac48e.xn--8-o89h"); } // [V7] +test { try toUnicodeFail("\xf3\xa0\x86\xbe\xef\xbc\x8e\xf0\x9e\x80\x88"); } // [V6, X4_2] +test { try toUnicodeFail("\xf3\xa0\x86\xbe.\xf0\x9e\x80\x88"); } // [V6, X4_2] +test { try toUnicodeFail(".xn--ph4h"); } // [V6, X4_2] +test { try toUnicodeFail("\xc3\x9f\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2] +test { try toUnicodeFail("SS\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2] +test { try toUnicodeFail("ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2] +test { try toUnicodeFail("Ss\xdb\xab\xe3\x80\x82\xe2\x80\x8d"); } // [C2] test { try toUnicodePass("xn--ss-59d.", "ss\xdb\xab."); } test { try toUnicodePass("ss\xdb\xab.", "ss\xdb\xab."); } test { try toUnicodePass("SS\xdb\xab.", "ss\xdb\xab."); } test { try toUnicodePass("Ss\xdb\xab.", "ss\xdb\xab."); } +test { try toUnicodeFail("xn--ss-59d.xn--1ug"); } // [C2] +test { try toUnicodeFail("xn--zca012a.xn--1ug"); } // [C2] +test { try toUnicodeFail("\xf3\xa0\x90\xb5\xe2\x80\x8c\xe2\x92\x88\xef\xbc\x8e\xf3\xa0\x8e\x87"); } // [C1, V7] +test { try toUnicodeFail("\xf3\xa0\x90\xb5\xe2\x80\x8c1..\xf3\xa0\x8e\x87"); } // [C1, V7, X4_2] +test { try toUnicodeFail("xn--1-bs31m..xn--tv36e"); } // [V7, X4_2] +test { try toUnicodeFail("xn--1-rgn37671n..xn--tv36e"); } // [C1, V7, X4_2] +test { try toUnicodeFail("xn--tshz2001k.xn--tv36e"); } // [V7] +test { try toUnicodeFail("xn--0ug88o47900b.xn--tv36e"); } // [C1, V7] +test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2\xc3\x9f\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7] +test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2SS\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7] +test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2ss\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7] +test { try toUnicodeFail("\xf3\x9f\x88\xa3\xd9\x9f\xea\xaa\xb2Ss\xe3\x80\x82\xf3\x8c\x93\xa7"); } // [V7] +test { try toUnicodeFail("xn--ss-3xd2839nncy1m.xn--bb79d"); } // [V7] +test { try toUnicodeFail("xn--zca92z0t7n5w96j.xn--bb79d"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4pb2977v.xn--z0nt555ukbnv"); } // [V7] +test { try toUnicodeFail("xn--4pb607jjt73a.xn--1ug236ke314donv1a"); } // [C1, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1-zmb699meq63t..xn--gdh5392g6sd"); } // [B1, V7, X4_2] +test { try toUnicodeFail("xn--1-zmb699meq63t..xn--1ug85gn777ahze"); } // [B1, V7, X4_2] +test { try toUnicodeFail("xn--1-xmb999meq63t..xn--1ug85gn777ahze"); } // [B1, V7, X4_2] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4xa207hkzinr77u.xn--gdh5392g6sd"); } // [B1, V7] +test { try toUnicodeFail("xn--4xa207hkzinr77u.xn--1ug85gn777ahze"); } // [B1, V7] +test { try toUnicodeFail("xn--3xa407hkzinr77u.xn--1ug85gn777ahze"); } // [B1, V7] +test { try toUnicodeFail("\xe3\x85\xa4\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6] +test { try toUnicodeFail("\xe1\x85\xa0\xe0\xa5\x8d\xe1\x82\xa0\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6] +test { try toUnicodeFail("\xe1\x85\xa0\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6] +test { try toUnicodeFail("xn--n3b445e53p."); } // [V6] +test { try toUnicodeFail("\xe3\x85\xa4\xe0\xa5\x8d\xe2\xb4\x80\xe1\x9f\x90.\xe1\xa0\x8b"); } // [V6] +test { try toUnicodeFail("xn--n3b742bkqf4ty."); } // [V7] +test { try toUnicodeFail("xn--n3b468aoqa89r."); } // [V7] +test { try toUnicodeFail("xn--n3b445e53po6d."); } // [V7] +test { try toUnicodeFail("xn--n3b468azngju2a."); } // [V7] +test { 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] +test { try toUnicodeFail("\xe2\x9d\xa3\xe2\x80\x8d.\xe0\xa7\x8d\xf0\x91\xb0\xbd\xd8\x92\xea\xa4\xa9"); } // [C2, V6] +test { try toUnicodeFail("xn--pei.xn--0fb32q3w7q2g4d"); } // [V6] +test { try toUnicodeFail("xn--1ugy10a.xn--0fb32q3w7q2g4d"); } // [C2, V6] +test { 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] +test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb3\xba\xf0\x90\xb9\x84.>\xcc\xb8\xf1\xaa\xae\xb8\xea\xa1\x85"); } // [B1, V7] +test { try toUnicodeFail("xn--gdh7943gk2a.xn--hdh1383c5e36c"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--7tc6360ky5bn2732c.xn--8tc429c"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("\xcd\x89\xe3\x80\x82\xf0\xa7\xa1\xab"); } // [V6] +test { try toUnicodeFail("xn--nua.xn--bc6k"); } // [V6] +test { try toUnicodeFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6\xef\xbc\x8e\xe1\x85\xa0"); } // [V6] +test { try toUnicodeFail("\xf0\x91\xb0\xbf\xf3\xa0\x85\xa6.\xe1\x85\xa0"); } // [V6] +test { try toUnicodeFail("xn--ok3d."); } // [V6] +test { try toUnicodeFail("xn--ok3d.xn--psd"); } // [V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn----ni8r.xn--846h96596c"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("xn----ugnx367r.xn--846h96596c"); } // [B1, B5, B6, C2, V3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--hdh7483cu6twwki8e.xn--yfg0765a58l0n6k"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe8\x94\x8f\xef\xbd\xa1\xf0\x91\xb0\xba"); } // [V6] +test { try toUnicodeFail("\xe8\x94\x8f\xe3\x80\x82\xf0\x91\xb0\xba"); } // [V6] +test { try toUnicodeFail("xn--uy1a.xn--jk3d"); } // [V6] +test { try toUnicodeFail("\xf0\x9d\x9f\xbf\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a"); } // [B1] +test { try toUnicodeFail("9\xf0\x90\xae\x8b\xe3\x80\x82\xf3\xa0\x84\x8a"); } // [B1] +test { try toUnicodeFail("xn--9-rv5i."); } // [B1] +test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2"); } // [B4, V7] +test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96F\xe3\x80\x82\xdf\x8b1.\xd9\xa2"); } // [B1, V7] +test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b1.\xd9\xa2"); } // [B1, V7] +test { try toUnicodeFail("xn---f-mz8b08788k.xn--1-ybd.xn--bib"); } // [B1, V7] +test { try toUnicodeFail("\xf3\x9f\x87\x87-\xe4\x9f\x96f\xe3\x80\x82\xdf\x8b\xe2\x92\x88\xd9\xa2"); } // [B4, V7] +test { try toUnicodeFail("xn---f-mz8b08788k.xn--bib53ev44d"); } // [B4, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xf0\x90\xb9\xba"); } // [B1, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xf0\x90\xb9\xba"); } // [B1, C1] +test { try toUnicodeFail(".xn--yo0d"); } // [B1, X4_2] +test { try toUnicodeFail("xn--0ug.xn--yo0d"); } // [B1, C1] +test { try toUnicodeFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa5\x80"); } // [B1, C1] +test { try toUnicodeFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa5\x80"); } // [B1, C1] +test { try toUnicodeFail("\xf0\x90\xa1\x86.>\xcc\xb8\xe2\x80\x8c-\xf0\x9e\xa4\x9e"); } // [B1, C1] +test { try toUnicodeFail("\xf0\x90\xa1\x86.\xe2\x89\xaf\xe2\x80\x8c-\xf0\x9e\xa4\x9e"); } // [B1, C1] +test { try toUnicodeFail("xn--le9c.xn----ogo9956r"); } // [B1] +test { try toUnicodeFail("xn--le9c.xn----rgn40iy359e"); } // [B1, C1] +test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xef\xb3\x97"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xef\xb3\x97"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82\xe2\x89\xa0\xd9\x87\xd8\xac"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x81\x80-\xe3\x80\x82=\xcc\xb8\xd9\x87\xd8\xac"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----f411m.xn--rgb7c611j"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf1\xbb\xac\xb9\xf0\x91\x88\xb5\xe3\x80\x82\xe2\x80\x8d\xf0\x9e\xa8\xb6"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--8g1d12120a.xn--5l6h"); } // [V7] +test { try toUnicodeFail("xn--8g1d12120a.xn--1ug6651p"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xef\xbd\xa1\xe3\xa7\x89\xf2\x92\x96\x84"); } // [V6, V7] +test { try toUnicodeFail("\xf0\x91\x8b\xa7\xea\xa7\x802\xe3\x80\x82\xe3\xa7\x89\xf2\x92\x96\x84"); } // [V6, V7] +test { try toUnicodeFail("xn--2-5z4eu89y.xn--97l02706d"); } // [V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--so0du768aim9m.xn--6-ogo"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--0ug7105gf5wfxepq.xn--6-ogo"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x91\x81\xbf\xef\xbc\x8e\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("\xf0\x91\x81\xbf.\xf0\x90\xb9\xa6\xf0\xbb\x9e\xb5-\xe2\x80\x8d"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("xn--q30d.xn----i26i1299n"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn--q30d.xn----ugn1088hfsxv"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7] +test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x82\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7] +test { try toUnicodeFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7] +test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xe3\x80\x82\xe1\x85\xa0"); } // [V7] +test { try toUnicodeFail("xn--4xa192qmp03d."); } // [V7] +test { try toUnicodeFail("xn--3xa392qmp03d."); } // [V7] +test { try toUnicodeFail("\xe2\xa4\xb8\xce\xa3\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7] +test { try toUnicodeFail("\xe2\xa4\xb8\xcf\x83\xf0\xba\xb1\x80\xef\xbd\xa1\xef\xbe\xa0"); } // [V7] +test { try toUnicodeFail("xn--4xa192qmp03d.xn--psd"); } // [V7] +test { try toUnicodeFail("xn--3xa392qmp03d.xn--psd"); } // [V7] +test { try toUnicodeFail("xn--4xa192qmp03d.xn--cl7c"); } // [V7] +test { try toUnicodeFail("xn--3xa392qmp03d.xn--cl7c"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--llb10as9tqp5y.xn--ukj7371e21f"); } // [B2, B3] +test { try toUnicodeFail("xn--llb10as9tqp5y.xn--bnd9168j21f"); } // [B2, B3, V7] +test { try toUnicodeFail("\xd9\xa1\xe1\xad\x84-\xed\x82\xbc.\xe1\xae\xaa\xd8\x96\xd9\xac\xe2\x89\xaf"); } // [B1, B5, B6, V6] +test { 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] +test { try toUnicodeFail("xn----9pc551nk39n.xn--4fb6o571degg"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("-\xe3\x80\x82\xdb\x82\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("-\xe3\x80\x82\xdb\x81\xd9\x94\xd8\x84\xf2\x85\x96\xa1\xf0\x91\x93\x82"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("-.xn--mfb39a7208dzgs3d"); } // [B1, B2, B3, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--b726ey18m.xn--ldb8734fg0qcyzzg"); } // [V6, V7] +test { try toUnicodeFail("xn--1ug66101lt8me.xn--ldb8734fg0qcyzzg"); } // [C2, V6, V7] +test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x82\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail(".xn--4xa68573c7n64d.xn--f29c"); } // [V7, X4_2] +test { try toUnicodeFail(".xn--3xa88573c7n64d.xn--f29c"); } // [V7, X4_2] +test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xce\xa3\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7] +test { try toUnicodeFail("\xef\xb8\x92\xf4\x83\x88\xb5\xcf\x83\xf1\x80\xa0\x87\xef\xbd\xa1\xf0\x90\xae\x88"); } // [B1, V7] +test { try toUnicodeFail("xn--4xa1729jwz5t7gl5f.xn--f29c"); } // [B1, V7] +test { try toUnicodeFail("xn--3xa3729jwz5t7gl5f.xn--f29c"); } // [B1, V7] +test { try toUnicodeFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2"); } // [B2, B3, V7] +test { try toUnicodeFail("\xdf\x99\xef\xbc\x8e\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2"); } // [B2, B3, V7] +test { try toUnicodeFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83\xe2\x89\xaf\xf3\xa0\x85\xb2"); } // [B2, B3, V7] +test { try toUnicodeFail("\xdf\x99.\xdb\xae\xf3\x86\xbe\x83>\xcc\xb8\xf3\xa0\x85\xb2"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--0sb.xn--bmb691l0524t"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe1\xa9\xb3\xf3\x9a\x99\xb8.\xf0\x90\xad\x8d"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--2of22352n.xn--q09c"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7] +test { try toUnicodeFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7] +test { try toUnicodeFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe1\x82\xbf\xe2\xac\xa3\xe1\x82\xa8"); } // [V7] +test { try toUnicodeFail("2.\xf3\xa0\x8a\x93=\xcc\xb8\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7] +test { try toUnicodeFail("2.\xf3\xa0\x8a\x93\xe2\x89\xa0\xe3\x80\x82\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7] +test { try toUnicodeFail("2.xn--1chz4101l.xn--45iz7d6b"); } // [V7] +test { try toUnicodeFail("\xe2\x92\x89\xf3\xa0\x8a\x93=\xcc\xb8\xef\xbd\xa1\xe2\xb4\x9f\xe2\xac\xa3\xe2\xb4\x88"); } // [V7] +test { 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] +test { try toUnicodeFail("xn--1ch07f91401d.xn--45iz7d6b"); } // [V7] +test { try toUnicodeFail("2.xn--1chz4101l.xn--gnd9b297j"); } // [V7] +test { try toUnicodeFail("xn--1ch07f91401d.xn--gnd9b297j"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn----xmg317tgv352a.xn----05c4213ryr0g"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----xmg12fm2555h.xn----05c4213ryr0g"); } // [B1, V3, V7] +test { try toUnicodeFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xef\xb8\x92\xd8\xa7\xdf\x9d"); } // [B1, V6, V7] +test { try toUnicodeFail("\xd9\x99\xe3\x80\x82\xf0\x91\x84\xb4\xe3\x80\x82\xd8\xa7\xdf\x9d"); } // [B1, V6] +test { try toUnicodeFail("xn--1hb.xn--w80d.xn--mgb09f"); } // [B1, V6] +test { try toUnicodeFail("xn--1hb.xn--mgb09fp820c08pa"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe1\x82\xb9\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d"); } // [B1, B5, B6, C2] +test { try toUnicodeFail("\xe2\xb4\x99\xd8\xb8.\xf3\xa0\x86\x93\xe2\x80\x8d"); } // [B1, B5, B6, C2] +test { try toUnicodeFail("xn--3gb910r."); } // [B5, B6] +test { try toUnicodeFail("xn--3gb910r.xn--1ug"); } // [B1, B5, B6, C2] +test { try toUnicodeFail("xn--3gb194c."); } // [B5, B6, V7] +test { try toUnicodeFail("xn--3gb194c.xn--1ug"); } // [B1, B5, B6, C2, V7] +test { try toUnicodeFail("\xf3\xa0\x86\xb8\xef\xbd\xa1\xe2\x82\x86\xef\xbc\x90\xf0\x90\xba\xa7\xdd\x96"); } // [B1, X4_2] +test { try toUnicodeFail("\xf3\xa0\x86\xb8\xe3\x80\x8260\xf0\x90\xba\xa7\xdd\x96"); } // [B1, X4_2] +test { try toUnicodeFail(".xn--60-cke9470y"); } // [B1, X4_2] +test { try toUnicodeFail("6\xe0\xa1\x8f\xef\xbd\xa1-\xf0\x91\x88\xb4"); } // [B1, V3] +test { try toUnicodeFail("6\xe0\xa1\x8f\xe3\x80\x82-\xf0\x91\x88\xb4"); } // [B1, V3] +test { try toUnicodeFail("xn--6-jjd.xn----6n8i"); } // [B1, V3] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--oo0d1330n.xn--4xa21xcwbfz15g"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--1ugx105gq26y.xn--4xa21xcwbfz15g"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("xn--1ugx105gq26y.xn--3xa41xcwbfz15g"); } // [B1, C2, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("1.xn--(o)-ej1bu5389e.xn--3xb99xpx1yoes3e"); } // [B1, B6, V6, V7, U1] +test { 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] +test { try toUnicodeFail("xn--(o)-ge4ax01c3t74t.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("1.xn--(o)-7sn88849j.xn--3xb99xpx1yoes3e"); } // [B1, B6, V6, V7, U1] +test { try toUnicodeFail("xn--tsh0ds63atl31n.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--rnd762h7cx3027d.xn--3xb99xpx1yoes3e"); } // [B1, V6, V7] test { 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"); } test { 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); } test { 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 test { try toUnicodePass("xn--ve6h.xn--jgb1694kz0b2176a", "\xf0\x9e\xa4\xb7.\xf0\x90\xae\x90\xf0\x9e\xa2\x81\xf0\x90\xb9\xa0\xd8\xa4"); } test { try toAsciiPass("xn--ve6h.xn--jgb1694kz0b2176a", "xn--ve6h.xn--jgb1694kz0b2176a", false); } test { try toAsciiPass("xn--ve6h.xn--jgb1694kz0b2176a", "xn--ve6h.xn--jgb1694kz0b2176a", true); } +test { try toUnicodeFail("\xf0\x90\xb2\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7] +test { try toUnicodeFail("\xf0\x90\xb2\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7] +test { try toUnicodeFail("\xf0\x90\xb3\x88-\xe3\x80\x82\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7] +test { try toUnicodeFail("xn----ue6i.xn--v80d6662t"); } // [B1, B3, V3, V6, V7] +test { try toUnicodeFail("\xf0\x90\xb3\x88-\xef\xbd\xa1\xf0\x91\x84\xb3\xf1\xa2\x8c\xbb"); } // [B1, B3, V3, V6, V7] +test { 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] +test { try toUnicodeFail("-\xf3\xa0\x89\x96\xea\xa1\xa7.\xf3\xa0\x8a\x82\xf1\x87\x86\x838,"); } // [V3, V7, U1] +test { try toUnicodeFail("xn----hg4ei0361g.xn--8,-k362evu488a"); } // [V3, V7, U1] +test { try toUnicodeFail("xn----hg4ei0361g.xn--207ht163h7m94c"); } // [V3, V7] +test { 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] +test { try toUnicodeFail("\xf3\xa0\xbe\x9b\xf3\xa0\x88\xb4\xe8\x87\xaf\xf0\xa7\x94\xa4.\xdd\xa85"); } // [B1, V7] +test { try toUnicodeFail("xn--zb1at733hm579ddhla.xn--5-b5c"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf"); } // [B1, V6] +test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x9d\xa8\xbf"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf"); } // [B1, V6] +test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xa3.\xf0\x9d\xa8\xbf"); } // [B1, V6] +test { try toUnicodeFail("xn--gdh1504g.xn--e92h"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xef\xbd\xa1\xe8\x84\xa5"); } // [B1] +test { try toUnicodeFail("\xf0\x90\xb9\xaf\xe1\xaf\x9b\xe0\xa9\x8d\xe3\x80\x82\xe8\x84\xa5"); } // [B1] +test { try toUnicodeFail("xn--ybc101g3m1p.xn--740a"); } // [B1] +test { try toUnicodeFail("\xe1\xad\x84\xe1\x85\x9f\xf0\x9e\xb7\xbf\xf2\x83\x80\x8d.-"); } // [B1, B5, V3, V6, V7] +test { try toUnicodeFail("xn--1uf9538sxny9a.-"); } // [B1, B5, V3, V6, V7] +test { try toUnicodeFail("xn--osd971cpx70btgt8b.-"); } // [B1, B5, V3, V6, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xcd\x94"); } // [C1, V6] +test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xcd\x94"); } // [C1, V6] +test { try toUnicodeFail(".xn--yua"); } // [V6, X4_2] +test { try toUnicodeFail("xn--0ug.xn--yua"); } // [C1, V6] test { 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"); } test { try toAsciiPass("\xf0\x9e\xa4\xa5\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", false); } test { 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 test { 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"); } test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "xn--de6h.xn--37e857h", false); } test { try toAsciiPass("\xf0\x9e\xa4\x83\xf3\xa0\x85\xae\xef\xbc\x8e\xe1\xa1\x84\xe2\xb4\x8e", "xn--de6h.xn--37e857h", true); } +test { try toUnicodeFail("xn--de6h.xn--mnd799a"); } // [V7] test { try toUnicodePass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe2\xb4\x8e"); } test { try toAsciiPass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", false); } test { try toAsciiPass("\xf0\x9e\xa4\xa5.\xe1\xa1\x84\xe1\x82\xae", "xn--de6h.xn--37e857h", true); } +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--zxa5691vboja.xn--bfi293ci119b"); } // [B2, B3, B6] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn----e3j6620g.xn--jlju661e."); } // [B1, B5, B6, V3] +test { try toUnicodeFail("xn----e3j425bsk1o.xn--jlju661e."); } // [B1, B5, B6, C1, V3] +test { 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] +test { 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] +test { try toUnicodeFail("xn----e3j6620g.xn--jlj4997dhgh"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("xn----e3j425bsk1o.xn--jlj4997dhgh"); } // [B1, B5, B6, C1, V3, V7] +test { try toUnicodeFail("xn----e3j6620g.xn--znd4948j."); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("xn----e3j425bsk1o.xn--znd4948j."); } // [B1, B5, B6, C1, V3, V7] +test { try toUnicodeFail("xn----e3j6620g.xn--znd2362jhgh"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("xn----e3j425bsk1o.xn--znd2362jhgh"); } // [B1, B5, B6, C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\xbe\xb3.\xef\xb8\x92\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf3\xa0\xbe\xb3.\xe3\x80\x82\xe2\xa5\xb1\xe2\x80\x8c\xf0\x90\xb9\xac"); } // [B1, C1, V7, X4_2] +test { try toUnicodeFail("xn--uf66e..xn--qti2829e"); } // [B1, V7, X4_2] +test { try toUnicodeFail("xn--uf66e..xn--0ugz28as66q"); } // [B1, C1, V7, X4_2] +test { try toUnicodeFail("xn--uf66e.xn--qtiz073e3ik"); } // [B1, V7] +test { try toUnicodeFail("xn--uf66e.xn--0ugz28axl3pqxna"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe1\x82\xb1\xf1\x9a\x87\x9c\xf0\x90\xab\x8a"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x90\xaf\x96.\xf0\x90\xb9\xa0\xe2\xb4\x91\xf1\x9a\x87\x9c\xf0\x90\xab\x8a"); } // [B1, V7] +test { try toUnicodeFail("xn--n49c.xn--8kj8702ewicl862o"); } // [B1, V7] +test { try toUnicodeFail("xn--n49c.xn--pnd4619jwicl862o"); } // [B1, V7] +test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe1\x82\xbb"); } // [V6, V7] +test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe1\x82\xbb"); } // [V6, V7] +test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf.1\xe2\xb4\x9b"); } // [V6, V7] +test { try toUnicodeFail("xn--0fd40533g.xn--1-tws"); } // [V6, V7] +test { try toUnicodeFail("\xe0\xbe\xa4\xf1\xb1\xa4\xaf\xef\xbc\x8e\xf0\x9d\x9f\xad\xe2\xb4\x9b"); } // [V6, V7] +test { try toUnicodeFail("xn--0fd40533g.xn--1-q1g"); } // [V6, V7] +test { try toUnicodeFail("-\xe0\xa0\xa6\xe9\xbd\x80\xe3\x80\x82\xeb\xa6\xbf\xf0\x90\xb8\x8b"); } // [B1, B5, B6, V3, V7] +test { 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] +test { try toUnicodeFail("xn----6gd0617i.xn--7y2bm55m"); } // [B1, B5, B6, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--mnb6558e91kyq533a.xn--6mh27269e"); } // [B1, B6, V7] +test { try toUnicodeFail("xn--mnb6558e91kyq533a.xn--1uga46zs309y"); } // [B1, B6, C2, V7] +test { try toUnicodeFail("\xe2\x89\xae\xef\xbc\x8e-\xdc\x88--"); } // [B1, V2, V3] +test { try toUnicodeFail("<\xcc\xb8\xef\xbc\x8e-\xdc\x88--"); } // [B1, V2, V3] +test { try toUnicodeFail("\xe2\x89\xae.-\xdc\x88--"); } // [B1, V2, V3] +test { try toUnicodeFail("<\xcc\xb8.-\xdc\x88--"); } // [B1, V2, V3] +test { try toUnicodeFail("xn--gdh.xn------eqf"); } // [B1, V2, V3] +test { 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] +test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x827"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xce\xa37"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xb8\xf3\xa0\x8b\xb3\xe3\x80\x82\xe2\x80\x8d\xcf\x837"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--wo0di5177c.xn--7-zmb"); } // [B1, V7] +test { try toUnicodeFail("xn--wo0di5177c.xn--7-zmb938s"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--wo0di5177c.xn--7-xmb248s"); } // [B1, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xcf\x82\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7] +test { try toUnicodeFail("\xcf\x82\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7] +test { try toUnicodeFail("\xce\xa3\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7] +test { try toUnicodeFail("\xcf\x83\xf2\x85\x9c\x8c8.\xf0\x9e\xad\xa4"); } // [V7] +test { try toUnicodeFail("xn--8-zmb14974n.xn--su6h"); } // [V7] +test { try toUnicodeFail("xn--8-xmb44974n.xn--su6h"); } // [V7] +test { try toUnicodeFail("\xce\xa3\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7] +test { try toUnicodeFail("\xcf\x83\xf2\x85\x9c\x8c\xef\xbc\x98.\xf0\x9e\xad\xa4"); } // [V7] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\xa1\x910.\xda\x84.-\xf0\x90\xab\x84\xf0\x91\xb2\xa4"); } // [B1, C1, V3] +test { try toUnicodeFail("xn--0-o7j.xn--9ib.xn----ek5i065b"); } // [B1, V3] +test { try toUnicodeFail("xn--0-o7j263b.xn--9ib.xn----ek5i065b"); } // [B1, C1, V3] +test { try toUnicodeFail("xn--9ib722gbw95a.xn----ek5i065b"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("xn--9ib722gvtfi563c.xn----ek5i065b"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("\xf0\x96\xa0\x8d\xe3\x80\x82\xf0\x90\xaa\xbf\xeb\x84\xaf\xf2\x9e\xb5\xb2"); } // [B2, B3, V7] +test { 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] +test { try toUnicodeFail("xn--4e9e.xn--l60bj21opd57g"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe1\xa0\x87\xe1\x82\xb8\xe3\x80\x82\xd8\x83\xe1\x82\xa8\xf0\x9d\x86\x8a"); } // [B1, V7] +test { try toUnicodeFail("\xe1\xa0\x87\xe2\xb4\x98\xe3\x80\x82\xd8\x83\xe2\xb4\x88\xf0\x9d\x86\x8a"); } // [B1, V7] +test { try toUnicodeFail("xn--d6e009h.xn--lfb290rfu3z"); } // [B1, V7] +test { try toUnicodeFail("xn--wnd558a.xn--lfb465c1v87a"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("19.xn--oe6h75760c.xn--gib285gtxo2l9d"); } // [B1, B5, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--cthy466n29j3e.xn--gib285gtxo2l9d"); } // [B1, B5, V7] +test { try toUnicodeFail("19.xn--oe6h75760c.xn--gib404ccxgh00h"); } // [B1, B5, V7] +test { try toUnicodeFail("xn--cthy466n29j3e.xn--gib404ccxgh00h"); } // [B1, B5, V7] +test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe1\x82\xb3"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe1\x82\xb3"); } // [B1, V3, X4_2] +test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd1..\xe2\xb4\x93"); } // [B1, V3, X4_2] +test { try toUnicodeFail("xn---1-895nq11a..xn--blj"); } // [B1, V3, X4_2] +test { try toUnicodeFail("-\xf0\x90\x8b\xb1\xf0\x90\xb0\xbd\xe2\x92\x88.\xe2\xb4\x93"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----ecp0206g90h.xn--blj"); } // [B1, V3, V7] +test { try toUnicodeFail("xn---1-895nq11a..xn--rnd"); } // [B1, V3, V7, X4_2] +test { try toUnicodeFail("xn----ecp0206g90h.xn--rnd"); } // [B1, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xea\xb8\x83.\xe6\xa6\xb6-"); } // [C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x84\x80\xe1\x85\xb3\xe1\x86\xb2.\xe6\xa6\xb6-"); } // [C1, V3] +test { try toUnicodeFail("xn--ej0b.xn----d87b"); } // [V3] +test { try toUnicodeFail("xn--0ug3307c.xn----d87b"); } // [C1, V3] +test { try toUnicodeFail("\xeb\x89\x93\xe6\xb3\x93\xf0\x9c\xb5\xbd.\xe0\xa7\x8d\xe2\x80\x8d"); } // [V6] +test { 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] +test { try toUnicodeFail("xn--lwwp69lqs7m.xn--b7b"); } // [V6] +test { try toUnicodeFail("xn--lwwp69lqs7m.xn--b7b605i"); } // [V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-ti3o.xn--57c638l8774i"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--ss-l1t5169j.xn--57c638l8774i"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("xn--zca770nip7n.xn--57c638l8774i"); } // [B1, C2, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0"); } // [V6] +test { try toUnicodeFail("\xe1\xad\x84\xef\xbc\x8e\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8"); } // [V6] +test { try toUnicodeFail("\xe1\xad\x84.\xe1\xae\xaa-\xe2\x89\xae\xe2\x89\xa0"); } // [V6] +test { try toUnicodeFail("\xe1\xad\x84.\xe1\xae\xaa-<\xcc\xb8=\xcc\xb8"); } // [V6] +test { try toUnicodeFail("xn--1uf.xn----nmlz65aub"); } // [V6] +test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x84\xb2"); } // [V6] +test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x84\xb2"); } // [V6] +test { try toUnicodeFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6] +test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f.\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6] +test { try toUnicodeFail("xn--1zf224e.xn--73g3065g"); } // [V6] +test { try toUnicodeFail("\xe1\xaf\xb3\xe2\xb4\x91\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6] +test { try toUnicodeFail("\xe1\xaf\xb3\xe1\x82\xb1\xe1\x85\x9f\xef\xbc\x8e\xf0\x91\x84\xb4\xe2\x85\x8e"); } // [V6] +test { try toUnicodeFail("xn--pnd26a55x.xn--73g3065g"); } // [V6, V7] +test { try toUnicodeFail("xn--osd925cvyn.xn--73g3065g"); } // [V6, V7] +test { try toUnicodeFail("xn--pnd26a55x.xn--f3g7465g"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--187g.xn--ukjy205b8rscdeb"); } // [B5, V7] +test { try toUnicodeFail("xn--187g.xn--bnd4785f8r8bdeb"); } // [B5, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--pw9c.xn--mkjw9654i"); } // [B1, V7] +test { try toUnicodeFail("xn--pw9c.xn--psd742lxt32w"); } // [B1, V7] +test { try toUnicodeFail("xn--pw9c.xn--mkj83l4v899a"); } // [B1, V7] +test { try toUnicodeFail("\xde\x9a\xe2\xbe\x87\xef\xbc\x8e\xdc\x9e-\xf0\x90\x8b\xb0"); } // [B2, B3] +test { try toUnicodeFail("\xde\x9a\xe8\x88\x9b.\xdc\x9e-\xf0\x90\x8b\xb0"); } // [B2, B3] +test { try toUnicodeFail("xn--7qb6383d.xn----20c3154q"); } // [B2, B3] +test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92"); } // [V7] +test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92"); } // [V7] +test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82"); } // [V7, X4_2] +test { try toUnicodeFail("\xe1\x82\xa9\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82"); } // [V7, X4_2] +test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8.\xe3\x80\x82"); } // [V7, X4_2] +test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae.\xe3\x80\x82"); } // [V7, X4_2] +test { try toUnicodeFail("xn--gdh892bbz0d5438s.."); } // [V7, X4_2] +test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab<\xcc\xb8\xef\xbc\x8e\xef\xb8\x92"); } // [V7] +test { try toUnicodeFail("\xe2\xb4\x89\xe7\x8c\x95\xf3\xb9\x9b\xab\xe2\x89\xae\xef\xbc\x8e\xef\xb8\x92"); } // [V7] +test { try toUnicodeFail("xn--gdh892bbz0d5438s.xn--y86c"); } // [V7] +test { try toUnicodeFail("xn--hnd212gz32d54x5r.."); } // [V7, X4_2] +test { try toUnicodeFail("xn--hnd212gz32d54x5r.xn--y86c"); } // [V7] +test { try toUnicodeFail("\xf0\x9f\x8f\xae\xef\xbd\xa1\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89"); } // [B1, B2] +test { try toUnicodeFail("\xf0\x9f\x8f\xae\xe3\x80\x82\xd8\xab\xe9\xb3\xb3\xdf\xa2\xf3\xa0\x85\x89"); } // [B1, B2] +test { try toUnicodeFail("xn--8m8h.xn--qgb29f6z90a"); } // [B1, B2] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82\xc3\x9f"); } // [B1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82SS"); } // [B1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82ss"); } // [B1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xb9\xb6\xe3\x80\x82Ss"); } // [B1, C2] +test { try toUnicodeFail("xn--uo0d.ss"); } // [B1] +test { try toUnicodeFail("xn--1ug9105g.ss"); } // [B1, C2] +test { try toUnicodeFail("xn--1ug9105g.xn--zca"); } // [B1, C2] +test { try toUnicodeFail("\xc3\x85\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3] +test { try toUnicodeFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3] +test { try toUnicodeFail("\xc3\x85\xeb\x91\x84-.\xe2\x80\x8c"); } // [C1, V3] +test { try toUnicodeFail("A\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c"); } // [C1, V3] +test { try toUnicodeFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-.\xe2\x80\x8c"); } // [C1, V3] +test { try toUnicodeFail("\xc3\xa5\xeb\x91\x84-.\xe2\x80\x8c"); } // [C1, V3] +test { try toUnicodeFail("xn----1fa1788k."); } // [V3] +test { try toUnicodeFail("xn----1fa1788k.xn--0ug"); } // [C1, V3] +test { try toUnicodeFail("a\xcc\x8a\xe1\x84\x83\xe1\x85\xad\xe1\x86\xb7-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3] +test { try toUnicodeFail("\xc3\xa5\xeb\x91\x84-\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V3] +test { 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] +test { 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] +test { try toUnicodeFail("xn--veg121fwg63altj9d.xn----eyd92688s"); } // [B1, B6, V6, V7] +test { try toUnicodeFail("\xcf\x82.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7] +test { try toUnicodeFail("\xce\xa3.SS\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7] +test { try toUnicodeFail("\xcf\x83.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7] +test { try toUnicodeFail("\xce\xa3.ss\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--4xa.xn--ss-y8d4760biv60n"); } // [B5, B6, V7] +test { try toUnicodeFail("\xce\xa3.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7] +test { try toUnicodeFail("\xcf\x83.\xc3\x9f\xf1\xb4\xb1\x84\xdb\x9d\xe2\xb5\xbf"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--4xa.xn--zca281az71b8x73m"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--3xa.xn--zca281az71b8x73m"); } // [B5, B6, V7] +test { try toUnicodeFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xef\xbd\xa1\xd9\xab\xd6\x99"); } // [B1] +test { try toUnicodeFail("\xea\xa1\x80\xf0\x9e\x80\x9f\xe3\x80\x82\xd9\xab\xd6\x99"); } // [B1] +test { try toUnicodeFail("xn--8b9a1720d.xn--kcb33b"); } // [B1] +test { 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] +test { 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] +test { try toUnicodeFail("xn--yyb56242i.xn----zir1232guu71b"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--yyb780jll63m.xn----zir1232guu71b"); } // [B1, B5, B6, C1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ct2b0738h.xn--772h."); } // [V6] +test { try toUnicodeFail("xn--0ugb3358ili2v.xn--772h."); } // [C1, C2, V6] +test { try toUnicodeFail("xn--ct2b0738h.xn--y86cl899a"); } // [V6, V7] +test { try toUnicodeFail("xn--0ugb3358ili2v.xn--y86cl899a"); } // [C1, C2, V6, V7] +test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88\xc3\x9f"); } // [V6, V7, U1] +test { try toUnicodeFail("3,.\xe1\xb3\x9c1.\xc3\x9f"); } // [V6, U1] +test { try toUnicodeFail("3,.\xe1\xb3\x9c1.SS"); } // [V6, U1] +test { try toUnicodeFail("3,.\xe1\xb3\x9c1.ss"); } // [V6, U1] +test { try toUnicodeFail("3,.\xe1\xb3\x9c1.Ss"); } // [V6, U1] +test { try toUnicodeFail("3,.xn--1-43l.ss"); } // [V6, U1] +test { try toUnicodeFail("3,.xn--1-43l.xn--zca"); } // [V6, U1] +test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88SS"); } // [V6, V7, U1] +test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88ss"); } // [V6, V7, U1] +test { try toUnicodeFail("\xf0\x9f\x84\x84\xef\xbc\x8e\xe1\xb3\x9c\xe2\x92\x88Ss"); } // [V6, V7, U1] +test { try toUnicodeFail("3,.xn--ss-k1r094b"); } // [V6, V7, U1] +test { try toUnicodeFail("3,.xn--zca344lmif"); } // [V6, V7, U1] +test { try toUnicodeFail("xn--x07h.xn--ss-k1r094b"); } // [V6, V7] +test { try toUnicodeFail("xn--x07h.xn--zca344lmif"); } // [V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--eoj16016a.xn--0v1d3848a3lr0d"); } // [B2, B3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6] +test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.\xe2\x89\xa0\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6] +test { try toUnicodeFail("\xe1\x80\xba\xe0\xa5\x8d\xe1\xb7\xbd.=\xcc\xb8\xe2\x80\x8d\xe3\x87\x9b"); } // [C2, V6] +test { try toUnicodeFail("xn--n3b956a9zm.xn--1ch912d"); } // [V6] +test { try toUnicodeFail("xn--n3b956a9zm.xn--1ug63gz5w"); } // [C2, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--skjw75lg29h.xn--9ta62nrv36a"); } // [B1, V6] +test { try toUnicodeFail("xn--skjw75lg29h.xn--9ta62ngt6aou8t"); } // [B1, C2] +test { try toUnicodeFail("xn--8md2578ag21g.xn--9ta62nrv36a"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--8md2578ag21g.xn--9ta62ngt6aou8t"); } // [B1, C2, V7] +test { 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] +test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6\xc3\x9f"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6SS"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("0.\xe2\xb4\x84\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6ss"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("0.\xe1\x82\xa4\xd9\xa9\xe0\xa0\xa0\xe3\x80\x821.\xe0\xbe\xb6Ss"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("0.xn--iib29fp25e.1.xn--ss-1sj"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("0.xn--iib29fp25e.1.xn--zca117e"); } // [B1, B5, B6, V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--iib29fp25e0219a.xn--ss-1sj588o"); } // [B1, V7] +test { try toUnicodeFail("xn--iib29fp25e0219a.xn--zca117e3vp"); } // [B1, V7] +test { try toUnicodeFail("0.xn--iib29f26o.1.xn--ss-1sj"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("0.xn--iib29f26o.1.xn--zca117e"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--iib29f26o6n43c.xn--ss-1sj588o"); } // [B1, V7] +test { try toUnicodeFail("xn--iib29f26o6n43c.xn--zca117e3vp"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x89\xa0.\xe2\x80\x8c-\xd9\xab"); } // [B1, C1] +test { try toUnicodeFail("=\xcc\xb8.\xe2\x80\x8c-\xd9\xab"); } // [B1, C1] +test { try toUnicodeFail("xn--1ch.xn----vqc"); } // [B1, V3] +test { try toUnicodeFail("xn--1ch.xn----vqc597q"); } // [B1, C1] +test { try toUnicodeFail("\xd9\xa0\xdb\xb1\xef\xbd\xa1\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5"); } // [B1, V7] +test { try toUnicodeFail("\xd9\xa0\xdb\xb1\xe3\x80\x82\xf3\xa0\xb3\xb6\xf0\x9e\xa0\x81\xd9\xa5"); } // [B1, V7] +test { try toUnicodeFail("xn--8hb40a.xn--eib7967vner3e"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--15-gyd..xn--1zf13512buy41d"); } // [B1, V7, X4_2] +test { try toUnicodeFail("xn--15-gyd983x..xn--1zf13512buy41d"); } // [B1, C1, V7, X4_2] +test { try toUnicodeFail("xn--cib675m.xn--1zf13512buy41d"); } // [B1, V7] +test { try toUnicodeFail("xn--cib152kwgd.xn--1zf13512buy41d"); } // [B1, C1, V7] +test { try toUnicodeFail("\xe1\xaf\xb3.-\xe9\x80\x8b\xf1\xb3\xa6\xad\xf3\x99\x99\xae"); } // [V3, V6, V7] +test { try toUnicodeFail("xn--1zf.xn----483d46987byr50b"); } // [V3, V6, V7] test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x82", "xn--9ob.xn--4xa", true); } +test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x82"); } // [B1, C2] test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x82", "xn--9ob.xn--4xa", true); } +test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x82"); } // [B1, C2] test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xce\xa3", "xn--9ob.xn--4xa", true); } +test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xce\xa3"); } // [B1, C2] test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x83", "xn--9ob.xn--4xa", true); } +test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe1\x85\xa0\xe2\x80\x8d\xcf\x83"); } // [B1, C2] test { try toUnicodePass("xn--9ob.xn--4xa", "\xdd\x96.\xcf\x83"); } test { try toAsciiPass("xn--9ob.xn--4xa", "xn--9ob.xn--4xa", false); } test { 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); } test { try toUnicodePass("\xdd\x96.\xce\xa3", "\xdd\x96.\xcf\x83"); } test { try toAsciiPass("\xdd\x96.\xce\xa3", "xn--9ob.xn--4xa", false); } test { try toAsciiPass("\xdd\x96.\xce\xa3", "xn--9ob.xn--4xa", true); } +test { try toUnicodeFail("xn--9ob.xn--4xa795l"); } // [B1, C2] +test { try toUnicodeFail("xn--9ob.xn--3xa995l"); } // [B1, C2] test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xce\xa3", "xn--9ob.xn--4xa", true); } +test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xce\xa3"); } // [B1, C2] test { try toAsciiPass("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x83", "xn--9ob.xn--4xa", true); } +test { try toUnicodeFail("\xdd\x96\xe3\x80\x82\xe3\x85\xa4\xe2\x80\x8d\xcf\x83"); } // [B1, C2] +test { try toUnicodeFail("xn--9ob.xn--4xa380e"); } // [V7] +test { try toUnicodeFail("xn--9ob.xn--4xa380ebol"); } // [C2, V7] +test { try toUnicodeFail("xn--9ob.xn--3xa580ebol"); } // [C2, V7] +test { try toUnicodeFail("xn--9ob.xn--4xa574u"); } // [V7] +test { try toUnicodeFail("xn--9ob.xn--4xa795lq2l"); } // [C2, V7] +test { try toUnicodeFail("xn--9ob.xn--3xa995lq2l"); } // [C2, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--57e237h.xn--5sa98523p"); } // [V7] +test { try toUnicodeFail("xn--57e237h.xn--5sa649la993427a"); } // [C2, V7] +test { 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] +test { try toUnicodeFail("xn--bnd320b.xn--5sa98523p"); } // [V7] +test { try toUnicodeFail("xn--bnd320b.xn--5sa649la993427a"); } // [C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ewb302xhu1l.xn--4xa0426k"); } // [B5, B6] +test { try toUnicodeFail("xn--ewb962jfitku4r.xn--4xa695lda6932v"); } // [B5, B6, C1, C2] +test { try toUnicodeFail("xn--ewb962jfitku4r.xn--3xa895lda6932v"); } // [B5, B6, C1, C2] +test { 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] +test { 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] +test { try toUnicodeFail("\xe1\x9e\xb5\xe3\x80\x82\xf0\x9e\xaf\xb8\xea\xa1\x80\xf0\x9f\x84\x8b"); } // [B2, B3, V7, X4_2] +test { try toUnicodeFail(".xn--8b9ar252dngd"); } // [B2, B3, V7, X4_2] +test { try toUnicodeFail("xn--03e.xn--8b9ar252dngd"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("\xf3\x90\xaa\xba\xe6\x9a\x91\xef\xbc\x8e\xe2\xbe\x91\xd9\xa8"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf3\x90\xaa\xba\xe6\x9a\x91.\xe8\xa5\xbe\xd9\xa8"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--tlvq3513e.xn--hib9228d"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf3\xa0\x84\x9a\xe2\x89\xaf\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf"); } // [B1, V7] +test { try toUnicodeFail("\xf3\xa0\x84\x9a>\xcc\xb8\xea\xa1\xa2\xe3\x80\x82\xe0\xa2\x91\xe1\xb7\xbf"); } // [B1, V7] +test { try toUnicodeFail("xn--hdh7783c.xn--9xb680i"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fhbea662czx68a2tju.xn--fljz2846h"); } // [B2, B3, V7] +test { 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] +test { try toUnicodeFail("xn--fhbea662czx68a2tju.xn--vnd55511o"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf0\x9e\x80\xa8\xef\xbd\xa1\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87"); } // [V6, V7] +test { try toUnicodeFail("\xf0\x9e\x80\xa8\xe3\x80\x82\xe1\xad\x84\xf2\xa1\x9b\xa8\xf0\x9e\x8e\x87"); } // [V6, V7] +test { try toUnicodeFail("xn--mi4h.xn--1uf6843smg20c"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("\xf3\xa0\xa3\xbc\xe2\x80\x8c.\xf0\x90\xba\xb0\xe2\x80\x8c\xe1\xa1\x9f"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--q046e.xn--v8e7227j"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--0ug18531l.xn--v8e340bp21t"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9f\xc3\x9f.\xe1\x8c\xa7"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSS.\xe1\x8c\xa7"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fss.\xe1\x8c\xa7"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x9b\xf3\xa8\x85\x9fSs.\xe1\x8c\xa7"); } // [V7] +test { try toUnicodeFail("xn--ss-7dp66033t.xn--p5d"); } // [V7] +test { try toUnicodeFail("xn--zca562jc642x.xn--p5d"); } // [V7] +test { try toUnicodeFail("\xe2\xae\x92\xe2\x80\x8c.\xf1\x92\x9a\x97\xe2\x80\x8c"); } // [C1, V7] +test { try toUnicodeFail("xn--b9i.xn--5p9y"); } // [V7] +test { try toUnicodeFail("xn--0ugx66b.xn--0ugz2871c"); } // [C1, V7] +test { try toUnicodeFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe1\x82\xbc"); } // [B2, V7] +test { try toUnicodeFail("\xf0\x9e\xa4\xa4\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c"); } // [B2, V7] +test { try toUnicodeFail("xn--no0dr648a51o3b.xn--klj"); } // [B2, V7] +test { try toUnicodeFail("xn--no0dr648a51o3b.xn--0nd"); } // [B2, V7] +test { try toUnicodeFail("\xf0\x9e\xa4\x82\xf1\xb9\x9e\x81\xf0\x90\xb9\xaf\xe3\x80\x82\xe2\xb4\x9c"); } // [B2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--s9i5458e7yb.xn--1gb4a66004i"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--0ug586bcj8p7jc.xn--1gb4a66004i"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87\xc3\x9f\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\x93\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\x93\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("\xe2\xb4\x92\xe3\x80\x82\xe3\x83\x87ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99Ss\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("xn--9kj.xn--ss-9nh3648ahh20b"); } // [B5, B6] +test { try toUnicodeFail("xn--9kj.xn--zca669cmr3a0f28a"); } // [B5, B6] +test { try toUnicodeFail("xn--qnd.xn--ss-9nh3648ahh20b"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--qnd.xn--zca669cmr3a0f28a"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x87SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("\xe1\x82\xb2\xe3\x80\x82\xe3\x83\x86\xe3\x82\x99SS\xf0\x9e\xa4\xb5\xe0\xb1\x8d"); } // [B5, B6] +test { try toUnicodeFail("\xf0\x91\x81\xbf\xe0\xb5\x8d\xef\xbc\x8e\xef\xbc\x97-\xdf\x92"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x91\x81\xbf\xe0\xb5\x8d.7-\xdf\x92"); } // [B1, V6] +test { try toUnicodeFail("xn--wxc1283k.xn--7--yue"); } // [B1, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--hdhx157g68o0g.xn--c0e65eu616c34o7a"); } // [V6, V7] +test { try toUnicodeFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe1\x82\xb7\xec\x8f\x94\xe3\x80\x82\xde\x81"); } // [B1, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe1\xb7\x9b\xf2\x8e\x90\x99\xe2\xb4\x97\xec\x8f\x94\xe3\x80\x82\xde\x81"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--zegy26dw47iy6w2f.xn--iqb"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--vnd148d733ky6n9e.xn--iqb"); } // [B1, V6, V7] test { 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"); } test { try toAsciiPass("\xc3\x9f\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "xn--zca.xn--lgd921mvv0m", false); } test { 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", test { 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"); } test { try toAsciiPass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", false); } test { try toAsciiPass("Ss\xef\xbd\xa1\xf0\x90\x8b\xb3\xe1\x82\xac\xe0\xbe\xb8", "ss.xn--lgd921mvv0m", true); } +test { try toUnicodeFail("ss.xn--lgd10cu829c"); } // [V7] +test { try toUnicodeFail("xn--zca.xn--lgd10cu829c"); } // [V7] +test { try toUnicodeFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe2\xbe\x9d\xe0\xa7\x8d"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("-\xda\x9e\xf0\x90\xb6\xa1.\xe2\x80\x8c\xe8\xba\xab\xe0\xa7\x8d"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("xn----stc7013r.xn--b7b1419d"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----stc7013r.xn--b7b305imj2f"); } // [B1, C1, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--opb4277kuc7elqsa.xn--kr8h"); } // [B1] +test { try toUnicodeFail("xn--opb4277kuc7elqsa.xn--1ug5265p"); } // [B1, C2] +test { 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] +test { try toUnicodeFail("xn--cnb37gdy00a.xn--89e02253p"); } // [B1, B6, V6, V7] +test { try toUnicodeFail("xn--cnb37g904be26j.xn--89e849ax9363a"); } // [B1, B6, C1, C2, V6, V7] +test { try toUnicodeFail("\xe1\x82\xb1\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe1\x82\xb1.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe2\xb4\x91.\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--8kj.xn--ykb840gd555a"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe2\xb4\x91\xef\xbc\x8e\xda\xbf\xf0\x9e\xaf\x93\xe1\xa0\xb2"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--pnd.xn--ykb840gd555a"); } // [B2, B3, V7] +test { 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] +test { try toUnicodeFail("\xe1\xa9\x9a\xf0\x9b\xa6\x9d\xe0\xb1\x8d\xe3\x80\x82\xf0\x9a\x9d\xac9"); } // [V6, V7] +test { try toUnicodeFail("xn--lqc703ebm93a.xn--9-000p"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--9-vtc42319e.xn--tgb9bz87p833hw316c"); } // [B2, B5, V7] +test { try toUnicodeFail("xn--9-vtc736qts91g.xn--tgb9bz87p833hw316c"); } // [B1, B5, C1, V7] +test { 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] +test { try toUnicodeFail("xn--9-vtc42319e.xn--tgb9bz61cfn8mw3t2c"); } // [B2, B5, V7] +test { try toUnicodeFail("xn--9-vtc736qts91g.xn--tgb9bz61cfn8mw3t2c"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe1\xa1\x96\xef\xbd\xa1\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-"); } // [V3, V6, V7] +test { try toUnicodeFail("\xe1\xa1\x96\xe3\x80\x82\xcc\x9f\xf1\x97\x9b\xa8\xe0\xae\x82-"); } // [V3, V6, V7] +test { try toUnicodeFail("xn--m8e.xn----mdb555dkk71m"); } // [V3, V6, V7] +test { try toUnicodeFail("\xf0\x9e\xa0\xa0\xe6\xb5\x98\xe3\x80\x82\xe7\xb5\xa7\xf0\x9e\x80\x80"); } // [B2, B3] +test { try toUnicodeFail("xn--e0wp491f.xn--ud0a3573e"); } // [B2, B3] +test { 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] +test { try toUnicodeFail("\xd6\x96\xe1\x82\xab\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a"); } // [V6, V7] +test { try toUnicodeFail("\xd6\x96\xe1\x82\xab.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a"); } // [V6] +test { try toUnicodeFail("\xd6\x96\xe1\x82\xab.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a"); } // [V6] +test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b.7>\xcc\xb8\xe3\x80\x82\xef\xb8\x8a"); } // [V6] +test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b.7\xe2\x89\xaf\xe3\x80\x82\xef\xb8\x8a"); } // [V6] +test { try toUnicodeFail("xn--hcb613r.xn--7-pgo."); } // [V6] +test { try toUnicodeFail("\xd6\x96\xe2\xb4\x8b\xef\xbc\x8e\xf0\x9d\x9f\xb3>\xcc\xb8\xef\xb8\x92\xef\xb8\x8a"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("xn--hcb613r.xn--7-pgoy530h"); } // [V6, V7] +test { try toUnicodeFail("xn--hcb887c.xn--7-pgo."); } // [V6, V7] +test { try toUnicodeFail("xn--hcb887c.xn--7-pgoy530h"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--f-kq9i.xn--7656e.xn--fqb4175k"); } // [B1, V7] +test { try toUnicodeFail("xn--f-tgn9761i.xn--7656e.xn--fqb4175k"); } // [B1, C2, V7] +test { 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] +test { try toUnicodeFail("xn--f-kq9i.xn--fqb1637j8hky9452a"); } // [B1, V7] +test { try toUnicodeFail("xn--f-tgn9761i.xn--fqb1637j8hky9452a"); } // [B1, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6,-r4e4420y..xn--zo0di2m"); } // [B1, U1, X4_2] +test { try toUnicodeFail("xn--6,-r4e6182wo1ra.xn--zo0di2m"); } // [B1, B3, V7, U1] +test { try toUnicodeFail("xn--3vb4696jpxkjh7s.xn--zo0di2m"); } // [B1, B3, V7] +test { try toUnicodeFail("\xf0\x90\xb9\x88.\xe1\xb7\x80\xf0\x91\x88\xb1\xf0\x90\xa6\xad"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--jn0d.xn--7dg0871h3lf"); } // [B1, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--tkj638f.xn--pjb9818vg4xno967d"); } // [B2, V7] +test { try toUnicodeFail("xn--9md875z.xn--pjb9818vg4xno967d"); } // [B2, V7] +test { 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] +test { try toUnicodeFail("\xf0\x9f\x84\x87\xe4\xbc\x90\xef\xb8\x92.\xf0\x9c\x99\x9a\xea\xa3\x84"); } // [V7, U1] +test { try toUnicodeFail("6,\xe4\xbc\x90\xe3\x80\x82.\xf0\x9c\x99\x9a\xea\xa3\x84"); } // [V7, U1, X4_2] +test { try toUnicodeFail("xn--6,-7i3c..xn--0f9ao925c"); } // [V7, U1, X4_2] +test { try toUnicodeFail("xn--6,-7i3cj157d.xn--0f9ao925c"); } // [V7, U1] +test { try toUnicodeFail("xn--woqs083bel0g.xn--0f9ao925c"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--429az70n29i.xn--ilj7702eqyd"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--1ugz126coy7bdbm.xn--1ug062chv7ov6e"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--429az70n29i.xn--ynd3619jqyd"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--1ugz126coy7bdbm.xn--ynd959evs1pv6e"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf3\xa0\x86\xa0\xef\xbc\x8e\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88"); } // [V7, X4_2] +test { try toUnicodeFail("\xf3\xa0\x86\xa0.\xf1\xb7\x90\xb4\xf3\x8c\x9f\x88"); } // [V7, X4_2] +test { try toUnicodeFail(".xn--rx21bhv12i"); } // [V7, X4_2] +test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.\xe2\x89\xa0\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe1\x82\xa6.=\xcc\xb8\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.=\xcc\xb8\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("\xf0\x90\xab\x83\xe2\x80\x8c\xe2\xb4\x86.\xe2\x89\xa0\xf0\x9e\xb7\x99"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--xkjz802e.xn--1ch2802p"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--0ug132csv7o.xn--1ch2802p"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--end1719j.xn--1ch2802p"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--end799ekr1p.xn--1ch2802p"); } // [B1, B2, B3, C1, V7] +test { 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] +test { try toUnicodeFail("\xf3\xa0\x81\xb2\xf0\x99\xa9\xa23\xea\x98\x8c.\xe0\xa1\x81"); } // [B1, V7] +test { try toUnicodeFail("xn--3-0g3es485d8i15h.xn--zvb"); } // [B1, V7] +test { try toUnicodeFail("-.\xe1\xa2\x86\xf3\xa1\xb2\xa3-"); } // [V3, V6, V7] +test { try toUnicodeFail("-.xn----pbkx6497q"); } // [V3, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--qp42f.xn--4xa3011w"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--0ug76062m.xn--4xa595lhn92a"); } // [B1, B6, C1, V7] +test { try toUnicodeFail("xn--0ug76062m.xn--3xa795lhn92a"); } // [B1, B6, C1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--5sf345zdk8h.xn----iv5iw606c"); } // [B3, V3] +test { try toUnicodeFail("xn--5sf345zdk8h.xn----rgnt157hwl9g"); } // [B3, C1, V3] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--4xaa85plx4a"); } // [B1, B5] +test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--3xaa16plx4a"); } // [B1, B5] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--l8e1317j1ebz456b.xn--3xab95plx4a"); } // [B1, B5] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbb\xc3\x9f"); } // [V3, V7] +test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5\xc3\x9f"); } // [V3, V7] +test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5SS"); } // [V3, V7] +test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5ss"); } // [V3, V7] +test { try toUnicodeFail("xn--t960e.-5ss"); } // [V3, V7] +test { try toUnicodeFail("xn--t960e.xn---5-hia"); } // [V3, V7] +test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSS"); } // [V3, V7] +test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbss"); } // [V3, V7] +test { try toUnicodeFail("\xf3\x8f\x92\xb0\xef\xbc\x8e-\xf0\x9d\x9f\xbbSs"); } // [V3, V7] +test { try toUnicodeFail("\xf3\x8f\x92\xb0.-5Ss"); } // [V3, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe1\x83\x85\xf2\x91\xae\xb6"); } // [C2, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x90\xa8\xbf.\xf0\x9f\xa4\x92\xe2\xb4\xa5\xf2\x91\xae\xb6"); } // [C2, V7] +test { try toUnicodeFail("xn--0s9c.xn--tljz038l0gz4b"); } // [V6, V7] +test { try toUnicodeFail("xn--1ug9533g.xn--tljz038l0gz4b"); } // [C2, V7] +test { try toUnicodeFail("xn--0s9c.xn--9nd3211w0gz4b"); } // [V6, V7] +test { try toUnicodeFail("xn--1ug9533g.xn--9nd3211w0gz4b"); } // [C2, V7] +test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82\xc3\x9f\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82SS\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82ss\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("\xf0\xb5\x8b\x85\xe3\x80\x82Ss\xf0\xac\xb5\xa9\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("xn--ey1p.xn--ss-eq36b"); } // [V7] +test { try toUnicodeFail("xn--ey1p.xn--ss-n1tx0508a"); } // [C2, V7] +test { try toUnicodeFail("xn--ey1p.xn--zca870nz438b"); } // [C2, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xf0\x9e\xb9\xbb"); } // [B1, C1, V6] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\xad\x89\x9d\xe3\x80\x82\xdf\xb1\xcc\x81\xd8\xba"); } // [B1, C1, V6] +test { try toUnicodeFail("xn--634m.xn--lsa46nuub"); } // [B1, V6] +test { try toUnicodeFail("xn--0ugy003y.xn--lsa46nuub"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x9e\xbc\x8c\xe2\x80\x8c\xf0\x91\x88\xb6\xe3\x80\x82\xf0\x90\xb9\xa1"); } // [B1, B3, C1, V7] +test { try toUnicodeFail("xn--9g1d1288a.xn--8n0d"); } // [B1, V7] +test { try toUnicodeFail("xn--0ug7946gzpxf.xn--8n0d"); } // [B1, B3, C1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--zb9h5968x.xn--4xa378i1mfjw7y"); } // [V6, V7] +test { try toUnicodeFail("xn--0ug3766p5nm1b.xn--4xa378i1mfjw7y"); } // [C1, V6, V7] +test { try toUnicodeFail("xn--0ug3766p5nm1b.xn--3xa578i1mfjw7y"); } // [C1, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x92\x8b\xef\xbd\xa1\xe2\x92\x88\xe2\x80\x8d\xf2\xb3\xb4\xa2"); } // [C2, V7] +test { try toUnicodeFail("4.\xe3\x80\x821.\xe2\x80\x8d\xf2\xb3\xb4\xa2"); } // [C2, V7, X4_2] +test { try toUnicodeFail("4..1.xn--sf51d"); } // [V7, X4_2] +test { try toUnicodeFail("4..1.xn--1ug64613i"); } // [C2, V7, X4_2] +test { try toUnicodeFail("xn--wsh.xn--tsh07994h"); } // [V7] +test { try toUnicodeFail("xn--wsh.xn--1ug58o74922a"); } // [C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-svd.xn--jof2298hn83fln78f"); } // [B1, B2, B3, V6, V7] +test { 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] +test { try toUnicodeFail("xn--zca57y.xn--jof2298hn83fln78f"); } // [B1, B2, B3, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1o0di0c0652w.xn--33e362arr1l153d"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("\xe1\x82\xb3\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6"); } // [V7] +test { try toUnicodeFail("\xe2\xb4\x93\xf0\x91\x9c\xab\xe2\x80\x8d\xf2\x97\xad\x93.\xda\xa7\xf0\x91\xb0\xb6"); } // [V7] +test { try toUnicodeFail("xn--blj6306ey091d.xn--9jb4223l"); } // [V7] +test { try toUnicodeFail("xn--1ugy52cym7p7xu5e.xn--9jb4223l"); } // [V7] +test { 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] +test { try toUnicodeFail("xn--rnd8945ky009c.xn--9jb4223l"); } // [V7] +test { try toUnicodeFail("xn--rnd479ep20q7x12e.xn--9jb4223l"); } // [V7] +test { try toUnicodeFail("\xf0\x90\xa8\xbf.\xf0\x9f\x84\x86\xe2\x80\x94"); } // [V6, U1] +test { try toUnicodeFail("\xf0\x90\xa8\xbf.5,\xe2\x80\x94"); } // [V6, U1] +test { try toUnicodeFail("xn--0s9c.xn--5,-81t"); } // [V6, U1] +test { try toUnicodeFail("xn--0s9c.xn--8ug8324p"); } // [V6, V7] +test { try toUnicodeFail("\xf2\x94\x8a\xb1\xf1\x81\xa6\xae\xdb\xb8\xe3\x80\x82\xf3\xa0\xbe\xad-"); } // [V3, V7] +test { try toUnicodeFail("xn--lmb18944c0g2z.xn----2k81m"); } // [V3, V7] +test { 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] +test { try toUnicodeFail("xn--osb0855kcc2r.xn--tlb299fhc"); } // [B1, B5, B6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1,-v3o625k.xn--zvb3124wpkpf"); } // [B1, B6, U1] +test { try toUnicodeFail("xn--1,-v3o161c53q.xn--zvb692j9664aic1g"); } // [B1, C1, C2, U1] +test { 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] +test { try toUnicodeFail("xn--1,-ogkx89c.xn--zvb3124wpkpf"); } // [B1, B6, V7, U1] +test { try toUnicodeFail("xn--1,-ogkx89c39j.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7, U1] +test { try toUnicodeFail("xn--h7e438h1p44a.xn--zvb3124wpkpf"); } // [B1, V7] +test { try toUnicodeFail("xn--h7e341b0wlbv45b.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7] +test { try toUnicodeFail("xn--2nd129ai554b.xn--zvb3124wpkpf"); } // [B1, V7] +test { try toUnicodeFail("xn--2nd129ay2gnw71c.xn--zvb692j9664aic1g"); } // [B1, C1, C2, V7] +test { try toUnicodeFail("\xd8\x81\xda\x97\xef\xbc\x8e\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe2\xbe\x86"); } // [B1, V6, V7] +test { try toUnicodeFail("\xd8\x81\xda\x97.\xf0\x91\x9a\xb6\xf1\xbc\xa1\xb7\xe8\x88\x8c"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--jfb41a.xn--tc1ap851axo39c"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf0\x9f\x9e\x85\xf3\xa0\xb3\xa1\xf3\x9c\x8d\x99.\xf1\xb2\x96\xb7"); } // [V7] +test { try toUnicodeFail("xn--ie9hi1349bqdlb.xn--oj69a"); } // [V7] +test { try toUnicodeFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe1\x82\xa4\xe2\x80\x8c"); } // [C1, V6, V7] +test { try toUnicodeFail("\xe2\x83\xa7\xf1\xaf\xa1\x8e-\xf2\xab\xa3\x9d.4\xe2\xb4\x84\xe2\x80\x8c"); } // [C1, V6, V7] +test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-ivs"); } // [V6, V7] +test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-sgn589c"); } // [C1, V6, V7] +test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-f0g"); } // [V6, V7] +test { try toUnicodeFail("xn----9snu5320fi76w.xn--4-f0g649i"); } // [C1, V6, V7] test { 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"); } test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0\xc3\x9f\xf0\x96\xab\xb1", "xn--hwe.xn--zca4946pblnc", false); } test { 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 test { 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"); } test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", false); } test { try toAsciiPass("\xe1\x9a\xad\xef\xbd\xa1\xf0\x9d\x8c\xa0Ss\xf0\x96\xab\xb1", "xn--hwe.xn--ss-ci1ub261a", true); } +test { try toUnicodeFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\xab\xea\xa1\xaa"); } // [B1, B2, B3] +test { try toUnicodeFail("1\xe3\x80\x82\xf0\x9e\xa4\xab\xea\xa1\xaa"); } // [B1, B2, B3] +test { try toUnicodeFail("1\xe3\x80\x82\xf0\x9e\xa4\x89\xea\xa1\xaa"); } // [B1, B2, B3] +test { try toUnicodeFail("1.xn--gd9al691d"); } // [B1, B2, B3] +test { try toUnicodeFail("\xe2\x82\x81\xef\xbd\xa1\xf0\x9e\xa4\x89\xea\xa1\xaa"); } // [B1, B2, B3] +test { 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] +test { try toUnicodeFail("xn--kg4n.xn--2b7hs861pl540a"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--0ug27500a.xn--2b7hs861pl540a"); } // [B2, B3, B6, C1, V7] +test { try toUnicodeFail("\xf0\x91\x91\x84\xe2\x89\xaf\xef\xbd\xa1\xf0\x91\x9c\xa4"); } // [V6] +test { try toUnicodeFail("\xf0\x91\x91\x84>\xcc\xb8\xef\xbd\xa1\xf0\x91\x9c\xa4"); } // [V6] +test { try toUnicodeFail("\xf0\x91\x91\x84\xe2\x89\xaf\xe3\x80\x82\xf0\x91\x9c\xa4"); } // [V6] +test { try toUnicodeFail("\xf0\x91\x91\x84>\xcc\xb8\xe3\x80\x82\xf0\x91\x9c\xa4"); } // [V6] +test { try toUnicodeFail("xn--hdh5636g.xn--ci2d"); } // [V6] +test { 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] +test { try toUnicodeFail("\xe1\x82\xab<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3"); } // [C2] +test { try toUnicodeFail("\xe2\xb4\x8b<\xcc\xb8\xf0\xb1\xb2\x86\xe3\x80\x82\xe2\x80\x8d\xde\xa7\xf0\x90\x8b\xa3"); } // [C2] +test { 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] +test { try toUnicodeFail("xn--gdhz03bxt42d.xn--lrb6479j"); } // [V6] +test { try toUnicodeFail("xn--gdhz03bxt42d.xn--lrb506jqr4n"); } // [C2] +test { try toUnicodeFail("xn--jnd802gsm17c.xn--lrb6479j"); } // [V6, V7] +test { try toUnicodeFail("xn--jnd802gsm17c.xn--lrb506jqr4n"); } // [C2, V7] +test { try toUnicodeFail("\xe1\x9f\x92.\xf2\x86\xbd\x92\xe2\x89\xaf"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x9f\x92.\xf2\x86\xbd\x92>\xcc\xb8"); } // [V6, V7] +test { try toUnicodeFail("xn--u4e.xn--hdhx0084f"); } // [V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\x89\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7] +test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbaE\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7] +test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xbae\xcc\x81\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7] +test { try toUnicodeFail("\xf1\x8f\x81\x87\xe1\x9c\xb4.\xf0\x90\xa8\xba\xc3\xa9\xe2\xac\x93\xf0\x91\x84\xb4"); } // [V6, V7] +test { try toUnicodeFail("xn--c0e34564d.xn--9ca207st53lg3f"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--09e4694e..xn--ye6h"); } // [X4_2] +test { try toUnicodeFail("xn--09e669a6x8j..xn--ye6h"); } // [B6, C2, X4_2] +test { 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] +test { try toUnicodeFail("xn--09e4694e.xn--y86cv562b"); } // [B1, V7] +test { try toUnicodeFail("xn--09e669a6x8j.xn--y86cv562b"); } // [B1, B6, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fze3930v7hz6b.xn--wgb86el10d"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--fze607b9651bjwl7c.xn--wgb86el10d"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe1\x83\x83\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4"); } // [V6] +test { try toUnicodeFail("\xe1\x83\x83.\xd9\x93\xe1\xa2\xa4"); } // [V6] +test { try toUnicodeFail("\xe2\xb4\xa3.\xd9\x93\xe1\xa2\xa4"); } // [V6] +test { try toUnicodeFail("xn--rlj.xn--vhb294g"); } // [V6] +test { try toUnicodeFail("\xe2\xb4\xa3\xef\xbc\x8e\xd9\x93\xe1\xa2\xa4"); } // [V6] +test { try toUnicodeFail("xn--7nd.xn--vhb294g"); } // [V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe1\x83\x84\xf2\x82\xa1\x90"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xf3\xa0\x84\x88\xe0\xa0\x93.\xec\x8b\x89\xf2\x84\x86\xbb\xe2\xb4\xa4\xf2\x82\xa1\x90"); } // [V7] +test { try toUnicodeFail("xn--oub.xn--sljz109bpe25dviva"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--oub.xn--8nd9522gpe69cviva"); } // [V7] +test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae\xef\xbc\x8e\xe2\xa4\x82"); } // [V6] +test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8\xef\xbc\x8e\xe2\xa4\x82"); } // [V6] +test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab\xe2\x89\xae.\xe2\xa4\x82"); } // [V6] +test { try toUnicodeFail("\xea\xa8\xac\xf0\x91\xb2\xab<\xcc\xb8.\xe2\xa4\x82"); } // [V6] +test { try toUnicodeFail("xn--gdh1854cn19c.xn--kqi"); } // [V6] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe1\x82\xa3"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe1\x82\xa3"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe1\x82\xa3"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2.\xe2\xb4\x83"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2.\xe2\xb4\x83"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82.\xe2\xb4\x83"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82.\xe2\xb4\x83"); } // [B1, V7] +test { try toUnicodeFail("xn--mfb266l4khr54u.xn--ukj"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe2\xb4\xa2\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94\xe2\x89\xae\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x84\xf0\x90\xa9\x94<\xcc\xb8\xe1\x83\x82\xef\xbc\x8e\xe2\xb4\x83"); } // [B1, V7] +test { try toUnicodeFail("xn--mfb416c0jox02t.xn--ukj"); } // [B1, V7] +test { try toUnicodeFail("xn--mfb416c0jox02t.xn--bnd"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x91\x81\x85\xe3\x80\x82-"); } // [V3, V6] +test { try toUnicodeFail("xn--210d.-"); } // [V3, V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--h1c25913jfwov.xn--dib144ler5f"); } // [B1, B5, B6, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2] +test { try toUnicodeFail("\xf0\x9e\xa5\x83\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2] +test { try toUnicodeFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82>\xcc\xb8\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2] +test { try toUnicodeFail("\xf0\x9e\xa4\xa1\xe1\xa0\xa07\xe3\x80\x82\xe2\x89\xaf\xe9\x82\x85\xe2\xac\xbb4"); } // [B1, B2] +test { try toUnicodeFail("xn--7-v4j2826w.xn--4-ogoy01bou3i"); } // [B1, B2] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn----m9j3429kxmy7e.xn--nfb7950kdihrp812a"); } // [B1, B6, V7] +test { try toUnicodeFail("\xf2\xa0\xb6\x86\xe0\xa1\x85\xe0\xa9\x91.\xeb\x84\xa8-\xf3\xb6\xa7\x88"); } // [B5, B6, V7] +test { 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] +test { try toUnicodeFail("xn--3vb26hb6834b.xn----i37ez0957g"); } // [B5, B6, V7] +test { try toUnicodeFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d\xe2\x92\x88\xe3\x80\x82\xf0\x90\x8b\xa3-"); } // [C2, V3, V7] +test { try toUnicodeFail("\xea\xa1\xa6\xe1\xa1\x91\xe2\x80\x8d1.\xe3\x80\x82\xf0\x90\x8b\xa3-"); } // [C2, V3, X4_2] +test { try toUnicodeFail("xn--1-o7j0610f..xn----381i"); } // [V3, X4_2] +test { try toUnicodeFail("xn--1-o7j663bdl7m..xn----381i"); } // [C2, V3, X4_2] +test { try toUnicodeFail("xn--h8e863drj7h.xn----381i"); } // [V3, V7] +test { try toUnicodeFail("xn--h8e470bl0d838o.xn----381i"); } // [C2, V3, V7] +test { try toUnicodeFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe1\x82\xac\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xd9\xb9"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--3kj.xn--yib19191t"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe2\xb4\x8c\xe3\x80\x82\xf4\x8d\xbc\xa0\xef\xad\xa9"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--knd.xn--yib19191t"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf0\x90\xae\x81\xf0\x90\xad\xb1.\xe0\xbe\x84\xe1\x8d\x9e-\xe1\xb3\xba"); } // [B1, V6] +test { try toUnicodeFail("xn--r19c5a.xn----xjg270ag3m"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x92\x88\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88"); } // [C2, V3, V7] +test { 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] +test { try toUnicodeFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xec\x9b\x88"); } // [C2, V3] +test { try toUnicodeFail("1.\xe4\xb0\xb9\xe2\x80\x8d-\xe3\x80\x82\xe1\x84\x8b\xe1\x85\xae\xe1\x86\xbf"); } // [C2, V3] +test { try toUnicodeFail("1.xn----zw5a.xn--kp5b"); } // [V3] +test { try toUnicodeFail("1.xn----tgnz80r.xn--kp5b"); } // [C2, V3] +test { try toUnicodeFail("xn----dcp160o.xn--kp5b"); } // [V3, V7] +test { try toUnicodeFail("xn----tgnx5rjr6c.xn--kp5b"); } // [C2, V3, V7] +test { try toUnicodeFail("\xe3\x81\xa6\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\xb3\xbd\xdf\xb3"); } // [C1, V7] +test { try toUnicodeFail("xn--m9j.xn--rtb10784p"); } // [V7] +test { try toUnicodeFail("xn--m9j.xn--rtb154j9l73w"); } // [C1, V7] +test { try toUnicodeFail("\xcf\x82\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6] +test { try toUnicodeFail("\xcf\x82\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6] +test { try toUnicodeFail("\xce\xa3\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6] +test { try toUnicodeFail("\xcf\x83\xe3\x80\x82\xea\xa7\x80\xdb\xa7"); } // [V6] +test { try toUnicodeFail("xn--4xa.xn--3lb1944f"); } // [V6] +test { try toUnicodeFail("xn--3xa.xn--3lb1944f"); } // [V6] +test { try toUnicodeFail("\xce\xa3\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6] +test { try toUnicodeFail("\xcf\x83\xef\xbd\xa1\xea\xa7\x80\xdb\xa7"); } // [V6] +test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe1\x82\xb5"); } // [V6, V7] +test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe2\xb4\x82\xe2\xb4\x95"); } // [V6, V7] +test { try toUnicodeFail("\xe0\xaf\x8d\xf3\xa5\xab\x85\xf2\x8c\x89\x91.\xe1\x82\xa2\xe2\xb4\x95"); } // [V6, V7] +test { try toUnicodeFail("xn--xmc83135idcxza.xn--tkjwb"); } // [V6, V7] +test { try toUnicodeFail("xn--xmc83135idcxza.xn--9md086l"); } // [V6, V7] +test { try toUnicodeFail("xn--xmc83135idcxza.xn--9md2b"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("\xe1\xb0\xb27,\xe8\xb5\xb0\xd6\xa6.\xe2\x80\x8d\xf2\xaf\xa5\xa4\xdf\xbd"); } // [C2, V6, V7, U1] +test { try toUnicodeFail("xn--7,-bid991urn3k.xn--1tb13454l"); } // [V6, V7, U1] +test { try toUnicodeFail("xn--7,-bid991urn3k.xn--1tb334j1197q"); } // [C2, V6, V7, U1] +test { try toUnicodeFail("xn--xcb756i493fwi5o.xn--1tb13454l"); } // [V6, V7] +test { try toUnicodeFail("xn--xcb756i493fwi5o.xn--1tb334j1197q"); } // [C2, V6, V7] +test { try toUnicodeFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x80\xf1\x9d\x84\xbb"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x80\xf1\x9d\x84\xbb"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x97\xe3\x80\x82\xd3\x8f\xf1\x9d\x84\xbb"); } // [V7] +test { try toUnicodeFail("xn--hbf.xn--s5a83117e"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x97\xef\xbd\xa1\xd3\x8f\xf1\x9d\x84\xbb"); } // [V7] +test { try toUnicodeFail("xn--hbf.xn--d5a86117e"); } // [V7] +test { try toUnicodeFail("\xd9\xa8-\xe3\x80\x82\xf1\xa0\x8f\x87\xf0\x9f\x9d\x86\xe1\x84\xbe"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----oqc.xn--qrd1699v327w"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf0\x90\x8b\xb7\xf0\x96\xbe\x91\xe3\x80\x82\xf3\xa0\x86\xac"); } // [V3] +test { try toUnicodeFail("xn----991iq40y."); } // [V3] +test { 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] +test { 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] +test { try toUnicodeFail("xn--422b325mqb6i.xn--429a8682s"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--0ug6681d406b7bwk.xn--429a8682s"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("\xe2\x89\xae.\xdd\xa9\xd8\x83"); } // [B1, V7] +test { try toUnicodeFail("<\xcc\xb8.\xdd\xa9\xd8\x83"); } // [B1, V7] +test { try toUnicodeFail("xn--gdh.xn--lfb92e"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--tc1ao37z.xn--6e2dw557azds2d"); } // [B2, B3, B5, B6, V6, V7] +test { try toUnicodeFail("xn--tc1ao37z.xn--0ugx728gi1nfwqz2e"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xce\xa3\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x83\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x83\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3] +test { try toUnicodeFail("xn----2ws.xn--1-0mba52321c"); } // [B1, B6, V3] +test { try toUnicodeFail("xn----rgn530d.xn--1-0mba52321c"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.1\xcf\x82\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.1\xcf\x82\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3] +test { try toUnicodeFail("xn----rgn530d.xn--1-ymbd52321c"); } // [B1, C1, V3] +test { try toUnicodeFail("xn----rgn530d.xn--1-ymba92321c"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x82"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xce\xa3\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x83\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x83\x80-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xce\xa3"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\xa0-.\xf0\x9d\x9f\xb7\xcf\x82\xf0\x9e\xb4\xba\xcf\x83"); } // [B1, C1, V3] +test { try toUnicodeFail("xn----z1g.xn--1-0mba52321c"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("xn----z1g168i.xn--1-0mba52321c"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("xn----z1g168i.xn--1-ymbd52321c"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("xn----z1g168i.xn--1-ymba92321c"); } // [B1, C1, V3, V7] +test { 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] +test { try toUnicodeFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe1\x82\xbc"); } // [V6] +test { try toUnicodeFail("\xf0\x91\xb2\x98\xf3\xa0\x84\x92\xf0\x93\x91\xa1\xe3\x80\x828\xe2\xb4\x9c"); } // [V6] +test { try toUnicodeFail("xn--7m3d291b.xn--8-vws"); } // [V6] +test { 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] +test { try toUnicodeFail("xn--7m3d291b.xn--8-s1g"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ekb23dj4at01n.xn--43e96bh910b"); } // [B5, B6] +test { try toUnicodeFail("\xe1\xae\xab\xef\xbd\xa1\xf0\x9f\x82\x89\xf3\xa0\x81\xb0"); } // [V6, V7] +test { try toUnicodeFail("\xe1\xae\xab\xe3\x80\x82\xf0\x9f\x82\x89\xf3\xa0\x81\xb0"); } // [V6, V7] +test { try toUnicodeFail("xn--zxf.xn--fx7ho0250c"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--dfc53161q.xn--4xa8467k5mc"); } // [B5, V7] +test { try toUnicodeFail("xn--dfc53161q.xn--4xa895lzo7nsfd"); } // [B5, C2, V7] +test { try toUnicodeFail("xn--dfc53161q.xn--3xa006lzo7nsfd"); } // [B5, C2, V7] +test { try toUnicodeFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab\xef\xbc\x8e\xf0\x91\x98\xbf"); } // [B1, B2, B3, V6] +test { try toUnicodeFail("\xf0\x90\xab\x80\xe1\xa1\x82\xf0\x91\x9c\xab.\xf0\x91\x98\xbf"); } // [B1, B2, B3, V6] +test { try toUnicodeFail("xn--17e9625js1h.xn--sb2d"); } // [B1, B2, B3, V6] +test { try toUnicodeFail("\xf3\xac\x9a\xb6\xf3\xb8\x8b\x96\xf2\x96\xa9\xb0-\xe3\x80\x82\xe2\x80\x8c"); } // [C1, V3, V7] +test { try toUnicodeFail("xn----7i12hu122k9ire."); } // [V3, V7] +test { try toUnicodeFail("xn----7i12hu122k9ire.xn--0ug"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xef\xbc\x8e\xdf\x82"); } // [B1] +test { try toUnicodeFail("\xf0\x90\xb9\xa3.\xdf\x82"); } // [B1] +test { try toUnicodeFail("xn--bo0d.xn--dsb"); } // [B1] +test { try toUnicodeFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x83"); } // [B1, V3] +test { try toUnicodeFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x83"); } // [B1, V3] +test { try toUnicodeFail("-\xdf\xa1\xe3\x80\x82\xe2\x86\x84"); } // [B1, V3] +test { try toUnicodeFail("xn----8cd.xn--r5g"); } // [B1, V3] +test { try toUnicodeFail("-\xdf\xa1\xef\xbd\xa1\xe2\x86\x84"); } // [B1, V3] +test { try toUnicodeFail("xn----8cd.xn--q5g"); } // [B1, V3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("-..xn--ss-h46c5711e"); } // [B1, B5, B6, V3, X4_2] +test { try toUnicodeFail("xn----tgn..xn--ss-k1ts75zb8ym"); } // [B1, B5, B6, C1, C2, V3, X4_2] +test { try toUnicodeFail("xn----tgn..xn--zca670n5f0binyk"); } // [B1, B5, B6, C1, C2, V3, X4_2] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn----o89h.xn--ss-h46c5711e"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("xn----tgnt341h.xn--ss-k1ts75zb8ym"); } // [B1, B5, B6, C1, C2, V7] +test { try toUnicodeFail("xn----tgnt341h.xn--zca670n5f0binyk"); } // [B1, B5, B6, C1, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xef\xb8\x92\xef\xbc\x8e\xef\xb8\xaf\xf0\x91\x91\x82"); } // [V6, V7] +test { try toUnicodeFail("\xef\xb8\x92\xef\xbc\x8e\xf0\x91\x91\x82\xef\xb8\xaf"); } // [V6, V7] +test { try toUnicodeFail("\xe3\x80\x82.\xf0\x91\x91\x82\xef\xb8\xaf"); } // [V6, X4_2] +test { try toUnicodeFail("..xn--s96cu30b"); } // [V6, X4_2] +test { try toUnicodeFail("xn--y86c.xn--s96cu30b"); } // [V6, V7] +test { try toUnicodeFail("\xea\xa4\xac\xe3\x80\x82\xe2\x80\x8d"); } // [C2, V6] +test { try toUnicodeFail("xn--zi9a."); } // [V6] +test { try toUnicodeFail("xn--zi9a.xn--1ug"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xef\xbd\xa1\xef\xb3\x97"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xf3\xa0\xb8\xa1\xe3\x80\x82\xd9\x87\xd8\xac"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--d356e.xn--rgb7c"); } // [B1, V7] +test { try toUnicodeFail("xn--1ug80651l.xn--rgb7c"); } // [B1, C2, V7] +test { try toUnicodeFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xe1\x82\xa40\xd9\xa3.\xf0\x91\x8d\xb4\xce\xa3"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xe2\xb4\x840\xd9\xa3.\xf0\x91\x8d\xb4\xcf\x83"); } // [B1, V3, V6] +test { try toUnicodeFail("xn---0-iyd8660b.xn--4xa9120l"); } // [B1, V3, V6] +test { try toUnicodeFail("xn---0-iyd8660b.xn--3xa1220l"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x82"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xe1\x82\xa4\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xce\xa3"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xe2\xb4\x84\xf0\x9d\x9f\xa2\xd9\xa3\xef\xbc\x8e\xf0\x91\x8d\xb4\xcf\x83"); } // [B1, V3, V6] +test { try toUnicodeFail("xn---0-iyd216h.xn--4xa9120l"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn---0-iyd216h.xn--3xa1220l"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("\xf3\xa6\x88\x84\xe3\x80\x82-"); } // [V3, V7] +test { try toUnicodeFail("xn--xm38e.-"); } // [V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98\xc3\x9f>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae.\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("xn--pgh4639f.xn--ss-ifj426nle504a"); } // [V7] +test { try toUnicodeFail("xn--pgh4639f.xn--zca593eo6oc013y"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98SS\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98ss>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xbc\xcc\xb8\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xe2\x8b\xa0\xf0\x90\x8b\xae\xef\xbc\x8e\xf2\xb6\x88\xae\xe0\xbc\x98Ss\xe2\x89\xaf"); } // [V7] +test { 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] +test { try toUnicodeFail("1\xf0\x90\x8b\xb8\xd9\xa4\xe3\x80\x82\xf3\xa0\xa2\xae\xdb\x80\xf1\xb7\x9d\x8a"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("xn--1-hqc3905q.xn--zkb83268gqee4a"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn----gz7a.xn--qlj9223eywx0b"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("xn----gz7a.xn--0ug472cfq0pus98b"); } // [B1, B6, C1, V3, V7] +test { 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] +test { try toUnicodeFail("xn----gz7a.xn--6nd5001kyw98a"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("xn----gz7a.xn--6nd249ejl4pusr7b"); } // [B1, B6, C1, V3, V7] +test { 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] +test { try toUnicodeFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\xad\xf2\xbf\x8d\xa1"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("4\xf0\x90\x8b\xb7\xda\xb9.\xf0\x9e\xa4\x8b\xf2\xbf\x8d\xa1"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--4-cvc5384q.xn--le6hi7322b"); } // [B1, B2, B3, V7] +test { 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] +test { try toUnicodeFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad"); } // [B1, V7] +test { try toUnicodeFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.\xe2\x92\x88\xf0\x90\xb9\xad"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x89\xaf-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad"); } // [B1] +test { try toUnicodeFail(">\xcc\xb8-\xea\xa1\x8b\xf0\x91\xb2\xa3.1.\xf0\x90\xb9\xad"); } // [B1] +test { try toUnicodeFail("xn----ogox061d5i8d.1.xn--lo0d"); } // [B1] +test { try toUnicodeFail("xn----ogox061d5i8d.xn--tsh0666f"); } // [B1, V7] +test { try toUnicodeFail("\xcc\xb0\xef\xbc\x8e\xf3\xb0\x9c\xb1\xe8\x9a\x80"); } // [V6, V7] +test { try toUnicodeFail("\xcc\xb0.\xf3\xb0\x9c\xb1\xe8\x9a\x80"); } // [V6, V7] +test { try toUnicodeFail("xn--xta.xn--e91aw9417e"); } // [V6, V7] +test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("xn--kdb1d278n.xn--ss-yju5690ken9h"); } // [B2, B3] +test { try toUnicodeFail("xn--kdb1d278n.xn--zca284nhg9nrrxg"); } // [B2, B3] +test { try toUnicodeFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80\xc3\x9f\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80SS\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("\xef\xac\xb9\xe2\xb4\x98.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("xn--kdb1d867b.xn--ss-yju5690ken9h"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--kdb1d867b.xn--zca284nhg9nrrxg"); } // [B2, B3, V7] +test { try toUnicodeFail("\xd7\x99\xd6\xbc\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("\xef\xac\xb9\xe1\x82\xb8.\xf0\x9e\xa1\xbc\xf0\x91\x87\x80ss\xe2\x83\x97"); } // [B2, B3] +test { try toUnicodeFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xef\xbd\xa1\xe5\x87\xac"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe1\xae\xa3\xf0\x90\xb9\xb0\xf2\x81\xb1\x93\xe3\x80\x82\xe5\x87\xac"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--rxfz314ilg20c.xn--t9q"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("\xf0\x9f\xa2\x9f7,\xe2\x80\x8d\xea\xa1\x8e\xe3\x80\x82\xe0\xbe\x84"); } // [C2, V6, U1] +test { try toUnicodeFail("xn--7,-gh9hg322i.xn--3ed"); } // [V6, U1] +test { try toUnicodeFail("xn--7,-n1t0654eqo3o.xn--3ed"); } // [C2, V6, U1] +test { try toUnicodeFail("xn--nc9aq743ds0e.xn--3ed"); } // [V6, V7] +test { try toUnicodeFail("xn--1ug4874cfd0kbmg.xn--3ed"); } // [C2, V6, V7] +test { try toUnicodeFail("\xea\xa1\x94\xe3\x80\x82\xe1\x80\xb9\xe1\xa2\x87"); } // [V6] +test { try toUnicodeFail("xn--tc9a.xn--9jd663b"); } // [V6] +test { try toUnicodeFail("\xe2\x83\xab\xe2\x89\xae.\xf0\x9d\xa8\x96"); } // [V6] +test { try toUnicodeFail("\xe2\x83\xab<\xcc\xb8.\xf0\x9d\xa8\x96"); } // [V6] +test { try toUnicodeFail("xn--e1g71d.xn--772h"); } // [V6] +test { 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] +test { 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] +test { try toUnicodeFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7"); } // [B5, B6] +test { try toUnicodeFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe1\x82\xbe\xdd\xa7"); } // [B5, B6] +test { try toUnicodeFail("\xe2\xb4\xa2>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6] +test { try toUnicodeFail("\xe2\xb4\xa2\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6] +test { try toUnicodeFail("\xe1\x83\x82\xe2\x89\xaf\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6] +test { try toUnicodeFail("\xe1\x83\x82>\xcc\xb8\xe8\xa4\xa6.\xe1\xa0\xaa\xdf\xaa\xe2\xb4\x9e\xdd\xa7"); } // [B5, B6] +test { try toUnicodeFail("xn--hdh433bev8e.xn--rpb5x392bcyt"); } // [B5, B6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6nd461g478e.xn--rpb5x392bcyt"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--6nd461g478e.xn--rpb5x49td2h"); } // [B5, B6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3j9al6189a.xn--0ib8893fegvj"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--0ug8815chtz0e.xn--0ib8893fegvj"); } // [B2, B3, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c.\xe2\x89\xaf"); } // [C1] +test { try toUnicodeFail("\xe2\x80\x8c.>\xcc\xb8"); } // [C1] +test { try toUnicodeFail(".xn--hdh"); } // [X4_2] +test { try toUnicodeFail("xn--0ug.xn--hdh"); } // [C1] +test { try toUnicodeFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-\xef\xbc\x8e\xea\xaf\xad-\xe6\x82\x9c"); } // [V3, V6, V7] +test { try toUnicodeFail("\xf0\xb0\x85\xa7\xf1\xa3\xa9\xa0-.\xea\xaf\xad-\xe6\x82\x9c"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----7m53aj640l.xn----8f4br83t"); } // [V3, V6, V7] +test { 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] +test { try toUnicodeFail("xn--87e0ol04cdl39e.xn----qinu247r"); } // [V3, V7] +test { try toUnicodeFail("xn--87e0ol04cdl39e.xn----ugn5e3763s"); } // [C2, V3, V7] +test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe1\x82\xb4"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("9.\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("9.xn--llj1920a.xn--7ib268q"); } // [B1, B2, B3] +test { try toUnicodeFail("9.xn--0ug862cbm5e.xn--7ib268q"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe2\xb4\x9d.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("\xe2\x92\x90\xe2\x80\x8c\xe8\xa1\x83\xe1\x82\xbd.\xda\x82\xe2\xb4\x94"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--1shy52abz3f.xn--7ib268q"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--0ugx0px1izu2h.xn--7ib268q"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("9.xn--1nd9032d.xn--7ib268q"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("9.xn--1nd159e1y2f.xn--7ib268q"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("9.xn--1nd9032d.xn--7ib433c"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("9.xn--1nd159e1y2f.xn--7ib433c"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--1nd362hy16e.xn--7ib268q"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--1nd159ecmd785k.xn--7ib268q"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--1nd362hy16e.xn--7ib433c"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--1nd159ecmd785k.xn--7ib433c"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("\xdf\xa1\xe2\x80\x8c\xe3\x80\x82--\xe2\xb8\xac"); } // [B1, B3, C1, V3] +test { try toUnicodeFail("xn--8sb.xn-----iw2a"); } // [B1, V3] +test { try toUnicodeFail("xn--8sb884j.xn-----iw2a"); } // [B1, B3, C1, V3] test { try toUnicodePass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "\xf0\x9e\xa5\x93.\xdc\x98"); } test { try toAsciiPass("\xf0\x9e\xa5\x93\xef\xbc\x8e\xdc\x98", "xn--of6h.xn--inb", false); } test { 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); } test { try toUnicodePass("xn--of6h.xn--inb", "\xf0\x9e\xa5\x93.\xdc\x98"); } test { try toAsciiPass("xn--of6h.xn--inb", "xn--of6h.xn--inb", false); } test { try toAsciiPass("xn--of6h.xn--inb", "xn--of6h.xn--inb", true); } +test { try toUnicodeFail("\xf3\xa0\x84\xbd-\xef\xbc\x8e-\xe0\xb7\x8a"); } // [V3] +test { try toUnicodeFail("\xf3\xa0\x84\xbd-.-\xe0\xb7\x8a"); } // [V3] +test { try toUnicodeFail("-.xn----ptf"); } // [V3] +test { try toUnicodeFail("\xf3\xa0\x87\x9d\xdd\x9b-.\xe1\xa4\xa7"); } // [B1, B3, V3, V6] +test { try toUnicodeFail("xn----k4c.xn--lff"); } // [B1, B3, V3, V6] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fuix729epewf.xn--5-w93e.xn--7b83e"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("xn--fuix729epewf.xn--xsh5029b6e77i"); } // [B1, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("0.xn--mn9cz2s"); } // [B1, V6] +test { try toUnicodeFail("0.xn--0ugc8040p9hk"); } // [B1, C2, V6] test { 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"); } test { 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); } test { 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", test { 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"); } test { 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); } test { 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); } +test { try toUnicodeFail("xn--ynd2415j.xn--5-dug9054m"); } // [V7] +test { try toUnicodeFail("\xe2\x80\x8d-\xe1\xa0\xb9\xef\xb9\xaa.\xe1\xb7\xa1\xe1\xa4\xa2"); } // [C2, V6, U1] +test { try toUnicodeFail("\xe2\x80\x8d-\xe1\xa0\xb9%.\xe1\xb7\xa1\xe1\xa4\xa2"); } // [C2, V6, U1] +test { try toUnicodeFail("xn---%-u4o.xn--gff52t"); } // [V3, V6, U1] +test { try toUnicodeFail("xn---%-u4oy48b.xn--gff52t"); } // [C2, V6, U1] +test { try toUnicodeFail("xn----c6jx047j.xn--gff52t"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----c6j614b1z4v.xn--gff52t"); } // [C2, V6, V7] test { try toUnicodePass("\xe2\x89\xa0.\xe1\xa0\xbf", "\xe2\x89\xa0.\xe1\xa0\xbf"); } test { try toAsciiPass("\xe2\x89\xa0.\xe1\xa0\xbf", "xn--1ch.xn--y7e", false); } test { 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) test { 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"); } test { try toAsciiPass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "xn--ucb18e.xn--eck4c5a", false); } test { try toAsciiPass("\xdc\xa3\xd6\xa3.\xe3\x83\x8f\xe3\x82\xa4\xe3\x83\x84", "xn--ucb18e.xn--eck4c5a", true); } +test { try toUnicodeFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80\xe2\x89\xae.\xe2\xb5\xbf-"); } // [B1, B3, V3, V6, V7] +test { try toUnicodeFail("\xf0\x9e\xb7\xa5\xf3\xa0\x86\x80<\xcc\xb8.\xe2\xb5\xbf-"); } // [B1, B3, V3, V6, V7] +test { try toUnicodeFail("xn--gdhx802p.xn----i2s"); } // [B1, B3, V3, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6-kmf4691ejv41j.xn--mhba10ch545mn8v8h"); } // [B1, B3, V7] +test { 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] +test { try toUnicodeFail("\xf0\xa3\xa9\xab\xef\xbc\x8e\xf2\x8c\x91\xb2"); } // [V7] +test { try toUnicodeFail("\xf0\xa3\xa9\xab.\xf2\x8c\x91\xb2"); } // [V7] +test { try toUnicodeFail("xn--td3j.xn--4628b"); } // [V7] +test { try toUnicodeFail("\xe2\x80\x8d\xef\xb8\x92\xef\xbd\xa1\xda\xb9\xe2\x80\x8c"); } // [B1, B3, C1, C2, V7] +test { try toUnicodeFail("xn--y86c.xn--skb"); } // [B1, V7] +test { try toUnicodeFail("xn--1ug2658f.xn--skb080k"); } // [B1, B3, C1, C2, V7] test { try toUnicodePass("xn--skb", "\xda\xb9"); } test { try toAsciiPass("xn--skb", "xn--skb", false); } test { try toAsciiPass("xn--skb", "xn--skb", true); } test { try toUnicodePass("\xda\xb9", "\xda\xb9"); } test { try toAsciiPass("\xda\xb9", "xn--skb", false); } test { try toAsciiPass("\xda\xb9", "xn--skb", true); } +test { try toUnicodeFail("\xf0\x90\xb9\xa6\xe2\x80\x8c\xf0\x90\xb9\xb6\xe3\x80\x82\xe2\x81\xad"); } // [B1, C1] +test { try toUnicodeFail("xn--eo0d6a."); } // [B1] +test { try toUnicodeFail("xn--0ug4994goba."); } // [B1, C1] +test { try toUnicodeFail("xn--eo0d6a.xn--sxg"); } // [B1, V7] +test { try toUnicodeFail("xn--0ug4994goba.xn--sxg"); } // [B1, C1, V7] +test { try toUnicodeFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa9\xf0\x9d\x9f\xad\xe3\x80\x82-\xf0\x91\x9c\xa8"); } // [V3, V6] +test { try toUnicodeFail("\xe0\xb1\x8d\xf0\x9d\xa8\xbe\xd6\xa91\xe3\x80\x82-\xf0\x91\x9c\xa8"); } // [V3, V6] +test { try toUnicodeFail("xn--1-rfc312cdp45c.xn----nq0j"); } // [V3, V6] +test { try toUnicodeFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xeb\x99\x8f"); } // [V7] +test { try toUnicodeFail("\xf2\xa3\xbf\x88\xe3\x80\x82\xe1\x84\x84\xe1\x85\xab\xe1\x86\xae"); } // [V7] +test { try toUnicodeFail("xn--ph26c.xn--281b"); } // [V7] +test { try toUnicodeFail("\xf1\x95\xa8\x9a\xf3\xa0\x84\x8c\xf3\x91\xbd\x80\xe1\xa1\x80.\xe0\xa2\xb6"); } // [V7] +test { try toUnicodeFail("xn--z7e98100evc01b.xn--czb"); } // [V7] +test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf1\x85\x81\x9b"); } // [C2, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf1\x85\x81\x9b"); } // [C2, V7] +test { try toUnicodeFail(".xn--6x4u"); } // [V7, X4_2] +test { try toUnicodeFail("xn--1ug.xn--6x4u"); } // [C2, V7] +test { try toUnicodeFail("\xe0\xa1\x8b\xe7\x9a\xa5\xef\xbc\x8e-"); } // [B1, B2, B3, V3] +test { try toUnicodeFail("\xe0\xa1\x8b\xe7\x9a\xa5.-"); } // [B1, B2, B3, V3] +test { try toUnicodeFail("xn--9vb4167c.-"); } // [B1, B2, B3, V3] +test { try toUnicodeFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87\xef\xbc\x8e\xe2\x92\x88\xea\xa1\xa6"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x90\xa3\xb8\xcc\x95\xf0\x90\xae\x87.1.\xea\xa1\xa6"); } // [B1, V7] +test { try toUnicodeFail("xn--5sa9915kgvb.1.xn--cd9a"); } // [B1, V7] +test { try toUnicodeFail("xn--5sa9915kgvb.xn--tshw539b"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--tcb323r.xn--yda4409k"); } // [B5, B6] +test { try toUnicodeFail("xn--tcb736kea974k.xn--yda4409k"); } // [B5, B6, C1, C2] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--tcb597c.xn--yda594fdn5q"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--tcb597cdmmfa.xn--yda594fdn5q"); } // [B5, B6, C1, C2, V7] +test { try toUnicodeFail("xn--tcb323r.xn--yda594fdn5q"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--tcb736kea974k.xn--yda594fdn5q"); } // [B5, B6, C1, C2, V7] +test { try toUnicodeFail("xn--tcb597c.xn--yda9741khjj"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--tcb597cdmmfa.xn--yda9741khjj"); } // [B5, B6, C1, C2, V7] +test { try toUnicodeFail("xn--tcb323r.xn--yda9741khjj"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--tcb736kea974k.xn--yda9741khjj"); } // [B5, B6, C1, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--vn7c.xn--hdh501y8wvfs5h"); } // [V7] +test { try toUnicodeFail("xn--0ug2139f.xn--hdh501y8wvfs5h"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82\xc3\x9f"); } // [V7] +test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82\xc3\x9f"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82\xc3\x9f"); } // [X4_2] +test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82\xc3\x9f"); } // [X4_2] +test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82SS"); } // [X4_2] +test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82SS"); } // [X4_2] +test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82ss"); } // [X4_2] +test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82ss"); } // [X4_2] +test { try toUnicodeFail(">\xcc\xb81.\xe3\x80\x82Ss"); } // [X4_2] +test { try toUnicodeFail("\xe2\x89\xaf1.\xe3\x80\x82Ss"); } // [X4_2] +test { try toUnicodeFail("xn--1-ogo..ss"); } // [X4_2] +test { try toUnicodeFail("xn--1-ogo..xn--zca"); } // [X4_2] +test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82SS"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82SS"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82ss"); } // [V7] +test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82ss"); } // [V7] +test { try toUnicodeFail(">\xcc\xb8\xe2\x92\x88\xe3\x80\x82Ss"); } // [V7] +test { try toUnicodeFail("\xe2\x89\xaf\xe2\x92\x88\xe3\x80\x82Ss"); } // [V7] +test { try toUnicodeFail("xn--hdh84f.ss"); } // [V7] +test { try toUnicodeFail("xn--hdh84f.xn--zca"); } // [V7] +test { 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] +test { try toUnicodeFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe1\x82\xb9"); } // [B1, B2, B3, C2] +test { try toUnicodeFail("\xd9\xa7\xe2\x80\x8d\xda\xb3\xe3\x80\x82\xdf\x9a-6\xe2\xb4\x99"); } // [B1, B2, B3, C2] +test { try toUnicodeFail("xn--gib6m.xn---6-lve6529a"); } // [B1, B2, B3] +test { try toUnicodeFail("xn--gib6m343e.xn---6-lve6529a"); } // [B1, B2, B3, C2] +test { 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] +test { try toUnicodeFail("xn--gib6m.xn---6-lve002g"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--gib6m343e.xn---6-lve002g"); } // [B1, B2, B3, C2, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xa0"); } // [C1] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1=\xcc\xb8"); } // [C1] +test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xa0"); } // [C1] +test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82=\xcc\xb8"); } // [C1] +test { try toUnicodeFail(".xn--1ch"); } // [X4_2] +test { try toUnicodeFail("xn--0ug.xn--1ch"); } // [C1] +test { 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] +test { try toUnicodeFail("xn--461dw464a.xn--v8e29loy65a"); } // [V6] +test { try toUnicodeFail("xn--461dw464a.xn--v8e29ldzfo952a"); } // [C1, V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6j00chy9a.xn----81n51bt713h"); } // [V3, V6, V7] +test { try toUnicodeFail("xn--1ug15151gkb5a.xn----81n51bt713h"); } // [C2, V3, V6, V7] +test { try toUnicodeFail("xn--6j00chy9a.xn----61n81bt713h"); } // [V3, V6, V7] +test { try toUnicodeFail("xn--1ug15151gkb5a.xn----61n81bt713h"); } // [C2, V3, V6, V7] +test { 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] +test { try toUnicodeFail("\xdf\xa2\xcf\x82\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7] +test { try toUnicodeFail("\xdf\xa2\xce\xa3\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7] +test { try toUnicodeFail("\xdf\xa2\xcf\x83\xe2\x80\x8d7\xe3\x80\x82\xe8\x94\x91\xf2\x9b\x96\xa2"); } // [B2, C2, V7] +test { try toUnicodeFail("xn--7-zmb872a.xn--wy1ao4929b"); } // [B2, V7] +test { try toUnicodeFail("xn--7-zmb872aez5a.xn--wy1ao4929b"); } // [B2, C2, V7] +test { try toUnicodeFail("xn--7-xmb182aez5a.xn--wy1ao4929b"); } // [B2, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xf0\x90\xb9\xb0.\xd8\x80"); } // [B1, V7] +test { try toUnicodeFail("xn--oo0d.xn--ifb"); } // [B1, V7] +test { try toUnicodeFail("-\xe0\xa2\xa8.\xf0\xb1\xa0\x96"); } // [B1, V3] +test { try toUnicodeFail("xn----mod.xn--5o9n"); } // [B1, V3] +test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88"); } // [B1, V7] +test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x86\xe2\x92\x88"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861."); } // [B1] +test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xb1\xb8\xf3\xa0\x87\x80\xe3\x80\x82\xe8\xaa\x861."); } // [B1] +test { try toUnicodeFail("xn--hdh7151p.xn--1-dy1d."); } // [B1] +test { try toUnicodeFail("xn--hdh7151p.xn--tsh1248a"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4fb0j490qjg4x..xn--hhb8o948e"); } // [B1, V6, X4_2] +test { try toUnicodeFail("xn--4fb0j490qjg4x.xn--hhb8o948euo5r"); } // [B1, V6, V7] +test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.\xe2\x80\x8c\xe0\xab\x85\xf3\xa9\xb8\xa4\xdb\xb4"); } // [C1, V7, U1] +test { 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] +test { try toUnicodeFail("xn---?-6g4k75207c.xn--hmb76q74166b"); } // [V6, V7, U1] +test { try toUnicodeFail("xn---?-6g4k75207c.xn--hmb76q48y18505a"); } // [C1, V7, U1] +test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q74166b"); } // [V6, V7, U1] +test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q74166b"); } // [V6, V7, U1] +test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B"); } // [V6, V7, U1] +test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q74166B"); } // [V6, V7, U1] +test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b"); } // [V6, V7, U1] +test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q74166b"); } // [V6, V7, U1] +test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a"); } // [C1, V7, U1] +test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.xn--hmb76q48y18505a"); } // [C1, V7, U1] +test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A"); } // [C1, V7, U1] +test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.XN--HMB76Q48Y18505A"); } // [C1, V7, U1] +test { try toUnicodeFail("\xed\x80\xac-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a"); } // [C1, V7, U1] +test { try toUnicodeFail("\xe1\x84\x8f\xe1\x85\xb0\xe1\x86\xbb-?\xf1\xb6\xb3\x92.Xn--Hmb76q48y18505a"); } // [C1, V7, U1] +test { try toUnicodeFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V7] +test { try toUnicodeFail("\xe1\x82\xac.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xe3\x80\x82\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--3kj.xn--2o0d.xn--q30dg029a"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe2\xb4\x8c.\xf0\x90\xb9\xbe\xef\xb8\x92\xf0\x91\x81\xbf\xf0\x9e\xbe\x84"); } // [B1, V7] +test { try toUnicodeFail("xn--3kj.xn--y86c030a9ob6374b"); } // [B1, V7] +test { try toUnicodeFail("xn--knd.xn--2o0d.xn--q30dg029a"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--knd.xn--y86c030a9ob6374b"); } // [B1, V7] +test { try toUnicodeFail("\xf1\xa7\x9e\xbf\xe2\x95\x8f\xe3\x80\x82\xf0\x9e\xa9\x95\xf3\xa0\x81\xbe"); } // [B3, B6, V7] +test { try toUnicodeFail("xn--iyh90030d.xn--1m6hs0260c"); } // [B3, B6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--kxh.xn--eoc8m432a"); } // [V6] +test { try toUnicodeFail("xn--1ug04r.xn--eoc8m432a40i"); } // [C2, V6] +test { try toUnicodeFail("\xf2\xb9\x9a\xaa\xef\xbd\xa1\xf0\x9f\x84\x82"); } // [V7, U1] +test { try toUnicodeFail("\xf2\xb9\x9a\xaa\xe3\x80\x821,"); } // [V7, U1] +test { try toUnicodeFail("xn--n433d.1,"); } // [V7, U1] +test { try toUnicodeFail("xn--n433d.xn--v07h"); } // [V7] +test { try toUnicodeFail("\xf0\x91\x8d\xa8\xe5\x88\x8d.\xf0\x9f\x9b\xa6"); } // [V6] +test { try toUnicodeFail("xn--rbry728b.xn--y88h"); } // [V6] +test { try toUnicodeFail("\xf3\xa0\x8c\x8f3\xef\xbd\xa1\xe1\xaf\xb1\xf0\x9d\x9f\x92"); } // [V6, V7] +test { try toUnicodeFail("\xf3\xa0\x8c\x8f3\xe3\x80\x82\xe1\xaf\xb14"); } // [V6, V7] +test { try toUnicodeFail("xn--3-ib31m.xn--4-pql"); } // [V6, V7] +test { try toUnicodeFail("\xda\x87\xef\xbc\x96\xe1\x82\xb4\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1] +test { try toUnicodeFail("\xda\x876\xe1\x82\xb4\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1] +test { try toUnicodeFail("\xda\x876\xe2\xb4\x94\xe8\xbe\x98.\xd8\xb5\xd9\x8a\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1] +test { try toUnicodeFail("xn--6-gsc2270akm6f.xn--0gb6bxk"); } // [B2, B3] +test { try toUnicodeFail("xn--6-gsc2270akm6f.xn--0gb6bxkx18g"); } // [B2, B3, C1] +test { try toUnicodeFail("\xda\x87\xef\xbc\x96\xe2\xb4\x94\xe8\xbe\x98.\xef\xb4\xa2\xda\x87\xe2\x80\x8c"); } // [B2, B3, C1] +test { try toUnicodeFail("xn--6-gsc039eqq6k.xn--0gb6bxk"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--6-gsc039eqq6k.xn--0gb6bxkx18g"); } // [B2, B3, C1, V7] +test { try toUnicodeFail("\xf3\xa0\x84\x8d.\xf0\x90\xae\xad\xf0\x9e\xb0\xac\xf2\xbb\xab\x9e\xdb\xb9"); } // [B2, V7, X4_2] +test { try toUnicodeFail(".xn--mmb3954kd0uf1zx7f"); } // [B2, V7, X4_2] +test { try toUnicodeFail("\xea\xa1\xbd\xe2\x89\xaf\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7] +test { try toUnicodeFail("\xea\xa1\xbd>\xcc\xb8\xef\xbc\x8e\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7] +test { try toUnicodeFail("\xea\xa1\xbd\xe2\x89\xaf.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7] +test { try toUnicodeFail("\xea\xa1\xbd>\xcc\xb8.\xf2\xbb\xb2\x80\xf2\x92\xb3\x84"); } // [V7] +test { try toUnicodeFail("xn--hdh8193c.xn--5z40cp629b"); } // [V7] +test { try toUnicodeFail("\xcf\x82\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6] +test { try toUnicodeFail("\xce\xa3\xe1\xb2\x9d\xd9\xbb.\xce\xa3\xdc\x94"); } // [B5, B6] +test { try toUnicodeFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94"); } // [B5, B6] +test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x83\xdc\x94"); } // [B5, B6] +test { try toUnicodeFail("xn--4xa60l26n.xn--4xa21o"); } // [B5, B6] +test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6] +test { try toUnicodeFail("\xcf\x83\xe1\x83\x9d\xd9\xbb.\xcf\x82\xdc\x94"); } // [B5, B6] +test { try toUnicodeFail("xn--4xa60l26n.xn--3xa41o"); } // [B5, B6] +test { try toUnicodeFail("xn--3xa80l26n.xn--3xa41o"); } // [B5, B6] +test { try toUnicodeFail("\xce\xa3\xe1\x83\x9d\xd9\xbb.\xce\xa3\xdc\x94"); } // [B5, B6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--vob0c4369twfv8b.xn--kl46e"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe"); } // [C2, V7] +test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe"); } // [C2, V7] +test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe1\x82\xbe"); } // [C2, V7] +test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe1\x82\xbe"); } // [C2, V7] +test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e"); } // [C2, V7] +test { try toUnicodeFail("\xf3\xa0\xb3\x9b.\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e"); } // [C2, V7] +test { try toUnicodeFail("xn--1t56e.xn--1ch153bqvw"); } // [V7] +test { try toUnicodeFail("xn--1t56e.xn--1ug73gzzpwi3a"); } // [C2, V7] +test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab=\xcc\xb8\xe2\xb4\x9e"); } // [C2, V7] +test { try toUnicodeFail("\xf3\xa0\xb3\x9b\xef\xbc\x8e\xe2\x80\x8d\xe4\xa4\xab\xe2\x89\xa0\xe2\xb4\x9e"); } // [C2, V7] +test { try toUnicodeFail("xn--1t56e.xn--2nd141ghl2a"); } // [V7] +test { try toUnicodeFail("xn--1t56e.xn--2nd159e9vb743e"); } // [C2, V7] +test { try toUnicodeFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5\xef\xbc\x8e\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5"); } // [B1, B2, B3] +test { try toUnicodeFail("\xf0\x90\xbd\x98\xf0\x91\x88\xb5.\xf0\x90\xb9\xa3\xf0\x9f\x95\xa5"); } // [B1, B2, B3] +test { try toUnicodeFail("xn--bv0d02c.xn--bo0dq650b"); } // [B1, B2, B3] +test { try toUnicodeFail("\xe2\x92\x8a\xe2\x92\x88\xf0\x91\x81\x84\xe3\x80\x829"); } // [V7] +test { try toUnicodeFail("3.1.\xf0\x91\x81\x84\xe3\x80\x829"); } // [V6] +test { try toUnicodeFail("3.1.xn--110d.j"); } // [V6] +test { try toUnicodeFail("xn--tshd3512p.j"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("-\xe2\x80\x8c\xe2\xb7\xb1\xe2\x89\xae.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("-\xe2\x80\x8c\xe2\xb7\xb1<\xcc\xb8.\xf0\x90\xb9\xb1\xf2\xad\x8f\xb449"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("xn----ngo823c.xn--49-ki3om2611f"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----sgn20i14s.xn--49-ki3om2611f"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("-\xe2\x89\xaf\xeb\x94\xbe\xef\xbd\xa1\xe0\xa1\x87"); } // [B1, V3] +test { try toUnicodeFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xef\xbd\xa1\xe0\xa1\x87"); } // [B1, V3] +test { try toUnicodeFail("-\xe2\x89\xaf\xeb\x94\xbe\xe3\x80\x82\xe0\xa1\x87"); } // [B1, V3] +test { try toUnicodeFail("->\xcc\xb8\xe1\x84\x84\xe1\x85\xa1\xe1\x86\xb5\xe3\x80\x82\xe0\xa1\x87"); } // [B1, V3] +test { try toUnicodeFail("xn----pgow547d.xn--5vb"); } // [B1, V3] +test { 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] +test { try toUnicodeFail("\xf0\x91\x99\xa21.\xf0\x90\xb9\xa0-\xe3\x80\x82\xf3\xa0\x97\x90\xe2\x80\x8c"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("xn--1-bf0j.xn----516i.xn--jd46e"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--1-bf0j.xn----516i.xn--0ug23321l"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("xn----dcpy090hiyg.xn--jd46e"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----dcpy090hiyg.xn--0ug23321l"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("\xcd\x8a\xef\xbc\x8e\xf0\x90\xa8\x8e"); } // [V6] +test { try toUnicodeFail("\xcd\x8a.\xf0\x90\xa8\x8e"); } // [V6] +test { try toUnicodeFail("xn--oua.xn--mr9c"); } // [V6] +test { try toUnicodeFail("\xed\x9b\x89\xe2\x89\xae\xef\xbd\xa1\xe0\xb8\xb4"); } // [V6] +test { try toUnicodeFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xef\xbd\xa1\xe0\xb8\xb4"); } // [V6] +test { try toUnicodeFail("\xed\x9b\x89\xe2\x89\xae\xe3\x80\x82\xe0\xb8\xb4"); } // [V6] +test { try toUnicodeFail("\xe1\x84\x92\xe1\x85\xae\xe1\x86\xac<\xcc\xb8\xe3\x80\x82\xe0\xb8\xb4"); } // [V6] +test { try toUnicodeFail("xn--gdh2512e.xn--i4c"); } // [V6] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--trj8045le6s9b.xn--2-upc23918acjsj"); } // [B1, B5, B6, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-jepz4596r.xn----dnc5e1er384z"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--ss-jep006bqt765b.xn----dnc5e1er384z"); } // [B1, B6, C1, V3, V7] +test { try toUnicodeFail("xn--zca272jbif10059a.xn----dnc5e1er384z"); } // [B1, B6, C1, V3, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xeb\x86\xae-"); } // [V3] +test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x83\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-"); } // [V3] +test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xe1\x84\x82\xe1\x85\xaa\xe1\x87\x81-"); } // [V3] +test { try toUnicodeFail("\xea\xa1\x86\xe3\x80\x82\xe2\x86\x84\xe0\xbe\xb5\xeb\x86\xae-"); } // [V3] +test { try toUnicodeFail("xn--fc9a.xn----qmg097k469k"); } // [V3] +test { try toUnicodeFail("xn--fc9a.xn----qmg787k869k"); } // [V3, V7] +test { try toUnicodeFail("\xef\xb6\xad\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9"); } // [B3, B5, B6, C2, V7] +test { try toUnicodeFail("\xd9\x84\xd9\x85\xd9\x8a\xe2\x80\x8d.\xf1\xa5\xb0\x8c\xda\xa9"); } // [B3, B5, B6, C2, V7] +test { try toUnicodeFail("xn--ghbcp.xn--ckb36214f"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--ghbcp494x.xn--ckb36214f"); } // [B3, B5, B6, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--r1f68xh1jgv7u.xn--wlb646b4ng"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("xn--0nd679cf3eq67y.xn--wlb646b4ng"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xef\xb3\xac"); } // [B1] +test { try toUnicodeFail("\xf0\x90\x8b\xb5\xe3\x80\x82\xd9\x83\xd9\x85"); } // [B1] +test { try toUnicodeFail("xn--p97c.xn--fhbe"); } // [B1] +test { try toUnicodeFail("\xf0\x90\x8b\xb5.\xd9\x83\xd9\x85"); } // [B1] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x89\xae\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad"); } // [V7] +test { try toUnicodeFail("<\xcc\xb8\xf0\x9d\x85\xb6.\xf1\xb1\xb2\x81\xea\xab\xac\xe2\xb9\x88\xf3\xb0\xa5\xad"); } // [V7] +test { try toUnicodeFail("xn--gdh.xn--4tjx101bsg00ds9pyc"); } // [V7] +test { try toUnicodeFail("xn--gdh0880o.xn--4tjx101bsg00ds9pyc"); } // [V7] +test { 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] +test { try toUnicodeFail("\xe2\xb7\xb0\xcd\x98\xe1\xa2\x95.\xcd\xa1\xf0\x90\xb9\xb7\xf3\xa0\xb4\x8d"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--2ua889htsp.xn--cva2687k2tv0g"); } // [B1, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--5gbwa03bg24e.xn--vdb1198k"); } // [B1, B2, V6] +test { try toUnicodeFail("xn--5gbwa03bg24eptk.xn--vdb1198k"); } // [B1, B2, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--8v1d.xn--ye9h41035a2qqs"); } // [V6, V7] +test { try toUnicodeFail("xn--8v1d.xn--1ug1386plvx1cd8vya"); } // [C2, V6, V7] +test { try toUnicodeFail("-\xd7\xa9\xe3\x80\x82\xe2\x92\x9a"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xd7\xa9\xe3\x80\x8219."); } // [B1, V3] +test { try toUnicodeFail("xn----gjc.1j."); } // [B1, V3] +test { try toUnicodeFail("xn----gjc.xn--cth"); } // [B1, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3vb50049s.xn--79e"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--3vb882jz4411a.xn--79e259a"); } // [B5, B6, C1, C2, V7] test { 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"); } test { try toAsciiPass("\xc3\x9f\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--zca266bwrr.xn--85-psd", false); } test { 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\ test { 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"); } test { try toAsciiPass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", false); } test { try toAsciiPass("Ss\xe0\xa7\x81\xe1\xb7\xad\xe3\x80\x82\xd8\xa08\xe2\x82\x85", "xn--ss-e2f077r.xn--85-psd", true); } +test { 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] +test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5\xc3\x9f"); } // [B1, V6] +test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5SS"); } // [B1, V6] +test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5ss"); } // [B1, V6] +test { try toUnicodeFail("\xe0\xab\x8d\xd2\x84\xe9\xad\x851.3\xf0\x90\xb9\xa5Ss"); } // [B1, V6] +test { try toUnicodeFail("xn--1-0xb049b102o.xn--3ss-nv9t"); } // [B1, V6] +test { try toUnicodeFail("xn--1-0xb049b102o.xn--3-qfa7018r"); } // [B1, V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xdc\xab\xe3\x80\x82\xf0\x91\x93\x821.\xf0\x91\x9c\xab\xf3\xa0\xbf\xbb"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--1nb.xn--1-jq9i.xn--ji2dg9877c"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--1nb.xn--tsh7798f6rbrt828c"); } // [B1, V6, V7] test { try toUnicodePass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "\xe0\xaa\x9b.\xe5\xb5\xa8"); } test { try toAsciiPass("\xef\xb8\x8d\xe0\xaa\x9b\xe3\x80\x82\xe5\xb5\xa8", "xn--6dc.xn--tot", false); } test { 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); } test { try toUnicodePass("\xe0\xaa\x9b.\xe5\xb5\xa8", "\xe0\xaa\x9b.\xe5\xb5\xa8"); } test { try toAsciiPass("\xe0\xaa\x9b.\xe5\xb5\xa8", "xn--6dc.xn--tot", false); } test { try toAsciiPass("\xe0\xaa\x9b.\xe5\xb5\xa8", "xn--6dc.xn--tot", true); } +test { try toUnicodeFail("\xe1\x82\xb4\xe2\x89\xa0\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1] +test { try toUnicodeFail("\xe1\x82\xb4=\xcc\xb8\xe1\x82\xa0.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1] +test { try toUnicodeFail("\xe2\xb4\x94=\xcc\xb8\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1] +test { try toUnicodeFail("\xe2\xb4\x94\xe2\x89\xa0\xe2\xb4\x80.\xf0\x90\xb9\xa5\xf0\x90\xb9\xb0"); } // [B1] +test { try toUnicodeFail("xn--1ch603bxb.xn--do0dwa"); } // [B1] +test { try toUnicodeFail("xn--7md3b171g.xn--do0dwa"); } // [B1, V7] +test { try toUnicodeFail("-\xe2\x80\x8c\xe2\x92\x99\xf0\x90\xab\xa5\xef\xbd\xa1\xf0\x9d\xa8\xb5"); } // [C1, V3, V6, V7] +test { try toUnicodeFail("-\xe2\x80\x8c18.\xf0\x90\xab\xa5\xe3\x80\x82\xf0\x9d\xa8\xb5"); } // [C1, V3, V6] +test { try toUnicodeFail("-18.xn--rx9c.xn--382h"); } // [V3, V6] +test { try toUnicodeFail("xn---18-9m0a.xn--rx9c.xn--382h"); } // [C1, V3, V6] +test { try toUnicodeFail("xn----ddps939g.xn--382h"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----sgn18r3191a.xn--382h"); } // [C1, V3, V6, V7] +test { try toUnicodeFail("\xef\xb8\x92.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xe3\x80\x82.\xca\x8c\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B5, B6, X4_2] +test { try toUnicodeFail("\xe3\x80\x82.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B5, B6, X4_2] +test { try toUnicodeFail("..xn----73a596nuh9t"); } // [B5, B6, X4_2] +test { try toUnicodeFail("\xef\xb8\x92.\xc9\x85\xe1\xa0\xa3-\xf0\x90\xb9\xbd"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--y86c.xn----73a596nuh9t"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xef\xb8\x85\xef\xb8\x92\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } // [V7] +test { try toUnicodeFail("\xef\xb8\x85\xe3\x80\x82\xe3\x80\x82\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } // [X4_2] +test { try toUnicodeFail("..xn--t6f5138v"); } // [X4_2] +test { try toUnicodeFail("xn--y86c.xn--t6f5138v"); } // [V7] test { try toUnicodePass("xn--t6f5138v", "\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } test { try toAsciiPass("xn--t6f5138v", "xn--t6f5138v", false); } test { try toAsciiPass("xn--t6f5138v", "xn--t6f5138v", true); } test { try toUnicodePass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "\xf0\xa6\x80\xbe\xe1\xb3\xa0"); } test { try toAsciiPass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "xn--t6f5138v", false); } test { try toAsciiPass("\xf0\xa6\x80\xbe\xe1\xb3\xa0", "xn--t6f5138v", true); } +test { try toUnicodeFail("\xf0\x9e\xae\x91\xc3\x9f\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf0\x9e\xae\x91SS\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf0\x9e\xae\x91ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf0\x9e\xae\x91Ss\xf4\x8f\x9e\x9e\xe3\x80\x82\xe1\xa1\x81"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--ss-o412ac6305g.xn--07e"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--zca9432wb989f.xn--07e"); } // [B2, B3, V7] +test { 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] +test { try toUnicodeFail("xn--rgb2k6711c.xn--ec8nj3948b"); } // [B5, B6, V6, V7] +test { try toUnicodeFail("xn--rgb2k500fhq9j.xn--0ug78870a5sp9d"); } // [B5, B6, C1, V6, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-\xc3\x9f\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f.-\xc3\x9f\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f.-SS\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f.-ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f.-Ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7] +test { try toUnicodeFail("xn--u836e.xn---ss-gl2a"); } // [V3, V7] +test { try toUnicodeFail("xn--u836e.xn---ss-cn0at5l"); } // [C1, V3, V7] +test { try toUnicodeFail("xn--u836e.xn----qfa750ve7b"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-SS\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c=\xcc\xb8"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x95\x8f\xef\xbc\x8e-Ss\xe2\x80\x8c\xe2\x89\xa0"); } // [C1, V3, V7] test { 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); } +test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); } // [C1] test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); } +test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xef\xbd\xa1>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8"); } // [C1] test { 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); } +test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); } // [C1] test { try toAsciiPass("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); } +test { try toUnicodeFail("\xe1\xa1\x99\xe2\x80\x8c\xe3\x80\x82>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8"); } // [C1] test { try toUnicodePass("xn--p8e.xn--1ch3a7084l", "\xe1\xa1\x99.\xe2\x89\xaf\xf0\x90\x8b\xb2\xe2\x89\xa0"); } test { try toAsciiPass("xn--p8e.xn--1ch3a7084l", "xn--p8e.xn--1ch3a7084l", false); } test { 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", test { 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"); } test { try toAsciiPass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", false); } test { try toAsciiPass("\xe1\xa1\x99.>\xcc\xb8\xf0\x90\x8b\xb2=\xcc\xb8", "xn--p8e.xn--1ch3a7084l", true); } +test { try toUnicodeFail("xn--p8e650b.xn--1ch3a7084l"); } // [C1] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fo0dw409aq58qrn69d.xn--0-bgb."); } // [B1, V6, V7] +test { try toUnicodeFail("xn--fo0dw409aq58qrn69d.xn--sua6883w"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe1\x82\xa4.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe2\xb4\x84.\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--vkj.xn--4xa73ob5892c"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--vkj.xn--4xa73o3t5ajq467a"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--vkj.xn--3xa93o3t5ajq467a"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x82"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe1\x82\xa4\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xce\xa3"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe2\xb4\x84\xef\xbc\x8e\xe2\x80\x8d\xdc\xa1\xf3\xbb\xa3\x8b\xcf\x83"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--cnd.xn--4xa73ob5892c"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--cnd.xn--4xa73o3t5ajq467a"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--cnd.xn--3xa93o3t5ajq467a"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf2\xae\xb5\x9b\xd8\x93.\xe1\x82\xb5"); } // [V7] +test { try toUnicodeFail("\xf2\xae\xb5\x9b\xd8\x93.\xe2\xb4\x95"); } // [V7] +test { try toUnicodeFail("xn--1fb94204l.xn--dlj"); } // [V7] +test { try toUnicodeFail("xn--1fb94204l.xn--tnd"); } // [V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ofg13qyr21c.xn--0f9au6706d"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--ofg13qyr21c.xn--0ugc0116hix29k"); } // [B1, C1, C2, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xef\xbd\xa1\xf2\x92\x91\x81"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf3\xa0\x84\xb7\xe3\x80\x82\xf2\x92\x91\x81"); } // [C1, V7] +test { try toUnicodeFail(".xn--w720c"); } // [V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--w720c"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x92\x88\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f"); } // [C2, V7] +test { try toUnicodeFail("1.\xe0\xb7\x96\xe7\x84\x85.\xf3\x97\xa1\x99\xe2\x80\x8d\xea\xa1\x9f"); } // [C2, V6, V7] +test { try toUnicodeFail("1.xn--t1c6981c.xn--4c9a21133d"); } // [V6, V7] +test { try toUnicodeFail("1.xn--t1c6981c.xn--1ugz184c9lw7i"); } // [C2, V6, V7] +test { try toUnicodeFail("xn--t1c337io97c.xn--4c9a21133d"); } // [V7] +test { try toUnicodeFail("xn--t1c337io97c.xn--1ugz184c9lw7i"); } // [C2, V7] +test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82<\xcc\xb8.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x82\xe2\x89\xae.\xcf\x82\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3\xe2\x89\xae.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xce\xa3<\xcc\xb8.\xce\xa3\xf0\x9d\xaa\xa6\xf0\x9e\xa4\xb70"); } // [B1, B5, V6] +test { try toUnicodeFail("xn--4xa544kvid.xn--0-zmb55727aggma"); } // [B1, B5, V6] +test { try toUnicodeFail("xn--3xa744kvid.xn--0-xmb85727aggma"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83\xe2\x89\xae.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6] +test { try toUnicodeFail("\xe1\xb7\x8d\xcf\x83<\xcc\xb8.\xcf\x83\xf0\x9d\xaa\xa6\xf0\x9e\xa4\x950"); } // [B1, B5, V6] +test { try toUnicodeFail("\xf2\xa2\xa6\xbe\xc3\x9f\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf2\xa2\xa6\xbeSS\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf2\xa2\xa6\xbess\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf2\xa2\xa6\xbeSs\xd6\xb9\xf0\x90\xab\x99.\xd6\xad\xe0\xa2\xa1"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--ss-xjd6058xlz50g.xn--4cb62m"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--zca89v339zj118e.xn--4cb62m"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("-\xf0\x9e\xa3\x84\xef\xbd\xa1\xe2\x92\x88"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf0\x9e\xa3\x84\xe3\x80\x821."); } // [B1, V3] +test { try toUnicodeFail("xn----xc8r.b."); } // [B1, V3] +test { try toUnicodeFail("xn----xc8r.xn--tsh"); } // [B1, V3, V7] +test { 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] +test { try toUnicodeFail("\xf1\x88\xa0\xa2\xf0\x90\xab\x969\xe3\x80\x82\xd8\xbe\xf0\x91\x98\xbf"); } // [B5, V7] +test { try toUnicodeFail("xn--9-el5iv442t.xn--9gb0830l"); } // [B5, V7] +test { try toUnicodeFail("\xd9\xa8\xef\xb2\x8c\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d"); } // [B1, C2] +test { try toUnicodeFail("\xd9\xa8\xd9\x86\xd9\x85\xd9\xa8\xe1\xa9\x9d.\xe2\x80\x8d"); } // [B1, C2] +test { try toUnicodeFail("xn--hhbb5hc956w."); } // [B1] +test { try toUnicodeFail("xn--hhbb5hc956w.xn--1ug"); } // [B1, C2] +test { 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] +test { try toUnicodeFail("0.\xe1\x82\xa7\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1"); } // [B1, B5, V7] +test { try toUnicodeFail("0.\xe2\xb4\x87\xf3\x80\xb3\x91\xd8\xaa\xd8\xac\xd9\x85\xf1\xab\x83\xb1"); } // [B1, B5, V7] +test { try toUnicodeFail("0.xn--pgbe9ez79qd207lvff8b"); } // [B1, B5, V7] +test { 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] +test { try toUnicodeFail("0.xn--pgbe9e344c2725svff8b"); } // [B1, B5, V7] +test { try toUnicodeFail("\xf0\x91\x87\x80\xe2\x96\x8d.\xe2\x81\x9e\xe1\xa0\xb0"); } // [V6] +test { try toUnicodeFail("xn--9zh3057f.xn--j7e103b"); } // [V6] +test { try toUnicodeFail("\xe2\x80\x8d-\xd9\xba.\xf2\x8f\xaf\xa9"); } // [B1, C2, V7] +test { try toUnicodeFail("xn----qrc.xn--ts49b"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----qrc357q.xn--ts49b"); } // [B1, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--46e6675axzzhota.xn--hdh99p"); } // [B1, B5] +test { try toUnicodeFail("xn--46e6675axzzhota.xn--0ug06gu8f"); } // [B1, B5, C1] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail(".xn--cljl81825an3r4h"); } // [B5, B6, V7, X4_2] +test { try toUnicodeFail("xn--1ug.xn--cljl81825an3r4h"); } // [B1, B5, B6, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail(".xn--ynd036lq981an3r4h"); } // [B5, B6, V7, X4_2] +test { try toUnicodeFail("xn--1ug.xn--ynd036lq981an3r4h"); } // [B1, B5, B6, C2, V7] +test { try toUnicodeFail(".xn--sndl01647an3h1h"); } // [B5, B6, V7, X4_2] +test { try toUnicodeFail("xn--1ug.xn--sndl01647an3h1h"); } // [B1, B5, B6, C2, V7] +test { try toUnicodeFail("-3.\xe2\x80\x8d\xe3\x83\x8c\xe1\xa2\x95"); } // [C2, V3] +test { try toUnicodeFail("-3.xn--fbf115j"); } // [V3] +test { try toUnicodeFail("-3.xn--fbf739aq5o"); } // [C2, V3] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-pyd98921c.xn----nz8rh7531csznt"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--ss-pyd483x5k99b.xn----nz8rh7531csznt"); } // [B1, C2, V3, V7] +test { try toUnicodeFail("xn--zca34z68yzu83b.xn----nz8rh7531csznt"); } // [B1, C2, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn----utc4430jd3zd.xn--bp20d"); } // [B5, B6, V7] +test { try toUnicodeFail("xn----utc4430jd3zd.xn--0ugx6670i"); } // [B5, B6, C1, V7] +test { try toUnicodeFail("\xd9\xa5.\xd2\x84\xf0\x90\xa8\x97\xf0\x9d\xa9\x8b\xf0\xb4\xa4\x83"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--eib.xn--n3a0405kus8eft5l"); } // [B1, V6, V7] +test { try toUnicodeFail("-.\xf1\xb1\xbc\x93\xd9\x89\xf0\x90\xa8\xbf"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("-.xn--lhb4124khbq4b"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x82.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7] +test { 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] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6SS"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSS"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xabss"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6ss"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabss"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xabSs"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xe1\x84\x82\xe1\x85\xa8\xe1\x86\xb6Ss"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--4xa76659r.xn--ss-d64i8755h"); } // [B2, B3, V7] +test { 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] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xce\xa3.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf3\xbe\xac\xa8\xcf\x83.\xf0\x9e\xb6\x99\xeb\x85\xab\xc3\x9f"); } // [B2, B3, V7] +test { 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] +test { try toUnicodeFail("xn--4xa76659r.xn--zca5051g4h4i"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--3xa96659r.xn--zca5051g4h4i"); } // [B2, B3, V7] test { 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); } +test { 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] test { 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); } +test { try toUnicodeFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2] test { 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); } +test { 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] test { 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); } +test { try toUnicodeFail("\xe2\x84\xb2\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2] test { 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); } +test { try toUnicodeFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xe3\x80\x82=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2] test { 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); } +test { 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] test { try toUnicodePass("xn--u4e969b.xn--1ch", "\xe2\x85\x8e\xe1\x9f\x92.\xe2\x89\xa0"); } test { try toAsciiPass("xn--u4e969b.xn--1ch", "xn--u4e969b.xn--1ch", false); } test { 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 test { try toUnicodePass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "\xe2\x85\x8e\xe1\x9f\x92.\xe2\x89\xa0"); } test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "xn--u4e969b.xn--1ch", false); } test { try toAsciiPass("\xe2\x84\xb2\xe1\x9f\x92.\xe2\x89\xa0", "xn--u4e969b.xn--1ch", true); } +test { try toUnicodeFail("xn--u4e823bq1a.xn--0ugb89o"); } // [C1, C2] test { 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); } +test { try toUnicodeFail("\xe2\x85\x8e\xe1\x9f\x92\xe2\x80\x8d\xef\xbd\xa1=\xcc\xb8\xe2\x80\x8d\xe2\x80\x8c"); } // [C1, C2] test { 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); } +test { 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] +test { try toUnicodeFail("xn--u4e319b.xn--1ch"); } // [V7] +test { try toUnicodeFail("xn--u4e823bcza.xn--0ugb89o"); } // [C1, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3j9a14ak27osbz2o.xn--ljb175f"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--3j9a14ak27osbz2o.xn--ljb175f1wg"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8\xef\xbc\x8e>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("\xf1\xba\x94\xaf\xe0\xbe\xa8.>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("xn--4fd57150h.xn--hdh"); } // [V7] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3\xef\xbc\x8e\xf0\x90\x87\xbd"); } // [B1, C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe1\x82\xb3.\xf0\x90\x87\xbd"); } // [B1, C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93.\xf0\x90\x87\xbd"); } // [B1, C2, V6] +test { try toUnicodeFail("xn--blj7492l.xn--m27c"); } // [B1, B2, B3, V6] +test { try toUnicodeFail("xn--1ugz52c4i16a.xn--m27c"); } // [B1, C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xf0\x9e\xa1\x84\xe2\xb4\x93\xef\xbc\x8e\xf0\x90\x87\xbd"); } // [B1, C2, V6] +test { try toUnicodeFail("xn--rnd5552v.xn--m27c"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("xn--rnd379ex885a.xn--m27c"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3] +test { try toUnicodeFail("\xf0\x90\xaa\x92\xc3\x9f\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3] +test { try toUnicodeFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3] +test { try toUnicodeFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3] +test { try toUnicodeFail("xn--ss-tu9hw933a.xn--08e"); } // [B2, B3] +test { try toUnicodeFail("xn--zca2517f2hvc.xn--08e"); } // [B2, B3] +test { try toUnicodeFail("\xf0\x90\xaa\x92SS\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3] +test { try toUnicodeFail("\xf0\x90\xaa\x92ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3] +test { try toUnicodeFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa.\xe1\xa1\xa4"); } // [B2, B3] +test { try toUnicodeFail("\xf0\x90\xaa\x92Ss\xea\xa3\xaa\xef\xbc\x8e\xe1\xa1\xa4"); } // [B2, B3] +test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x82"); } // [V6] +test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xce\xa3"); } // [V6] +test { try toUnicodeFail("\xf0\x90\xa8\xbf\xf3\xa0\x86\x8c\xe9\xb8\xae\xf0\x91\x9a\xb6.\xcf\x83"); } // [V6] +test { try toUnicodeFail("xn--l76a726rt2h.xn--4xa"); } // [V6] +test { try toUnicodeFail("xn--l76a726rt2h.xn--3xa"); } // [V6] +test { try toUnicodeFail("\xe2\x92\x97\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3, V7] +test { try toUnicodeFail("16.\xf0\x9e\xa4\xac\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3] +test { try toUnicodeFail("16.\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3] +test { try toUnicodeFail("16.xn--ke6h.xn----4j0j"); } // [B1, V3] +test { try toUnicodeFail("\xe2\x92\x97\xf0\x9e\xa4\x8a\xe3\x80\x82-\xf0\x91\x9a\xb6"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--8shw466n.xn----4j0j"); } // [B1, V3, V7] +test { 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] +test { try toUnicodeFail("\xe0\xa2\xb3\xf0\x9e\xa4\xbf\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1."); } // [B1, B2, B3] +test { try toUnicodeFail("\xe0\xa2\xb3\xf0\x9e\xa4\x9d\xe9\x9a\xb9\xe3\x80\x82\xf0\x90\xb9\xa3\xda\x8f1."); } // [B1, B2, B3] +test { try toUnicodeFail("xn--8yb0383efiwk.xn--1-wsc3373r."); } // [B1, B2, B3] +test { 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] +test { try toUnicodeFail("xn--8yb0383efiwk.xn--ljb064mol4n"); } // [B1, B2, B3, V7] +test { 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] +test { try toUnicodeFail("\xe2\x90\xb3\xf0\x9a\x8e\x9b5\xd9\xa1.\xe1\xa1\xa28\xe0\xbd\xb2\xd8\x80"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--5-bqc410un435a.xn--8-rkc763epjj"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xa0.\xf0\x9f\x84\x80\xe2\x92\x92-\xf3\xa8\xb0\x88"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xa0.0.11.-\xf3\xa8\xb0\x88"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--7n0d.0.11.xn----8j07m"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--7n0d.xn----xcp9757q1s13g"); } // [B1, V7] +test { try toUnicodeFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3] +test { try toUnicodeFail("\xcf\x82-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3] +test { try toUnicodeFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3] +test { try toUnicodeFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c1-"); } // [C1, V3] +test { try toUnicodeFail("xn----zmb.1-"); } // [V3] +test { try toUnicodeFail("xn----zmb.xn--1--i1t"); } // [C1, V3] +test { try toUnicodeFail("xn----xmb.xn--1--i1t"); } // [C1, V3] +test { try toUnicodeFail("\xce\xa3-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3] +test { try toUnicodeFail("\xcf\x83-\xe3\x80\x82\xe2\x80\x8c\xf0\x9d\x9f\xad-"); } // [C1, V3] +test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe1\x82\xa4"); } // [V6] +test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe1\x82\xa4"); } // [V6] +test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2.\xf3\xa0\x84\xa9\xe2\xb4\x84"); } // [V6] +test { try toUnicodeFail("xn----ggf830f.xn--vkj"); } // [V6] +test { try toUnicodeFail("\xe1\x9c\xb4-\xe0\xb3\xa2\xef\xbc\x8e\xf3\xa0\x84\xa9\xe2\xb4\x84"); } // [V6] +test { try toUnicodeFail("xn----ggf830f.xn--cnd"); } // [V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ukb372n129m3rs7f.xn--1-fyd."); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--ukb372n129m3rs7f.xn--u3b240l"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xd6\xa4\xef\xbc\x8e\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c"); } // [B1, B3, C1, V6] +test { try toUnicodeFail("\xd6\xa4.\xdb\x81\xe1\xaa\xb3\xe2\x80\x8c"); } // [B1, B3, C1, V6] +test { try toUnicodeFail("xn--vcb.xn--0kb623h"); } // [B1, V6] +test { try toUnicodeFail("xn--vcb.xn--0kb623hm1d"); } // [B1, B3, C1, V6] +test { 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] +test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d\xef\xbc\x8e\xf0\x9e\xa6\x8a"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86\xe2\x89\xae\xe0\xab\x8d.\xf0\x9e\xa6\x8a"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xa2\xad\x8f\xe0\xa1\x86<\xcc\xb8\xe0\xab\x8d.\xf0\x9e\xa6\x8a"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--4vb80kq29ayo62l.xn--8g6h"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x98\xe2\x92\x88\xea\xa1\x8d\xe6\x93\x89"); } // [C2, V6, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\x80\x981.\xea\xa1\x8d\xe6\x93\x89"); } // [C2, V6] +test { try toUnicodeFail(".xn--1-1p4r.xn--s7uv61m"); } // [V6, X4_2] +test { try toUnicodeFail("xn--1ug.xn--1-1p4r.xn--s7uv61m"); } // [C2, V6] +test { try toUnicodeFail(".xn--tsh026uql4bew9p"); } // [V6, V7, X4_2] +test { try toUnicodeFail("xn--1ug.xn--tsh026uql4bew9p"); } // [C2, V6, V7] +test { try toUnicodeFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4\xe2\x89\xa0"); } // [B1, B3] +test { try toUnicodeFail("\xe2\x82\x88\xdf\x8b\xef\xbc\x8e\xef\xad\xa4=\xcc\xb8"); } // [B1, B3] +test { try toUnicodeFail("8\xdf\x8b.\xd9\xbf\xe2\x89\xa0"); } // [B1, B3] +test { try toUnicodeFail("8\xdf\x8b.\xd9\xbf=\xcc\xb8"); } // [B1, B3] +test { try toUnicodeFail("xn--8-zbd.xn--4ib883l"); } // [B1, B3] +test { try toUnicodeFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.\xe2\x92\x92\xd9\x82\xf0\x91\x8d\xa6"); } // [B1, B5, V7] +test { try toUnicodeFail("\xe1\xa2\xa1\xdf\x9e\xf2\xb9\x90\xa3.11.\xd9\x82\xf0\x91\x8d\xa6"); } // [B1, B5, V7] +test { try toUnicodeFail("xn--5sb596fi873t.11.xn--ehb4198k"); } // [B1, B5, V7] +test { try toUnicodeFail("xn--5sb596fi873t.xn--ehb336mvy7n"); } // [B1, B5, V7] +test { try toUnicodeFail("\xe0\xb9\x88-\xf0\x90\xb9\xba\xf0\x9d\x9f\x9c.\xcd\xa3\xdb\xa1\xe2\x92\x8f"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe0\xb9\x88-\xf0\x90\xb9\xba4.\xcd\xa3\xdb\xa18."); } // [B1, V6] +test { try toUnicodeFail("xn---4-owiz479s.xn--8-ihb69x."); } // [B1, V6] +test { try toUnicodeFail("xn---4-owiz479s.xn--eva20pjv9a"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe2\xab\x90\xef\xbd\xa1\xe1\x83\x80-\xf3\x83\x90\xa2"); } // [V7] +test { try toUnicodeFail("\xe2\xab\x90\xe3\x80\x82\xe1\x83\x80-\xf3\x83\x90\xa2"); } // [V7] +test { try toUnicodeFail("\xe2\xab\x90\xe3\x80\x82\xe2\xb4\xa0-\xf3\x83\x90\xa2"); } // [V7] +test { try toUnicodeFail("xn--r3i.xn----2wst7439i"); } // [V7] +test { try toUnicodeFail("\xe2\xab\x90\xef\xbd\xa1\xe2\xb4\xa0-\xf3\x83\x90\xa2"); } // [V7] +test { try toUnicodeFail("xn--r3i.xn----z1g58579u"); } // [V7] +test { try toUnicodeFail("\xf0\x91\x91\x82\xe2\x97\x8a\xef\xbc\x8e\xe2\xa6\x9f\xe2\x88\xa0"); } // [V6] +test { try toUnicodeFail("\xf0\x91\x91\x82\xe2\x97\x8a.\xe2\xa6\x9f\xe2\x88\xa0"); } // [V6] +test { try toUnicodeFail("xn--01h3338f.xn--79g270a"); } // [V6] +test { try toUnicodeFail("\xf0\xbf\x8c\xb0-\xd9\xa2\xe3\x80\x82\xf3\x8b\xb8\x9b\xea\xa1\x82"); } // [B5, B6, V7] +test { try toUnicodeFail("xn----dqc20828e.xn--bc9an2879c"); } // [B5, B6, V7] +test { try toUnicodeFail("\xd9\xb8\xe3\x80\x82\xf3\xa0\x8f\xac\xdd\x81\xf0\x9e\xaa\xad\xf0\x90\xb9\xaa"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("xn--mhb8f.xn--oob2585kfdsfsbo7h"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x90\xab\x86\xea\x8c\x84\xef\xbd\xa1\xe2\x80\x8d\xe1\xa3\xac"); } // [B1, B2, B3, C2] +test { try toUnicodeFail("\xf0\x90\xab\x86\xea\x8c\x84\xe3\x80\x82\xe2\x80\x8d\xe1\xa3\xac"); } // [B1, B2, B3, C2] +test { try toUnicodeFail("xn--y77ao18q.xn--wdf"); } // [B2, B3] +test { try toUnicodeFail("xn--y77ao18q.xn--wdf367a"); } // [B1, B2, B3, C2] +test { try toUnicodeFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("\xe2\x82\x80\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e\xe2\x89\xaf-"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("0\xd9\xa2\xe3\x80\x82\xf3\x85\xaa\x9e>\xcc\xb8-"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("xn--0-dqc.xn----ogov3342l"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("\xcc\x9c\xf0\x90\xb9\xab-\xf0\x9e\xaf\x83.\xf0\x90\x8b\xa4\xe0\xa1\x85"); } // [B1, V6, V7] +test { try toUnicodeFail("xn----gdb7046r692g.xn--3vb1349j"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6] +test { try toUnicodeFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6] +test { try toUnicodeFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe1\x83\x81\xd6\x94"); } // [B1, V6] +test { try toUnicodeFail("=\xcc\xb8\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x89\xa0\xe3\x80\x82\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6] +test { try toUnicodeFail("xn--1ch.xn--fcb363rk03mypug"); } // [B1, V6] +test { try toUnicodeFail("=\xcc\xb8\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x89\xa0\xef\xbd\xa1\xf0\x9d\xa9\x91\xf0\x90\xb9\xa9\xe2\xb4\xa1\xd6\x94"); } // [B1, V6] +test { try toUnicodeFail("xn--1ch.xn--fcb538c649rypog"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe1\x82\xa0\xf0\x90\xae\x80"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe1\x82\xa0\xf0\x90\xae\x80"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("\xf0\x96\xab\xb3=\xcc\xb8.\xe2\xb4\x80\xf0\x90\xae\x80"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("\xf0\x96\xab\xb3\xe2\x89\xa0.\xe2\xb4\x80\xf0\x90\xae\x80"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("xn--1ch9250k.xn--rkj6232e"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("xn--1ch9250k.xn--7md2659j"); } // [B1, B5, B6, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--wnb5a.xn--l0b161fis8gbp5m"); } // [B1, B5, B6, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--blb8114f.xn----gmg236cj6k"); } // [B1, V6] +test { try toUnicodeFail("xn--blb540ke10h.xn----gmg236cj6k"); } // [B1, C2, V6] +test { 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] +test { 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] +test { try toUnicodeFail("\xed\x97\x81\xf3\x98\x96\x99\xe0\xb8\xba\xf3\x9a\x8d\x9a\xe3\x80\x82\xda\xba4"); } // [V7] +test { 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] +test { try toUnicodeFail("xn--o4c1723h8g85gt4ya.xn--4-dvc"); } // [V7] +test { try toUnicodeFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe1\x82\xbe"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xad\xe3\x80\x82\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--lo0d.xn--mljx1099g"); } // [B1, V7] +test { try toUnicodeFail("xn--lo0d.xn--0ugx72cwi33v"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xad\xef\xbd\xa1\xf3\x83\xb1\x82\xe2\x80\x8c\xe2\xb4\x9e"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--lo0d.xn--2nd75260n"); } // [B1, V7] +test { try toUnicodeFail("xn--lo0d.xn--2nd949eqw95u"); } // [B1, C1, V7] +test { try toUnicodeFail("\xea\xa5\x93.\xcc\xbd\xf0\x91\x82\xbd\xe9\xa6\x8b"); } // [V6, V7] +test { try toUnicodeFail("xn--3j9a.xn--bua0708eqzrd"); } // [V6, V7] +test { try toUnicodeFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xef\xbd\xa1\xe4\x9c\x96"); } // [C2, V7] +test { try toUnicodeFail("\xf3\x88\xab\x9d\xf2\xaa\x9b\xb8\xe2\x80\x8d\xe3\x80\x82\xe4\x9c\x96"); } // [C2, V7] +test { try toUnicodeFail("xn--g138cxw05a.xn--k0o"); } // [V7] +test { try toUnicodeFail("xn--1ug30527h9mxi.xn--k0o"); } // [C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--8,-g9oy26fzu4d.xn--kmb6733w"); } // [U1] +test { try toUnicodeFail("xn--8,-g9oy26fzu4d.xn--kmb859ja94998b"); } // [C2, U1] +test { try toUnicodeFail("xn--c9e433epi4b3j20a.xn--kmb6733w"); } // [V7] +test { try toUnicodeFail("xn--c9e433epi4b3j20a.xn--kmb859ja94998b"); } // [C2, V7] +test { try toUnicodeFail("\xf0\x9e\xbd\x80.\xf0\x90\xb9\xb8\xf0\x9f\x9a\x96\xe0\xb8\xba"); } // [B1, V7] +test { try toUnicodeFail("xn--0n7h.xn--o4c9032klszf"); } // [B1, V7] +test { try toUnicodeFail("\xe1\x82\xb4\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1] +test { try toUnicodeFail("\xe1\x82\xb4\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1] +test { try toUnicodeFail("\xe2\xb4\x94\xe1\xa0\xb5\xe3\x80\x82\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1] +test { try toUnicodeFail("xn--o7e997h.xn--mmb9ml895e"); } // [B1] +test { try toUnicodeFail("\xe2\xb4\x94\xe1\xa0\xb5\xef\xbd\xa1\xf0\x90\xb9\xa7\xdd\x87\xdb\xb9"); } // [B1] +test { try toUnicodeFail("xn--snd659a.xn--mmb9ml895e"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("\xe1\x8d\x9f\xe1\xa1\x88\xe2\x80\x8c.\xe3\x80\x82-\xf0\x96\xbe\x90-"); } // [C1, V3, V6, X4_2] +test { try toUnicodeFail("xn--b7d82w..xn-----pe4u"); } // [V3, V6, X4_2] +test { try toUnicodeFail("xn--b7d82wo4h..xn-----pe4u"); } // [C1, V3, V6, X4_2] +test { try toUnicodeFail("xn--b7d82w.xn-----c82nz547a"); } // [V3, V6, V7] +test { try toUnicodeFail("xn--b7d82wo4h.xn-----c82nz547a"); } // [C1, V3, V6, V7] +test { try toUnicodeFail("\xe2\x92\x88\xd8\x81\xe2\x92\x96\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("1.\xd8\x8115.\xe2\x80\x8c.\xe1\xb7\xb0\xdf\x9b"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("1.xn--15-1pd..xn--2sb914i"); } // [B1, V6, V7, X4_2] +test { try toUnicodeFail("1.xn--15-1pd.xn--0ug.xn--2sb914i"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("xn--jfb347mib.xn--2sb914i"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--jfb844kmfdwb.xn--2sb914i"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe1\x82\xab"); } // [V3, V6] +test { try toUnicodeFail("\xf0\x9d\xa9\x9c\xe3\x80\x82-\xe0\xad\x8d\xe2\xb4\x8b"); } // [V3, V6] +test { try toUnicodeFail("xn--792h.xn----bse820x"); } // [V3, V6] +test { try toUnicodeFail("xn--792h.xn----bse632b"); } // [V3, V6, V7] +test { try toUnicodeFail("\xc3\x9f\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3] +test { try toUnicodeFail("\xc3\x9f\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d"); } // [B2, B3] +test { try toUnicodeFail("SS\xe1\x83\x80.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3] +test { try toUnicodeFail("ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe2\xb4\x9d"); } // [B2, B3] +test { try toUnicodeFail("Ss\xe2\xb4\xa0.\xd8\xa0\xe5\x88\xaf\xe1\x82\xbd"); } // [B2, B3] +test { try toUnicodeFail("xn--ss-j81a.xn--fgb670rovy"); } // [B2, B3] +test { try toUnicodeFail("xn--zca277t.xn--fgb670rovy"); } // [B2, B3] +test { try toUnicodeFail("xn--ss-j81a.xn--fgb845cb66c"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--ss-wgk.xn--fgb845cb66c"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--zca442f.xn--fgb845cb66c"); } // [B2, B3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--yxf24x4ol.xn--sib102gc69k"); } // [B5, B6, V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--bnd957c2pe.xn--sib102gc69k"); } // [B5, B6, V6, V7] +test { try toUnicodeFail("xn--bnd957cone.xn--sib102gc69k"); } // [B5, B6, V6, V7] +test { try toUnicodeFail("\xdb\xac.\xe0\xa2\xa2\xf0\x90\xb9\xab\xd9\xbc"); } // [B1, V6] +test { try toUnicodeFail("xn--8lb.xn--1ib31ily45b"); } // [B1, V6] +test { try toUnicodeFail("\xda\xb6\xdb\x9f\xe3\x80\x82\xe2\x82\x87\xea\xa0\x86"); } // [B1] +test { try toUnicodeFail("\xda\xb6\xdb\x9f\xe3\x80\x827\xea\xa0\x86"); } // [B1] +test { try toUnicodeFail("xn--pkb6f.xn--7-x93e"); } // [B1] +test { try toUnicodeFail("\xda\xb6\xdb\x9f.7\xea\xa0\x86"); } // [B1] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--rlj6323e.xn--gdh4944ob3x3e"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--rlj6323e.xn--0ugy6gn120eb103g"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("xn--7nd8101k.xn--gdh4944ob3x3e"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--7nd8101k.xn--0ugy6gn120eb103g"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xf0\x9d\x9f\xb5\xe9\x9a\x81\xe2\xaf\xae\xef\xbc\x8e\xe1\xa0\x8d\xe2\x80\x8c"); } // [C1] +test { try toUnicodeFail("9\xe9\x9a\x81\xe2\xaf\xae.\xe1\xa0\x8d\xe2\x80\x8c"); } // [C1] test { try toUnicodePass("xn--9-mfs8024b.", "9\xe9\x9a\x81\xe2\xaf\xae."); } test { try toUnicodePass("9\xe9\x9a\x81\xe2\xaf\xae.", "9\xe9\x9a\x81\xe2\xaf\xae."); } +test { try toUnicodeFail("xn--9-mfs8024b.xn--0ug"); } // [C1] +test { try toUnicodeFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1, V7] +test { try toUnicodeFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe1\x83\x83\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1] +test { try toUnicodeFail("8.\xf0\x90\xb9\xa7\xe3\x80\x82\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1] +test { try toUnicodeFail("8.xn--fo0d.xn--3ed972m6o8a"); } // [B1] +test { try toUnicodeFail("\xe2\x92\x8f\xf0\x90\xb9\xa7\xef\xbd\xa1\xe2\xb4\xa3\xe0\xbe\x84\xe5\xbd\xa6"); } // [B1, V7] +test { try toUnicodeFail("xn--0sh2466f.xn--3ed972m6o8a"); } // [B1, V7] +test { try toUnicodeFail("8.xn--fo0d.xn--3ed15dt93o"); } // [B1, V7] +test { try toUnicodeFail("xn--0sh2466f.xn--3ed15dt93o"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn---20-658jx1776d..xn----ykc7228efm46d"); } // [B1, V3, V7, X4_2] +test { try toUnicodeFail("xn----hdpu849bhis3e.xn----ykc7228efm46d"); } // [B1, V3, V7] +test { try toUnicodeFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8"); } // [C1, V6] +test { try toUnicodeFail("\xe1\xae\xac\xe1\x82\xac\xe2\x80\x8c\xcc\xa5\xe3\x80\x822"); } // [C1, V6] +test { try toUnicodeFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x822"); } // [C1, V6] +test { try toUnicodeFail("xn--mta176jjjm.c"); } // [V6] +test { try toUnicodeFail("xn--mta176j97cl2q.c"); } // [C1, V6] +test { try toUnicodeFail("\xe1\xae\xac\xe2\xb4\x8c\xe2\x80\x8c\xcc\xa5\xe3\x80\x82\xf0\x9d\x9f\xb8"); } // [C1, V6] +test { try toUnicodeFail("xn--mta930emri.c"); } // [V6, V7] +test { try toUnicodeFail("xn--mta930emribme.c"); } // [C1, V6, V7] +test { try toUnicodeFail("?\xe3\x80\x82\xea\xa0\x86\xd9\xa9\xf3\xa0\x92\xa9"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("?.xn--iib9583fusy0i"); } // [B1, V6, V7, U1] +test { 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] +test { 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] +test { try toUnicodeFail("\xf3\xa0\x84\x81\xcd\x9f\xe9\xa3\x9b\xe3\x80\x827\xe3\x80\x82\xeb\x88\x87\xe2\x89\xae"); } // [V6] +test { 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] +test { try toUnicodeFail("xn--9ua0567e.7.xn--gdh6767c"); } // [V6] +test { try toUnicodeFail("xn--9ua0567e.xn--7-ngou006d1ttc"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xb8\x89\xf0\x90\xb9\xb4\xe2\x80\x8d.\xe2\x80\x8c\xe9\xb3\xa5"); } // [B1, C1, C2] +test { try toUnicodeFail("xn--so0d.xn--6x6a"); } // [B1] +test { try toUnicodeFail("xn--0ugc6024p.xn--0ug1920c"); } // [B1, C1, C2] +test { 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] +test { try toUnicodeFail("\xf0\x9f\x8d\xae.\xe2\x80\x8d\xf3\xa0\x97\x92\xf0\x90\xa6\x81\xf0\x9d\xa8\x9d"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--lj8h.xn--ln9ci476aqmr2g"); } // [B1, V7] +test { try toUnicodeFail("xn--lj8h.xn--1ug6603gr1pfwq37h"); } // [B1, C2, V7] test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93\xe2\x80\x8d", "xn--2ib43l.xn--te6h", true); } +test { try toUnicodeFail("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93\xe2\x80\x8d"); } // [B3, C2] test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5\xe2\x80\x8d", "xn--2ib43l.xn--te6h", true); } +test { try toUnicodeFail("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5\xe2\x80\x8d"); } // [B3, C2] test { try toUnicodePass("xn--2ib43l.xn--te6h", "\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5"); } test { try toAsciiPass("xn--2ib43l.xn--te6h", "xn--2ib43l.xn--te6h", false); } test { 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-- test { try toUnicodePass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\xb5"); } test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "xn--2ib43l.xn--te6h", false); } test { try toAsciiPass("\xd9\xbd\xe0\xa5\x83.\xf0\x9e\xa4\x93", "xn--2ib43l.xn--te6h", true); } +test { try toUnicodeFail("xn--2ib43l.xn--1ugy711p"); } // [B3, C2] +test { try toUnicodeFail("\xd9\xa4\xe0\xa9\x8d-\xef\xbc\x8e\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90"); } // [B1, V3, V7] +test { try toUnicodeFail("\xd9\xa4\xe0\xa9\x8d-.\xf3\xa5\x9c\xbd\xe1\x80\xb9\xf1\xa6\xa6\x90"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----gqc711a.xn--9jd88234f3qm0b"); } // [B1, V3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4--e4j7831r.xn--gdh8754cz40c"); } // [B1, V6] +test { try toUnicodeFail("xn--4--e4j7831r.xn--0ugy6gjy5sl3ud"); } // [B1, C1, V6] +test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xef\xbe\xa0\xe0\xbe\x84\xe0\xbe\x96"); } // [C1, V6] +test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe1\x85\xa0\xe0\xbe\x84\xe0\xbe\x96"); } // [C1, V6] +test { try toUnicodeFail(".xn--3ed0b"); } // [V6, X4_2] +test { try toUnicodeFail("xn--0ug.xn--3ed0b"); } // [C1, V6] +test { try toUnicodeFail(".xn--3ed0b20h"); } // [V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--3ed0b20h"); } // [C1, V7] +test { try toUnicodeFail(".xn--3ed0by082k"); } // [V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--3ed0by082k"); } // [C1, V7] +test { 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] +test { try toUnicodeFail(">\xcc\xb8\xf2\x8d\x98\x85\xef\xbc\x8e\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7] +test { try toUnicodeFail("\xe2\x89\xaf\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7] +test { try toUnicodeFail(">\xcc\xb8\xf2\x8d\x98\x85.\xe2\x80\x8d\xf0\x90\x85\xbc\xf2\xb2\x87\x9b"); } // [C2, V7] +test { try toUnicodeFail("xn--hdh84488f.xn--xy7cw2886b"); } // [V7] +test { try toUnicodeFail("xn--hdh84488f.xn--1ug8099fbjp4e"); } // [C2, V7] +test { try toUnicodeFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2] +test { try toUnicodeFail("\xd9\x81\xc3\x9f\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2] +test { try toUnicodeFail("\xd9\x81SS\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2] +test { try toUnicodeFail("\xd9\x81ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2] +test { try toUnicodeFail("xn--ss-jvd2339x.xn--7-mm5i"); } // [B1, B2] +test { try toUnicodeFail("xn--zca96ys96y.xn--7-mm5i"); } // [B1, B2] +test { try toUnicodeFail("\xd9\x81SS\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2] +test { try toUnicodeFail("\xd9\x81ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2] +test { try toUnicodeFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xe3\x80\x827\xf0\x90\xab\xab"); } // [B1, B2] +test { try toUnicodeFail("\xd9\x81Ss\xf0\x90\xb0\xaf\xef\xbd\xa1\xf0\x9d\x9f\x95\xf0\x90\xab\xab"); } // [B1, B2] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-9qet02k.xn--e09co8cr9861c"); } // [B2, B5, B6, V7] +test { try toUnicodeFail("xn--zca685aoa95h.xn--e09co8cr9861c"); } // [B2, B5, B6, V7] +test { try toUnicodeFail("-\xef\xbd\xa1\xf3\xa0\x89\x97\xe2\x92\x8c\xf0\x9e\xaf\x9b"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xe3\x80\x82\xf3\xa0\x89\x975.\xf0\x9e\xaf\x9b"); } // [B1, V3, V7] +test { try toUnicodeFail("-.xn--5-zz21m.xn--6x6h"); } // [B1, V3, V7] +test { try toUnicodeFail("-.xn--xsh6367n1bi3e"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x82.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83.-\xe2\x89\xae\xd8\xae\xd8\xac"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83.-<\xcc\xb8\xd8\xae\xd8\xac"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--4xa92520c.xn----9mcf1400a"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--3xa13520c.xn----9mcf1400a"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xce\xa3\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-\xe2\x89\xae\xef\xb2\xab"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\xbc\x8e\x8f\xcf\x83\xef\xbc\x8e-<\xcc\xb8\xef\xb2\xab"); } // [B1, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--jnb34fs003a.xn--fhbo927bk128mpi24d"); } // [B5, B6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--dzb5191kezbrw47a.xn--p4e3841jz9tf"); } // [B1] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--2---u58b.xn--jlb8024k14g"); } // [B1, V2, V3] +test { try toUnicodeFail("xn--2---u58b.xn--jlb820ku99nbgj"); } // [B1, C1, V2, V3] +test { try toUnicodeFail("-\xf0\x98\x8a\xbb\xef\xbc\x8e\xe1\xa1\xae\xd8\xad-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("-\xf0\x98\x8a\xbb.\xe1\xa1\xae\xd8\xad-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("xn----bp5n.xn----bnc231l"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xe2\x80\x8c-\xc3\x9f\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c-\xc3\x9f\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c-SS\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c-ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c-Ss\xe3\x80\x82\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("-ss.xn--bhb925glx3p"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("xn---ss-8m0a.xn--bhb925glx3p"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("xn----qfa550v.xn--bhb925glx3p"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c-SS\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c-ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c-Ss\xef\xbd\xa1\xe1\xa2\xa3\xf0\x90\xb9\xad\xd8\xbf"); } // [B1, B5, B6, C1] test { 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"); } test { try toAsciiPass("\xea\xa7\x90\xd3\x80\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", false); } test { 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 test { 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"); } test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", false); } test { try toAsciiPass("\xea\xa7\x90\xd3\x8f\xe1\xae\xaa\xe0\xa3\xb6\xef\xbc\x8e\xeb\x88\xb5", "xn--s5a04sn4u297k.xn--2e1b", true); } +test { try toUnicodeFail("xn--d5a07sn4u297k.xn--2e1b"); } // [V7] +test { try toUnicodeFail("\xea\xa3\xaa\xef\xbd\xa1\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97"); } // [V6, V7] +test { try toUnicodeFail("\xea\xa3\xaa\xe3\x80\x82\xf0\x96\x84\xbf\xf0\x91\x86\xbe\xf3\xa0\x87\x97"); } // [V6, V7] +test { try toUnicodeFail("xn--3g9a.xn--ud1dz07k"); } // [V6, V7] +test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe2\xbe\x87"); } // [V7] +test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe2\xbe\x87"); } // [V7] +test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf\xe2\x89\xaf\xe8\x88\x9b"); } // [V7] +test { try toUnicodeFail("\xf3\x87\x93\x93\xf0\x91\x9a\xb3\xe3\x80\x82\xf1\x90\xb7\xbf>\xcc\xb8\xe8\x88\x9b"); } // [V7] +test { try toUnicodeFail("xn--3e2d79770c.xn--hdh0088abyy1c"); } // [V7] +test { try toUnicodeFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c\xef\xbc\x8e\xe2\x80\x8d\xe2\x80\x8c"); } // [B1, B3, C1, C2] +test { try toUnicodeFail("\xf0\x90\xab\x87\xd9\xa1\xe2\x80\x8c.\xe2\x80\x8d\xe2\x80\x8c"); } // [B1, B3, C1, C2] test { try toUnicodePass("xn--9hb7344k.", "\xf0\x90\xab\x87\xd9\xa1."); } test { try toUnicodePass("\xf0\x90\xab\x87\xd9\xa1.", "\xf0\x90\xab\x87\xd9\xa1."); } +test { try toUnicodeFail("xn--9hb652kv99n.xn--0ugb"); } // [B1, B3, C1, C2] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--bbf561cf95e57y3e.xn--hdh0834o7mj6b"); } // [V7] +test { try toUnicodeFail("xn--bbf561cf95e57y3e.xn--0ugz6gc910ejro8c"); } // [C1, V7] +test { try toUnicodeFail("\xe1\x83\x85.\xf0\x91\x84\xb3\xe3\x8a\xb8"); } // [V6] +test { try toUnicodeFail("\xe1\x83\x85.\xf0\x91\x84\xb343"); } // [V6] +test { try toUnicodeFail("\xe2\xb4\xa5.\xf0\x91\x84\xb343"); } // [V6] +test { try toUnicodeFail("xn--tlj.xn--43-274o"); } // [V6] +test { try toUnicodeFail("\xe2\xb4\xa5.\xf0\x91\x84\xb3\xe3\x8a\xb8"); } // [V6] +test { try toUnicodeFail("xn--9nd.xn--43-274o"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("0\xd9\xa3\xe3\x80\x82\xe1\x82\xb2\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0"); } // [B1, B5, B6] +test { try toUnicodeFail("0\xd9\xa3\xe3\x80\x82\xe2\xb4\x92\xe1\xa1\x87\xe0\xa3\xb2\xf0\x90\xb9\xa0"); } // [B1, B5, B6] +test { try toUnicodeFail("xn--0-fqc.xn--10b369eivp359r"); } // [B1, B5, B6] +test { 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] +test { try toUnicodeFail("xn--0-fqc.xn--10b180bnwgfy0z"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xef\xbe\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93"); } // [V7] +test { try toUnicodeFail("\xf1\x97\xaa\xa8\xf3\xa0\x84\x89\xe1\x85\xa0\xe0\xbe\xb7.\xf1\xb8\x9e\xb0\xea\xa5\x93"); } // [V7] +test { try toUnicodeFail("xn--kgd72212e.xn--3j9au7544a"); } // [V7] +test { try toUnicodeFail("xn--kgd36f9z57y.xn--3j9au7544a"); } // [V7] +test { try toUnicodeFail("xn--kgd7493jee34a.xn--3j9au7544a"); } // [V7] +test { try toUnicodeFail("\xd8\x98.\xdb\xb3\xe2\x80\x8c\xea\xa5\x93"); } // [C1, V6] +test { try toUnicodeFail("xn--6fb.xn--gmb0524f"); } // [V6] +test { try toUnicodeFail("xn--6fb.xn--gmb469jjf1h"); } // [C1, V6] +test { try toUnicodeFail("\xe1\xa1\x8c\xef\xbc\x8e\xef\xb8\x92\xe1\xa2\x91"); } // [V7] +test { try toUnicodeFail("\xe1\xa1\x8c.\xe3\x80\x82\xe1\xa2\x91"); } // [X4_2] +test { try toUnicodeFail("xn--c8e..xn--bbf"); } // [X4_2] +test { try toUnicodeFail("xn--c8e.xn--bbf9168i"); } // [V7] +test { try toUnicodeFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xef\xbd\xa1\xf0\x9e\xbd\xa7"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf0\x91\x8b\xaa\xe1\x81\xb3\xe3\x80\x82\xf0\x9e\xbd\xa7"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--xld7443k.xn--4o7h"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf0\x9e\xb7\x8f\xe3\x80\x82\xe1\xa0\xa2\xf2\x93\x98\x86"); } // [V7] +test { try toUnicodeFail("xn--hd7h.xn--46e66060j"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--iym9428c.xn--e1g3464g08p3b"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--iym9428c.xn--0ug46a7218cllv0c"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xef\xbd\xa1\xcc\x9d"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf1\xa0\xbb\x9f\xf0\x90\xb9\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xcc\x9d"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--ro0dw7dey96m.xn--eta"); } // [B1, B5, B6, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--39e4566fjv8bwmt6n.xn--myb6415k"); } // [B1, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1ch6704g.xn--m97cw2999c"); } // [B1, V7] +test { try toUnicodeFail("xn--1ch6704g.xn--0ug3840g51u4g"); } // [B1, C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--n3b91514e.xn--3j9al95p"); } // [B5, B6, V6, V7] +test { try toUnicodeFail("xn--n3b91514e.xn--1ug6815co9wc"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--n3b542bb085j.xn--3j9al95p"); } // [B5, B6, V6, V7] +test { try toUnicodeFail("xn--n3b542bb085j.xn--1ug6815co9wc"); } // [B1, C2, V7] +test { 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] +test { try toUnicodeFail("\xf2\x8c\x8b\x94\xf3\xa0\x86\x8e\xf3\xa0\x86\x97\xf0\x91\xb2\x95\xe3\x80\x82<\xcc\xb8"); } // [V7] +test { try toUnicodeFail("xn--4m3dv4354a.xn--gdh"); } // [V7] +test { try toUnicodeFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80\xe2\x89\xa0"); } // [V6, X4_2] +test { try toUnicodeFail("\xf3\xa0\x86\xa6.\xe0\xa3\xa3\xe6\x9a\x80=\xcc\xb8"); } // [V6, X4_2] +test { try toUnicodeFail(".xn--m0b461k3g2c"); } // [V6, X4_2] +test { 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] +test { 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] +test { try toUnicodeFail("xn--429ak76o.xn--zgb8a701kox37t"); } // [B2, B3, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1-px8q..xn--3kj4524l"); } // [B1, B5, B6, V6, V7, X4_2] +test { try toUnicodeFail("xn--1-tgn9827q..xn--3kj4524l"); } // [B1, B5, B6, C2, V6, V7, X4_2] +test { 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] +test { try toUnicodeFail("xn--tshz828m.xn--3kj4524l"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--1ug68oq348b.xn--3kj4524l"); } // [B1, B5, B6, C2, V6, V7] +test { try toUnicodeFail("xn--1-px8q..xn--knd8464v"); } // [B1, B5, B6, V6, V7, X4_2] +test { try toUnicodeFail("xn--1-tgn9827q..xn--knd8464v"); } // [B1, B5, B6, C2, V6, V7, X4_2] +test { try toUnicodeFail("xn--tshz828m.xn--knd8464v"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--1ug68oq348b.xn--knd8464v"); } // [B1, B5, B6, C2, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ybc0236vjvxgt5q0g.xn--4xa82737giye6b"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("xn--ybc0236vjvxgt5q0g.xn--3xa03737giye6b"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("\xdf\x93\xe3\x80\x82\xe2\x80\x8c\xf0\x90\xab\x80\xf2\x9e\xad\xb1"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--usb.xn--pw9ci1099a"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--usb.xn--0ug9553gm3v5d"); } // [B1, C1, V7] +test { try toUnicodeFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\x95\xf3\xa0\x86\x96"); } // [B1, V6] +test { try toUnicodeFail("\xe1\xb0\xae\xf0\x9e\x80\x9d.\xd6\xa6\xea\xa1\x9f\xf0\x9e\xa4\xb7\xf3\xa0\x86\x96"); } // [B1, V6] +test { try toUnicodeFail("xn--q1f4493q.xn--xcb8244fifvj"); } // [B1, V6] +test { try toUnicodeFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6\xef\xbc\x8e\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("\xe4\x82\xb9\xf3\xbe\x96\x85\xf0\x90\x8b\xa6.\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("xn--0on3543c5981i."); } // [V7] +test { try toUnicodeFail("xn--0on3543c5981i.xn--1ug"); } // [C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--7m9an32q.xn--8,-qle"); } // [B3, B5, B6, V6, U1] +test { try toUnicodeFail("xn--0uga8686hdgvd.xn--8,-qle"); } // [B3, B5, B6, C1, V6, U1] +test { try toUnicodeFail("xn--7m9an32q.xn--rpb6081w"); } // [B5, B6, V6, V7] +test { try toUnicodeFail("xn--0uga8686hdgvd.xn--rpb6081w"); } // [B5, B6, C1, V6, V7] +test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\x82\xa3>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3\xe2\x89\xaf"); } // [X4_2] +test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\x82\xa3>\xcc\xb8"); } // [X4_2] +test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83>\xcc\xb8"); } // [X4_2] +test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe2\xb4\x83\xe2\x89\xaf"); } // [X4_2] +test { try toUnicodeFail("..xn--hdh782b"); } // [X4_2] +test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83>\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe2\xb4\x83\xe2\x89\xaf"); } // [V7] +test { try toUnicodeFail("xn--y86c.xn--hdh782b"); } // [V7] +test { try toUnicodeFail("..xn--bnd622g"); } // [V7, X4_2] +test { try toUnicodeFail("xn--y86c.xn--bnd622g"); } // [V7] +test { try toUnicodeFail("\xf0\x90\xb9\xae\xef\xbd\xa1\xf3\xa0\xa2\xbc\xe2\x80\x8d"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xae\xe3\x80\x82\xf3\xa0\xa2\xbc\xe2\x80\x8d"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--mo0d.xn--wy46e"); } // [B1, V7] +test { try toUnicodeFail("xn--mo0d.xn--1ug18431l"); } // [B1, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--mlju223e..xn--eqb053q"); } // [B2, B3, B5, B6, X4_2] +test { try toUnicodeFail("xn--mlju223e..xn--eqb096jpgj"); } // [B2, B3, B5, B6, C2, X4_2] +test { 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] +test { 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] +test { try toUnicodeFail("xn--mlju223e.xn--eqb053qjk7l"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--mlju223e.xn--eqb096jpgj9y7r"); } // [B1, B5, B6, C2, V7] +test { try toUnicodeFail("xn--2nd0990k..xn--eqb053q"); } // [B2, B3, B5, B6, V7, X4_2] +test { try toUnicodeFail("xn--2nd0990k..xn--eqb096jpgj"); } // [B2, B3, B5, B6, C2, V7, X4_2] +test { try toUnicodeFail("xn--2nd0990k..xn--eqb228b"); } // [B2, B3, B5, B6, V7, X4_2] +test { try toUnicodeFail("xn--2nd0990k..xn--eqb228bgzm"); } // [B2, B3, B5, B6, C2, V7, X4_2] +test { try toUnicodeFail("xn--2nd0990k.xn--eqb053qjk7l"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--2nd0990k.xn--eqb096jpgj9y7r"); } // [B1, B5, B6, C2, V7] +test { try toUnicodeFail("xn--2nd0990k.xn--eqb228b583r"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--2nd0990k.xn--eqb228bgzmvp0t"); } // [B1, B5, B6, C2, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa6\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa63\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x863\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3] +test { try toUnicodeFail("xn--3-lvs.xn-----vue617w"); } // [B1, V3] +test { try toUnicodeFail("xn--3-rgnv99c.xn-----vue617w"); } // [B1, C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x86\xf0\x9d\x9f\xb9\xe3\x80\x82-\xe2\x83\x92-\xdf\x91"); } // [B1, C1, V3] +test { try toUnicodeFail("xn--3-i0g.xn-----vue617w"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--3-i0g939i.xn-----vue617w"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7] +test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7] +test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7] +test { try toUnicodeFail("\xe7\xae\x83\xe1\x83\x81-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7] +test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7] +test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xe3\x80\x82\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7] +test { try toUnicodeFail("xn----4wsr321ay823p.xn----tfot873s"); } // [V7] +test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1=\xcc\xb8-\xf0\x9f\xa4\x96"); } // [V7] +test { try toUnicodeFail("\xe7\xae\x83\xe2\xb4\xa1-\xf3\xa0\x81\x9d\xef\xbd\xa1\xe2\x89\xa0-\xf0\x9f\xa4\x96"); } // [V7] +test { try toUnicodeFail("xn----11g3013fy8x5m.xn----tfot873s"); } // [V7] test { try toUnicodePass("\xdf\xa5.\xda\xb5", "\xdf\xa5.\xda\xb5"); } test { try toAsciiPass("\xdf\xa5.\xda\xb5", "xn--dtb.xn--okb", false); } test { try toAsciiPass("\xdf\xa5.\xda\xb5", "xn--dtb.xn--okb", true); } test { try toUnicodePass("xn--dtb.xn--okb", "\xdf\xa5.\xda\xb5"); } test { try toAsciiPass("xn--dtb.xn--okb", "xn--dtb.xn--okb", false); } test { try toAsciiPass("xn--dtb.xn--okb", "xn--dtb.xn--okb", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\xbf"); } // [B1, C1, C2] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8d.\xf0\x9e\xa4\x9d"); } // [B1, C1, C2] +test { try toUnicodeFail(".xn--3e6h"); } // [X4_2] +test { try toUnicodeFail("xn--0ugc.xn--3e6h"); } // [B1, C1, C2] test { try toUnicodePass("xn--3e6h", "\xf0\x9e\xa4\xbf"); } test { try toAsciiPass("xn--3e6h", "xn--3e6h", false); } test { try toAsciiPass("xn--3e6h", "xn--3e6h", true); } @@ -1154,6 +3750,59 @@ test { try toAsciiPass("\xf0\x9e\xa4\xbf", "xn--3e6h", true); } test { try toUnicodePass("\xf0\x9e\xa4\x9d", "\xf0\x9e\xa4\xbf"); } test { try toAsciiPass("\xf0\x9e\xa4\x9d", "xn--3e6h", false); } test { try toAsciiPass("\xf0\x9e\xa4\x9d", "xn--3e6h", true); } +test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x82\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1] +test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xce\xa3\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1] +test { try toUnicodeFail("\xf0\x9f\x9c\x91\xf0\x90\xb9\xa7\xd8\xb9.\xcf\x83\xf0\x91\x8d\x8d\xe8\x9c\xb9"); } // [B1] +test { try toUnicodeFail("xn--4gb3736kk4zf.xn--4xa2248dy27d"); } // [B1] +test { try toUnicodeFail("xn--4gb3736kk4zf.xn--3xa4248dy27d"); } // [B1] +test { 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] +test { try toUnicodeFail("\xf2\xab\xa0\x90\xe3\x82\xb9\xf4\x86\x9f\xa4\xd9\xa9.\xf3\x9a\x83\x9f"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--iib777sp230oo708a.xn--7824e"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d\xef\xbc\x8e\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("\xf0\x9d\xaa\xa3\xf2\x95\xa1\x9d.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("xn--8c3hu7971a.xn--?-wec30g"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("XN--8C3HU7971A.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x82"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("Xn--8c3hu7971a.\xd6\x9a?\xdb\x81\xd9\x94"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("\xd9\xa0\xf2\xaa\x93\xb5\xe2\x80\x8c\xe3\x80\x82\xdd\x97"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--8hb82030l.xn--bpb"); } // [B1, V7] +test { try toUnicodeFail("xn--8hb852ke991q.xn--bpb"); } // [B1, C1, V7] +test { try toUnicodeFail("\xe1\x80\xba\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82-\xe2\x80\x8c"); } // [C1, V3, V6] +test { try toUnicodeFail("xn--bkd.-"); } // [V3, V6] +test { try toUnicodeFail("xn--bkd412fca.xn----sgn"); } // [C1, V3, V6] +test { try toUnicodeFail("\xef\xb8\x92\xef\xbd\xa1\xe1\xad\x84\xe1\xa1\x89"); } // [V6, V7] +test { try toUnicodeFail("\xe3\x80\x82\xe3\x80\x82\xe1\xad\x84\xe1\xa1\x89"); } // [V6, X4_2] +test { try toUnicodeFail("..xn--87e93m"); } // [V6, X4_2] +test { try toUnicodeFail("xn--y86c.xn--87e93m"); } // [V6, V7] +test { try toUnicodeFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5] +test { try toUnicodeFail("\xdd\x98\xc3\x9f\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5] +test { try toUnicodeFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5] +test { try toUnicodeFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5] +test { try toUnicodeFail("xn--ss-gke.xn--2-b5c641gfmf"); } // [B2, B3, B5] +test { try toUnicodeFail("xn--zca724a.xn--2-b5c641gfmf"); } // [B2, B3, B5] +test { try toUnicodeFail("\xdd\x98SS\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5] +test { try toUnicodeFail("\xdd\x98ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5] +test { try toUnicodeFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa82"); } // [B2, B3, B5] +test { try toUnicodeFail("\xdd\x98Ss\xe3\x80\x82\xe1\x8c\xab\xe1\xa2\x8a\xdd\xa8\xf0\x9d\x9f\x90"); } // [B2, B3, B5] +test { 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] +test { try toUnicodeFail("\xdf\x83\xf0\x9e\xb6\x87\xe1\x9a\xb2.\xe0\xa4\x82\xcd\x932\xe0\xa7\x8d"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("xn--esb067enh07a.xn--2-lgb874bjxa"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("-\xe1\xae\xab\xef\xb8\x92\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93"); } // [C2, V3, V7] +test { try toUnicodeFail("-\xe1\xae\xab\xe3\x80\x82\xe2\x80\x8d.\xf1\x92\xb6\x88\xf1\xa5\xb9\x93"); } // [C2, V3, V7] +test { try toUnicodeFail("xn----qml..xn--x50zy803a"); } // [V3, V7, X4_2] +test { try toUnicodeFail("xn----qml.xn--1ug.xn--x50zy803a"); } // [C2, V3, V7] +test { try toUnicodeFail("xn----qml1407i.xn--x50zy803a"); } // [V3, V7] +test { try toUnicodeFail("xn----qmlv7tw180a.xn--x50zy803a"); } // [C2, V3, V7] +test { try toUnicodeFail("\xf3\xa0\xa6\xae.\xe2\x89\xaf\xf0\x9e\x80\x86"); } // [V7] +test { try toUnicodeFail("\xf3\xa0\xa6\xae.>\xcc\xb8\xf0\x9e\x80\x86"); } // [V7] +test { try toUnicodeFail("xn--t546e.xn--hdh5166o"); } // [V7] +test { try toUnicodeFail("-\xf0\x91\x84\xb3\xf3\xa0\x8a\x97\xf0\x90\xb9\xa9\xe3\x80\x82\xf0\x9e\xae\xb1"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----p26i72em2894c.xn--zw6h"); } // [B1, V3, V7] test { try toUnicodePass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "\xda\xb9.\xe1\xa1\xb3"); } test { try toAsciiPass("\xda\xb9\xef\xbc\x8e\xe1\xa1\xb3\xe1\x85\x9f", "xn--skb.xn--g9e", false); } test { 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); } test { try toUnicodePass("\xda\xb9.\xe1\xa1\xb3", "\xda\xb9.\xe1\xa1\xb3"); } test { try toAsciiPass("\xda\xb9.\xe1\xa1\xb3", "xn--skb.xn--g9e", false); } test { try toAsciiPass("\xda\xb9.\xe1\xa1\xb3", "xn--skb.xn--g9e", true); } +test { try toUnicodeFail("xn--skb.xn--osd737a"); } // [V7] +test { try toUnicodeFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xef\xb8\x92\xf0\x9d\x9f\x95\xe0\xb4\x81"); } // [V7] +test { try toUnicodeFail("\xe3\xa8\x9b\xf0\x98\xb1\x8e.\xe3\x80\x827\xe0\xb4\x81"); } // [X4_2] +test { try toUnicodeFail("xn--mbm8237g..xn--7-7hf"); } // [X4_2] +test { try toUnicodeFail("xn--mbm8237g.xn--7-7hf1526p"); } // [V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn----dxc06304e.xn--gdh5020pk5c"); } // [B1, B3, V3, V7] +test { 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] +test { 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] test { 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); } +test { 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] test { 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); } +test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6"); } // [C1] test { 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); } +test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } // [C1] test { 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); } +test { try toUnicodeFail("SS\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe1\x82\xb6"); } // [C1] test { 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); } +test { try toUnicodeFail("ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } // [C1] test { 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); } +test { try toUnicodeFail("Ss\xe2\x80\x8c\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96"); } // [C1] test { try toUnicodePass("xn--ss-4epx629f.xn--ifh802b6a", "ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe2\xb4\xa1\xe2\xb4\x96"); } test { try toAsciiPass("xn--ss-4epx629f.xn--ifh802b6a", "xn--ss-4epx629f.xn--ifh802b6a", false); } test { 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\ test { 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"); } test { try toAsciiPass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", false); } test { try toAsciiPass("Ss\xea\xab\xb6\xe1\xa2\xa5.\xe2\x8a\xb6\xe1\x83\x81\xe2\xb4\x96", "xn--ss-4epx629f.xn--ifh802b6a", true); } +test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--ifh802b6a"); } // [C1] +test { try toUnicodeFail("xn--zca682johfi89m.xn--ifh802b6a"); } // [C1] test { 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); } +test { 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] test { 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); } +test { 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] test { 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); } +test { 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] test { 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); } +test { 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] +test { try toUnicodeFail("xn--ss-4epx629f.xn--5nd703gyrh"); } // [V7] +test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--5nd703gyrh"); } // [C1, V7] +test { try toUnicodeFail("xn--ss-4epx629f.xn--undv409k"); } // [V7] +test { try toUnicodeFail("xn--ss-4ep585bkm5p.xn--undv409k"); } // [C1, V7] +test { try toUnicodeFail("xn--zca682johfi89m.xn--undv409k"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x82\xf3\xa0\x81\x89"); } // [C2, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xce\xa3\xf3\xa0\x81\x89"); } // [C2, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xcf\x83\xf3\xa0\x81\x89"); } // [C2, V7] +test { try toUnicodeFail(".xn--4xa24344p"); } // [V7, X4_2] +test { try toUnicodeFail("xn--1ug.xn--4xa24344p"); } // [C2, V7] +test { try toUnicodeFail("xn--1ug.xn--3xa44344p"); } // [C2, V7] +test { try toUnicodeFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7] +test { try toUnicodeFail("\xf0\x9e\xb5\x91\xc3\x9f.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7] +test { try toUnicodeFail("\xf0\x9e\xb5\x91SS.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7] +test { try toUnicodeFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7] +test { try toUnicodeFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\xbd-"); } // [B2, B3, C2, V3, V7] +test { try toUnicodeFail("xn--ss-2722a.xn----z3c03218a"); } // [B2, B3, V3, V7] +test { try toUnicodeFail("xn--ss-2722a.xn----z3c011q9513b"); } // [B2, B3, C2, V3, V7] +test { try toUnicodeFail("xn--zca5423w.xn----z3c011q9513b"); } // [B2, B3, C2, V3, V7] +test { try toUnicodeFail("\xf0\x9e\xb5\x91ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7] +test { try toUnicodeFail("\xf0\x9e\xb5\x91Ss.\xdd\x91\xe2\x80\x8d\xf0\x9e\xa4\x9b-"); } // [B2, B3, C2, V3, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--qb2ds317a.xn----k26iq1483f"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn--1ugz808gdimf.xn----k26iq1483f"); } // [B1, C2, V3, V6, V7] +test { 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] +test { try toUnicodeFail("\xe2\x92\x92\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a"); } // [V3, V7] +test { try toUnicodeFail("11.\xf2\xa8\x98\x99\xf2\xb3\xb3\xa0\xf0\x91\x93\x80.-\xf3\x9e\xa1\x8a"); } // [V3, V7] +test { try toUnicodeFail("11.xn--uz1d59632bxujd.xn----x310m"); } // [V3, V7] +test { try toUnicodeFail("xn--3shy698frsu9dt1me.xn----x310m"); } // [V3, V7] +test { try toUnicodeFail("-\xef\xbd\xa1\xe2\x80\x8d"); } // [C2, V3] +test { try toUnicodeFail("-\xe3\x80\x82\xe2\x80\x8d"); } // [C2, V3] +test { try toUnicodeFail("-."); } // [V3] +test { try toUnicodeFail("-.xn--1ug"); } // [C2, V3] +test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?"); } // [U1] +test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x82\xc2\xb9-?"); } // [U1] +test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x821-?"); } // [U1] +test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x821-?"); } // [U1] +test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xce\xa31-?"); } // [U1] +test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xce\xa31-?"); } // [U1] +test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac.\xcf\x831-?"); } // [U1] +test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac.\xcf\x831-?"); } // [U1] +test { try toUnicodeFail("xn--88e732c.xn--1-?-pzc"); } // [U1] +test { try toUnicodeFail("xn--88e732c.xn--1-?-lzc"); } // [U1] +test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?"); } // [U1] +test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xce\xa3\xc2\xb9-?"); } // [U1] +test { try toUnicodeFail("\xe2\x89\xae\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?"); } // [U1] +test { try toUnicodeFail("<\xcc\xb8\xe1\xa1\xac\xef\xbc\x8e\xcf\x83\xc2\xb9-?"); } // [U1] +test { try toUnicodeFail("xn--88e732c.\xcf\x831-?"); } // [U1] +test { try toUnicodeFail("XN--88E732C.\xce\xa31-?"); } // [U1] +test { try toUnicodeFail("xn--88e732c.\xcf\x821-?"); } // [U1] +test { try toUnicodeFail("Xn--88e732c.\xcf\x821-?"); } // [U1] +test { try toUnicodeFail("Xn--88e732c.\xcf\x831-?"); } // [U1] +test { 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] +test { try toUnicodeFail("\xe1\x89\xac\xf2\x94\xa0\xbc\xf1\x81\x97\xb6\xe3\x80\x82\xf0\x90\xa8\xac8"); } // [V7] +test { try toUnicodeFail("xn--d0d41273c887z.xn--8-ob5i"); } // [V7] +test { try toUnicodeFail("\xf0\x90\xb1\xb2\xe3\x80\x82\xe8\x94\xab\xdd\xa6"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--389c.xn--qpb7055d"); } // [B5, B6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3-ep59g.xn--jhb5904fcp0h"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.\xc3\x9f"); } // [B5, B6] +test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.\xc3\x9f"); } // [B5, B6] +test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.SS"); } // [B5, B6] +test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.SS"); } // [B5, B6] +test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.ss"); } // [B5, B6] +test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.ss"); } // [B5, B6] +test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82=\xcc\xb8.Ss"); } // [B5, B6] +test { try toUnicodeFail("\xe8\x93\xb8\xd9\x82\xe2\x89\xa0.Ss"); } // [B5, B6] +test { try toUnicodeFail("xn--ehb015lnt1e.ss"); } // [B5, B6] +test { try toUnicodeFail("xn--ehb015lnt1e.xn--zca"); } // [B5, B6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3-prc71ls9j..xn--xo0dw109an237f"); } // [B1, V7, X4_2] +test { try toUnicodeFail("xn--3-prc71ls9j..xn--0ug3205g7eyf3c96h"); } // [B1, C1, V7, X4_2] +test { try toUnicodeFail("xn--zib94gfziuq1a.xn--xo0dw109an237f"); } // [B1, V7] +test { try toUnicodeFail("xn--zib94gfziuq1a.xn--0ug3205g7eyf3c96h"); } // [B1, C1, V7] +test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99"); } // [C2, V3] +test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99"); } // [C2, V3] +test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d-.\xe1\x83\x83\xf0\xa6\x9f\x99"); } // [C2, V3] +test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d-.\xe2\xb4\xa3\xf0\xa6\x9f\x99"); } // [C2, V3] +test { try toUnicodeFail("xn----zmb.xn--rlj2573p"); } // [V3] +test { try toUnicodeFail("xn----zmb048s.xn--rlj2573p"); } // [C2, V3] +test { try toUnicodeFail("xn----xmb348s.xn--rlj2573p"); } // [C2, V3] +test { try toUnicodeFail("xn----zmb.xn--7nd64871a"); } // [V3, V7] +test { try toUnicodeFail("xn----zmb048s.xn--7nd64871a"); } // [C2, V3, V7] +test { try toUnicodeFail("xn----xmb348s.xn--7nd64871a"); } // [C2, V3, V7] test { try toUnicodePass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "\xe2\x89\xa0.\xf0\x9f\x9e\xb36"); } test { try toAsciiPass("\xe2\x89\xa0\xe3\x80\x82\xf0\x9f\x9e\xb3\xf0\x9d\x9f\xb2", "xn--1ch.xn--6-dl4s", false); } test { 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 test { try toUnicodePass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "\xe2\x89\xa0.\xf0\x9f\x9e\xb36"); } test { try toAsciiPass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", false); } test { try toAsciiPass("=\xcc\xb8.\xf0\x9f\x9e\xb36", "xn--1ch.xn--6-dl4s", true); } +test { try toUnicodeFail("\xf3\x85\xac\xbd.\xe8\xa0\x94"); } // [V7] +test { try toUnicodeFail("xn--g747d.xn--xl2a"); } // [V7] +test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xeb\xbc\xbd"); } // [C2, V6] +test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d\xef\xbc\x8e\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80"); } // [C2, V6] +test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d.\xeb\xbc\xbd"); } // [C2, V6] +test { try toUnicodeFail("\xe0\xa3\xa6\xe2\x80\x8d.\xe1\x84\x88\xe1\x85\xa8\xe1\x87\x80"); } // [C2, V6] +test { try toUnicodeFail("xn--p0b.xn--e43b"); } // [V6] +test { try toUnicodeFail("xn--p0b869i.xn--e43b"); } // [C2, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--7-rwc839aj3073c.xn----ymc5uv818oghka"); } // [B1, V7] +test { try toUnicodeFail("-\xef\xbd\xa1\xdd\xbb"); } // [B1, V3] +test { try toUnicodeFail("-\xe3\x80\x82\xdd\xbb"); } // [B1, V3] +test { try toUnicodeFail("-.xn--cqb"); } // [B1, V3] +test { 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] +test { 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] +test { try toUnicodeFail("xn--8d1dg030h.-1.xn--1nb7163f"); } // [B1, B5, B6, V3, V6, V7] +test { try toUnicodeFail("xn--8d1dg030h.xn----u1c466tp10j"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("\xe7\x92\x9b\xe1\x9c\xb4\xda\xaf.-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("xn--ikb175frt4e.-"); } // [B1, B5, B6, V3] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--qyb07fj857a.xn--728bv72h"); } // [B1, B2, B3] +test { try toUnicodeFail("\xf1\x8d\xa8\xbd\xef\xbc\x8e\xf1\x8b\xb8\x95"); } // [V7] +test { try toUnicodeFail("\xf1\x8d\xa8\xbd.\xf1\x8b\xb8\x95"); } // [V7] +test { try toUnicodeFail("xn--pr3x.xn--rv7w"); } // [V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--2ib0338v.xn----zvs0199fo91g"); } // [B1, V3, V6] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--2ib0338v.xn----w0g2740ro9vg"); } // [B1, V3, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--039c42bq865a.xn--4-wvs27840bnrzm"); } // [V7] +test { 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] +test { try toUnicodeFail("xn--039c42bq865a.xn--4-t0g49302fnrzm"); } // [V7] +test { try toUnicodeFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.\xe2\x89\xa0"); } // [B1, V7] +test { try toUnicodeFail("4\xda\xbd\xef\xb8\x92\xf3\xa0\x91\xa5.=\xcc\xb8"); } // [B1, V7] +test { try toUnicodeFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.\xe2\x89\xa0"); } // [B1, V7] +test { try toUnicodeFail("4\xda\xbd\xe3\x80\x82\xf3\xa0\x91\xa5.=\xcc\xb8"); } // [B1, V7] +test { try toUnicodeFail("xn--4-kvc.xn--5136e.xn--1ch"); } // [B1, V7] +test { try toUnicodeFail("xn--4-kvc5601q2h50i.xn--1ch"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x9d\x9f\x93\xe3\x80\x82\xdb\x97"); } // [V6] +test { try toUnicodeFail("5\xe3\x80\x82\xdb\x97"); } // [V6] +test { try toUnicodeFail("5.xn--nlb"); } // [V6] +test { try toUnicodeFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe2\xbe\x95"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf2\xba\xb8\xa9.\xe8\xb0\xb7"); } // [C1, V7] +test { try toUnicodeFail("xn--i183d.xn--6g3a"); } // [V7] +test { try toUnicodeFail("xn--0ug26167i.xn--6g3a"); } // [C1, V7] +test { try toUnicodeFail("\xef\xb8\x92\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c"); } // [C1, C2, V3, V7] +test { try toUnicodeFail("\xe3\x80\x82\xf3\x8e\xb0\x87\xe2\x80\x8d.-\xdc\xbc\xe2\x80\x8c"); } // [C1, C2, V3, V7, X4_2] +test { try toUnicodeFail(".xn--hh50e.xn----t2c"); } // [V3, V7, X4_2] +test { try toUnicodeFail(".xn--1ug05310k.xn----t2c071q"); } // [C1, C2, V3, V7, X4_2] +test { try toUnicodeFail("xn--y86c71305c.xn----t2c"); } // [V3, V7] +test { try toUnicodeFail("xn--1ug1658ftw26f.xn----t2c071q"); } // [C1, C2, V3, V7] +test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8"); } // [B1] +test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xa4\x9f\xe3\x80\x82\xe1\xa1\xa8"); } // [B1] +test { try toUnicodeFail(">\xcc\xb8\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8"); } // [B1] +test { try toUnicodeFail("\xe2\x89\xaf\xf0\x9e\xa5\x81\xe3\x80\x82\xe1\xa1\xa8"); } // [B1] +test { try toUnicodeFail("xn--hdhz520p.xn--48e"); } // [B1] +test { try toUnicodeFail("\xe0\xbd\xb4\xf0\xab\xab\xb0\xf0\x9d\xa8\x84\xe3\x80\x82\xdc\x93\xf0\x90\xb9\xa6"); } // [B1, V6] +test { try toUnicodeFail("xn--ned8985uo92e.xn--dnb6395k"); } // [B1, V6] +test { try toUnicodeFail("\xcc\xbc\xdf\x9b\xe2\x81\xb7\xf0\x9d\x9f\xb9\xef\xbd\xa1\xf0\x9d\x9f\xac"); } // [B1, V6] +test { try toUnicodeFail("\xcc\xbc\xdf\x9b73\xe3\x80\x820"); } // [B1, V6] +test { try toUnicodeFail("xn--73-9yb648b.a"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xef\xbc\x8e\xf0\x9d\x9f\x97"); } // [C2] +test { try toUnicodeFail("\xe2\x80\x8d.j"); } // [C2] +test { try toUnicodeFail("\xe2\x80\x8d.J"); } // [C2] +test { try toUnicodeFail(".j"); } // [X4_2] +test { try toUnicodeFail("xn--1ug.j"); } // [C2] test { try toUnicodePass("j", "j"); } test { try toAsciiPass("j", "j", false); } test { try toAsciiPass("j", "j", true); } +test { try toUnicodeFail("\xdd\xb9\xe1\xa1\xad\xf0\xaa\x95\x88\xe3\x80\x82\xda\xb6\xe0\xa3\x99"); } // [B2, B3] +test { try toUnicodeFail("xn--9pb497fs270c.xn--pkb80i"); } // [B2, B3] +test { 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] +test { 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] +test { try toUnicodeFail("\xdc\xa65\xdf\xa2\xea\xb2\x99\xe3\x80\x82\xe1\xb3\xb4\xf0\x90\xb7\x9a"); } // [B1, B2, B3, V6, V7] +test { 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] +test { try toUnicodeFail("xn--5-j1c97c2483c.xn--e7f2093h"); } // [B1, B2, B3, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--5cb172r175fug38a.xn--mlj"); } // [V7] +test { try toUnicodeFail("xn--5cb172r175fug38a.xn--0uga051h"); } // [C1, V7] +test { try toUnicodeFail("xn--5cb347co96jug15a.xn--2nd"); } // [V7] +test { try toUnicodeFail("xn--5cb347co96jug15a.xn--2nd059ea"); } // [C1, V7] +test { try toUnicodeFail("\xf0\x90\x8b\xb0\xe3\x80\x82\xf3\x91\x93\xb1"); } // [V7] +test { try toUnicodeFail("xn--k97c.xn--q031e"); } // [V7] +test { try toUnicodeFail("\xf3\xa1\x8e\xa6\xe1\x9e\xb4\xe0\xad\x8d.\xf0\x90\xb9\xbe"); } // [B1, V7] +test { try toUnicodeFail("xn--9ic59305p.xn--2o0d"); } // [B1, V7] +test { try toUnicodeFail("xn--9ic364dho91z.xn--2o0d"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--i0b436pkl2g2h42a.xn--0-8le8997mulr5f"); } // [V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--i0b601b6r7l2hs0a.xn--0-8le8997mulr5f"); } // [V6, V7] +test { try toUnicodeFail("\xde\x84\xef\xbc\x8e\xf0\x9e\xa1\x9d\xd8\x81"); } // [V7] +test { try toUnicodeFail("\xde\x84.\xf0\x9e\xa1\x9d\xd8\x81"); } // [V7] +test { try toUnicodeFail("xn--lqb.xn--jfb1808v"); } // [V7] +test { try toUnicodeFail("\xe0\xab\x8d\xe2\x82\x83.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4"); } // [V6] +test { try toUnicodeFail("\xe0\xab\x8d3.8\xea\xa3\x84\xe2\x80\x8d\xf0\x9f\x83\xa4"); } // [V6] +test { try toUnicodeFail("xn--3-yke.xn--8-sl4et308f"); } // [V6] +test { try toUnicodeFail("xn--3-yke.xn--8-ugnv982dbkwm"); } // [V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fax-4c9a1676t.xn--6e6h"); } // [B6] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6] +test { try toUnicodeFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0"); } // [B6] +test { try toUnicodeFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa4\xa0"); } // [B6] +test { try toUnicodeFail("FAX\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6] +test { try toUnicodeFail("Fax\xe2\xa9\xb7\xf0\x9d\x86\x86.\xf0\x9e\xa5\x82"); } // [B6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--cld333gn31h0158l.xn--3g0d"); } // [V7] +test { try toUnicodeFail("xn--cld333gn31h0158l.xn--psd1510k"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--cld333gn31h0158l.xn--cl7c96v"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe9\xb1\x8a\xe3\x80\x82\xe2\x80\x8c"); } // [C1] test { try toUnicodePass("xn--rt6a.", "\xe9\xb1\x8a."); } test { try toUnicodePass("\xe9\xb1\x8a.", "\xe9\xb1\x8a."); } +test { try toUnicodeFail("xn--rt6a.xn--0ug"); } // [C1] +test { try toUnicodeFail("8\xf0\x90\xb9\xa3\xef\xbc\x8e\xf0\x91\x8d\xa8"); } // [B1, V6] +test { try toUnicodeFail("8\xf0\x90\xb9\xa3.\xf0\x91\x8d\xa8"); } // [B1, V6] +test { try toUnicodeFail("xn--8-d26i.xn--0p1d"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x8f\xb9\xf0\x90\xa7\x80\xef\xbc\x8e\xf0\x90\xab\xaf"); } // [B1] +test { try toUnicodeFail("\xe2\x8f\xb9\xf0\x90\xa7\x80.\xf0\x90\xab\xaf"); } // [B1] +test { try toUnicodeFail("xn--qoh9161g.xn--1x9c"); } // [B1] +test { try toUnicodeFail("\xf0\x9e\xa4\xba\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x9e\xa4\xba\xdf\x8c4.\xe2\x80\x8d"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x9e\xa4\x98\xdf\x8c4.\xe2\x80\x8d"); } // [B1, C2] test { try toUnicodePass("xn--4-0bd15808a.", "\xf0\x9e\xa4\xba\xdf\x8c4."); } test { try toUnicodePass("\xf0\x9e\xa4\xba\xdf\x8c4.", "\xf0\x9e\xa4\xba\xdf\x8c4."); } test { try toUnicodePass("\xf0\x9e\xa4\x98\xdf\x8c4.", "\xf0\x9e\xa4\xba\xdf\x8c4."); } +test { try toUnicodeFail("xn--4-0bd15808a.xn--1ug"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x9e\xa4\x98\xdf\x8c4\xef\xbc\x8e\xe2\x80\x8d"); } // [B1, C2] +test { try toUnicodeFail("\xe2\x92\x97\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2"); } // [B1, V3, V7] +test { try toUnicodeFail("16.\xe0\xa6\x81\xe2\x83\xaf-.\xe0\xa3\xa2\xe2\x80\xa2"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("16.xn----z0d801p.xn--l0b810j"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn----z0d801p6kd.xn--l0b810j"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xef\xbd\xa1\xe4\x8f\x9b"); } // [V3] +test { try toUnicodeFail("-\xe3\x80\x82\xe4\x8f\x9b"); } // [V3] +test { try toUnicodeFail("-.xn--xco"); } // [V3] +test { try toUnicodeFail("\xe2\x80\x8c\xf1\x92\x83\xa0\xef\xbc\x8e\xe2\x80\x8d"); } // [C1, C2, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf1\x92\x83\xa0.\xe2\x80\x8d"); } // [C1, C2, V7] +test { try toUnicodeFail("xn--dj8y."); } // [V7] +test { try toUnicodeFail("xn--0ugz7551c.xn--1ug"); } // [C1, C2, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("1.xn--svh00804k.xn--dljv223ee5t2d"); } // [B1, V7] +test { try toUnicodeFail("1.xn--svh00804k.xn--1ug352csp0psg45e"); } // [B1, C2, V7] +test { 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] +test { try toUnicodeFail("xn--tsh0nz9380h.xn--dljv223ee5t2d"); } // [B1, V7] +test { try toUnicodeFail("xn--tsh0nz9380h.xn--1ug352csp0psg45e"); } // [B1, C2, V7] +test { try toUnicodeFail("1.xn--svh00804k.xn--tnd1990ke579c"); } // [B1, V7] +test { try toUnicodeFail("1.xn--svh00804k.xn--tnd969erj4psgl3e"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--tsh0nz9380h.xn--tnd1990ke579c"); } // [B1, V7] +test { try toUnicodeFail("xn--tsh0nz9380h.xn--tnd969erj4psgl3e"); } // [B1, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn---ss-21t18904a.xn--jfb197i791bi6x4c"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("xn----qfa310pg973b.xn--jfb197i791bi6x4c"); } // [B1, B2, B3, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xf0\x91\x87\x80.\xf3\xa0\xa8\xb1"); } // [V6, V7] +test { try toUnicodeFail("xn--wd1d.xn--k946e"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("\xe2\x90\x923\xda\x88\xe3\x80\x820\xf0\x90\xa8\xbf\xf0\x90\xb9\x86"); } // [B1, V7] +test { try toUnicodeFail("xn--3-jsc897t.xn--0-sc5iy3h"); } // [B1, V7] +test { try toUnicodeFail("\xdd\xab\xef\xbc\x96\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3"); } // [B1, V6] +test { try toUnicodeFail("\xdd\xab6\xe0\xaa\x81\xe0\xa2\xa6\xe3\x80\x82\xe1\xb7\xa3"); } // [B1, V6] +test { try toUnicodeFail("xn--6-h5c06gj6c.xn--7eg"); } // [B1, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn----0kc8501a5399e.xn--ss06b"); } // [B1, V7] +test { try toUnicodeFail("xn----0kc8501a5399e.xn--1ugy3204f"); } // [B1, B6, C2, V7] +test { try toUnicodeFail("xn----0kc662fc152h.xn--ss06b"); } // [B1, V7] +test { try toUnicodeFail("xn----0kc662fc152h.xn--1ugy3204f"); } // [B1, B6, C2, V7] test { 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"); } test { 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); } test { 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 test { 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"); } test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "xn--tc1a.xn--5ss-3m2a5009e", false); } test { try toAsciiPass("\xe2\xbe\x86\xef\xbc\x8e\xea\xa1\x88\xef\xbc\x95\xe2\x89\xafSs", "xn--tc1a.xn--5ss-3m2a5009e", true); } +test { try toUnicodeFail("\xe0\xab\x8d8\xe2\x80\x8d\xef\xbc\x8e\xf2\xbe\x82\x88\xdd\x9c"); } // [B1, B5, B6, C2, V6, V7] +test { try toUnicodeFail("\xe0\xab\x8d8\xe2\x80\x8d.\xf2\xbe\x82\x88\xdd\x9c"); } // [B1, B5, B6, C2, V6, V7] +test { try toUnicodeFail("xn--8-yke.xn--gpb79046m"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--8-yke534n.xn--gpb79046m"); } // [B1, B5, B6, C2, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ycc893jqh38rb6fa.xn--7-5uc53836ixt41c"); } // [B5, B6, V7] test { try toUnicodePass("\xf0\x9e\xa4\xaa.\xcf\x82", "\xf0\x9e\xa4\xaa.\xcf\x82"); } test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xcf\x82", "xn--ie6h.xn--3xa", false); } test { 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 test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xce\xa3", "xn--ie6h.xn--4xa", false); } test { try toAsciiPass("\xf0\x9e\xa4\xaa.\xce\xa3", "xn--ie6h.xn--4xa", true); } test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xcf\x82", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xcf\x82"); } // [C1] test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xcf\x82", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xcf\x82"); } // [C1] test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x82", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x82"); } // [C1] test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xce\xa3", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xe3\x80\x82\xce\xa3"); } // [C1] test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x83", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xe3\x80\x82\xcf\x83"); } // [C1] test { try toUnicodePass("xn--ilj.xn--4xa", "\xe2\xb4\x9a.\xcf\x83"); } test { try toAsciiPass("xn--ilj.xn--4xa", "xn--ilj.xn--4xa", false); } test { 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); } test { try toUnicodePass("\xe1\x82\xba.\xcf\x83", "\xe2\xb4\x9a.\xcf\x83"); } test { try toAsciiPass("\xe1\x82\xba.\xcf\x83", "xn--ilj.xn--4xa", false); } test { try toAsciiPass("\xe1\x82\xba.\xcf\x83", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("xn--0ug262c.xn--4xa"); } // [C1] +test { try toUnicodeFail("xn--0ug262c.xn--3xa"); } // [C1] test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x82", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x82"); } // [C1] test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xce\xa3", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xba\xef\xbd\xa1\xce\xa3"); } // [C1] test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x83", "xn--ilj.xn--4xa", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x9a\xef\xbd\xa1\xcf\x83"); } // [C1] +test { try toUnicodeFail("xn--ynd.xn--4xa"); } // [V7] +test { try toUnicodeFail("xn--ynd.xn--3xa"); } // [V7] +test { try toUnicodeFail("xn--ynd759e.xn--4xa"); } // [C1, V7] +test { try toUnicodeFail("xn--ynd759e.xn--3xa"); } // [C1, V7] +test { try toUnicodeFail("\xf0\x9e\xa4\x83\xef\xbc\x8e\xf0\x90\xb9\xa6"); } // [B1] +test { try toUnicodeFail("\xf0\x9e\xa4\x83.\xf0\x90\xb9\xa6"); } // [B1] +test { try toUnicodeFail("\xf0\x9e\xa4\xa5.\xf0\x90\xb9\xa6"); } // [B1] +test { try toUnicodeFail("xn--de6h.xn--eo0d"); } // [B1] +test { try toUnicodeFail("\xf0\x9e\xa4\xa5\xef\xbc\x8e\xf0\x90\xb9\xa6"); } // [B1] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xcc\x90\xea\xa5\x93\xea\xa1\x8e"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\xbe\x95\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe8\xb0\xb7\xe3\x80\x82\xe2\x80\x8c\xea\xa5\x93\xcc\x90\xea\xa1\x8e"); } // [C1, C2] +test { try toUnicodeFail("xn--6g3a.xn--0sa8175flwa"); } // [V6] +test { try toUnicodeFail("xn--1ug0273b.xn--0sa359l6n7g13a"); } // [C1, C2] +test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1] +test { 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] +test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1] +test { try toUnicodeFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\x90\xe2\x80\x8c"); } // [B2, B3, C1] +test { try toUnicodeFail("\xda\xaa-\xe1\x84\x82\xe1\x85\xb0\xe1\x86\xbf.\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1] +test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94.\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1] +test { try toUnicodeFail("xn----guc3592k.xn--qe6h"); } // [B2, B3] +test { try toUnicodeFail("xn----guc3592k.xn--0ug7611p"); } // [B2, B3, C1] +test { 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] +test { try toUnicodeFail("\xda\xaa-\xeb\x89\x94\xef\xbc\x8e\xf0\x9e\xa4\xb2\xe2\x80\x8c"); } // [B2, B3, C1] +test { 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] +test { 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] +test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x82.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xce\xa3.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf1\x94\xb2\xb55\xe1\xa6\x9b\xcf\x83.\xea\xa3\x84\xdd\xbb\xdc\xb8\xe1\xb3\x92"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--5-0mb988ng603j.xn--fob7kk44dl41k"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--5-ymb298ng603j.xn--fob7kk44dl41k"); } // [B1, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] test { try toUnicodePass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "\xe6\xb7\xbd.\xe1\xa0\xbe"); } test { try toAsciiPass("\xe6\xb7\xbd\xe3\x80\x82\xe1\xa0\xbe", "xn--34w.xn--x7e", false); } test { 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); } test { try toUnicodePass("\xe6\xb7\xbd.\xe1\xa0\xbe", "\xe6\xb7\xbd.\xe1\xa0\xbe"); } test { try toAsciiPass("\xe6\xb7\xbd.\xe1\xa0\xbe", "xn--34w.xn--x7e", false); } test { try toAsciiPass("\xe6\xb7\xbd.\xe1\xa0\xbe", "xn--34w.xn--x7e", true); } +test { try toUnicodeFail("\xf0\x90\xb9\xb4\xf0\x91\x98\xb7\xe3\x80\x82-"); } // [B1, V3] +test { try toUnicodeFail("xn--so0do6k.-"); } // [B1, V3] +test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8"); } // [V6, V7] +test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe1\x82\xb3\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8"); } // [V6, V7] +test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xe3\x80\x82\xf0\x91\x84\xa8"); } // [V6, V7] +test { try toUnicodeFail("xn--8di78qvw32y.xn--k80d"); } // [V6, V7] +test { try toUnicodeFail("\xf2\xac\xa8\xa9\xe2\xb4\x93\xe2\x9d\x93\xef\xbd\xa1\xf0\x91\x84\xa8"); } // [V6, V7] +test { try toUnicodeFail("xn--rnd896i0j14q.xn--k80d"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82SS\xe1\x82\xa3"); } // [B1, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83"); } // [B1, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82Ss\xe2\xb4\x83"); } // [B1, C1] +test { try toUnicodeFail("xn--ykj9323eegwf.xn--ss-151a"); } // [B1] +test { try toUnicodeFail("xn--0ug332c3q0pr56g.xn--ss-151a"); } // [B1, C1] +test { try toUnicodeFail("xn--0ug332c3q0pr56g.xn--zca417t"); } // [B1, C1] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1SS\xe1\x82\xa3"); } // [B1, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\xae\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83"); } // [B1, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1Ss\xe2\xb4\x83"); } // [B1, C1] +test { try toUnicodeFail("xn--fnd1201kegrf.xn--ss-fek"); } // [B1, V7] +test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--ss-fek"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--zca681f"); } // [B1, C1, V7] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xe3\x80\x82ss\xe2\xb4\x83"); } // [B1, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xe3\x80\x82Ss\xe2\xb4\x83"); } // [B1, C1] +test { try toUnicodeFail("xn--fnd1201kegrf.xn--ss-151a"); } // [B1, V7] +test { try toUnicodeFail("xn--fnd599eyj4pr50g.xn--ss-151a"); } // [B1, C1, V7] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe2\xb4\x87\xef\xbd\xa1ss\xe2\xb4\x83"); } // [B1, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xb9\xa1\xf0\x9e\xa4\x8c\xe1\x82\xa7\xef\xbd\xa1Ss\xe2\xb4\x83"); } // [B1, C1] +test { try toUnicodeFail("\xe1\x9f\xbf\xef\xbd\xa1\xf0\x9e\xac\xb3"); } // [V7] +test { try toUnicodeFail("\xe1\x9f\xbf\xe3\x80\x82\xf0\x9e\xac\xb3"); } // [V7] +test { try toUnicodeFail("xn--45e.xn--et6h"); } // [V7] +test { try toUnicodeFail("\xd9\x92\xe2\x80\x8d\xef\xbd\xa1\xe0\xb3\x8d\xf0\x91\x9a\xb3"); } // [C2, V6] +test { try toUnicodeFail("\xd9\x92\xe2\x80\x8d\xe3\x80\x82\xe0\xb3\x8d\xf0\x91\x9a\xb3"); } // [C2, V6] +test { try toUnicodeFail("xn--uhb.xn--8tc4527k"); } // [V6] +test { try toUnicodeFail("xn--uhb882k.xn--8tc4527k"); } // [C2, V6] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa5\x83<\xcc\xb8\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("-=\xcc\xb8\xe1\xa0\xbb.\xdd\xad\xf0\x9e\xa4\xa1<\xcc\xb8\xf3\x9f\xb7\xba"); } // [B1, B2, B3, V3, V7] +test { 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] +test { try toUnicodeFail("xn----g6j886c.xn--xpb049kk353abj99f"); } // [B1, B2, B3, V3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--zrb797kdm1oes34i.xn--bwb394k8k2o25n6d"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xe2\x89\xa0\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9"); } // [B1, V7] +test { try toUnicodeFail("=\xcc\xb8\xf3\xa6\x8b\x82.\xd8\x80\xe0\xaf\x8d-\xda\xb9"); } // [B1, V7] +test { try toUnicodeFail("xn--1ch22084l.xn----qkc07co6n"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--54e694cn389z.xn--787ct8r"); } // [B1, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS"); } // [V6, V7] +test { try toUnicodeFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess"); } // [V6, V7] +test { try toUnicodeFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xe3\x80\x82\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs"); } // [V6, V7] +test { try toUnicodeFail("xn--ss-jl59biy67d.xn--ss-4d11aw87d"); } // [V6, V7] +test { try toUnicodeFail("xn--zca20040bgrkh.xn--zca3653v86qa"); } // [V6, V7] +test { try toUnicodeFail("SS\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSS"); } // [V6, V7] +test { try toUnicodeFail("ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaess"); } // [V6, V7] +test { try toUnicodeFail("Ss\xf0\xb0\x80\xbb\xf1\x86\xac\x97\xef\xbd\xa1\xf0\x9d\xa9\xa8\xf0\x9f\x95\xaeSs"); } // [V6, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xe2\x80\x8c"); } // [C1, C2] +test { try toUnicodeFail("xn--1ug.xn--0ug"); } // [C1, C2] +test { 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] +test { try toUnicodeFail("xn--m3a6965k.xn--43e8670vmd79b"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--m3a412lrr0o.xn--43e8670vmd79b"); } // [B1, C2, V6, V7] +test { 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] +test { try toUnicodeFail("xn--miq9646b.xn--uojv340bk71c99u9f"); } // [B2, B3, B5, B6, V7] +test { try toUnicodeFail("xn--0uga2656aop9k.xn--uojv340bk71c99u9f"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xf3\xa0\x91\x98\xef\xbc\x8e\xf3\xa0\x84\xae"); } // [V7] +test { try toUnicodeFail("\xf3\xa0\x91\x98.\xf3\xa0\x84\xae"); } // [V7] +test { try toUnicodeFail("xn--s136e."); } // [V7] +test { try toUnicodeFail("\xf0\x90\xab\x84\xe0\xb5\x8d\xef\xbc\x8e\xea\xab\xb6"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x90\xab\x84\xe0\xb5\x8d.\xea\xab\xb6"); } // [B1, V6] +test { try toUnicodeFail("xn--wxc7880k.xn--2v9a"); } // [B1, V6] +test { try toUnicodeFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x82\xe2\x92\x9b\xf3\xa0\xa8\x87"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("\xea\xa6\xb7\xf3\x9d\xb5\x99\xeb\xa9\xb9\xe3\x80\x8220.\xf3\xa0\xa8\x87"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("xn--ym9av13acp85w.20.xn--d846e"); } // [V6, V7] +test { try toUnicodeFail("xn--ym9av13acp85w.xn--dth22121k"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--wkj8016bne45io02g.xn--3-55c6803r."); } // [B4, B6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--wkj8016bne45io02g.xn--7pb000mwm4n"); } // [B4, B6, V7] +test { try toUnicodeFail("xn--dnd2167fnet0io02g.xn--3-55c6803r."); } // [B4, B6, V7] +test { try toUnicodeFail("xn--dnd2167fnet0io02g.xn--7pb000mwm4n"); } // [B4, B6, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbd\xa1\xef\xb8\x92"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xe3\x80\x82\xe3\x80\x82"); } // [C1, X4_2] +test { try toUnicodeFail(".."); } // [X4_2] +test { try toUnicodeFail("xn--0ug.."); } // [C1, X4_2] +test { try toUnicodeFail(".xn--y86c"); } // [V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--y86c"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad\xef\xbc\x8e\xe2\x82\x84"); } // [B1] +test { try toUnicodeFail(">\xcc\xb8\xdd\xad\xef\xbc\x8e\xe2\x82\x84"); } // [B1] +test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad.e"); } // [B1] +test { try toUnicodeFail(">\xcc\xb8\xdd\xad.e"); } // [B1] +test { try toUnicodeFail(">\xcc\xb8\xdd\xad.E"); } // [B1] +test { try toUnicodeFail("\xe2\x89\xaf\xdd\xad.E"); } // [B1] +test { try toUnicodeFail("xn--xpb149k.e"); } // [B1] +test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.\xc3\x9f-\xe2\x80\x8c-"); } // [C1, V3] +test { try toUnicodeFail("\xe1\xa1\xb2-3.\xc3\x9f-\xe2\x80\x8c-"); } // [C1, V3] +test { try toUnicodeFail("\xe1\xa1\xb2-3.SS-\xe2\x80\x8c-"); } // [C1, V3] +test { try toUnicodeFail("\xe1\xa1\xb2-3.ss-\xe2\x80\x8c-"); } // [C1, V3] +test { try toUnicodeFail("\xe1\xa1\xb2-3.Ss-\xe2\x80\x8c-"); } // [C1, V3] +test { try toUnicodeFail("xn---3-p9o.ss--"); } // [V2, V3] +test { try toUnicodeFail("xn---3-p9o.xn--ss---276a"); } // [C1, V3] +test { try toUnicodeFail("xn---3-p9o.xn-----fia9303a"); } // [C1, V3] +test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.SS-\xe2\x80\x8c-"); } // [C1, V3] +test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.ss-\xe2\x80\x8c-"); } // [C1, V3] +test { try toUnicodeFail("\xe1\xa1\xb2-\xf0\x9d\x9f\xb9.Ss-\xe2\x80\x8c-"); } // [C1, V3] +test { try toUnicodeFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x80"); } // [B2, B3, V7] +test { try toUnicodeFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x80"); } // [B2, B3, V7] +test { try toUnicodeFail("\xd8\xb6\xd9\x8a4\xd9\x87\xf3\x8e\x8a\xaf\xe3\x80\x82\xd3\x8f"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--4-tnc6ck183523b.xn--s5a"); } // [B2, B3, V7] +test { try toUnicodeFail("\xef\xb4\x88\xf0\x9d\x9f\xa6\xd9\x87\xf3\x8e\x8a\xaf\xef\xbd\xa1\xd3\x8f"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--4-tnc6ck183523b.xn--d5a"); } // [B2, B3, V7] +test { try toUnicodeFail("-.\xd8\x82\xd8\xa2\xf0\x91\x86\xbe\xf0\x9f\x90\xb9"); } // [B1, V3, V7] +test { try toUnicodeFail("-.\xd8\x82\xd8\xa7\xd9\x93\xf0\x91\x86\xbe\xf0\x9f\x90\xb9"); } // [B1, V3, V7] +test { try toUnicodeFail("-.xn--kfb8dy983hgl7g"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf3\x99\xb6\x9c\xe1\xa2\x98\xe3\x80\x82\xe1\xa9\xbf\xe2\xba\xa2"); } // [V6, V7] +test { try toUnicodeFail("xn--ibf35138o.xn--fpfz94g"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--66e353ce0ilb.xn--?-7fb34t0u7s"); } // [B1, U1] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--vnd619as6ig6k.xn--?-7fb34t0u7s"); } // [B1, V7, U1] +test { try toUnicodeFail("xn--jndx718cnnl.xn--?-7fb34t0u7s"); } // [B1, V7, U1] +test { try toUnicodeFail("xn--vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1] +test { try toUnicodeFail("XN--VND619AS6IG6K.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1] +test { try toUnicodeFail("Xn--Vnd619as6ig6k.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1] +test { try toUnicodeFail("xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1] +test { try toUnicodeFail("XN--66E353CE0ILB.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1] +test { try toUnicodeFail("Xn--66e353ce0ilb.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, U1] +test { try toUnicodeFail("xn--jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1] +test { try toUnicodeFail("XN--JNDX718CNNL.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1] +test { try toUnicodeFail("Xn--Jndx718cnnl.?\xcd\x8c\xd8\xb3\xe8\xa7\xb4"); } // [B1, V7, U1] +test { try toUnicodeFail("\xd9\xa7.\xf0\x90\xa5\xa8"); } // [B1, V7] +test { try toUnicodeFail("xn--gib.xn--vm9c"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3-5z4e.xn--1zfz754hncv8b"); } // [B5, V6, V7] +test { try toUnicodeFail("xn--3-5z4e.xn--1zf96ony8ygd68c"); } // [B1, C2, V6, V7] +test { 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] +test { try toUnicodeFail("\xf2\xa3\x95\x844\xf1\xa0\x96\xbd.>\xcc\xb8\xd9\xa4\xf0\x91\x80\xbe\xf3\xa0\xb8\x8c"); } // [B1, V7] +test { try toUnicodeFail("xn--4-fg85dl688i.xn--dib174li86ntdy0i"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("\xf2\x97\x86\xa73\xe3\x80\x821.\xe1\xa9\xb62\xf2\xa0\x98\x8c"); } // [V6, V7] +test { try toUnicodeFail("xn--3-rj42h.1.xn--2-13k96240l"); } // [V6, V7] +test { try toUnicodeFail("xn--3-rj42h.xn--2-13k746cq465x"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8d51.\xe3\x80\x82\xe2\x89\xaf8\xe2\x80\x8d"); } // [C2, X4_2] +test { try toUnicodeFail("\xe2\x80\x8d51.\xe3\x80\x82>\xcc\xb88\xe2\x80\x8d"); } // [C2, X4_2] +test { try toUnicodeFail("51..xn--8-ogo"); } // [X4_2] +test { try toUnicodeFail("xn--51-l1t..xn--8-ugn00i"); } // [C2, X4_2] +test { try toUnicodeFail("xn--5-ecp.xn--8-ogo"); } // [V7] +test { try toUnicodeFail("xn--5-tgnz5r.xn--8-ugn00i"); } // [C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--tjb002cn51k.xn--5nb630lbj91q"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--tjb002cn51k.xn--5nb448jcubcz547b"); } // [B5, B6, C1, V7] +test { try toUnicodeFail("\xf0\x91\x84\xb1\xef\xbd\xa1\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf0\x91\x84\xb1\xe3\x80\x82\xf2\xaa\x8c\xbf\xf0\x90\xb9\xb5"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--t80d.xn--to0d14792b"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf0\x9d\x9f\xa5\xd8\x80\xe3\x80\x82\xdc\xbd"); } // [B1, V6, V7] +test { try toUnicodeFail("3\xd8\x80\xe3\x80\x82\xdc\xbd"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--3-rkc.xn--kob"); } // [B1, V6, V7] +test { try toUnicodeFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xea\xb8\xb7"); } // [B2, B3] +test { try toUnicodeFail("\xd8\xb7\xf0\x90\xb9\xa3\xd9\xa6.\xdd\xad\xe1\x84\x80\xe1\x85\xb5\xe1\x86\xae"); } // [B2, B3] +test { try toUnicodeFail("xn--2gb8gu829f.xn--xpb0156f"); } // [B2, B3] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail(".xn--r5gy00cll06u.xn--flj4541e"); } // [B5, B6, V7, X4_2] +test { 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] +test { try toUnicodeFail("xn--r5gy00c056n0226g.xn--flj4541e"); } // [B1, B5, B6, V7] +test { try toUnicodeFail(".xn--q5g000cll06u.xn--vnd8618j"); } // [B5, B6, V7, X4_2] +test { try toUnicodeFail("xn--q5g000c056n0226g.xn--vnd8618j"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xd8\x80.\xd6\xb1"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--ifb.xn--8cb"); } // [B1, V6, V7] +test { try toUnicodeFail("\xcf\x82\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xcf\x82>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xcf\x82\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xcf\x82>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xce\xa3>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xce\xa3\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xcf\x83\xe2\x89\xaf\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xcf\x83>\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("xn--4xa818m.xn--1o0d"); } // [B1, B6] +test { try toUnicodeFail("xn--3xa028m.xn--1o0d"); } // [B1, B6] +test { try toUnicodeFail("\xce\xa3>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xce\xa3\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xcf\x83\xe2\x89\xaf\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xcf\x83>\xcc\xb8\xef\xbd\xa1\xf0\x90\xb9\xbd"); } // [B1, B6] +test { try toUnicodeFail("\xe1\x9f\x92\xe2\x80\x8d\xdd\x9f\xe3\x80\x82\xf0\x90\xb9\xb6"); } // [B1, V6] +test { try toUnicodeFail("xn--jpb535f.xn--uo0d"); } // [B1, V6] +test { try toUnicodeFail("xn--jpb535fv9f.xn--uo0d"); } // [B1, V6] +test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.\xe2\x89\xae"); } // [V7] +test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe1\x82\xaa\xf1\x82\x82\x9f.<\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.<\xcc\xb8"); } // [V7] +test { try toUnicodeFail("\xf0\xbe\xb7\x82\xe0\xa9\x82\xe2\xb4\x8a\xf1\x82\x82\x9f.\xe2\x89\xae"); } // [V7] +test { try toUnicodeFail("xn--nbc229o4y27dgskb.xn--gdh"); } // [V7] +test { try toUnicodeFail("xn--nbc493aro75ggskb.xn--gdh"); } // [V7] test { try toUnicodePass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "\xea\xa1\xa0.\xdb\xb2"); } test { try toAsciiPass("\xea\xa1\xa0\xef\xbc\x8e\xdb\xb2", "xn--5c9a.xn--fmb", false); } test { 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); } test { try toUnicodePass("xn--5c9a.xn--fmb", "\xea\xa1\xa0.\xdb\xb2"); } test { try toAsciiPass("xn--5c9a.xn--fmb", "xn--5c9a.xn--fmb", false); } test { try toAsciiPass("xn--5c9a.xn--fmb", "xn--5c9a.xn--fmb", true); } +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xef\xbd\xa1\xea\xa1\xac\xf0\x9f\x84\x84"); } // [B1, B6, V7, U1] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xf1\x84\xb7\x84\xe3\x80\x82\xea\xa1\xac3,"); } // [B1, B6, V7, U1] +test { try toUnicodeFail("xn--bo0d0203l.xn--3,-yj9h"); } // [B1, B6, V7, U1] +test { try toUnicodeFail("xn--bo0d0203l.xn--id9a4443d"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn----x6e0220sclug.xn--wxc"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn----x6e0220sclug.xn--wxc317g"); } // [B1, C2, V3, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--5,-op8g373c.xn--4sf0725i"); } // [V6, U1] +test { try toUnicodeFail("xn--5,-i1tz135dnbqa.xn--4sf36u6u4w"); } // [C1, V6, U1] +test { try toUnicodeFail("xn--2q5a751a653w.xn--4sf0725i"); } // [V6, V7] +test { try toUnicodeFail("xn--0ug4208b2vjuk63a.xn--4sf36u6u4w"); } // [C1, V6, V7] +test { try toUnicodeFail("\xe5\x85\x8e\xef\xbd\xa1\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf"); } // [V7] +test { try toUnicodeFail("\xe5\x85\x8e\xe3\x80\x82\xe1\xa0\xbc\xf3\xa0\xb4\x9c\xf0\x91\x9a\xb6\xf0\x91\xb0\xbf"); } // [V7] +test { try toUnicodeFail("xn--b5q.xn--v7e6041kqqd4m251b"); } // [V7] test { 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); } +test { try toUnicodeFail("\xf0\x9d\x9f\x99\xef\xbd\xa1\xe2\x80\x8d\xf0\x9d\x9f\xb8\xe2\x80\x8d\xe2\x81\xb7"); } // [C2] test { try toAsciiPass("1\xe3\x80\x82\xe2\x80\x8d2\xe2\x80\x8d7", "1.27", true); } +test { try toUnicodeFail("1\xe3\x80\x82\xe2\x80\x8d2\xe2\x80\x8d7"); } // [C2] test { try toUnicodePass("1.2h", "1.2h"); } test { try toAsciiPass("1.2h", "1.2h", false); } test { try toAsciiPass("1.2h", "1.2h", true); } +test { try toUnicodeFail("1.xn--27-l1tb"); } // [C2] +test { try toUnicodeFail("\xe1\xa1\xa8-\xef\xbd\xa1\xf3\xa0\xbb\x8b\xf0\x9d\x9f\xb7"); } // [V3, V7] +test { try toUnicodeFail("\xe1\xa1\xa8-\xe3\x80\x82\xf3\xa0\xbb\x8b1"); } // [V3, V7] +test { try toUnicodeFail("xn----z8j.xn--1-5671m"); } // [V3, V7] +test { 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] +test { try toUnicodeFail("\xf0\x91\xb0\xbb\xf1\xb5\x80\x90\xf0\x90\xab\x9a.\xd9\xa89"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--gx9cr01aul57i.xn--9-oqc"); } // [B1, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--zed372mdj2do3v4h.xn--e5h11w"); } // [V7] +test { try toUnicodeFail("xn--zed372mdj2do3v4h.xn--0uga678bgyh"); } // [C1, V7] +test { 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] +test { try toUnicodeFail("xn--zed54dz10wo343g.xn--nnd651i"); } // [V7] +test { try toUnicodeFail("xn--zed54dz10wo343g.xn--nnd089ea464d"); } // [C1, V7] +test { try toUnicodeFail("\xf0\x91\x81\x86\xf0\x9d\x9f\xb0.\xe2\x80\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xf0\x91\x81\x864.\xe2\x80\x8d"); } // [C2, V6] +test { try toUnicodeFail("xn--4-xu7i."); } // [V6] +test { try toUnicodeFail("xn--4-xu7i.xn--1ug"); } // [C2, V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--mlju35u7qx2f.xn--et3bn23n"); } // [V6, V7] +test { try toUnicodeFail("xn--mlju35u7qx2f.xn--0ugb6122js83c"); } // [C1, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--2nd6803c7q37d.xn--et3bn23n"); } // [V6, V7] +test { try toUnicodeFail("xn--2nd6803c7q37d.xn--0ugb6122js83c"); } // [C1, V6, V7] +test { try toUnicodeFail("\xf3\x9a\x80\x85-\xe0\xaf\x8d\xe3\x80\x82\xda\xb9"); } // [B6, V7] +test { try toUnicodeFail("xn----mze84808x.xn--skb"); } // [B6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe1\xa1\x835\xe2\x89\xaf\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab"); } // [V7] +test { try toUnicodeFail("\xe1\xa1\x835>\xcc\xb8\xe1\xa0\xa3.\xe6\xb0\x81\xf1\xa8\x8f\xb1\xea\x81\xab"); } // [V7] +test { try toUnicodeFail("xn--5-24jyf768b.xn--lqw213ime95g"); } // [V7] +test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbd\xb6"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87\xef\xbc\x8e\xe0\xbe\xb2\xe0\xbe\x80"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x90\xb9\xac\xf0\x9d\xa9\x87.\xe0\xbe\xb2\xe0\xbe\x80"); } // [B1, V6] +test { try toUnicodeFail("xn--ko0d8295a.xn--zed3h"); } // [B1, V6] +test { 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] +test { try toUnicodeFail("-\xf0\x91\x88\xb68..7.\xf0\xb0\x9b\xa2\xf3\xa0\x8e\xad"); } // [V3, V7, X4_2] +test { try toUnicodeFail("xn---8-bv5o..7.xn--c35nf1622b"); } // [V3, V7, X4_2] +test { try toUnicodeFail("xn----scp6252h.xn--zshy411yzpx2d"); } // [V3, V7] test { 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); } +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", "xn--skjy82u.xn--gdh", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", "xn--skjy82u.xn--gdh", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x82\xa1\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8", "xn--skjy82u.xn--gdh", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.<\xcc\xb8"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d.\xe2\x89\xae"); } // [C1, C2] test { try toUnicodePass("xn--skjy82u.xn--gdh", "\xe2\xb4\x81\xe7\x95\x9d.\xe2\x89\xae"); } test { try toAsciiPass("xn--skjy82u.xn--gdh", "xn--skjy82u.xn--gdh", false); } test { 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 test { try toUnicodePass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "\xe2\xb4\x81\xe7\x95\x9d.\xe2\x89\xae"); } test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", false); } test { try toAsciiPass("\xe1\x82\xa1\xe7\x95\x9d.\xe2\x89\xae", "xn--skjy82u.xn--gdh", true); } +test { try toUnicodeFail("xn--0ugc160hb36e.xn--gdh"); } // [C1, C2] test { try toAsciiPass("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8", "xn--skjy82u.xn--gdh", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e<\xcc\xb8"); } // [C1, C2] test { 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); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\xb4\x81\xe7\x95\x9d\xe2\x80\x8d\xef\xbc\x8e\xe2\x89\xae"); } // [C1, C2] +test { try toUnicodeFail("xn--8md0962c.xn--gdh"); } // [V7] +test { try toUnicodeFail("xn--8md700fea3748f.xn--gdh"); } // [C1, C2, V7] +test { 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] +test { try toUnicodeFail("\xe6\xad\xb7\xef\xbd\xa1\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d"); } // [B1, C2, V7] +test { 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] +test { try toUnicodeFail("\xe6\xad\xb7\xe3\x80\x82\xf0\x90\xb9\xbb>\xcc\xb8\xf3\xb3\x9b\xbd\xe2\x80\x8d"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--nmw.xn--hdh7804gdms2h"); } // [B1, V7] +test { try toUnicodeFail("xn--nmw.xn--1ugx6gs128a1134j"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe0\xbb\x8b\xe2\x80\x8d\xef\xbc\x8e\xe9\x8e\x81\xf3\xa0\xb0\x91"); } // [C2, V6, V7] +test { try toUnicodeFail("\xe0\xbb\x8b\xe2\x80\x8d.\xe9\x8e\x81\xf3\xa0\xb0\x91"); } // [C2, V6, V7] +test { try toUnicodeFail("xn--t8c.xn--iz4a43209d"); } // [V6, V7] +test { try toUnicodeFail("xn--t8c059f.xn--iz4a43209d"); } // [C2, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--9d6h.xn--wh0dj799f"); } // [B5, B6] +test { try toUnicodeFail("xn--0ugb45126a.xn--wh0dj799f"); } // [B1, B5, B6, C1, C2] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x826.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3] +test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xcf\x826.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3] +test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xce\xa36.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3] +test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xce\xa36.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3] +test { try toUnicodeFail("\xd8\xa8\xe2\x89\xa09-.\xcf\x836.\xf0\x90\xb9\xa6\xe2\x89\xa0"); } // [B1, B3, V3] +test { try toUnicodeFail("\xd8\xa8=\xcc\xb89-.\xcf\x836.\xf0\x90\xb9\xa6=\xcc\xb8"); } // [B1, B3, V3] +test { try toUnicodeFail("xn--9--etd0100a.xn--6-zmb.xn--1ch8704g"); } // [B1, B3, V3] +test { try toUnicodeFail("xn--9--etd0100a.xn--6-xmb.xn--1ch8704g"); } // [B1, B3, V3] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--9--etd0100a.xn--4xa887mzpbzz04b"); } // [B3, B5, B6, V3, V7] +test { try toUnicodeFail("xn--9--etd0100a.xn--3xa097mzpbzz04b"); } // [B3, B5, B6, V3, V7] +test { try toUnicodeFail("\xf2\x89\x9b\xb4.-\xe1\xa1\xa2\xd6\x92\xf0\x9d\xa8\xa0"); } // [V3, V7] +test { try toUnicodeFail("xn--ep37b.xn----hec165lho83b"); } // [V3, V7] +test { 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] +test { try toUnicodeFail("\xdb\x8b1.\xc3\x9f\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7] +test { try toUnicodeFail("\xdb\x8b1.SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7] +test { try toUnicodeFail("\xdb\x8b1.ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7] +test { try toUnicodeFail("\xdb\x8b1.Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B6, V3, V7] +test { try toUnicodeFail("xn--1-cwc.ss.xn----q001f"); } // [B6, V3, V7] +test { try toUnicodeFail("xn--1-cwc.xn--zca.xn----q001f"); } // [B6, V3, V7] +test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88SS\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7] +test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7] +test { try toUnicodeFail("\xdb\x8b\xe2\x92\x88Ss\xf3\xa0\x84\xbd\xe3\x80\x82\xf1\xb7\x8b\x8d-"); } // [B2, B3, B6, V3, V7] +test { try toUnicodeFail("xn--ss-d7d6651a.xn----q001f"); } // [B2, B3, B6, V3, V7] +test { try toUnicodeFail("xn--zca541ato3a.xn----q001f"); } // [B2, B3, B6, V3, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab.\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("xn--nu4s.xn--4xa153j7im"); } // [V6, V7] +test { try toUnicodeFail("xn--nu4s.xn--4xa153jk8cs1q"); } // [C2, V6, V7] +test { try toUnicodeFail("xn--nu4s.xn--3xa353jk8cs1q"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x82\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe1\x82\xa6\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xcf\x83\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\xbf\x80\xab\xef\xbc\x8e\xe1\xae\xaa\xce\xa3\xe2\xb4\x86\xe2\x80\x8d"); } // [C2, V6, V7] +test { try toUnicodeFail("xn--nu4s.xn--4xa217dxri"); } // [V6, V7] +test { try toUnicodeFail("xn--nu4s.xn--4xa217dxriome"); } // [C2, V6, V7] +test { try toUnicodeFail("xn--nu4s.xn--3xa417dxriome"); } // [C2, V6, V7] +test { try toUnicodeFail("\xe2\xbe\x86\xe0\xa3\xa2.\xf0\x9d\x88\xb4"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xe8\x88\x8c\xe0\xa3\xa2.\xf0\x9d\x88\xb4"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--l0b9413d.xn--kl1h"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa0\xe2\x92\x88"); } // [B1, V7] +test { try toUnicodeFail("\xe2\xab\x9e\xf0\x90\xb9\xb6\xf0\x96\xab\xb4\xe3\x80\x82\xe2\xad\xa01."); } // [B1] +test { try toUnicodeFail("xn--53ix188et88b.xn--1-h6r."); } // [B1] +test { try toUnicodeFail("xn--53ix188et88b.xn--tsh52w"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x92\x88\xe2\x80\x8c\xea\xab\xac\xef\xb8\x92\xef\xbc\x8e\xe0\xab\x8d"); } // [C1, V6, V7] +test { try toUnicodeFail("1.\xe2\x80\x8c\xea\xab\xac\xe3\x80\x82.\xe0\xab\x8d"); } // [C1, V6, X4_2] +test { try toUnicodeFail("1.xn--sv9a..xn--mfc"); } // [V6, X4_2] +test { try toUnicodeFail("1.xn--0ug7185c..xn--mfc"); } // [C1, V6, X4_2] +test { try toUnicodeFail("xn--tsh0720cse8b.xn--mfc"); } // [V6, V7] +test { try toUnicodeFail("xn--0ug78o720myr1c.xn--mfc"); } // [C1, V6, V7] +test { 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] +test { try toUnicodeFail("xn--eqc.xn--hib5476aim6t"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7] +test { try toUnicodeFail("SS\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7] +test { try toUnicodeFail("ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7] +test { try toUnicodeFail("Ss\xe2\x80\x8d.\xe1\xaf\xb2\xf1\x84\xbe\xbc"); } // [C2, V6, V7] +test { try toUnicodeFail("ss.xn--0zf22107b"); } // [V6, V7] +test { try toUnicodeFail("xn--ss-n1t.xn--0zf22107b"); } // [C2, V6, V7] +test { try toUnicodeFail("xn--zca870n.xn--0zf22107b"); } // [C2, V6, V7] +test { try toUnicodeFail("\xf0\x91\x93\x82\xe2\x80\x8c\xe2\x89\xae.\xe2\x89\xae"); } // [V6] +test { try toUnicodeFail("\xf0\x91\x93\x82\xe2\x80\x8c<\xcc\xb8.<\xcc\xb8"); } // [V6] +test { try toUnicodeFail("xn--gdhz656g.xn--gdh"); } // [V6] +test { try toUnicodeFail("xn--0ugy6glz29a.xn--gdh"); } // [V6] test { try toUnicodePass("\xf0\x9f\x95\xbc\xef\xbc\x8e\xef\xbe\xa0", "\xf0\x9f\x95\xbc."); } test { try toUnicodePass("\xf0\x9f\x95\xbc.\xe1\x85\xa0", "\xf0\x9f\x95\xbc."); } test { try toUnicodePass("xn--my8h.", "\xf0\x9f\x95\xbc."); } test { try toUnicodePass("\xf0\x9f\x95\xbc.", "\xf0\x9f\x95\xbc."); } +test { try toUnicodeFail("xn--my8h.xn--psd"); } // [V7] +test { try toUnicodeFail("xn--my8h.xn--cl7c"); } // [V7] +test { try toUnicodeFail("\xe1\xa1\x94\xef\xb6\x82\xe3\x80\x82\xf1\xb7\x98\x8e"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe1\xa1\x94\xd9\x84\xd8\xad\xd9\x89\xe3\x80\x82\xf1\xb7\x98\x8e"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--sgb9bq785p.xn--bc31b"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe7\x88\x95\xf2\xb3\x99\x91\xef\xbc\x8e\xf0\x9d\x9f\xb0\xe6\xb0\x97"); } // [V7] +test { try toUnicodeFail("\xe7\x88\x95\xf2\xb3\x99\x91.4\xe6\xb0\x97"); } // [V7] +test { try toUnicodeFail("xn--1zxq3199c.xn--4-678b"); } // [V7] +test { 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] +test { try toUnicodeFail("4.\xf0\x91\x8d\x8d\xe1\x82\xbd-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5"); } // [B1, B6, V3, V6, V7] +test { try toUnicodeFail("4.\xf0\x91\x8d\x8d\xe2\xb4\x9d-.\xf0\x9e\xac\xaa\xe0\xb7\x8a\xd6\xb5"); } // [B1, B6, V3, V6, V7] +test { try toUnicodeFail("4.xn----wwsx259f.xn--ddb152b7y23b"); } // [B1, B6, V3, V6, V7] +test { 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] +test { try toUnicodeFail("xn----jcp487avl3w.xn--ddb152b7y23b"); } // [B1, V3, V7] +test { try toUnicodeFail("4.xn----t1g9869q.xn--ddb152b7y23b"); } // [B1, B6, V3, V6, V7] +test { try toUnicodeFail("xn----t1g323mnk9t.xn--ddb152b7y23b"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf3\x9e\x9d\x83\xe3\x80\x82\xf2\x91\x86\x83\xf1\x89\xa2\x97--"); } // [V2, V3, V7] +test { try toUnicodeFail("xn--2y75e.xn-----1l15eer88n"); } // [V2, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xdf\x9f\xef\xbd\xa1\xe2\x80\x8c\xea\xaf\xad"); } // [B1, C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xdf\x9f\xe3\x80\x82\xe2\x80\x8c\xea\xaf\xad"); } // [B1, C1, C2] +test { try toUnicodeFail("xn--6sb.xn--429a"); } // [B1, V6] +test { try toUnicodeFail("xn--6sb394j.xn--0ug1126c"); } // [B1, C1, C2] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3tb2nz468k.xn--69e8615j5rn5d"); } // [B5, B6, V7] +test { 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] +test { try toUnicodeFail("\xdb\xad\xd9\x85\xf0\x91\x84\x9a\xe1\x9c\x94.\xea\xa1\x9e\xe0\xa2\xb7"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("xn--hhb94ag41b739u.xn--dzb5582f"); } // [B1, B5, B6, V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--4xaa21q"); } // [B5, B6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--3xab31q"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--3sb7483hoyvbbe76g.xn--3xaa51q"); } // [B5, B6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xe8\x94\xb0\xe3\x80\x82\xf3\xa0\x81\xb9\xe0\xa3\x9d-\xf0\x91\x88\xb5"); } // [V7] +test { try toUnicodeFail("xn--sz1a.xn----mrd9984r3dl0i"); } // [V7] test { try toUnicodePass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "\xcf\x82\xe2\xb4\xa5.\xdd\x9a"); } test { try toAsciiPass("\xcf\x82\xe1\x83\x85\xe3\x80\x82\xdd\x9a", "xn--3xa403s.xn--epb", false); } test { 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); } test { try toUnicodePass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "\xcf\x82\xe2\xb4\xa5.\xdd\x9a"); } test { try toAsciiPass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "xn--3xa403s.xn--epb", false); } test { try toAsciiPass("\xcf\x82\xe2\xb4\xa5.\xdd\x9a", "xn--4xa203s.xn--epb", true); } +test { try toUnicodeFail("xn--4xa477d.xn--epb"); } // [V7] +test { try toUnicodeFail("xn--3xa677d.xn--epb"); } // [V7] +test { try toUnicodeFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe0\xb1\x8d\xe1\x82\xa9\xf0\x9e\xb0\x93.\xe1\xad\xb2"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93.\xe1\xad\xb2"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--lqc478nlr02a.xn--dwf"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe0\xb1\x8d\xe2\xb4\x89\xf0\x9e\xb0\x93\xef\xbc\x8e\xe1\xad\xb2"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--lqc64t7t26c.xn--dwf"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("\xe2\xae\xb7<\xcc\xb8\xf1\x8e\x88\xb4\xf3\xa0\x84\x9f\xe3\x80\x82\xf0\x90\xa0\x84"); } // [B1, V7] +test { try toUnicodeFail("xn--gdh877a3513h.xn--pc9c"); } // [B1, V7] test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2] test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2] test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8f\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2] test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8dy\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2] test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2] test { try toAsciiPass("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("\xda\xbc\xe3\x80\x82\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2] test { try toUnicodePass("xn--vkb.xn--08e172a", "\xda\xbc.\xe1\xba\x8f\xe1\xa1\xa4"); } test { try toAsciiPass("xn--vkb.xn--08e172a", "xn--vkb.xn--08e172a", false); } test { 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", test { try toUnicodePass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "\xda\xbc.\xe1\xba\x8f\xe1\xa1\xa4"); } test { try toAsciiPass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "xn--vkb.xn--08e172a", false); } test { try toAsciiPass("\xda\xbc.\xe1\xba\x8e\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("xn--vkb.xn--08e172ax6aca"); } // [B1, C1, C2] test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8dY\xcc\x87\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2] test { try toAsciiPass("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4", "xn--vkb.xn--08e172a", true); } +test { try toUnicodeFail("\xda\xbc\xef\xbd\xa1\xe2\x80\x8d\xe1\xba\x8e\xe2\x80\x8c\xe1\xa1\xa4"); } // [B1, C1, C2] +test { try toUnicodeFail("\xf0\x90\xb9\xb9\xf0\x91\xb2\x9b\xe3\x80\x82\xf1\x91\x82\x90\xe0\xb7\x8a"); } // [B1, V7] +test { try toUnicodeFail("xn--xo0dg5v.xn--h1c39876d"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("-=\xcc\xb8\xf0\x91\x88\xb5\xe3\x80\x82\xe5\xb5\x95\xd9\x8a\xdb\xb4\xea\xa5\x93"); } // [B1, B5, V3] +test { try toUnicodeFail("xn----ufo4749h.xn--mhb45a235sns3c"); } // [B1, B5, V3] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ypb5875khz9y.xn--0kb682l"); } // [B3, B5, B6, V7] +test { try toUnicodeFail("xn--ypb717jrx2o7v94a.xn--0kb660ka35v"); } // [B1, B3, C1, C2, V7] +test { try toUnicodeFail("\xe2\x89\xae\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1] +test { try toUnicodeFail("<\xcc\xb8\xef\xbc\x8e\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1] +test { try toUnicodeFail("\xe2\x89\xae.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1] +test { try toUnicodeFail("<\xcc\xb8.\xe1\x9e\xb5\xe0\xa1\x95\xf0\x90\xab\x94"); } // [B1] +test { try toUnicodeFail("xn--gdh.xn--kwb4643k"); } // [B1] +test { try toUnicodeFail("xn--gdh.xn--kwb589e217p"); } // [B1, V6, V7] test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn--0kjya", true); } +test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe1\x82\xb5"); } // [B3, C2] test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe1\x82\xb5", "xn--pt9c.xn--0kjya", true); } +test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe1\x82\xb5"); } // [B3, C2] test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe2\xb4\x89\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); } +test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe2\xb4\x89\xe2\xb4\x95"); } // [B3, C2] test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); } +test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xe3\x80\x82\xe1\x82\xa9\xe2\xb4\x95"); } // [B3, C2] test { try toUnicodePass("xn--pt9c.xn--0kjya", "\xf0\x90\xa9\x97.\xe2\xb4\x89\xe2\xb4\x95"); } test { try toAsciiPass("xn--pt9c.xn--0kjya", "xn--pt9c.xn--0kjya", false); } test { 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 test { try toUnicodePass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "\xf0\x90\xa9\x97.\xe2\xb4\x89\xe2\xb4\x95"); } test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", false); } test { try toAsciiPass("\xf0\x90\xa9\x97.\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); } +test { try toUnicodeFail("xn--1ug4933g.xn--0kjya"); } // [B3, C2] test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe2\xb4\x89\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); } +test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe2\xb4\x89\xe2\xb4\x95"); } // [B3, C2] test { try toAsciiPass("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe2\xb4\x95", "xn--pt9c.xn--0kjya", true); } +test { try toUnicodeFail("\xf0\x90\xa9\x97\xe2\x80\x8d\xef\xbd\xa1\xe1\x82\xa9\xe2\xb4\x95"); } // [B3, C2] +test { try toUnicodeFail("xn--pt9c.xn--hnd666l"); } // [V7] +test { try toUnicodeFail("xn--1ug4933g.xn--hnd666l"); } // [B3, C2, V7] +test { try toUnicodeFail("xn--pt9c.xn--hndy"); } // [V7] +test { try toUnicodeFail("xn--1ug4933g.xn--hndy"); } // [B3, C2, V7] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x84\xa4.\xcc\xae\xf3\x95\xa8\x91\xe0\xa7\x82"); } // [C1, V6, V7] +test { try toUnicodeFail("xn--1fk.xn--vta284a9o563a"); } // [V6, V7] +test { try toUnicodeFail("xn--0uga242k.xn--vta284a9o563a"); } // [C1, V6, V7] +test { try toUnicodeFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7"); } // [B1, C1, V3] +test { try toUnicodeFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe1\x82\xb7"); } // [B1, C1, V3] +test { try toUnicodeFail("\xf0\x90\x8b\xbb\xe3\x80\x82-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97"); } // [B1, C1, V3] +test { try toUnicodeFail("xn--v97c.xn----lws0526f"); } // [B1, V3] +test { try toUnicodeFail("xn--v97c.xn----sgnv20du99s"); } // [B1, C1, V3] +test { try toUnicodeFail("\xf0\x90\x8b\xbb\xef\xbd\xa1-\xe2\x80\x8c\xf0\x90\xab\x84\xe2\xb4\x97"); } // [B1, C1, V3] +test { try toUnicodeFail("xn--v97c.xn----i1g2513q"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--v97c.xn----i1g888ih12u"); } // [B1, C1, V3, V7] +test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e\xe2\x89\xa0\xe2\x80\x8c"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba\xef\xbc\x8e=\xcc\xb8\xe2\x80\x8c"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.\xe2\x89\xa0\xe2\x80\x8c"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x9f\x99\x91\xf0\x90\xb7\xba.=\xcc\xb8\xe2\x80\x8c"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--bl0dh970b.xn--1ch"); } // [B1, V7] +test { try toUnicodeFail("xn--bl0dh970b.xn--0ug83g"); } // [B1, C1, V7] +test { try toUnicodeFail("\xd9\x8c\xe1\xb3\x92\xef\xbd\xa1\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("\xd9\x8c\xe1\xb3\x92\xe3\x80\x82\xf0\x9e\xae\x9e\xe2\xb5\xbf\xe2\xa7\x8e"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("xn--ohb646i.xn--ewi38jf765c"); } // [B1, B3, V6, V7] +test { 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] +test { try toUnicodeFail("\xe1\x82\xb4\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82"); } // [V7] +test { try toUnicodeFail("\xe2\xb4\x94\xf0\x9d\xa8\xa83\xf3\xa0\x81\xa6.7\xf0\x91\x82\xb9\xe0\xae\x82"); } // [V7] +test { try toUnicodeFail("xn--3-ews6985n35s3g.xn--7-cve6271r"); } // [V7] +test { 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] +test { try toUnicodeFail("xn--3-b1g83426a35t0g.xn--7-cve6271r"); } // [V7] +test { try toUnicodeFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c\xe2\x92\x88\xf1\xb1\xa2\x95"); } // [C1, V7] +test { try toUnicodeFail("\xe4\x8f\x88\xe2\x80\x8c\xe3\x80\x82\xe2\x80\x8c1.\xf1\xb1\xa2\x95"); } // [C1, V7] +test { try toUnicodeFail("xn--eco.1.xn--ms39a"); } // [V7] +test { try toUnicodeFail("xn--0ug491l.xn--1-rgn.xn--ms39a"); } // [C1, V7] +test { try toUnicodeFail("xn--eco.xn--tsh21126d"); } // [V7] +test { try toUnicodeFail("xn--0ug491l.xn--0ug88oot66q"); } // [C1, V7] +test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6] +test { try toUnicodeFail("1\xea\xab\xb6\xc3\x9f\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6] +test { try toUnicodeFail("1\xea\xab\xb6SS\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6] +test { try toUnicodeFail("1\xea\xab\xb6ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6] +test { try toUnicodeFail("xn--1ss-ir6ln166b.xn--weg"); } // [V6] +test { try toUnicodeFail("xn--1-qfa2471kdb0d.xn--weg"); } // [V6] +test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6SS\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6] +test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6] +test { try toUnicodeFail("1\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xe3\x80\x82\xe1\xb7\x98"); } // [V6] +test { try toUnicodeFail("\xef\xbc\x91\xea\xab\xb6Ss\xf0\x91\xb2\xa5\xef\xbd\xa1\xe1\xb7\x98"); } // [V6] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8d\xf1\xab\xb6\xa9\xf0\x9e\xaa\xaf\xe0\xb3\x8d\xe3\x80\x82\xdd\xbc1."); } // [B1, C2, V7] +test { try toUnicodeFail("xn--8tc9875v5is1a.xn--1-g6c."); } // [B5, B6, V7] +test { try toUnicodeFail("xn--8tc969gzn94a4lm8a.xn--1-g6c."); } // [B1, C2, V7] +test { try toUnicodeFail("xn--8tc9875v5is1a.xn--dqb689l"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--8tc969gzn94a4lm8a.xn--dqb689l"); } // [B1, C2, V7] +test { 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] +test { try toUnicodeFail("\xe1\xaa\xb6.\xf0\x9e\xa4\xb3\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97"); } // [B1, B2, V6, V7] +test { try toUnicodeFail("\xe1\xaa\xb6.\xf0\x9e\xa4\x91\xf2\x93\xa2\x96\xf2\xbb\x89\x92\xdf\x97"); } // [B1, B2, V6, V7] +test { try toUnicodeFail("xn--zqf.xn--ysb9657vuiz5bj0ep"); } // [B1, B2, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe0\xa1\x82\xf0\x9e\xa9\x9a1..\xf3\xa0\xac\x8c8\xf2\x8f\xb3\x8f\xdd\xb0"); } // [B1, V7, X4_2] +test { try toUnicodeFail("xn--1-rid26318a..xn--8-s5c22427ox454a"); } // [B1, V7, X4_2] +test { try toUnicodeFail("xn--0vb095ldg52a.xn--8-s5c22427ox454a"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("xn--cvaq482npv5t.xn----yg7dt1332g"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98\xc3\x9f\xf0\x90\xab\x83"); } // [B1, V3, V6] +test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98SS\xf0\x90\xab\x83"); } // [B1, V3, V6] +test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98ss\xf0\x90\xab\x83"); } // [B1, V3, V6] +test { try toUnicodeFail("-.\xe0\xab\x8d\xe5\x89\x98Ss\xf0\x90\xab\x83"); } // [B1, V3, V6] +test { try toUnicodeFail("-.xn--ss-bqg4734erywk"); } // [B1, V3, V6] +test { try toUnicodeFail("-.xn--zca791c493duf8i"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xef\xbd\xa1-"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("\xe0\xa3\xbb\xf0\x9e\xb5\xb8\xe3\x80\x82-"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn--b1b2719v.-"); } // [B1, V3, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("1.\xf3\xa0\x88\xbb\xf0\x90\xb9\xb2\xe3\x80\x82=\xcc\xb8\xd8\x83\xf0\x90\xb9\xbd"); } // [B1, V7] +test { try toUnicodeFail("1.xn--qo0dl3077c.xn--lfb536lb35n"); } // [B1, V7] +test { try toUnicodeFail("xn--tshw766f1153g.xn--lfb536lb35n"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--5kjx323em053g.xn--pelu572d"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--0ug342clq0pqxv4i.xn--pelu572d"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("xn--mnd9001km0o0g.xn--pelu572d"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--mnd289ezj4pqxp0i.xn--pelu572d"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe1\x82\xa7"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--te28c.xn--isb295fbtpmb"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe2\xb4\x93\xe2\xb4\x87"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--te28c.xn--isb856b9a631d"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf2\xa9\xbc\x97.\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--te28c.xn--isb286btrgo7w"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf2\xa9\xbc\x97\xef\xbc\x8e\xdf\x87\xe1\xa1\x96\xe1\x82\xb3\xe2\xb4\x87"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xf4\x85\x8d\x89.\xda\xb3\xdd\xb5"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--3j78f.xn--mkb20b"); } // [V7] +test { try toUnicodeFail("xn--1ug39444n.xn--mkb20b"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf0\xb2\xa4\xb1\xe2\x92\x9b\xe2\xbe\xb3\xef\xbc\x8e\xea\xa1\xa6\xe2\x92\x88"); } // [V7] test { try toUnicodePass("\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61.", "\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61."); } test { try toUnicodePass("xn--20-9802c.xn--0w5a.xn--1-eg4e.", "\xf0\xb2\xa4\xb120.\xe9\x9f\xb3.\xea\xa1\xa61."); } +test { try toUnicodeFail("xn--dth6033bzbvx.xn--tsh9439b"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--8--rve13079p.xn--b7b9842k42df776x"); } // [B2, B3, B5, B6, V3, V7] test { 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"); } test { try toAsciiPass("\xe1\x82\xb5\xe3\x80\x82\xdb\xb0\xe2\x89\xae\xc3\x9f\xdd\x85", "xn--dlj.xn--zca912alh227g", false); } test { 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- test { 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"); } test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "xn--dlj.xn--zca912alh227g", false); } test { try toAsciiPass("\xe2\xb4\x95.\xdb\xb0<\xcc\xb8\xc3\x9f\xdd\x85", "xn--dlj.xn--ss-jbe65aw27i", true); } +test { try toUnicodeFail("xn--tnd.xn--ss-jbe65aw27i"); } // [V7] +test { try toUnicodeFail("xn--tnd.xn--zca912alh227g"); } // [V7] +test { try toUnicodeFail("\xdf\xa9-.\xf0\x9d\xa8\x97\xea\x92\xb1\xe1\xad\xb2"); } // [B1, B3, V3, V6] +test { try toUnicodeFail("xn----odd.xn--dwf8994dc8wj"); } // [B1, B3, V3, V6] +test { try toUnicodeFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.\xe2\x89\xaf\xe4\x95\xb5\xe2\xab\xa7"); } // [B1, B3, C1, V7] +test { try toUnicodeFail("\xf0\x9e\xbc\xb8\xe2\x80\x8c.>\xcc\xb8\xe4\x95\xb5\xe2\xab\xa7"); } // [B1, B3, C1, V7] +test { try toUnicodeFail("xn--sn7h.xn--hdh754ax6w"); } // [B1, V7] +test { try toUnicodeFail("xn--0ugx453p.xn--hdh754ax6w"); } // [B1, B3, C1, V7] +test { try toUnicodeFail("\xf0\x90\xa8\x85\xc3\x9f\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("\xf0\x90\xa8\x85\xc3\x9f\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x90\xa8\x85SS\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x90\xa8\x85ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x90\xa8\x85Ss\xd9\x8a\xd8\xae.\xda\xac\xdb\xb3\xe3\x80\x82"); } // [B1, V6] +test { try toUnicodeFail("xn--ss-ytd5i7765l.xn--fkb6l."); } // [B1, V6] +test { try toUnicodeFail("xn--zca23yncs877j.xn--fkb6l."); } // [B1, V6] +test { try toUnicodeFail("\xf0\x90\xa8\x85SS\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("\xf0\x90\xa8\x85ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("\xf0\x90\xa8\x85Ss\xef\xb1\x97.\xda\xac\xdb\xb3\xef\xb8\x92"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("xn--ss-ytd5i7765l.xn--fkb6lp314e"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("xn--zca23yncs877j.xn--fkb6lp314e"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94"); } // [B1, V3, V7] +test { try toUnicodeFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe1\x82\xa1\xdc\x94"); } // [B1, V3, V7] +test { try toUnicodeFail("-<\xcc\xb8\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xe2\x89\xae\xf0\x9f\xa1\x92\xe1\xb3\xad.\xf1\x8f\xbf\xbe\xe2\xb4\x81\xdc\x94"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----44l04zxt68c.xn--enb135qf106f"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----44l04zxt68c.xn--enb300c1597h"); } // [B1, V3, V7] test { try toAsciiPass("\xf0\x9e\xa4\xa8\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); } +test { try toUnicodeFail("\xf0\x9e\xa4\xa8\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2] test { try toAsciiPass("\xf0\x9e\xa4\xa8\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); } +test { try toUnicodeFail("\xf0\x9e\xa4\xa8\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2] test { try toAsciiPass("\xf0\x9e\xa4\x86\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); } +test { try toUnicodeFail("\xf0\x9e\xa4\x86\xe3\x80\x82\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2] test { try toUnicodePass("xn--ge6h.xn--oc9a", "\xf0\x9e\xa4\xa8.\xea\xa1\x8f"); } test { try toAsciiPass("xn--ge6h.xn--oc9a", "xn--ge6h.xn--oc9a", false); } test { 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 test { try toUnicodePass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "\xf0\x9e\xa4\xa8.\xea\xa1\x8f"); } test { try toAsciiPass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", false); } test { try toAsciiPass("\xf0\x9e\xa4\x86.\xea\xa1\x8f", "xn--ge6h.xn--oc9a", true); } +test { try toUnicodeFail("xn--ge6h.xn--0ugb9575h"); } // [B6, C1, C2] test { try toAsciiPass("\xf0\x9e\xa4\x86\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c", "xn--ge6h.xn--oc9a", true); } +test { try toUnicodeFail("\xf0\x9e\xa4\x86\xef\xbd\xa1\xea\xa1\x8f\xe2\x80\x8d\xe2\x80\x8c"); } // [B6, C1, C2] +test { 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] +test { try toUnicodeFail("\xf3\xa0\x85\xb9\xf0\x91\x82\xb6.\xe1\xa2\x8c\xf0\x91\x82\xb9\xd9\xa9"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("xn--b50d.xn--iib993gyp5p"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91"); } // [V7] +test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91"); } // [V7] +test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe"); } // [V7] +test { try toUnicodeFail("\xe2\x84\xb2\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe"); } // [V7] +test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe8\xa5\xbe"); } // [V7] +test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe8\xa5\xbe"); } // [V7] +test { try toUnicodeFail("xn--73g39298c.xn--hdhz171b"); } // [V7] +test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82>\xcc\xb8\xe2\xbe\x91"); } // [V7] +test { try toUnicodeFail("\xe2\x85\x8e\xf3\xa0\x85\xba\xf1\x9d\xb5\x92\xe3\x80\x82\xe2\x89\xaf\xe2\xbe\x91"); } // [V7] +test { try toUnicodeFail("xn--f3g73398c.xn--hdhz171b"); } // [V7] +test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3] +test { try toUnicodeFail("\xcf\x82\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3] +test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3] +test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xe3\x80\x82-"); } // [B1, B5, B6, C2, V3] +test { try toUnicodeFail("xn--4xa25ks2j.-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("xn--4xa25ks2jenu.-"); } // [B1, B5, B6, C2, V3] +test { try toUnicodeFail("xn--3xa45ks2jenu.-"); } // [B1, B5, B6, C2, V3] +test { try toUnicodeFail("\xce\xa3\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3] +test { try toUnicodeFail("\xcf\x83\xe2\x80\x8d\xe0\xb7\x94\xd9\xa0\xef\xbd\xa1-"); } // [B1, B5, B6, C2, V3] +test { try toUnicodeFail("\xe2\x80\x8c.\xc3\x9f\xe1\x82\xa9-"); } // [C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c.\xc3\x9f\xe2\xb4\x89-"); } // [C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c.SS\xe1\x82\xa9-"); } // [C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c.ss\xe2\xb4\x89-"); } // [C1, V3] +test { try toUnicodeFail("\xe2\x80\x8c.Ss\xe2\xb4\x89-"); } // [C1, V3] +test { try toUnicodeFail(".xn--ss--bi1b"); } // [V3, X4_2] +test { try toUnicodeFail("xn--0ug.xn--ss--bi1b"); } // [C1, V3] +test { try toUnicodeFail("xn--0ug.xn----pfa2305a"); } // [C1, V3] +test { try toUnicodeFail(".xn--ss--4rn"); } // [V3, V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--ss--4rn"); } // [C1, V3, V7] +test { try toUnicodeFail("xn--0ug.xn----pfa042j"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe2\xbe\x91"); } // [B5, V7] +test { try toUnicodeFail("\xf3\x8d\xad\xb2\xf0\x90\xab\x8d\xe3\x93\xb1\xe3\x80\x82\xe8\xa5\xbe"); } // [B5, V7] +test { try toUnicodeFail("xn--u7kt691dlj09f.xn--9v2a"); } // [B5, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--2jb053lf13nyoc.xn--hdh08821l"); } // [B1, B3, V7] +test { try toUnicodeFail("xn--2jb053lf13nyoc.xn--1ugx6gc8096c"); } // [B1, B3, C2, V7] +test { 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] +test { try toUnicodeFail("6\xe3\x80\x82\xf1\x83\xb0\xb6\xdd\xb7\xe0\xa2\xb0\xe2\xa9\x8b"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("6.xn--7pb04do15eq748f"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x8d\xb4\xf0\x91\x87\x80"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xef\xb3\xbd\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xd8\xb4\xd9\x89\xe3\x80\x82\xf0\x91\x87\x80\xf0\x91\x8d\xb4"); } // [B1, V3, V6] +test { try toUnicodeFail("xn----qnc7d.xn--wd1d62a"); } // [B1, V3, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1-f521m.xn--mxc0872kcu37dnmem"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--1-rgnu0071n.xn--mxc0872kcu37dnmem"); } // [B1, C1, V6, V7] test { try toUnicodePass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "\xe9\xbd\x99--4.\xc3\x9f"); } test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.\xc3\x9f", "xn----4-p16k.xn--zca", false); } test { 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 test { try toUnicodePass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "\xe9\xbd\x99--4.ss"); } test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "xn----4-p16k.ss", false); } test { try toAsciiPass("\xe9\xbd\x99--\xf0\x9d\x9f\xb0.Ss", "xn----4-p16k.ss", true); } +test { try toUnicodeFail("\xe1\xaf\xb2.\xf0\x90\xb9\xa2\xf0\x9e\x80\x96\xe2\x80\x8c"); } // [B1, C1, V6] +test { try toUnicodeFail("xn--0zf.xn--9n0d2296a"); } // [B1, V6] +test { try toUnicodeFail("xn--0zf.xn--0ug9894grqqf"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xef\xbd\xa1?-\xe2\x80\x8d"); } // [C2, V7, U1] +test { try toUnicodeFail("\xf3\x83\xb2\x99\xf3\xa0\x8b\x98\xe3\x80\x82?-\xe2\x80\x8d"); } // [C2, V7, U1] +test { try toUnicodeFail("xn--ct86d8w51a.?-"); } // [V3, V7, U1] +test { try toUnicodeFail("xn--ct86d8w51a.xn--?--n1t"); } // [C2, V7, U1] +test { try toUnicodeFail("xn--ct86d8w51a.?-\xe2\x80\x8d"); } // [C2, V7, U1] +test { try toUnicodeFail("XN--CT86D8W51A.?-\xe2\x80\x8d"); } // [C2, V7, U1] +test { try toUnicodeFail("Xn--Ct86d8w51a.?-\xe2\x80\x8d"); } // [C2, V7, U1] +test { try toUnicodeFail("\xe1\xa9\xa0\xef\xbc\x8e\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("\xe1\xa9\xa0.\xf0\x9e\xb5\xb7-\xf0\x9d\xaa\xa9\xe6\x82\x8e"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("xn--jof.xn----gf4bq282iezpa"); } // [B1, B2, B3, V6, V7] +test { 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] +test { try toUnicodeFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\xb3\xf1\x8f\xa5\xbe"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("\xf0\x9b\x9c\xaf\xf3\xa0\x8a\x9b.\xf0\x9e\xa4\x91\xf1\x8f\xa5\xbe"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("xn--xx5gy2741c.xn--re6hw266j"); } // [B2, B3, B6, V7] +test { 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] +test { try toUnicodeFail("\xdc\x9c\xf0\x90\xab\x92\xd8\xae.\xf0\x90\x8b\xb2"); } // [B1] +test { try toUnicodeFail("xn--tgb98b8643d.xn--m97c"); } // [B1] +test { try toUnicodeFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\x93\xd8\xb7\xe0\xa3\xa2.?"); } // [B1, V7, U1] +test { try toUnicodeFail("\xf0\x90\xbc\x91\xf0\x9e\xa4\xb5\xd8\xb7\xe0\xa3\xa2.?"); } // [B1, V7, U1] +test { try toUnicodeFail("xn--2gb08k9w69agm0g.?"); } // [B1, V7, U1] +test { try toUnicodeFail("\xe2\x86\x83\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe2\x86\x83\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe2\x86\x84\xe3\x80\x82\xe1\xb3\x94\xe0\xa9\x8d\xf0\x9e\xb7\xa3"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--r5g.xn--ybc995g0835a"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe2\x86\x84\xe3\x80\x82\xe0\xa9\x8d\xe1\xb3\x94\xf0\x9e\xb7\xa3"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--q5g.xn--ybc995g0835a"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f\xe2\x89\xae\xf0\x91\x9c\xab"); } // [V3, V7] +test { try toUnicodeFail("\xf3\xa0\xaa\xa2-\xe3\x80\x82\xf2\x9b\x82\x8f<\xcc\xb8\xf0\x91\x9c\xab"); } // [V3, V7] +test { try toUnicodeFail("xn----bh61m.xn--gdhz157g0em1d"); } // [V3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3n36e.xn--gdh992byu01p"); } // [V7] +test { try toUnicodeFail("xn--0ugc90904y.xn--gdh992byu01p"); } // [C1, C2, V7] +test { try toUnicodeFail("xn--3n36e.xn--hnd112gpz83n"); } // [V7] +test { try toUnicodeFail("xn--0ugc90904y.xn--hnd112gpz83n"); } // [C1, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn----rpd7902rclc..xn--fpo216m"); } // [B1, X4_2] +test { try toUnicodeFail("xn----rpd7902rclc.xn--fpo216mn07e"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xec\xaa\xa1"); } // [V6] +test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6] +test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xec\xaa\xa1"); } // [V6] +test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe1\x82\xb0\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6] +test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6] +test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xe3\x80\x82\xec\xaa\xa1"); } // [V6] +test { try toUnicodeFail("xn--7kj1858k.xn--pi6b"); } // [V6] +test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xe1\x84\x8d\xe1\x85\xa8\xe1\x86\xa8"); } // [V6] +test { try toUnicodeFail("\xf0\x9d\xaa\x9e\xe2\xb4\x90\xef\xbd\xa1\xec\xaa\xa1"); } // [V6] +test { try toUnicodeFail("xn--ond3755u.xn--pi6b"); } // [V6, V7] +test { try toUnicodeFail("\xe0\xb8\xba\xec\xa9\x81\xf0\x90\xb9\xac.\xf4\x8b\x89\xb3"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("xn--o4c4837g2zvb.xn--5f70g"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe1\xa1\x85\xef\xbc\x90\xe2\x80\x8c\xef\xbd\xa1\xe2\x8e\xa2\xf3\xa4\xa8\x84"); } // [C1, V7] +test { try toUnicodeFail("\xe1\xa1\x850\xe2\x80\x8c\xe3\x80\x82\xe2\x8e\xa2\xf3\xa4\xa8\x84"); } // [C1, V7] +test { try toUnicodeFail("xn--0-z6j.xn--8lh28773l"); } // [V7] +test { try toUnicodeFail("xn--0-z6jy93b.xn--8lh28773l"); } // [C1, V7] test { 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); } +test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8d\xc3\x9f"); } // [C2] test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8d\xc3\x9f", "xn--9-i0j5967eg3qz.ss", true); } +test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8d\xc3\x9f"); } // [C2] test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSS", "xn--9-i0j5967eg3qz.ss", true); } +test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSS"); } // [C2] test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dss", "xn--9-i0j5967eg3qz.ss", true); } +test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dss"); } // [C2] test { try toUnicodePass("xn--9-i0j5967eg3qz.ss", "\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss"); } test { try toAsciiPass("xn--9-i0j5967eg3qz.ss", "xn--9-i0j5967eg3qz.ss", false); } test { 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 test { try toUnicodePass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.ss"); } test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "xn--9-i0j5967eg3qz.ss", false); } test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.SS", "xn--9-i0j5967eg3qz.ss", true); } +test { try toUnicodeFail("xn--9-i0j5967eg3qz.xn--ss-l1t"); } // [C2] +test { try toUnicodeFail("xn--9-i0j5967eg3qz.xn--zca770n"); } // [C2] test { 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); } +test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSS"); } // [C2] test { 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); } +test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dss"); } // [C2] test { try toAsciiPass("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSs", "xn--9-i0j5967eg3qz.ss", true); } +test { try toUnicodeFail("\xf0\xb2\xae\x9a9\xea\x8d\xa9\xe1\x9f\x93.\xe2\x80\x8dSs"); } // [C2] test { 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); } +test { try toUnicodeFail("\xf0\xb2\xae\x9a\xef\xbc\x99\xea\x8d\xa9\xe1\x9f\x93\xef\xbc\x8e\xe2\x80\x8dSs"); } // [C2] test { 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"); } test { try toAsciiPass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "xn--ju8a625r.xn--hpb0073k", false); } test { try toAsciiPass("\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92", "xn--ju8a625r.xn--hpb0073k", true); } test { try toUnicodePass("xn--ju8a625r.xn--hpb0073k", "\xea\x97\xb7\xf0\x91\x86\x80.\xdd\x9d\xf0\x90\xa9\x92"); } test { try toAsciiPass("xn--ju8a625r.xn--hpb0073k", "xn--ju8a625r.xn--hpb0073k", false); } test { try toAsciiPass("xn--ju8a625r.xn--hpb0073k", "xn--ju8a625r.xn--hpb0073k", true); } +test { try toUnicodeFail("\xe2\x92\x90\xe2\x89\xaf-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7] +test { try toUnicodeFail("\xe2\x92\x90>\xcc\xb8-\xe3\x80\x82\xef\xb8\x92\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7] +test { try toUnicodeFail("9.\xe2\x89\xaf-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7, X4_2] +test { try toUnicodeFail("9.>\xcc\xb8-\xe3\x80\x82\xe3\x80\x82\xf2\xa9\x91\xa3-\xf1\x9e\x9b\xa0"); } // [V3, V7, X4_2] +test { try toUnicodeFail("9.xn----ogo..xn----xj54d1s69k"); } // [V3, V7, X4_2] +test { try toUnicodeFail("xn----ogot9g.xn----n89hl0522az9u2a"); } // [V3, V7] +test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d"); } // [B6, V7] +test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe1\x83\x81\xf3\xa0\xa2\x8f.\xd8\x9d"); } // [B6, V7] +test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f.\xd8\x9d"); } // [B6, V7] +test { try toUnicodeFail("xn--vuc226n8n28lmju7a.xn--cgb"); } // [B6, V7] +test { try toUnicodeFail("\xf2\x88\xaa\x9a\xe0\xb3\xa3\xe2\xb4\xa1\xf3\xa0\xa2\x8f\xef\xbc\x8e\xd8\x9d"); } // [B6, V7] +test { try toUnicodeFail("xn--vuc49qvu85xmju7a.xn--cgb"); } // [B6, V7] +test { try toUnicodeFail("\xe1\xb7\xab\xe3\x80\x82\xf0\x90\x8b\xa9\xd8\xb8-\xf0\x90\xab\xae"); } // [B1, V6] +test { try toUnicodeFail("xn--gfg.xn----xnc0815qyyg"); } // [B1, V6] +test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe1\x82\xbd"); } // [B5] +test { 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] +test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe1\x82\xbd"); } // [B5] +test { 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] +test { 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] +test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb3\x8b\xe2\xb4\x9d"); } // [B5] +test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe1\x82\xbd"); } // [B5] +test { 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] +test { 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] +test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe8\x88\x9b\xf0\x90\xb2\x8b\xe2\xb4\x9d"); } // [B5] +test { try toUnicodeFail("xn--9u4b.xn--llj123yh74e"); } // [B5] +test { 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] +test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb3\x8b\xe2\xb4\x9d"); } // [B5] +test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe1\x82\xbd"); } // [B5] +test { 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] +test { 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] +test { try toUnicodeFail("\xec\x8b\x87\xe3\x80\x82\xe2\xbe\x87\xf0\x90\xb2\x8b\xe2\xb4\x9d"); } // [B5] +test { try toUnicodeFail("xn--9u4b.xn--1nd7519ch79d"); } // [B5, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80"); } // [B1, C1] +test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x82\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1] +test { try toUnicodeFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe1\x83\x80"); } // [B1, C1] +test { try toUnicodeFail("\xf0\x90\xb9\xa0\xcf\x83\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1] +test { try toUnicodeFail("\xf0\x90\xb9\xa0\xce\xa3\xe3\x80\x82\xe2\x80\x8c\xda\xbf\xe2\xb4\xa0"); } // [B1, C1] +test { try toUnicodeFail("xn--4xa9167k.xn--ykb467q"); } // [B1, B2, B3] +test { try toUnicodeFail("xn--4xa9167k.xn--ykb760k9hj"); } // [B1, C1] +test { try toUnicodeFail("xn--3xa1267k.xn--ykb760k9hj"); } // [B1, C1] +test { try toUnicodeFail("xn--4xa9167k.xn--ykb632c"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("xn--4xa9167k.xn--ykb632cvxm"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--3xa1267k.xn--ykb632cvxm"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-\xc3\x9f"); } // [B2, B3, B5, B6, C1, V7] +test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-SS"); } // [B2, B3, B5, B6, C1, V7] +test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-ss"); } // [B2, B3, B5, B6, C1, V7] +test { try toUnicodeFail("\xf2\x87\x92\x90\xe2\x80\x8c\xd8\x84.\xda\x9a-Ss"); } // [B2, B3, B5, B6, C1, V7] +test { try toUnicodeFail("xn--mfb98261i.xn---ss-sdf"); } // [B2, B3, B5, B6, V7] +test { try toUnicodeFail("xn--mfb144kqo32m.xn---ss-sdf"); } // [B2, B3, B5, B6, C1, V7] +test { try toUnicodeFail("xn--mfb144kqo32m.xn----qfa315b"); } // [B2, B3, B5, B6, C1, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--zib.xn----twc1133r17r6g"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--zib502kda.xn----twc1133r17r6g"); } // [B1, C1, C2, V3, V7] +test { try toUnicodeFail("xn--zib539f.xn----twc1133r17r6g"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn--zib539f8igea.xn----twc1133r17r6g"); } // [B1, C1, C2, V3, V7] +test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac\xe2\x89\xa0"); } // [B3, V7] +test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xef\xbd\xa1\xf0\x90\xae\xac=\xcc\xb8"); } // [B3, V7] +test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac\xe2\x89\xa0"); } // [B3, V7] +test { try toUnicodeFail("\xf2\xa1\xb6\xb1\xe3\x80\x82\xf0\x90\xae\xac=\xcc\xb8"); } // [B3, V7] +test { try toUnicodeFail("xn--dd55c.xn--1ch3003g"); } // [B3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fgd0675v.xn--imb5839fidpcbba"); } // [B1, V6, V7] +test { try toUnicodeFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe1\x82\xa9"); } // [C2, V3] +test { try toUnicodeFail("\xe1\x82\xaf\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe1\x82\xa9"); } // [C2, V3] +test { try toUnicodeFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-.\xe2\x80\x8d\xe2\xb4\x89"); } // [C2, V3] +test { try toUnicodeFail("xn----3vs.xn--0kj"); } // [V3] +test { try toUnicodeFail("xn----3vs.xn--1ug532c"); } // [C2, V3] +test { try toUnicodeFail("\xe2\xb4\x8f\xf3\xa0\x85\x8b-\xef\xbc\x8e\xe2\x80\x8d\xe2\xb4\x89"); } // [C2, V3] +test { try toUnicodeFail("xn----00g.xn--hnd"); } // [V3, V7] +test { try toUnicodeFail("xn----00g.xn--hnd399e"); } // [C2, V3, V7] +test { 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] +test { try toUnicodeFail("xn--l8g5552g64t4g46xf.xn--ifb08144p"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88"); } // [B1, V7, U1] +test { try toUnicodeFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x91\xf0\x9f\x84\x87\xe2\x92\x88"); } // [B1, V7, U1] +test { try toUnicodeFail("\xe2\x89\xa0\xf0\x90\xae\x82.\xe2\x86\x916,1."); } // [B1, U1] +test { try toUnicodeFail("=\xcc\xb8\xf0\x90\xae\x82.\xe2\x86\x916,1."); } // [B1, U1] +test { try toUnicodeFail("xn--1chy492g.xn--6,1-pw1a."); } // [B1, U1] +test { try toUnicodeFail("xn--1chy492g.xn--6,-uzus5m"); } // [B1, V7, U1] +test { try toUnicodeFail("xn--1chy492g.xn--45gx9iuy44d"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-zb11ap1427e.xn--ubf2596jbt61c"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--ss-zb11ap1427e.xn--ubf609atw1tynn3d"); } // [B1, B5, B6, C1, V6, V7] +test { try toUnicodeFail("xn--zca3153vupz3e.xn--ubf609atw1tynn3d"); } // [B1, B5, B6, C1, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("xn--ss-e61ar955h4hs7b.xn--9x8a"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("xn--zca227tpy4lkns1b.xn--9x8a"); } // [B1, B5, V6, V7] +test { 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] +test { try toUnicodeFail("SS\xf0\x90\xb5\x93\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe2\xb4\x87\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("Ss\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xe3\x80\x82\xea\x99\xba"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("xn--ss-rek7420r4hs7b.xn--9x8a"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("xn--zca491fci5qkn79a.xn--9x8a"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("SS\xf0\x90\xb5\xb3\xf1\x97\x98\x81\xe1\x82\xa7\xef\xbd\xa1\xea\x99\xba"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("\xe1\x9c\x94\xe3\x80\x82\xf3\xa0\x86\xa3-\xf0\x91\x8b\xaa"); } // [V3, V6] +test { try toUnicodeFail("xn--fze.xn----ly8i"); } // [V3, V6] +test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f"); } // [V3, V6, V7] +test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbd\xc3\x9f"); } // [V3, V6, V7] +test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSS"); } // [V3, V6, V7] +test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdss"); } // [V3, V6, V7] +test { try toUnicodeFail("\xea\xaf\xa8-.\xf2\xa8\x8f\x9c\xd6\xbdSs"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----pw5e.xn--ss-7jd10716y"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----pw5e.xn--zca50wfv060a"); } // [V3, V6, V7] +test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSS"); } // [V3, V6, V7] +test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdss"); } // [V3, V6, V7] +test { try toUnicodeFail("\xea\xaf\xa8-\xef\xbc\x8e\xf2\xa8\x8f\x9c\xd6\xbdSs"); } // [V3, V6, V7] +test { try toUnicodeFail("\xe1\xa1\x93-\xe2\x89\xae\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84"); } // [B1, B6] +test { try toUnicodeFail("\xe1\xa1\x93-<\xcc\xb8\xe3\x80\x82\xd9\xab\xf3\xa0\x85\xb1\xe1\xa1\x84"); } // [B1, B6] +test { try toUnicodeFail("xn----s7j866c.xn--kib252g"); } // [B1, B6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--3-ksd277tlo7s.xn--8-f0jx021l"); } // [V6] +test { try toUnicodeFail("-\xef\xbd\xa1\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1"); } // [C2, V3, V7] +test { try toUnicodeFail("-\xe3\x80\x82\xf2\x95\x8c\x80\xe2\x80\x8d\xe2\x9d\xa1"); } // [C2, V3, V7] +test { try toUnicodeFail("-.xn--nei54421f"); } // [V3, V7] +test { try toUnicodeFail("-.xn--1ug800aq795s"); } // [C2, V3, V7] +test { 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] +test { try toUnicodeFail("5\xe2\x98\xb12\xf2\xa5\xb0\xb5\xe3\x80\x82\xf0\x9d\xaa\xae\xf1\x90\xa1\xb3"); } // [V6, V7] +test { try toUnicodeFail("xn--52-dwx47758j.xn--kd3hk431k"); } // [V6, V7] +test { try toUnicodeFail("-.-\xe2\x94\x9c\xf2\x96\xa6\xa3"); } // [V3, V7] +test { try toUnicodeFail("-.xn----ukp70432h"); } // [V3, V7] +test { try toUnicodeFail("\xd6\xa5\xdd\xad\xef\xbd\xa1\xe2\x80\x8d\xf3\xa0\x80\x98"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("\xd6\xa5\xdd\xad\xe3\x80\x82\xe2\x80\x8d\xf3\xa0\x80\x98"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("xn--wcb62g.xn--p526e"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--wcb62g.xn--1ugy8001l"); } // [B1, C2, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe1\x82\xae.\xe2\x80\x8c1.1.\xf0\x90\xab\x92"); } // [B1, C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xec\xa5\xa5\xf3\x94\x8f\x89\xe2\xb4\x8e.\xe2\x80\x8c1.1.\xf0\x90\xab\x92"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--5kj3511ccyw3h.1.1.xn--7w9c"); } // [B1, V7] +test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--1-rgn.1.xn--7w9c"); } // [B1, C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--tsha6797o"); } // [B1, V7] +test { try toUnicodeFail("xn--5kj3511ccyw3h.xn--0ug88oa0396u"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--mnd7865gcy28g.1.1.xn--7w9c"); } // [B1, V7] +test { try toUnicodeFail("xn--mnd7865gcy28g.xn--1-rgn.1.xn--7w9c"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--mnd7865gcy28g.xn--tsha6797o"); } // [B1, V7] +test { try toUnicodeFail("xn--mnd7865gcy28g.xn--0ug88oa0396u"); } // [B1, C1, V7] +test { try toUnicodeFail("\xe0\xa0\xa7\xf0\x9d\x9f\xb6\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe0\xa0\xa70\xda\xa0-\xe3\x80\x82\xf0\x91\x84\xb3"); } // [B1, V3, V6] +test { try toUnicodeFail("xn--0--p3d67m.xn--v80d"); } // [B1, V3, V6] +test { try toUnicodeFail("\xcf\x82\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7] test { 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."); } test { 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."); } test { 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."); } test { try toUnicodePass("xn--4xa.xn--1-gocmu97674d.", "\xcf\x83.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); } test { try toUnicodePass("xn--3xa.xn--1-gocmu97674d.", "\xcf\x82.\xd9\x81\xd9\x85\xd9\x8a\xf0\x9f\x9e\x9b1."); } +test { try toUnicodeFail("\xce\xa3\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7] +test { try toUnicodeFail("\xcf\x83\xef\xbc\x8e\xef\xb7\x81\xf0\x9f\x9e\x9b\xe2\x92\x88"); } // [V7] +test { try toUnicodeFail("xn--4xa.xn--dhbip2802atb20c"); } // [V7] +test { try toUnicodeFail("xn--3xa.xn--dhbip2802atb20c"); } // [V7] +test { try toUnicodeFail("\xf0\x9f\x97\xa9-\xef\xbd\xa1\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\x9f\x97\xa9-\xe3\x80\x82\xf0\x90\xb9\xbb\xf3\x90\x9e\x86\xf1\xa5\x89\xae"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----6t3s.xn--zo0d4811u6ru6a"); } // [B1, V3, V7] +test { 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] +test { try toUnicodeFail("\xf0\x90\xa1\x9c-\xf0\x9f\x94\xaa\xe3\x80\x825\xe2\x80\x8c\xf0\x90\xbf\x80"); } // [B1, B3, C1] +test { try toUnicodeFail("xn----5j4iv089c.xn--5-bn7i"); } // [B1, B3] +test { try toUnicodeFail("xn----5j4iv089c.xn--5-sgn7149h"); } // [B1, B3, C1] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { 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] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8d\xc3\x9f.\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { 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] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS.\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dss.\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { try toUnicodeFail("xn--ss-i05i7041a.xn--0-vgc50n"); } // [B1] +test { try toUnicodeFail("xn--ss-l1tu910fo0xd.xn--0-vgc50n"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xe1\x84\x82\xe1\x85\xb4\xe1\x86\xba\xe2\x80\x8dSs.\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { try toUnicodeFail("xn--zca770n5s4hev6c.xn--0-vgc50n"); } // [B1, C2] +test { 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] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSS\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dss\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { 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] +test { try toUnicodeFail("\xf0\x90\xb9\xa3\xeb\x8a\xbf\xe2\x80\x8dSs\xef\xbc\x8e\xdf\x8f0\xd6\xbc"); } // [B1, C2] +test { 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] +test { try toUnicodeFail("9\xf3\xa0\x87\xa5\xef\xbc\x8e\xf3\xaa\xb4\xb4\xe1\xa2\x93"); } // [V7] +test { try toUnicodeFail("9\xf3\xa0\x87\xa5.\xf3\xaa\xb4\xb4\xe1\xa2\x93"); } // [V7] +test { try toUnicodeFail("9.xn--dbf91222q"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe7\x8e\x89"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe7\x8e\x89"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xe1\x85\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe7\x8e\x89"); } // [B1, B2, B3, C1] +test { try toUnicodeFail(".xn--ss-je6eq954cp25j"); } // [B2, B3, X4_2] +test { try toUnicodeFail("xn--0ug.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("xn--0ug.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97SS\xe2\xbd\x9f"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97ss\xe2\xbd\x9f"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbe\xa0.\xf0\x90\xab\xad\xf0\x9f\xa0\x97Ss\xe2\xbd\x9f"); } // [B1, B2, B3, C1] +test { try toUnicodeFail("xn--psd.xn--ss-je6eq954cp25j"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--psd526e.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--psd526e.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--cl7c.xn--ss-je6eq954cp25j"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--0ug7719f.xn--ss-je6eq954cp25j"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("xn--0ug7719f.xn--zca2289c550e0iwi"); } // [B1, B2, B3, C1, V7] +test { try toUnicodeFail("\xef\xb8\x92\xe1\x82\xb6\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V7] +test { try toUnicodeFail("\xe3\x80\x82\xe1\x82\xb6\xcd\xa6.\xe2\x80\x8c"); } // [C1, X4_2] +test { try toUnicodeFail("\xe3\x80\x82\xe2\xb4\x96\xcd\xa6.\xe2\x80\x8c"); } // [C1, X4_2] +test { try toUnicodeFail(".xn--hva754s."); } // [X4_2] +test { try toUnicodeFail(".xn--hva754s.xn--0ug"); } // [C1, X4_2] +test { try toUnicodeFail("\xef\xb8\x92\xe2\xb4\x96\xcd\xa6\xef\xbc\x8e\xe2\x80\x8c"); } // [C1, V7] +test { try toUnicodeFail("xn--hva754sy94k."); } // [V7] +test { try toUnicodeFail("xn--hva754sy94k.xn--0ug"); } // [C1, V7] +test { try toUnicodeFail(".xn--hva929d."); } // [V7, X4_2] +test { try toUnicodeFail(".xn--hva929d.xn--0ug"); } // [C1, V7, X4_2] +test { try toUnicodeFail("xn--hva929dl29p."); } // [V7] +test { try toUnicodeFail("xn--hva929dl29p.xn--0ug"); } // [C1, V7] test { try toUnicodePass("xn--hva754s.", "\xe2\xb4\x96\xcd\xa6."); } test { try toUnicodePass("\xe2\xb4\x96\xcd\xa6.", "\xe2\xb4\x96\xcd\xa6."); } test { try toUnicodePass("\xe1\x82\xb6\xcd\xa6.", "\xe2\xb4\x96\xcd\xa6."); } +test { try toUnicodeFail("xn--hva929d."); } // [V7] test { try toAsciiPass("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); } +test { try toUnicodeFail("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92"); } // [B1, C1] test { try toAsciiPass("\xe0\xa2\xbb.\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); } +test { try toUnicodeFail("\xe0\xa2\xbb.\xe2\x80\x8c\xe1\x82\xa3\xf0\x9e\x80\x92"); } // [B1, C1] test { try toAsciiPass("\xe0\xa2\xbb.\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); } +test { try toUnicodeFail("\xe0\xa2\xbb.\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92"); } // [B1, C1] test { try toUnicodePass("xn--hzb.xn--ukj4430l", "\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92"); } test { try toAsciiPass("xn--hzb.xn--ukj4430l", "xn--hzb.xn--ukj4430l", false); } test { 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- test { try toUnicodePass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "\xe0\xa2\xbb.\xe2\xb4\x83\xf0\x9e\x80\x92"); } test { try toAsciiPass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", false); } test { try toAsciiPass("\xe0\xa2\xbb.\xe1\x82\xa3\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); } +test { try toUnicodeFail("xn--hzb.xn--0ug822cp045a"); } // [B1, C1] test { try toAsciiPass("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92", "xn--hzb.xn--ukj4430l", true); } +test { try toUnicodeFail("\xe0\xa2\xbb\xef\xbc\x8e\xe2\x80\x8c\xe2\xb4\x83\xf0\x9e\x80\x92"); } // [B1, C1] +test { try toUnicodeFail("xn--hzb.xn--bnd2938u"); } // [V7] +test { try toUnicodeFail("xn--hzb.xn--bnd300f7225a"); } // [B1, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xef\xbc\x92\xe4\xab\xb7\xf3\xa0\xa7\xb7"); } // [C1, C2, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x822\xe4\xab\xb7\xf3\xa0\xa7\xb7"); } // [C1, C2, V7] +test { try toUnicodeFail(".xn--2-me5ay1273i"); } // [V7, X4_2] +test { try toUnicodeFail("xn--0ugb.xn--2-me5ay1273i"); } // [C1, C2, V7] +test { try toUnicodeFail("-\xf0\x9e\x80\xa4\xf3\x9c\xa0\x90\xe3\x80\x82\xf2\x88\xac\x96"); } // [V3, V7] +test { try toUnicodeFail("xn----rq4re4997d.xn--l707b"); } // [V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd8\xa41."); } // [B1, C1, V7] +test { try toUnicodeFail("\xf3\xb3\x9b\x82\xe3\x80\x82\xe2\x80\x8c\xe3\x9f\x80.\xd9\x88\xd9\x941."); } // [B1, C1, V7] +test { try toUnicodeFail("xn--z272f.xn--etl.xn--1-smc."); } // [V7] +test { try toUnicodeFail("xn--z272f.xn--0ug754g.xn--1-smc."); } // [B1, C1, V7] +test { try toUnicodeFail("xn--etlt457ccrq7h.xn--jgb476m"); } // [V7] +test { try toUnicodeFail("xn--0ug754gxl4ldlt0k.xn--jgb476m"); } // [C1, V7] +test { try toUnicodeFail("\xf0\x91\xb2\x9c\xdf\x8a\xf0\x9d\x85\xbc\xe3\x80\x82-\xe2\x80\x8d"); } // [B1, C2, V3, V6] +test { try toUnicodeFail("xn--lsb5482l7nre.-"); } // [B1, V3, V6] +test { try toUnicodeFail("xn--lsb5482l7nre.xn----ugn"); } // [B1, C2, V3, V6] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c.\xe1\x82\xa9\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c.\xe1\x82\xa9=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c.\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c.\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1] +test { try toUnicodeFail(".xn--1chx23bzj4p"); } // [B5, B6, X4_2] +test { try toUnicodeFail("xn--0ug.xn--1chx23bzj4p"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89=\xcc\xb8\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\x80\x8c\xef\xbc\x8e\xe2\xb4\x89\xe2\x89\xa0\xf0\x90\xab\xb6"); } // [B1, B5, B6, C1] +test { try toUnicodeFail(".xn--hnd481gv73o"); } // [B5, B6, V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--hnd481gv73o"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x82"); } // [B1] +test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x82"); } // [B1] +test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xce\xa3"); } // [B1] +test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xce\xa3"); } // [B1] +test { try toUnicodeFail("\xdd\x90\xe3\x80\x82\xe2\x89\xaf\xcf\x83"); } // [B1] +test { try toUnicodeFail("\xdd\x90\xe3\x80\x82>\xcc\xb8\xcf\x83"); } // [B1] +test { try toUnicodeFail("xn--3ob.xn--4xa718m"); } // [B1] +test { try toUnicodeFail("xn--3ob.xn--3xa918m"); } // [B1] +test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe1\x82\xb0"); } // [V7] +test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe1\x82\xb0"); } // [V7] +test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xe3\x80\x82\xf1\x8a\xa8\xa9\xe2\xb4\x90"); } // [V7] +test { try toUnicodeFail("xn--0tb8725k.xn--tu8d.xn--7kj73887a"); } // [V7] +test { try toUnicodeFail("\xdf\xbc\xf0\x90\xb8\x86.\xf0\x93\x96\x8f\xef\xb8\x92\xf1\x8a\xa8\xa9\xe2\xb4\x90"); } // [V7] +test { try toUnicodeFail("xn--0tb8725k.xn--7kj9008dt18a7py9c"); } // [V7] +test { try toUnicodeFail("xn--0tb8725k.xn--tu8d.xn--ond97931d"); } // [V7] +test { try toUnicodeFail("xn--0tb8725k.xn--ond3562jt18a7py9c"); } // [V7] +test { try toUnicodeFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x83\x85\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc"); } // [V6, V7] +test { try toUnicodeFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xe3\x80\x82\xf0\x91\x8c\xbc"); } // [V6, V7] +test { try toUnicodeFail("xn--vfh16m67gx1162b.xn--ro1d"); } // [V6, V7] +test { try toUnicodeFail("\xe2\xb4\xa5\xe2\x9a\xad\xf3\xa0\x96\xab\xe2\x8b\x83\xef\xbd\xa1\xf0\x91\x8c\xbc"); } // [V6, V7] +test { try toUnicodeFail("xn--9nd623g4zc5z060c.xn--ro1d"); } // [V6, V7] +test { try toUnicodeFail("\xf0\x9f\x84\x88\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84"); } // [B1, V7, U1] +test { try toUnicodeFail("7,\xe3\x80\x82\xf3\xa0\xb7\xb3\xe0\xa1\x84"); } // [B1, V7, U1] +test { try toUnicodeFail("7,.xn--2vb13094p"); } // [B1, V7, U1] +test { try toUnicodeFail("xn--107h.xn--2vb13094p"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96\xc3\x9f"); } // [B1] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96SS"); } // [B1] +test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96ss"); } // [B1] +test { 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] +test { try toUnicodeFail("xn--4vb505k.xn--ss-5z4j006a"); } // [B1] +test { try toUnicodeFail("\xe2\x89\xae\xe0\xa1\x86\xe3\x80\x82\xec\x84\x96\xec\xae\x96Ss"); } // [B1] +test { 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] +test { try toUnicodeFail("xn--4vb505k.xn--zca7259goug"); } // [B1] +test { try toUnicodeFail("\xf3\xa0\x86\x93\xe2\x9b\x8f-\xe3\x80\x82\xea\xa1\x92"); } // [V3] +test { try toUnicodeFail("xn----o9p.xn--rc9a"); } // [V3] +test { 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] +test { 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] +test { try toUnicodeFail("xn--lgb32f2753cosb.xn--jkb91hlz1a"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--lgb32f2753cosb.xn--jkb91hlz1azih"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe0\xa0\x96.\xf0\x90\xa8\x95\xf0\x9a\x9a\x95"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("xn--rub.xn--tr9c248x"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("--\xe3\x80\x82\xf0\xbd\x8a\x86\xdd\xa7\xf0\x90\xbd\x8b\xf0\x9e\xa0\xac"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("--.xn--rpb6226k77pfh58p"); } // [B1, B5, B6, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--887c2298i5mv6a.xn--vybt688qm8981a"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--2loy662coo60e.xn----0n4a"); } // [B1, B5, B6, V3, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xa9\xef\xbc\x8e\xe2\x80\x8d-"); } // [B1, C2, V3] +test { try toUnicodeFail("\xf0\x90\xb9\xa9.\xe2\x80\x8d-"); } // [B1, C2, V3] +test { try toUnicodeFail("xn--ho0d.-"); } // [B1, V3] +test { try toUnicodeFail("xn--ho0d.xn----tgn"); } // [B1, C2, V3] +test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7] +test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xef\xbd\xa1>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7] +test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82\xe2\x89\xaf\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7] +test { try toUnicodeFail("\xf1\x82\x88\xa6\xe5\xb8\xb7\xe3\x80\x82>\xcc\xb8\xe8\x90\xba\xe1\xb7\x88-"); } // [V3, V7] +test { try toUnicodeFail("xn--qutw175s.xn----mimu6tf67j"); } // [V3, V7] test { 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); } +test { try toUnicodeFail("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe1\x82\xb8"); } // [C2] test { 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); } +test { try toUnicodeFail("\xe2\x80\x8d\xe6\x94\x8c\xea\xaf\xad\xe3\x80\x82\xe1\xa2\x96-\xe2\xb4\x98"); } // [C2] test { try toUnicodePass("xn--p9ut19m.xn----mck373i", "\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe2\xb4\x98"); } test { try toAsciiPass("xn--p9ut19m.xn----mck373i", "xn--p9ut19m.xn----mck373i", false); } test { 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 test { 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"); } test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", false); } test { try toAsciiPass("\xe6\x94\x8c\xea\xaf\xad.\xe1\xa2\x96-\xe1\x82\xb8", "xn--p9ut19m.xn----mck373i", true); } +test { try toUnicodeFail("xn--1ug592ykp6b.xn----mck373i"); } // [C2] +test { try toUnicodeFail("xn--p9ut19m.xn----k1g451d"); } // [V7] +test { try toUnicodeFail("xn--1ug592ykp6b.xn----k1g451d"); } // [C2, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8\xef\xbc\x8e\xe2\x92\x97\xef\xbc\x93\xed\x88\x92\xdb\xb3"); } // [C1, V7] +test { 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] test { try toAsciiPass("\xe2\x80\x8c\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3", "xn--9r8a.16.xn--3-nyc0117m", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); } // [C1] test { 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); } +test { try toUnicodeFail("\xe2\x80\x8c\xea\x96\xa8.16.3\xe1\x84\x90\xe1\x85\xad\xe1\x86\xa9\xdb\xb3"); } // [C1] test { try toUnicodePass("xn--9r8a.16.xn--3-nyc0117m", "\xea\x96\xa8.16.3\xed\x88\x92\xdb\xb3"); } test { try toAsciiPass("xn--9r8a.16.xn--3-nyc0117m", "xn--9r8a.16.xn--3-nyc0117m", false); } test { 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- test { 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"); } test { 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); } test { 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); } +test { try toUnicodeFail("xn--0ug2473c.16.xn--3-nyc0117m"); } // [C1] +test { try toUnicodeFail("xn--9r8a.xn--3-nyc678tu07m"); } // [V7] +test { try toUnicodeFail("xn--0ug2473c.xn--3-nyc678tu07m"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x92\x88\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x92\x88\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90"); } // [B1, V7] +test { try toUnicodeFail("1.\xea\xb1\xbe6.\xf0\x90\xb1\x81\xdb\x90"); } // [B1] +test { try toUnicodeFail("1.\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xb56.\xf0\x90\xb1\x81\xdb\x90"); } // [B1] +test { try toUnicodeFail("1.xn--6-945e.xn--glb1794k"); } // [B1] +test { try toUnicodeFail("xn--6-dcps419c.xn--glb1794k"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("\xf0\x90\xb2\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7] +test { try toUnicodeFail("\xf0\x90\xb2\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7] +test { try toUnicodeFail("\xf0\x90\xb2\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7] +test { try toUnicodeFail("\xf0\x90\xb3\x9e0<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7] +test { try toUnicodeFail("\xf0\x90\xb3\x9e0\xe2\x89\xae\xe2\x89\xae.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7] +test { try toUnicodeFail("xn--0-ngoa5711v.xn--4gb31034p"); } // [B1, B3, V7] +test { try toUnicodeFail("\xf0\x90\xb3\x9e\xf0\x9d\x9f\xb6<\xcc\xb8<\xcc\xb8.\xf3\xa0\x80\xa7\xd8\xb9"); } // [B1, B3, V7] +test { 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] +test { try toUnicodeFail("\xe0\xab\xa3.\xf0\x90\xb9\xba\xe1\x85\x9f"); } // [B1, V6] +test { try toUnicodeFail("xn--8fc.xn--yo0d"); } // [B1, V6] +test { try toUnicodeFail("xn--8fc.xn--osd3070k"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf0\x9d\x9f\x8f\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d"); } // [C2] +test { try toUnicodeFail("1\xf0\x9d\xa8\x99\xe2\xb8\x96.\xe2\x80\x8d"); } // [C2] test { try toUnicodePass("xn--1-5bt6845n.", "1\xf0\x9d\xa8\x99\xe2\xb8\x96."); } test { try toUnicodePass("1\xf0\x9d\xa8\x99\xe2\xb8\x96.", "1\xf0\x9d\xa8\x99\xe2\xb8\x96."); } +test { try toUnicodeFail("xn--1-5bt6845n.xn--1ug"); } // [C2] +test { 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] +test { try toUnicodeFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3] +test { 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] +test { try toUnicodeFail("\xf0\x9e\xa4\x90=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3] +test { try toUnicodeFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xe3\x80\x82-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3] +test { 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] +test { try toUnicodeFail("xn--wnb859grzfzw60c.xn----kcd"); } // [B1, V3] +test { try toUnicodeFail("xn--wnb859grzfzw60c.xn----kcd017p"); } // [B1, C1, V3] +test { try toUnicodeFail("\xf0\x9e\xa4\xb2=\xcc\xb8\xdc\xa6\xe1\xa9\xa0\xef\xbd\xa1-\xe2\x80\x8c\xdf\x95"); } // [B1, C1, V3] +test { 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] +test { try toUnicodeFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xef\xbd\xa1\xd9\xb5"); } // [B1] +test { try toUnicodeFail("\xf0\x90\xb9\xb0\xcd\xa8-\xea\xa1\xa7\xe3\x80\x82\xd8\xa7\xd9\xb4"); } // [B1] +test { try toUnicodeFail("xn----shb2387jgkqd.xn--mgb8m"); } // [B1] +test { try toUnicodeFail("F\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7] +test { try toUnicodeFail("F\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7] +test { try toUnicodeFail("f\xf3\xa0\x85\x9f\xe3\x80\x82\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7] +test { try toUnicodeFail("f.xn--45hz6953f"); } // [V7] +test { try toUnicodeFail("f\xf3\xa0\x85\x9f\xef\xbd\xa1\xf2\x8f\x97\x85\xe2\x99\x9a"); } // [V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--9ic246gs21p.xn--2-nws2918ndrjr"); } // [V6, V7] +test { 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] +test { try toUnicodeFail("xn--9ic246gs21p.xn--2-k1g43076adrwq"); } // [V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1-yi00h..xn--4grs325b"); } // [V7, X4_2] +test { try toUnicodeFail("xn--1-rgna61159u..xn--4grs325b"); } // [C1, V7, X4_2] +test { try toUnicodeFail("xn--tsh11906f.xn--4grs325b"); } // [V7] +test { try toUnicodeFail("xn--0uga855aez302a.xn--4grs325b"); } // [C1, V7] +test { try toUnicodeFail("\xe1\xa1\x83.\xe7\x8e\xbf\xf1\xab\x88\x9c\xf3\x95\x9e\x90"); } // [V7] +test { try toUnicodeFail("xn--27e.xn--7cy81125a0yq4a"); } // [V7] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88\xe2\x89\xaf\xf0\x9d\x9f\xb5"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xef\xbd\xa1\xe2\x92\x88>\xcc\xb8\xf0\x9d\x9f\xb5"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.\xe2\x89\xaf9"); } // [C1] +test { try toUnicodeFail("\xe2\x80\x8c\xe2\x80\x8c\xe3\x80\x821.>\xcc\xb89"); } // [C1] +test { try toUnicodeFail(".1.xn--9-ogo"); } // [X4_2] +test { try toUnicodeFail("xn--0uga.1.xn--9-ogo"); } // [C1] +test { try toUnicodeFail(".xn--9-ogo37g"); } // [V7, X4_2] +test { try toUnicodeFail("xn--0uga.xn--9-ogo37g"); } // [C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4eg41418g.xn--hdh5192gkm6r"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--osd615d5659o.xn--hdh5192gkm6r"); } // [B5, B6, V7] +test { 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] +test { try toUnicodeFail("xn--9gb5080v.xn----qgd52296avol4f"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--9gb723kg862a.xn----qgd52296avol4f"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("\xe2\x83\x9a\xef\xbc\x8e\xf0\x91\x98\xbf-"); } // [V3, V6] +test { try toUnicodeFail("\xe2\x83\x9a.\xf0\x91\x98\xbf-"); } // [V3, V6] +test { try toUnicodeFail("xn--w0g.xn----bd0j"); } // [V3, V6] +test { try toUnicodeFail("\xe4\xae\xb8\xc3\x9f.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7] +test { try toUnicodeFail("\xe4\xae\xb8SS.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7] +test { try toUnicodeFail("\xe4\xae\xb8ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7] +test { try toUnicodeFail("\xe4\xae\xb8Ss.\xf3\xa0\xb5\x9f\xf3\xa0\xad\x8e\xe7\xb4\x99\xe0\xa2\xa8"); } // [B1, V7] +test { try toUnicodeFail("xn--ss-sf1c.xn--xyb1370div70kpzba"); } // [B1, V7] +test { try toUnicodeFail("xn--zca5349a.xn--xyb1370div70kpzba"); } // [B1, V7] +test { try toUnicodeFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95"); } // [B1, V3] +test { try toUnicodeFail("-\xe1\x82\xbe.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95"); } // [B1, V3] +test { try toUnicodeFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa82\xe2\x81\x843\xf0\x90\xa6\x95"); } // [B1, V3] +test { try toUnicodeFail("xn----zws.xn---23-pt0a0433lk3jj"); } // [B1, V3] +test { try toUnicodeFail("-\xe2\xb4\x9e.-\xf0\x9d\xa9\xa8\xe2\x85\x94\xf0\x90\xa6\x95"); } // [B1, V3] +test { try toUnicodeFail("xn----w1g.xn---23-pt0a0433lk3jj"); } // [B1, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--bfc7604kv8m3g.xn--17e5565jl7zw4h16a"); } // [B5, B6, V7] +test { 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] +test { try toUnicodeFail("\xe1\x82\x82-\xe2\x80\x8d\xea\xa3\xaa.\xea\xa1\x8a\xe2\x80\x8d\xf1\xbc\xb8\xb3"); } // [C2, V6, V7] +test { try toUnicodeFail("xn----gyg3618i.xn--jc9ao4185a"); } // [V6, V7] +test { try toUnicodeFail("xn----gyg250jio7k.xn--1ug8774cri56d"); } // [C2, V6, V7] +test { try toUnicodeFail("\xdb\xb1\xe3\x80\x82\xe2\x89\xa0\xd9\xa8"); } // [B1] +test { try toUnicodeFail("\xdb\xb1\xe3\x80\x82=\xcc\xb8\xd9\xa8"); } // [B1] +test { try toUnicodeFail("xn--emb.xn--hib334l"); } // [B1] +test { try toUnicodeFail("\xf0\x91\x88\xb5\xe5\xbb\x8a.\xf0\x90\xa0\x8d"); } // [V6] +test { try toUnicodeFail("xn--xytw701b.xn--yc9c"); } // [V6] +test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe1\x82\xb0\xd9\xa1"); } // [B1, C2, V3] +test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-.-\xe1\x82\xb0\xd9\xa1"); } // [B1, C2, V3] +test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-.-\xe2\xb4\x90\xd9\xa1"); } // [B1, C2, V3] +test { try toUnicodeFail("xn----rgb.xn----bqc2280a"); } // [B1, V3, V6] +test { try toUnicodeFail("xn----rgb661t.xn----bqc2280a"); } // [B1, C2, V3] +test { try toUnicodeFail("\xe2\x80\x8d\xcd\x96-\xef\xbc\x8e-\xe2\xb4\x90\xd9\xa1"); } // [B1, C2, V3] +test { try toUnicodeFail("xn----rgb.xn----bqc030f"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn----rgb661t.xn----bqc030f"); } // [B1, C2, V3, V7] +test { try toUnicodeFail("\xd8\xba\xd9\xa1\xe6\x8c\x8f\xf3\xbe\xaf\x90.-"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("xn--5gb2f4205aqi47p.-"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd"); } // [B1] +test { try toUnicodeFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\xbd"); } // [B1] +test { try toUnicodeFail("\xdb\xaf\xe3\x80\x82\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b"); } // [B1] +test { try toUnicodeFail("xn--cmb.xn--fo0dy848a"); } // [B1] +test { try toUnicodeFail("\xdb\xaf\xef\xbd\xa1\xf0\x90\xb9\xa7\xf0\x9e\xa4\x9b"); } // [B1] +test { try toUnicodeFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab"); } // [V7] +test { 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] +test { try toUnicodeFail("\xe1\x82\xbe\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb.\xe1\xa2\x97\xeb\xa6\xab"); } // [V7] +test { try toUnicodeFail("xn--mlj0486jgl2j.xn--hbf6853f"); } // [V7] +test { 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] +test { try toUnicodeFail("\xe2\xb4\x9e\xf0\xb6\x9b\x80\xf0\x9b\x97\xbb\xef\xbc\x8e\xe1\xa2\x97\xeb\xa6\xab"); } // [V7] +test { try toUnicodeFail("xn--2nd8876sgl2j.xn--hbf6853f"); } // [V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--qkb4516kbi06fg2id.xn--zfg31q"); } // [B1, V7] +test { try toUnicodeFail("xn--qkb4516kbi06fg2id.xn--zfg59fm0c"); } // [B1, C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fxe63563p.xn----q26i2bvu"); } // [B1, B6, V3, V7] +test { try toUnicodeFail("xn--fxe848bq3411a.xn----q26i2bvu"); } // [B1, B6, C2, V3, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xb6.\xf0\x90\xab\x82"); } // [B1] +test { try toUnicodeFail("xn--uo0d.xn--rw9c"); } // [B1] +test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7] +test { try toUnicodeFail("\xc3\x9f\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2] +test { try toUnicodeFail("SS\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2] +test { try toUnicodeFail("ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2] +test { try toUnicodeFail("Ss\xe2\x80\x8d\xe1\x80\xba\xe3\x80\x821."); } // [C2] test { try toUnicodePass("xn--ss-f4j.b.", "ss\xe1\x80\xba.b."); } test { try toUnicodePass("ss\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); } test { try toUnicodePass("SS\xe1\x80\xba.B.", "ss\xe1\x80\xba.b."); } test { try toUnicodePass("Ss\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); } +test { try toUnicodeFail("xn--ss-f4j585j.b."); } // [C2] +test { try toUnicodeFail("xn--zca679eh2l.b."); } // [C2] +test { try toUnicodeFail("SS\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7] +test { try toUnicodeFail("ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7] +test { try toUnicodeFail("Ss\xe2\x80\x8d\xe1\x80\xba\xef\xbd\xa1\xe2\x92\x88"); } // [C2, V7] +test { try toUnicodeFail("xn--ss-f4j.xn--tsh"); } // [V7] +test { try toUnicodeFail("xn--ss-f4j585j.xn--tsh"); } // [C2, V7] +test { try toUnicodeFail("xn--zca679eh2l.xn--tsh"); } // [C2, V7] test { try toUnicodePass("SS\xe1\x80\xba.b.", "ss\xe1\x80\xba.b."); } +test { 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] +test { try toUnicodeFail("xn--9ic6417rn4xb."); } // [B1, V6, V7] +test { try toUnicodeFail("xn--9ic637hz82z32jc.xn--1ug"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("\xf0\x90\xae\x85\xef\xbd\xa1\xda\xbc\xf0\x9f\x81\x95"); } // [B3] +test { try toUnicodeFail("\xf0\x90\xae\x85\xe3\x80\x82\xda\xbc\xf0\x9f\x81\x95"); } // [B3] +test { try toUnicodeFail("xn--c29c.xn--vkb8871w"); } // [B3] +test { 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] +test { try toUnicodeFail("xn--fgb471g.xn--9w9c29jw3931a"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--fgb471g.xn--0ug9853g7verp838a"); } // [B2, B3, C1, V7] +test { try toUnicodeFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\x8a"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf1\x8b\x89\x95.\xf0\x9e\xa3\x95\xf0\x9e\xa4\xac"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--tf5w.xn--2b6hof"); } // [B1, V6, V7] test { 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"); } test { 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); } test { 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" test { 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"); } test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", false); } test { try toAsciiPass("\xdb\x8c\xf0\x90\xa8\xbf\xef\xbc\x8eSs\xe0\xbe\x84\xf0\x91\x8d\xac", "xn--clb2593k.xn--ss-toj6092t", true); } +test { try toUnicodeFail("\xf0\x9d\x9f\xa0\xe2\x89\xae\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1] +test { try toUnicodeFail("\xf0\x9d\x9f\xa0<\xcc\xb8\xe2\x80\x8c\xef\xbd\xa1\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1] +test { try toUnicodeFail("8\xe2\x89\xae\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1] +test { try toUnicodeFail("8<\xcc\xb8\xe2\x80\x8c\xe3\x80\x82\xf3\xa0\x85\xb1\xe1\x9e\xb4"); } // [C1] test { try toUnicodePass("xn--8-ngo.", "8\xe2\x89\xae."); } test { try toUnicodePass("8\xe2\x89\xae.", "8\xe2\x89\xae."); } test { try toUnicodePass("8<\xcc\xb8.", "8\xe2\x89\xae."); } +test { try toUnicodeFail("xn--8-sgn10i."); } // [C1] +test { try toUnicodeFail("xn--8-ngo.xn--z3e"); } // [V6, V7] +test { try toUnicodeFail("xn--8-sgn10i.xn--z3e"); } // [C1, V6, V7] +test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe1\x82\xa0"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe1\x82\xa0"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xe3\x80\x82\xf1\x84\x82\xaf.\xe2\xb4\x80"); } // [V7] +test { try toUnicodeFail("xn--fbf851c.xn--ko1u.xn--rkj"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x95>\xcc\xb8\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80"); } // [V7] +test { try toUnicodeFail("\xe1\xa2\x95\xe2\x89\xaf\xef\xb8\x92\xf1\x84\x82\xaf\xef\xbc\x8e\xe2\xb4\x80"); } // [V7] +test { try toUnicodeFail("xn--fbf851cq98poxw1a.xn--rkj"); } // [V7] +test { try toUnicodeFail("xn--fbf851c.xn--ko1u.xn--7md"); } // [V7] +test { try toUnicodeFail("xn--fbf851cq98poxw1a.xn--7md"); } // [V7] +test { try toUnicodeFail("\xe0\xbe\x9f\xef\xbc\x8e-\xe0\xa0\xaa"); } // [V3, V6] +test { try toUnicodeFail("\xe0\xbe\x9f.-\xe0\xa0\xaa"); } // [V3, V6] +test { try toUnicodeFail("xn--vfd.xn----fhd"); } // [V3, V6] +test { 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] +test { 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] +test { try toUnicodeFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xed\x95\x9211.1.\xf4\x88\x84\xa6"); } // [V7] +test { try toUnicodeFail("\xe1\xb5\xac\xf3\xa0\x86\xa0.\xe1\x84\x91\xe1\x85\xb5\xe1\x86\xbd11.1.\xf4\x88\x84\xa6"); } // [V7] +test { try toUnicodeFail("xn--tbg.xn--11-5o7k.1.xn--k469f"); } // [V7] +test { try toUnicodeFail("xn--tbg.xn--tsht7586kyts9l"); } // [V7] +test { try toUnicodeFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1] +test { try toUnicodeFail("\xcf\x82\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1] +test { try toUnicodeFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1] +test { try toUnicodeFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2.\xd9\xa8"); } // [B1] +test { try toUnicodeFail("xn--4xa6371khhl.xn--hib"); } // [B1] +test { try toUnicodeFail("xn--3xa8371khhl.xn--hib"); } // [B1] +test { try toUnicodeFail("\xce\xa3\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1] +test { try toUnicodeFail("\xcf\x83\xf0\x91\x93\x82\xf0\x90\x8b\xa2\xef\xbc\x8e\xd9\xa8"); } // [B1] +test { 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] +test { try toUnicodeFail("xn--3j9a531o.xn--urju692efj0f"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--0ugc8356he76c.xn--urju692efj0f"); } // [B1, B6, C2, V6, V7] +test { try toUnicodeFail("\xe2\x8a\xbc\xe3\x80\x82\xf1\xaa\xa7\x96\xda\x95"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--ofh.xn--rjb13118f"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xf0\x90\xaf\xac\xf1\x96\x8b\x94\xe3\x80\x82\xf3\x9c\xb3\xa5"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--949co370q.xn--7g25e"); } // [B2, B3, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--jfb66gt010c.xn--4xa0023w4nq4c"); } // [B1, B6, V7] +test { try toUnicodeFail("xn--jfb66gt010c.xn--3xa2023w4nq4c"); } // [B1, B6, V7] +test { try toUnicodeFail("xn--jfb66gt010c.xn--4xa623h9p95ars26d"); } // [B1, B6, V7] +test { try toUnicodeFail("xn--jfb66gt010c.xn--3xa823h9p95ars26d"); } // [B1, B6, V7] +test { 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] +test { try toUnicodeFail("-\xf0\x90\xb3\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("-\xf0\x90\xb2\xb2\xd9\x86\xf3\xa0\xba\x90\xe3\x80\x82\xea\xaf\xad3"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn----roc5482rek10i.xn--3-zw5e"); } // [B1, V3, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6v56e.xn--gdhz712gzlr6b"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--0ug22251l.xn--gdhz712gzlr6b"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xe2\x92\x88\xe2\x9c\x8c\xf2\x9f\xac\x9f\xef\xbc\x8e\xf0\x9d\x9f\xa1\xf1\xa0\xb1\xa3"); } // [V7] +test { try toUnicodeFail("1.\xe2\x9c\x8c\xf2\x9f\xac\x9f.9\xf1\xa0\xb1\xa3"); } // [V7] +test { try toUnicodeFail("1.xn--7bi44996f.xn--9-o706d"); } // [V7] +test { try toUnicodeFail("xn--tsh24g49550b.xn--9-o706d"); } // [V7] +test { try toUnicodeFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\xac\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x91\x86\xbe\xf0\x9e\xa4\x8a\xf0\x90\xae\x86.\xd9\xa6\xe1\xb7\x94"); } // [B1, V6] +test { try toUnicodeFail("xn--d29c79hf98r.xn--fib011j"); } // [B1, V6] +test { try toUnicodeFail("\xcf\x82\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6] +test { try toUnicodeFail("\xcf\x82.\xea\xa7\x80\xea\xa3\x84"); } // [V6] +test { try toUnicodeFail("\xce\xa3.\xea\xa7\x80\xea\xa3\x84"); } // [V6] +test { try toUnicodeFail("\xcf\x83.\xea\xa7\x80\xea\xa3\x84"); } // [V6] +test { try toUnicodeFail("xn--4xa.xn--0f9ars"); } // [V6] +test { try toUnicodeFail("xn--3xa.xn--0f9ars"); } // [V6] +test { try toUnicodeFail("\xce\xa3\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6] +test { try toUnicodeFail("\xcf\x83\xef\xbc\x8e\xea\xa7\x80\xea\xa3\x84"); } // [V6] +test { 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] +test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90\xef\xbc\x8e\xe0\xa1\x9b"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb3\x90.\xe0\xa1\x9b"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb3\x90.\xe0\xa1\x9b"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90.\xe0\xa1\x9b"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c\xe2\x89\xaf\xf0\x90\xb2\x90.\xe0\xa1\x9b"); } // [B1, C1, V6] +test { try toUnicodeFail("xn--hdhz343g3wj.xn--qwb"); } // [B1, V6] +test { try toUnicodeFail("xn--0ug06g7697ap4ma.xn--qwb"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x91\xb0\xb6\xe2\x80\x8c>\xcc\xb8\xf0\x90\xb2\x90\xef\xbc\x8e\xe0\xa1\x9b"); } // [B1, C1, V6] +test { 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] test { try toUnicodePass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "\xe7\xbe\x9a.\xe2\x89\xaf"); } test { try toAsciiPass("\xe7\xbe\x9a\xef\xbd\xa1\xe2\x89\xaf", "xn--xt0a.xn--hdh", false); } test { 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); } test { try toUnicodePass("\xe7\xbe\x9a.>\xcc\xb8", "\xe7\xbe\x9a.\xe2\x89\xaf"); } test { try toAsciiPass("\xe7\xbe\x9a.>\xcc\xb8", "xn--xt0a.xn--hdh", false); } test { try toAsciiPass("\xe7\xbe\x9a.>\xcc\xb8", "xn--xt0a.xn--hdh", true); } +test { try toUnicodeFail("\xf0\x91\x93\x82\xe1\x9d\x99\xef\xbc\x8e\xe0\xa2\xa8"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf0\x91\x93\x82\xe1\x9d\x99.\xe0\xa2\xa8"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--e1e9580k.xn--xyb"); } // [B1, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1r19e.xn--3-ozb36ko13f"); } // [B1, V7] +test { try toUnicodeFail("xn--1ug89936l.xn--3-ozb36ko13f"); } // [B1, B6, C2, V7] +test { 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] +test { try toUnicodeFail("xn--1r19e.xn--3-ozb36kixu"); } // [B1, V7] +test { try toUnicodeFail("xn--1ug89936l.xn--3-ozb36kixu"); } // [B1, B6, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe1\xa1\xb7\xe3\x80\x82\xf0\x90\xb9\xa2\xe0\xa3\xa0"); } // [B1] +test { try toUnicodeFail("xn--k9e.xn--j0b5005k"); } // [B1] +test { 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] +test { 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] +test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS"); } // [B1, V7] +test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss"); } // [B1, V7] +test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xe3\x80\x82\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss"); } // [B1, V7] +test { try toUnicodeFail("xn--1zf58212h.xn--ss-pyd459o3258m"); } // [B1, V7] +test { try toUnicodeFail("xn--1zf58212h.xn--zca34zk4qx711k"); } // [B1, V7] +test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92SS"); } // [B1, V7] +test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92ss"); } // [B1, V7] +test { try toUnicodeFail("\xf2\x95\xae\x87\xe1\xaf\xb3\xef\xbd\xa1\xd9\xa6\xf1\x97\x9c\xbc\xe1\x9f\x92Ss"); } // [B1, V7] +test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92\xe2\x89\xa0"); } // [B1, V7] +test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xef\xb8\x92=\xcc\xb8"); } // [B1, V7] +test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82\xe2\x89\xa0"); } // [B1, V7] +test { try toUnicodeFail("\xd9\xa4\xf2\xa4\xbd\x8e\xf0\x91\xb2\x9b.\xf3\xa0\x94\xa2\xe3\x80\x82=\xcc\xb8"); } // [B1, V7] +test { try toUnicodeFail("xn--dib0653l2i02d.xn--k736e.xn--1ch"); } // [B1, V7] +test { try toUnicodeFail("xn--dib0653l2i02d.xn--1ch7467f14u4g"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1-3xm292b6044r..xn--9-6jd87310jtcqs"); } // [V7, X4_2] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6lg26tvvc6v99z.xn--9-6jd87310jtcqs"); } // [V7] +test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\x98"); } // [B1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\x98"); } // [B1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe3\x80\x82\xf0\x9e\xa4\xba"); } // [B1, C2] +test { try toUnicodeFail(".xn--ye6h"); } // [X4_2] +test { try toUnicodeFail("xn--1ug.xn--ye6h"); } // [B1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xef\xbd\xa1\xf0\x9e\xa4\xba"); } // [B1, C2] test { try toUnicodePass("xn--ye6h", "\xf0\x9e\xa4\xba"); } test { try toAsciiPass("xn--ye6h", "xn--ye6h", false); } test { try toAsciiPass("xn--ye6h", "xn--ye6h", true); } @@ -1689,6 +6075,137 @@ test { try toAsciiPass("\xf0\x9e\xa4\xba", "xn--ye6h", true); } test { try toUnicodePass("\xf0\x9e\xa4\x98", "\xf0\x9e\xa4\xba"); } test { try toAsciiPass("\xf0\x9e\xa4\x98", "xn--ye6h", false); } test { try toAsciiPass("\xf0\x9e\xa4\x98", "xn--ye6h", true); } +test { try toUnicodeFail("\xe0\xa0\xa9\xdc\xa4.\xe1\xa2\xa3"); } // [B1, V6] +test { try toUnicodeFail("xn--unb53c.xn--tbf"); } // [B1, V6] +test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbe\xc3\x9f"); } // [C1, V3, V6, V7] +test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSS"); } // [C1, V3, V6, V7] +test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbess"); } // [C1, V3, V6, V7] +test { try toUnicodeFail("\xdc\xbc\xe2\x80\x8c-\xe3\x80\x82\xf0\x93\x90\xbeSs"); } // [C1, V3, V6, V7] +test { try toUnicodeFail("xn----s2c.xn--ss-066q"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----s2c071q.xn--ss-066q"); } // [C1, V3, V6, V7] +test { try toUnicodeFail("xn----s2c071q.xn--zca7848m"); } // [C1, V3, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--16-ubc66061c..xn--9ob79ycx2e"); } // [B5, B6, V6, X4_2] +test { try toUnicodeFail("xn--16-ubc7700avy99b..xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, X4_2] +test { try toUnicodeFail("xn--16-rbc1800avy99b..xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, X4_2] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4xa229nbu92a.xn--9ob79ycx2e"); } // [B5, B6, V6, V7] +test { try toUnicodeFail("xn--4xa595lz9czy52d.xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, V7] +test { try toUnicodeFail("xn--3xa795lz9czy52d.xn--9ob79ycx2e"); } // [B1, B5, B6, C1, V6, V7] +test { try toUnicodeFail("-.\xf0\x9e\xb8\x9a"); } // [B1, V3] +test { try toUnicodeFail("-.\xd8\xb8"); } // [B1, V3] +test { try toUnicodeFail("-.xn--3gb"); } // [B1, V3] +test { try toUnicodeFail("\xf2\x8f\x9b\x93\xda\x83.\xe0\xbd\xbe\xd8\xb4"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--8ib92728i.xn--zgb968b"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xe0\xbf\xa6\xe0\xa1\x83\xf1\xbd\xb6\xac.\xf0\x90\xae\x8f"); } // [B5, V7] +test { try toUnicodeFail("xn--1vb320b5m04p.xn--m29c"); } // [B5, V7] +test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8b\xc3\x9f\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7] +test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bSS\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7] +test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bss\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7] +test { try toUnicodeFail("xn--2ss-odg83511n.xn--w7e"); } // [B1, V7] +test { try toUnicodeFail("xn--2-qfa924cez02l.xn--w7e"); } // [B1, V7] +test { try toUnicodeFail("2\xf1\x8e\xa8\xa0\xdf\x8bSs\xe3\x80\x82\xe1\xa0\xbd"); } // [B1, V7] +test { 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] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8e\xc3\x9f-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("xn--lsb457kkut.xn--ss--qjf"); } // [B2, B3, B5, B6, V3] +test { try toUnicodeFail("xn--lsb457kkut.xn--ss--qjf2343a"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("xn--lsb457kkut.xn----pfa076bys4a"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSS-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8ess-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8.\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae.\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a<\xcc\xb8\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("\xe3\xb8\xb3\xdf\x8a\xe2\x89\xae\xef\xbc\x8e\xdb\x8eSs-\xe2\x80\x8d"); } // [B2, B3, B5, B6, C2] +test { try toUnicodeFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xef\xb8\x92"); } // [V3, V6, V7] +test { try toUnicodeFail("-\xf2\xb7\x9d\xac\xe1\x8d\x9e\xf0\x91\x9c\xa7.\xe1\xb7\xab-\xe3\x80\x82"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----b5h1837n2ok9f.xn----mkm."); } // [V3, V6, V7] +test { try toUnicodeFail("xn----b5h1837n2ok9f.xn----mkmw278h"); } // [V3, V6, V7] +test { try toUnicodeFail("\xef\xb8\x92.\xf2\x9a\xa0\xa1\xe1\xa9\x99"); } // [V7] +test { try toUnicodeFail("\xe3\x80\x82.\xf2\x9a\xa0\xa1\xe1\xa9\x99"); } // [V7, X4_2] +test { try toUnicodeFail("..xn--cof61594i"); } // [V7, X4_2] +test { try toUnicodeFail("xn--y86c.xn--cof61594i"); } // [V7] +test { try toUnicodeFail("\xcc\xa3\xe2\xb7\xa1\xe3\x80\x82\xe2\x80\x8c\xe2\x93\xbe\xe2\x80\x8c\xda\xb9"); } // [B1, C1, V6] +test { try toUnicodeFail("xn--kta899s.xn--skb116m"); } // [B1, V6] +test { try toUnicodeFail("xn--kta899s.xn--skb970ka771c"); } // [B1, C1, V6] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--tlb199fwl35a.xn--yld4613v"); } // [B1, B2, V6, V7] +test { 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] +test { try toUnicodeFail("\xf0\x91\xb0\xba.-\xf2\x91\x9f\x8f"); } // [V3, V6, V7] +test { try toUnicodeFail("xn--jk3d.xn----iz68g"); } // [V3, V6, V7] +test { try toUnicodeFail("\xf3\xa0\xbb\xa9\xef\xbc\x8e\xe8\xb5\x8f"); } // [V7] +test { try toUnicodeFail("\xf3\xa0\xbb\xa9.\xe8\xb5\x8f"); } // [V7] +test { try toUnicodeFail("xn--2856e.xn--6o3a"); } // [V7] +test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe1\x82\xa1"); } // [B2, B3] +test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe1\x82\xa1"); } // [B2, B3] +test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xe3\x80\x82\xe2\xb4\x81"); } // [B2, B3] +test { try toUnicodeFail("xn--jkb440g.xn--skj"); } // [B2, B3] +test { try toUnicodeFail("\xda\xb0\xe1\xa0\xa1\xef\xbd\xa1\xe2\xb4\x81"); } // [B2, B3] +test { try toUnicodeFail("xn--jkb440g.xn--8md"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xef\xbd\xa1-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x82\xe3\x80\x82-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xe3\x80\x82-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xe3\x80\x82-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xe3\x80\x82-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xe3\x80\x82-"); } // [B1, V3, V6] +test { try toUnicodeFail("xn--4xa33mr38aeel.-"); } // [B1, V3, V6] +test { try toUnicodeFail("xn--3xa53mr38aeel.-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x82\xef\xbd\xa1-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xce\xa3\xef\xbd\xa1-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe2\xb4\x8a\xda\xbb\xcf\x83\xef\xbd\xa1-"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe2\x83\x9e\xe1\x82\xaa\xda\xbb\xcf\x83\xef\xbd\xa1-"); } // [B1, V3, V6] +test { try toUnicodeFail("xn--4xa33m7zmb0q.-"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn--3xa53m7zmb0q.-"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("\xe1\x82\xad\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7] +test { try toUnicodeFail("\xe1\x82\xad.\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7] +test { try toUnicodeFail("\xe2\xb4\x8d.\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7] +test { try toUnicodeFail("xn--4kj.xn--p01x"); } // [V7] +test { try toUnicodeFail("xn--4kj.xn--0ug56448b"); } // [C1, V7] +test { try toUnicodeFail("\xe2\xb4\x8d\xef\xbc\x8e\xf1\x8d\x87\xa6\xe2\x80\x8c"); } // [C1, V7] +test { try toUnicodeFail("xn--lnd.xn--p01x"); } // [V7] +test { try toUnicodeFail("xn--lnd.xn--0ug56448b"); } // [C1, V7] +test { 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] +test { try toUnicodeFail("xn--9u37blu98h.xn--jof13bt568cork1j"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1] +test { try toUnicodeFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xef\xbd\xa1\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1] +test { try toUnicodeFail("\xe2\x89\xaf\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1] +test { try toUnicodeFail(">\xcc\xb8\xe2\x9d\x8a\xe1\xa0\xaf\xe3\x80\x82\xf0\x90\xb9\xb1\xe2\xba\xa8"); } // [B1] +test { try toUnicodeFail("xn--i7e163ct2d.xn--vwj7372e"); } // [B1] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fo0de1270ope54j.xn--zkjo0151o"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--fo0de1270ope54j.xn--gndo2033q"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf0\x9e\xa0\x82\xe3\x80\x82\xea\xa4\xa6"); } // [B1, V6] +test { try toUnicodeFail("xn--145h.xn--ti9a"); } // [B1, V6] +test { 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] +test { 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] +test { try toUnicodeFail("6\xf0\x90\xb9\xab.\xe1\x80\xb7\xdc\xb39\xea\xa1\x87"); } // [B1, V6] +test { try toUnicodeFail("xn--6-t26i.xn--9-91c730e8u8n"); } // [B1, V6] +test { try toUnicodeFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6\xef\xbc\x8e\xdb\x98"); } // [B1, V6, V7] +test { try toUnicodeFail("\xdc\xa4\xd8\x83\xf0\x9e\xb2\xb6.\xdb\x98"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--lfb19ct414i.xn--olb"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("\xe2\x9c\x86\xf1\xb1\x94\xa9\xea\xa1\x8b.\xd8\xb2\xe2\x80\x8d\xf0\x9e\xa3\xb4"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--1biv525bcix0d.xn--xgb6828v"); } // [B1, V7] +test { try toUnicodeFail("xn--1biv525bcix0d.xn--xgb253k0m73a"); } // [B1, C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn----qoc64my971s.xn--1ch7585g76o3c"); } // [B1, B2, B3, V3, V7] test { try toUnicodePass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.\xe7\xac\xa0"); } test { try toAsciiPass("\xf0\x9d\x9f\x9b\xef\xbc\x8e\xef\xa7\xb8", "3.xn--6vz", false); } test { 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); } test { try toUnicodePass("3.xn--6vz", "3.\xe7\xac\xa0"); } test { try toAsciiPass("3.xn--6vz", "3.xn--6vz", false); } test { try toAsciiPass("3.xn--6vz", "3.xn--6vz", true); } +test { try toUnicodeFail("-\xe2\x80\x8d.\xe1\x82\xbe\xf0\x90\x8b\xb7"); } // [C2, V3] +test { try toUnicodeFail("-\xe2\x80\x8d.\xe2\xb4\x9e\xf0\x90\x8b\xb7"); } // [C2, V3] +test { try toUnicodeFail("-.xn--mlj8559d"); } // [V3] +test { try toUnicodeFail("xn----ugn.xn--mlj8559d"); } // [C2, V3] +test { try toUnicodeFail("-.xn--2nd2315j"); } // [V3, V7] +test { try toUnicodeFail("xn----ugn.xn--2nd2315j"); } // [C2, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xcf\x82\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("xn--ss-ubc826a.xn--xmc"); } // [V6] +test { try toUnicodeFail("xn--ss-ubc826ab34b.xn--xmc"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1.\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("xn--zca39lk1di19a.xn--xmc"); } // [C2, V6] +test { try toUnicodeFail("xn--zca19ln1di19a.xn--xmc"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3SS\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3ss\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xce\xa3\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x80\x8d\xcf\x83\xc3\x9f\xdc\xb1\xef\xbc\x8e\xe0\xaf\x8d"); } // [C2, V6] +test { try toUnicodeFail("\xe2\x89\xa0\xef\xbc\x8e\xe2\x80\x8d"); } // [C2] +test { try toUnicodeFail("=\xcc\xb8\xef\xbc\x8e\xe2\x80\x8d"); } // [C2] +test { try toUnicodeFail("\xe2\x89\xa0.\xe2\x80\x8d"); } // [C2] +test { try toUnicodeFail("=\xcc\xb8.\xe2\x80\x8d"); } // [C2] test { try toUnicodePass("xn--1ch.", "\xe2\x89\xa0."); } test { try toUnicodePass("\xe2\x89\xa0.", "\xe2\x89\xa0."); } test { try toUnicodePass("=\xcc\xb8.", "\xe2\x89\xa0."); } +test { try toUnicodeFail("xn--1ch.xn--1ug"); } // [C2] +test { try toUnicodeFail("\xef\xb0\x81\xef\xbd\xa1\xe0\xb2\x81\xe1\xa0\xbc\xe2\x96\x97\xf2\x92\x81\x8b"); } // [B1, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--lgbo.xn--2rc021dcxkrx55t"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x82.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xce\xa3\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83.\xcf\x83\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x83\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("xn--4xa502av8297a.xn--4xa6055k"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3.\xcf\x82\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("xn--4xa502av8297a.xn--3xa8055k"); } // [V7] +test { try toUnicodeFail("xn--3xa702av8297a.xn--3xa8055k"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xce\xa3\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xcf\x83\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x83\xf0\x90\xa8\xbf"); } // [V7] +test { try toUnicodeFail("\xf3\xa7\x8b\xb5\xe0\xa7\x8d\xce\xa3\xef\xbc\x8e\xcf\x82\xf0\x90\xa8\xbf"); } // [V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--zsb09cu46vjs6f.xn--gmf469fr883am5r1e"); } // [B2, B3, V7] +test { 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] +test { try toUnicodeFail("xn--zsb09cu46vjs6f.xn--xnd909bv540bm5k9d"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xeb\xa5\xa7"); } // [V7] +test { try toUnicodeFail("\xf1\xa3\xa4\x92\xef\xbd\xa1\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6"); } // [V7] +test { try toUnicodeFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xeb\xa5\xa7"); } // [V7] +test { try toUnicodeFail("\xf1\xa3\xa4\x92\xe3\x80\x82\xe1\x84\x85\xe1\x85\xb2\xe1\x86\xb6"); } // [V7] +test { try toUnicodeFail("xn--s264a.xn--pw2b"); } // [V7] +test { try toUnicodeFail("\xf0\x90\xb9\xb7\xe2\x80\x8d\xe3\x80\x82\xf3\x89\xb5\xa2"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--vo0d.xn--8088d"); } // [B1, V7] +test { try toUnicodeFail("xn--1ugx205g.xn--8088d"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xe1\x82\xb8\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xe1\x82\xb8\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xe3\x80\x82-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("xn--1kb147qfk3n.-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xe2\xb4\x98\xdb\x81\xd9\x94\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xe2\xb4\x98\xdb\x82\xf0\x91\xb2\xad\xef\xbd\xa1-"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("xn--1kb312c139t.-"); } // [B1, B5, B6, V3, V7] +test { 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] +test { try toUnicodeFail("\xea\xa0\x86\xd9\xbb6\xe1\xa1\x90\xe3\x80\x82\xf0\x9f\x9b\x87\xd9\x8a\xd9\x85"); } // [B1, V6] +test { try toUnicodeFail("xn--6-rrc018krt9k.xn--hhbj61429a"); } // [B1, V6] +test { try toUnicodeFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa2"); } // [B1, V7] +test { try toUnicodeFail("\xf2\xb8\x8d\x82.\xe3\x87\x84\xe1\xa1\x9f\xf0\x90\xab\x82\xd8\xa7\xd9\x93"); } // [B1, V7] +test { try toUnicodeFail("xn--p292d.xn--hgb154ghrsvm2r"); } // [B1, V7] +test { try toUnicodeFail("\xdf\x9f\xf2\xb5\x9a\x8c\xe3\x80\x82-\xdf\xa9"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("xn--6sb88139l.xn----pdd"); } // [B1, B2, B3, V3, V7] +test { 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] +test { try toUnicodeFail("\xcf\x82\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1] +test { try toUnicodeFail("\xce\xa3\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1] +test { try toUnicodeFail("\xcf\x83\xd9\x83\xe8\xa5\xbe.\xe2\x80\x8c\xe1\xa2\x9f\xe2\x80\x8c1."); } // [B1, B5, C1] +test { try toUnicodeFail("xn--4xa49jux8r.xn--1-4ck."); } // [B5] +test { try toUnicodeFail("xn--4xa49jux8r.xn--1-4ck691bba."); } // [B1, B5, C1] +test { try toUnicodeFail("xn--3xa69jux8r.xn--1-4ck691bba."); } // [B1, B5, C1] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4xa49jux8r.xn--pbf212d"); } // [B5, V7] +test { try toUnicodeFail("xn--4xa49jux8r.xn--pbf519aba607b"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("xn--3xa69jux8r.xn--pbf519aba607b"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe1\xa1\x86\xf0\x91\x93\x9d\xef\xbc\x8e\xf0\x9e\xb5\x86"); } // [V7] +test { try toUnicodeFail("\xe1\xa1\x86\xf0\x91\x93\x9d.\xf0\x9e\xb5\x86"); } // [V7] +test { try toUnicodeFail("xn--57e0440k.xn--k86h"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ybc461hph93b.xn--jzb29857e"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("xn--ybc461hph93b.xn--jzb740j1y45h"); } // [B1, C1, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xd8\xae\xdd\x88\xf1\x85\xaa\xaa-.\xe2\x80\x8c\xeb\xa8\xbf"); } // [B1, B2, B3, C1, V3, V7] +test { 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] +test { try toUnicodeFail("xn----dnc06f42153a.xn--v22b"); } // [B2, B3, V3, V7] +test { try toUnicodeFail("xn----dnc06f42153a.xn--0ug1581d"); } // [B1, B2, B3, C1, V3, V7] +test { try toUnicodeFail("\xf4\x8b\xbf\xa6\xef\xbd\xa1\xe1\xa0\xbd"); } // [V7] +test { try toUnicodeFail("\xf4\x8b\xbf\xa6\xe3\x80\x82\xe1\xa0\xbd"); } // [V7] +test { try toUnicodeFail("xn--j890g.xn--w7e"); } // [V7] +test { try toUnicodeFail("\xe5\xac\x83\xf0\x9d\x8d\x8c\xef\xbc\x8e\xe2\x80\x8d\xe0\xad\x84"); } // [C2] +test { try toUnicodeFail("\xe5\xac\x83\xf0\x9d\x8d\x8c.\xe2\x80\x8d\xe0\xad\x84"); } // [C2] +test { try toUnicodeFail("xn--b6s0078f.xn--0ic"); } // [V6] +test { try toUnicodeFail("xn--b6s0078f.xn--0ic557h"); } // [C2] +test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8\xef\xbc\x8e\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa\xe2\x89\xaf.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x82\xf0\x9d\x8c\xaa>\xcc\xb8.\xf0\x9a\x8b\xb2\xf2\xb5\x81\xa8"); } // [B1, V7] +test { try toUnicodeFail("xn--kfb866llx01a.xn--wp1gm3570b"); } // [B1, V7] +test { try toUnicodeFail("\xf2\xab\xbe\xa5\xe0\xa2\xb7\xe1\x9f\x8c\xea\xa7\x80.\xf0\x9e\xbc\xa0"); } // [B5, V7] +test { try toUnicodeFail("xn--dzb638ewm4i1iy1h.xn--3m7h"); } // [B5, V7] +test { try toUnicodeFail("\xe2\x80\x8c.\xf1\x9f\x9b\xa4"); } // [C1, V7] +test { try toUnicodeFail(".xn--q823a"); } // [V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--q823a"); } // [C1, V7] +test { try toUnicodeFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91"); } // [V7] +test { try toUnicodeFail("\xf2\xba\x9b\x95\xe1\x82\xa3\xe4\xa0\x85.\xf0\x90\xb8\x91"); } // [V7] +test { try toUnicodeFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85.\xf0\x90\xb8\x91"); } // [V7] +test { try toUnicodeFail("xn--ukju77frl47r.xn--yl0d"); } // [V7] +test { try toUnicodeFail("\xf2\xba\x9b\x95\xe2\xb4\x83\xe4\xa0\x85\xef\xbc\x8e\xf0\x90\xb8\x91"); } // [V7] +test { try toUnicodeFail("xn--bnd074zr557n.xn--yl0d"); } // [V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--zzfy954hga2415t.xn--6-kvs"); } // [B1, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--zzfy954hga2415t.xn--6-h0g"); } // [B1, V6, V7] +test { try toUnicodeFail("-\xef\xbd\xa1\xef\xb8\x92"); } // [V3, V7] +test { try toUnicodeFail("-\xe3\x80\x82\xe3\x80\x82"); } // [V3, X4_2] +test { try toUnicodeFail("-.."); } // [V3, X4_2] +test { try toUnicodeFail("-.xn--y86c"); } // [V3, V7] +test { try toUnicodeFail("\xdf\x9b\xe1\x83\x80\xef\xbd\xa1-\xe2\x81\xb5--"); } // [B1, B2, B3, V2, V3] +test { try toUnicodeFail("\xdf\x9b\xe1\x83\x80\xe3\x80\x82-5--"); } // [B1, B2, B3, V2, V3] +test { try toUnicodeFail("\xdf\x9b\xe2\xb4\xa0\xe3\x80\x82-5--"); } // [B1, B2, B3, V2, V3] +test { try toUnicodeFail("xn--2sb691q.-5--"); } // [B1, B2, B3, V2, V3] +test { try toUnicodeFail("\xdf\x9b\xe2\xb4\xa0\xef\xbd\xa1-\xe2\x81\xb5--"); } // [B1, B2, B3, V2, V3] +test { try toUnicodeFail("xn--2sb866b.-5--"); } // [B1, B2, B3, V2, V3, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--?-ogo25661n.xn--hdh8283gdoaqa"); } // [B1, V7, U1] +test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa"); } // [B1, V7, U1] +test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.xn--hdh8283gdoaqa"); } // [B1, V7, U1] +test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA"); } // [B1, V7, U1] +test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.XN--HDH8283GDOAQA"); } // [B1, V7, U1] +test { try toUnicodeFail("\xe2\x89\xaf?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa"); } // [B1, V7, U1] +test { try toUnicodeFail(">\xcc\xb8?\xf3\xa0\x91\x95.Xn--Hdh8283gdoaqa"); } // [B1, V7, U1] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--dqb73el09fncab4h.xn--kua81lx7141a"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--dqb73ec22c9kp8cb1j.xn--kua81lx7141a"); } // [B1, B5, B6, C2, V6, V7] +test { try toUnicodeFail("xn--dqb73el09fncab4h.xn--kua81ls548d3608b"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--dqb73ec22c9kp8cb1j.xn--kua81ls548d3608b"); } // [B1, B5, B6, C2, V6, V7] +test { try toUnicodeFail("\xe2\x80\x8d.F"); } // [C2] +test { try toUnicodeFail("\xe2\x80\x8d.f"); } // [C2] +test { try toUnicodeFail(".f"); } // [X4_2] +test { try toUnicodeFail("xn--1ug.f"); } // [C2] test { try toUnicodePass("f", "f"); } test { try toAsciiPass("f", "f", false); } test { try toAsciiPass("f", "f", true); } test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1\xc3\x9f", "xn--9bm.ss", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1\xc3\x9f"); } // [C2] test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82\xc3\x9f", "xn--9bm.ss", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82\xc3\x9f"); } // [C2] test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82SS", "xn--9bm.ss", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82SS"); } // [C2] test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82ss", "xn--9bm.ss", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82ss"); } // [C2] test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82Ss", "xn--9bm.ss", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xe3\x80\x82Ss"); } // [C2] test { try toUnicodePass("xn--9bm.ss", "\xe3\xa8\xb2.ss"); } test { try toAsciiPass("xn--9bm.ss", "xn--9bm.ss", false); } test { try toAsciiPass("xn--9bm.ss", "xn--9bm.ss", true); } @@ -1724,9 +6412,85 @@ test { try toAsciiPass("\xe3\xa8\xb2.SS", "xn--9bm.ss", true); } test { try toUnicodePass("\xe3\xa8\xb2.Ss", "\xe3\xa8\xb2.ss"); } test { try toAsciiPass("\xe3\xa8\xb2.Ss", "xn--9bm.ss", false); } test { try toAsciiPass("\xe3\xa8\xb2.Ss", "xn--9bm.ss", true); } +test { try toUnicodeFail("xn--1ug914h.ss"); } // [C2] +test { try toUnicodeFail("xn--1ug914h.xn--zca"); } // [C2] test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1SS", "xn--9bm.ss", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1SS"); } // [C2] test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1ss", "xn--9bm.ss", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1ss"); } // [C2] test { try toAsciiPass("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1Ss", "xn--9bm.ss", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe3\xa8\xb2\xef\xbd\xa1Ss"); } // [C2] +test { try toUnicodeFail("\xd8\x85\xd9\xbe\xef\xbd\xa1\xe0\xa2\xa8"); } // [B1, V7] +test { try toUnicodeFail("\xd8\x85\xd9\xbe\xe3\x80\x82\xe0\xa2\xa8"); } // [B1, V7] +test { try toUnicodeFail("xn--nfb6v.xn--xyb"); } // [B1, V7] +test { try toUnicodeFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6] +test { try toUnicodeFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\x81\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6] +test { try toUnicodeFail("\xe8\xa5\xbe\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6] +test { try toUnicodeFail("xn--6ob9577deqwl.xn--7ib5526k"); } // [B1, B5, B6] +test { try toUnicodeFail("\xe2\xbe\x91\xdd\x93\xf0\x9e\xa4\xa3\xe3\x80\x82\xf0\x90\xb9\xb5\xda\x82"); } // [B1, B5, B6] +test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x82-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xe3\x80\x82\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("xn----zmb705tuo34l.xn----53c4874j"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("xn----xmb015tuo34l.xn----53c4874j"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xce\xa3-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("\xf1\xa6\xb4\xbb\xcf\x83-\xe2\x83\xab\xef\xbd\xa1\xdd\x94-\xea\xa1\x9b"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xef\xbc\x8e\xf4\x80\xb8\xa8"); } // [C2, V7] +test { try toUnicodeFail("\xe2\x80\x8d.\xf4\x80\xb8\xa8"); } // [C2, V7] +test { try toUnicodeFail(".xn--h327f"); } // [V7, X4_2] +test { try toUnicodeFail("xn--1ug.xn--h327f"); } // [C2, V7] +test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1\xe2\x89\xa0\xf0\x9d\x9f\xb2"); } // [V7] +test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xef\xbd\xa1=\xcc\xb8\xf0\x9d\x9f\xb2"); } // [V7] +test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82\xe2\x89\xa06"); } // [V7] +test { try toUnicodeFail("\xf1\xa3\xad\xbb\xf1\x8c\xa5\x81\xe3\x80\x82=\xcc\xb86"); } // [V7] +test { try toUnicodeFail("xn--h79w4z99a.xn--6-tfo"); } // [V7] +test { try toUnicodeFail("\xf3\xa0\x85\x8a\xe1\xa1\xad\xe2\x80\x8d.\xf0\x90\xa5\xa1"); } // [B6, C2, V7] +test { try toUnicodeFail("xn--98e.xn--om9c"); } // [V7] +test { try toUnicodeFail("xn--98e810b.xn--om9c"); } // [B6, C2, V7] +test { 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] +test { try toUnicodeFail("\xe0\xb1\x80\xe0\xa1\x95\xf0\x90\xa5\x9b\xf0\x91\x84\xb4.\xf3\xad\xb0\xb5"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--kwb91r5112avtg.xn--o580f"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("\xf0\x9e\xa4\xae\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x9e\xa4\x8c\xe3\x80\x82\xf0\x91\x87\x8a\xe2\x80\x8c>\xcc\xb8\xe1\xb3\xa6"); } // [B1, C1, V6] +test { 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] +test { try toUnicodeFail("xn--me6h.xn--z6fz8ueq2v"); } // [B1, V6] +test { try toUnicodeFail("xn--me6h.xn--z6f16kn9b2642b"); } // [B1, C1, V6] +test { 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] +test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe1\x82\xa9"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\xae\xf1\x9b\x97\x93\xe2\xb4\x89"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("7.xn--0kjz523lv1vv"); } // [B1, B2, B3, V7] +test { 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] +test { try toUnicodeFail("7.xn--hnd3403vv1vv"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("\xf3\xa0\x84\x807.\xf0\x9e\xa4\x8c\xf1\x9b\x97\x93\xe2\xb4\x89"); } // [B1, B2, B3, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--9-3j6dk517f.xn--iib28ij3c4t9a"); } // [B5, B6] +test { try toUnicodeFail("xn--9-3j6dk517f.xn--iib28ij3c0t9a"); } // [B5, B6, V7] +test { 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] +test { try toUnicodeFail("\xea\xab\xb6\xe1\xa2\x8f\xe0\xb8\xba2.\xf0\x90\x8b\xa2\xdd\x85\xe0\xbe\x9f\xe3\x80\x82"); } // [V6] +test { try toUnicodeFail("xn--2-2zf840fk16m.xn--sob093b2m7s."); } // [V6] +test { try toUnicodeFail("xn--2-2zf840fk16m.xn--sob093bj62sz9d"); } // [V6, V7] +test { try toUnicodeFail("\xf3\x85\xb4\xa7\xef\xbd\xa1\xe2\x89\xa0-\xf3\xa0\x99\x84\xe2\xbe\x9b"); } // [V7] +test { try toUnicodeFail("\xf3\x85\xb4\xa7\xef\xbd\xa1=\xcc\xb8-\xf3\xa0\x99\x84\xe2\xbe\x9b"); } // [V7] +test { try toUnicodeFail("\xf3\x85\xb4\xa7\xe3\x80\x82\xe2\x89\xa0-\xf3\xa0\x99\x84\xe8\xb5\xb0"); } // [V7] +test { try toUnicodeFail("\xf3\x85\xb4\xa7\xe3\x80\x82=\xcc\xb8-\xf3\xa0\x99\x84\xe8\xb5\xb0"); } // [V7] +test { try toUnicodeFail("xn--gm57d.xn----tfo4949b3664m"); } // [V7] +test { try toUnicodeFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("\xdd\xae\xd8\x84\xe1\x82\xaa\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-=\xcc\xb8\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("\xdd\xae\xd8\x84\xe2\xb4\x8a\xe3\x80\x82-\xe2\x89\xa0\xe1\x85\xa0"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("xn--mfb73ek93f.xn----ufo"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("xn--mfb73ek93f.xn----5bh589i"); } // [B1, B2, B3, V3, V7] +test { try toUnicodeFail("xn--mfb73ex6r.xn----5bh589i"); } // [B1, B2, B3, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74\xe2\x89\xaf\xe3\x80\x82\xe2\x80\x8c"); } // [B1, B3, B4, C1] +test { try toUnicodeFail("\xd7\x90\xd7\x9c\xf0\x90\xb9\xa74>\xcc\xb8\xe3\x80\x82\xe2\x80\x8c"); } // [B1, B3, B4, C1] +test { try toUnicodeFail("xn--4-zhc0by36txt0w."); } // [B3, B4] +test { try toUnicodeFail("xn--4-zhc0by36txt0w.xn--0ug"); } // [B1, B3, B4, C1] test { try toUnicodePass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.\xe7\x94\xaf"); } test { try toAsciiPass("\xf0\x9d\x9f\x8e\xe3\x80\x82\xe7\x94\xaf", "0.xn--qny", false); } test { 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); } test { try toUnicodePass("0.\xe7\x94\xaf", "0.\xe7\x94\xaf"); } test { try toAsciiPass("0.\xe7\x94\xaf", "0.xn--qny", false); } test { try toAsciiPass("0.\xe7\x94\xaf", "0.xn--qny", true); } +test { try toUnicodeFail("-\xe2\xbe\x86\xef\xbc\x8e\xea\xab\xb6"); } // [V3, V6] +test { try toUnicodeFail("-\xe8\x88\x8c.\xea\xab\xb6"); } // [V3, V6] +test { try toUnicodeFail("xn----ef8c.xn--2v9a"); } // [V3, V6] +test { try toUnicodeFail("-\xef\xbd\xa1\xe1\xa2\x98"); } // [V3] +test { try toUnicodeFail("-\xe3\x80\x82\xe1\xa2\x98"); } // [V3] +test { try toUnicodeFail("-.xn--ibf"); } // [V3] test { try toUnicodePass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae"); } test { try toAsciiPass("\xf0\x9f\x82\xb4\xe1\x82\xab.\xe2\x89\xae", "xn--2kj7565l.xn--gdh", false); } test { 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 test { try toUnicodePass("xn--2kj7565l.xn--gdh", "\xf0\x9f\x82\xb4\xe2\xb4\x8b.\xe2\x89\xae"); } test { try toAsciiPass("xn--2kj7565l.xn--gdh", "xn--2kj7565l.xn--gdh", false); } test { try toAsciiPass("xn--2kj7565l.xn--gdh", "xn--2kj7565l.xn--gdh", true); } +test { try toUnicodeFail("xn--jnd1986v.xn--gdh"); } // [V7] +test { try toUnicodeFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xef\xbd\xa1\xe2\x80\x8c\xf3\xa0\x87\x9f"); } // [C1] +test { try toUnicodeFail("\xe7\x92\xbc\xf0\x9d\xa8\xad\xe3\x80\x82\xe2\x80\x8c\xf3\xa0\x87\x9f"); } // [C1] test { try toUnicodePass("xn--gky8837e.", "\xe7\x92\xbc\xf0\x9d\xa8\xad."); } test { try toUnicodePass("\xe7\x92\xbc\xf0\x9d\xa8\xad.", "\xe7\x92\xbc\xf0\x9d\xa8\xad."); } +test { try toUnicodeFail("xn--gky8837e.xn--0ug"); } // [C1] +test { try toUnicodeFail("\xd9\xa98\xf1\x82\x8d\xbd\xef\xbd\xa1-5\xf0\x9f\x9e\xa5"); } // [B1, V3, V7] +test { try toUnicodeFail("\xd9\xa98\xf1\x82\x8d\xbd\xe3\x80\x82-5\xf0\x9f\x9e\xa5"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--8-qqc97891f.xn---5-rp92a"); } // [B1, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8c.\xe2\x80\x8c"); } // [C1] +test { try toUnicodeFail("xn--0ug.xn--0ug"); } // [C1] test { try toAsciiPass("\xe2\x80\x8d\xed\x8a\x9b.\xdc\x96", "xn--157b.xn--gnb", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xed\x8a\x9b.\xdc\x96"); } // [B1, C2] test { try toAsciiPass("\xe2\x80\x8d\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", true); } +test { try toUnicodeFail("\xe2\x80\x8d\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96"); } // [B1, C2] test { try toUnicodePass("xn--157b.xn--gnb", "\xed\x8a\x9b.\xdc\x96"); } test { try toAsciiPass("xn--157b.xn--gnb", "xn--157b.xn--gnb", false); } test { 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); } test { try toUnicodePass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "\xed\x8a\x9b.\xdc\x96"); } test { try toAsciiPass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", false); } test { try toAsciiPass("\xe1\x84\x90\xe1\x85\xb1\xe1\x87\x82.\xdc\x96", "xn--157b.xn--gnb", true); } +test { try toUnicodeFail("xn--1ug4441e.xn--gnb"); } // [B1, C2] +test { try toUnicodeFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe2\xb4\x9e"); } // [B2, B3, B5, B6, V7] +test { try toUnicodeFail("\xe1\xa1\x8b\xf0\x90\xb9\xb0\xf0\x9e\xbd\xb3.\xdd\xb9\xe1\x82\xbe"); } // [B2, B3, B5, B6, V7] +test { try toUnicodeFail("xn--b8e0417jocvf.xn--9pb883q"); } // [B2, B3, B5, B6, V7] +test { try toUnicodeFail("xn--b8e0417jocvf.xn--9pb068b"); } // [B2, B3, B5, B6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--5-cqc8833rhv7f.xn--ykjz523efa"); } // [B1, B4, V7] +test { 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] +test { try toUnicodeFail("xn--5-cqc8833rhv7f.xn--fnd3401kfa"); } // [B1, B4, V7] +test { try toUnicodeFail("\xe1\x82\xb7\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x82\xb7\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x82\xb7.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7] +test { try toUnicodeFail("\xe2\xb4\x97.\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7] +test { try toUnicodeFail("xn--flj.xn--qdb0605f14ycrms3c"); } // [V6, V7] +test { try toUnicodeFail("\xe2\xb4\x97\xef\xbc\x8e\xf0\x91\x84\xb4\xd7\x82\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7] +test { try toUnicodeFail("\xe2\xb4\x97\xef\xbc\x8e\xd7\x82\xf0\x91\x84\xb4\xea\xa6\xb7\xf1\x98\x83\xa8"); } // [V6, V7] +test { try toUnicodeFail("xn--vnd.xn--qdb0605f14ycrms3c"); } // [V6, V7] +test { try toUnicodeFail("\xf0\x9d\x9f\xbe\xf0\xbe\xa4\x98\xef\xbc\x8e\xf2\x87\x95\x9b\xd9\xac"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("8\xf0\xbe\xa4\x98.\xf2\x87\x95\x9b\xd9\xac"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--8-kh23b.xn--lib78461i"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xe2\x92\x88\xe9\x85\xab\xef\xb8\x92\xe3\x80\x82\xe0\xa3\x96"); } // [V6, V7] +test { try toUnicodeFail("1.\xe9\x85\xab\xe3\x80\x82\xe3\x80\x82\xe0\xa3\x96"); } // [V6, X4_2] +test { try toUnicodeFail("1.xn--8j4a..xn--8zb"); } // [V6, X4_2] +test { try toUnicodeFail("xn--tsh4490bfe8c.xn--8zb"); } // [V6, V7] +test { try toUnicodeFail("\xe2\xb7\xa3\xe2\x80\x8c\xe2\x89\xae\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba"); } // [C1, V6] +test { try toUnicodeFail("\xe2\xb7\xa3\xe2\x80\x8c<\xcc\xb8\xe1\xa9\xab.\xe2\x80\x8c\xe0\xb8\xba"); } // [C1, V6] +test { try toUnicodeFail("xn--uof548an0j.xn--o4c"); } // [V6] +test { try toUnicodeFail("xn--uof63xk4bf3s.xn--o4c732g"); } // [C1, V6] +test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7] +test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe1\x82\xbd1\xe2\x80\x8d"); } // [B6, C2, V7] +test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d1\xe2\x80\x8d"); } // [B6, C2, V7] +test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d1\xe2\x80\x8d"); } // [B6, C2, V7] +test { try toUnicodeFail("xn--co6h.xn--1-kwssa"); } // [V7] +test { try toUnicodeFail("xn--co6h.xn--1-ugn710dya"); } // [B6, C2, V7] +test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe2\xb4\x97\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7] +test { try toUnicodeFail("\xf0\x9e\xaa\x82\xe3\x80\x82\xe1\x82\xb7\xe2\xb4\x9d\xc2\xb9\xe2\x80\x8d"); } // [B6, C2, V7] +test { try toUnicodeFail("xn--co6h.xn--1-h1g429s"); } // [V7] +test { try toUnicodeFail("xn--co6h.xn--1-h1g398iewm"); } // [B6, C2, V7] +test { try toUnicodeFail("xn--co6h.xn--1-h1gs"); } // [V7] +test { try toUnicodeFail("xn--co6h.xn--1-h1gs597m"); } // [B6, C2, V7] +test { try toUnicodeFail("\xf0\x91\x84\xb4\xf0\x91\x84\xb32.\xf0\x9e\xb3\xbf\xf3\xa0\x80\xb3-"); } // [B1, B3, V3, V6, V7] +test { try toUnicodeFail("xn--2-h87ic.xn----s39r33498d"); } // [B1, B3, V3, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--eib57614py3ea.xn--9mb5737kqnpfzkwr"); } // [B1, B5, B6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--4xa847hli46a"); } // [B2, B6, V7] +test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--4xa847h6ofgl44c"); } // [B2, B6, C1, V7] +test { try toUnicodeFail("xn--qnb616fis0qzt36f.xn--3xa057h6ofgl44c"); } // [B2, B6, C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8d--\xe2\x89\xae\xe3\x80\x82\xf0\x90\xb9\xa7"); } // [B1, C2] +test { try toUnicodeFail("\xe2\x80\x8d--<\xcc\xb8\xe3\x80\x82\xf0\x90\xb9\xa7"); } // [B1, C2] +test { try toUnicodeFail("xn-----ujv.xn--fo0d"); } // [B1, V3] +test { try toUnicodeFail("xn-----l1tz1k.xn--fo0d"); } // [B1, C2] +test { try toUnicodeFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb0\xe2\x92\x95"); } // [V6, V7] +test { try toUnicodeFail("\xea\xa0\x86\xe3\x80\x82\xf0\xbb\x9a\x8f\xe0\xbe\xb014."); } // [V6, V7] +test { try toUnicodeFail("xn--l98a.xn--14-jsj57880f."); } // [V6, V7] +test { try toUnicodeFail("xn--l98a.xn--dgd218hhp28d"); } // [V6, V7] +test { try toUnicodeFail("\xf2\xae\x89\x82\xda\xbc\xef\xbc\x8e\xf0\x91\x86\xba\xd9\xa9"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf2\xae\x89\x82\xda\xbc.\xf0\x91\x86\xba\xd9\xa9"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--vkb92243l.xn--iib9797k"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\xb4"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf3\xa0\x81\x8e\xdb\x90-\xe3\x80\x82\xf0\x9e\xa4\x92"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----mwc72685y.xn--se6h"); } // [B1, V3, V7] test { 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); } +test { 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] test { 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); } +test { 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] test { try toUnicodePass("xn--84-s850a.xn--59h6326e", "84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7"); } test { try toAsciiPass("xn--84-s850a.xn--59h6326e", "xn--84-s850a.xn--59h6326e", false); } test { try toAsciiPass("xn--84-s850a.xn--59h6326e", "xn--84-s850a.xn--59h6326e", true); } test { 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"); } test { try toAsciiPass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "xn--84-s850a.xn--59h6326e", false); } test { try toAsciiPass("84\xf0\x9d\x88\xbb.\xf0\x90\x8b\xb5\xe2\x9b\xa7", "xn--84-s850a.xn--59h6326e", true); } +test { try toUnicodeFail("xn--84-s850a.xn--1uga573cfq1w"); } // [C2] +test { try toUnicodeFail("-\xd8\x81\xef\xbd\xa1\xe1\xa1\xaa"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xd8\x81\xe3\x80\x82\xe1\xa1\xaa"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----tkc.xn--68e"); } // [B1, V3, V7] test { 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"); } test { 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); } test { 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 test { 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"); } test { 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); } test { 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); } +test { 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] +test { 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] +test { try toUnicodeFail("xn--0kjz47pd57t.xn----3gd37096apmwa"); } // [B1, B5, B6, V3, V6, V7] +test { try toUnicodeFail("xn--hnd7245bd56p.xn----3gd37096apmwa"); } // [B1, B5, B6, V3, V6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--bk9c.xn--gdhx6802k"); } // [B6, V7] +test { try toUnicodeFail("xn--bk9c.xn--0ugc04p2u638c"); } // [B6, C1, C2, V7] +test { try toUnicodeFail("\xf1\xad\x9c\x8e\xe2\x92\x88\xef\xbd\xa1\xe2\x80\x8c\xf0\x9d\x9f\xa4"); } // [C1, V7] +test { try toUnicodeFail("\xf1\xad\x9c\x8e1.\xe3\x80\x82\xe2\x80\x8c2"); } // [C1, V7, X4_2] +test { try toUnicodeFail("xn--1-ex54e..c"); } // [V7, X4_2] +test { try toUnicodeFail("xn--1-ex54e..xn--2-rgn"); } // [C1, V7, X4_2] +test { try toUnicodeFail("xn--tsh94183d.c"); } // [V7] +test { try toUnicodeFail("xn--tsh94183d.xn--2-rgn"); } // [C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--co0d98977c.xn--ro0dga22807v"); } // [B1, V7] +test { try toUnicodeFail("xn--1ugy994g7k93g.xn--ro0dga22807v"); } // [B1, C2, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--609c96c09grp2w.xn--n3b28708s"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("\xd9\xa8\xef\xbd\xa1\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6"); } // [B1, V7] +test { try toUnicodeFail("\xd9\xa8\xe3\x80\x82\xf0\x90\xb9\xa0\xf0\x90\xb9\xbd\xf1\x97\xae\xb6"); } // [B1, V7] +test { try toUnicodeFail("xn--hib.xn--7n0d2bu9196b"); } // [B1, V7] +test { try toUnicodeFail("\xe1\x85\xa0\xf1\x8d\x80\x9c.8\xf2\xb6\xbe\xb5\xda\x9c"); } // [B1, V7] +test { try toUnicodeFail("xn--mn1x.xn--8-otc61545t"); } // [B1, V7] +test { try toUnicodeFail("xn--psd85033d.xn--8-otc61545t"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1\xc3\x9f\xf0\x91\x93\x83"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82\xc3\x9f\xf0\x91\x93\x83"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82SS\xf0\x91\x93\x83"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82ss\xf0\x91\x93\x83"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xe3\x80\x82Ss\xf0\x91\x93\x83"); } // [C1, C2] +test { try toUnicodeFail(".xn--ss-bh7o"); } // [X4_2] +test { try toUnicodeFail("xn--0ugb.xn--ss-bh7o"); } // [C1, C2] +test { try toUnicodeFail("xn--0ugb.xn--zca0732l"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1SS\xf0\x91\x93\x83"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1ss\xf0\x91\x93\x83"); } // [C1, C2] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x80\x8c\xf3\xa0\x86\xaa\xef\xbd\xa1Ss\xf0\x91\x93\x83"); } // [C1, C2] test { try toUnicodePass("xn--ss-bh7o", "ss\xf0\x91\x93\x83"); } test { try toAsciiPass("xn--ss-bh7o", "xn--ss-bh7o", false); } test { 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); } test { try toUnicodePass("Ss\xf0\x91\x93\x83", "ss\xf0\x91\x93\x83"); } test { try toAsciiPass("Ss\xf0\x91\x93\x83", "xn--ss-bh7o", false); } test { try toAsciiPass("Ss\xf0\x91\x93\x83", "xn--ss-bh7o", true); } +test { try toUnicodeFail("\xef\xb8\x92\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } // [C1, V7] +test { try toUnicodeFail("\xe3\x80\x82\xe2\x80\x8c\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } // [C1, X4_2] +test { try toUnicodeFail(".xn--qekw60d.xn--gd9a"); } // [X4_2] +test { try toUnicodeFail(".xn--0ug287dj0o.xn--gd9a"); } // [C1, X4_2] +test { try toUnicodeFail("xn--qekw60dns9k.xn--gd9a"); } // [V7] +test { try toUnicodeFail("xn--0ug287dj0or48o.xn--gd9a"); } // [C1, V7] test { try toUnicodePass("xn--qekw60d.xn--gd9a", "\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } test { try toAsciiPass("xn--qekw60d.xn--gd9a", "xn--qekw60d.xn--gd9a", false); } test { try toAsciiPass("xn--qekw60d.xn--gd9a", "xn--qekw60d.xn--gd9a", true); } test { try toUnicodePass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa"); } test { try toAsciiPass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "xn--qekw60d.xn--gd9a", false); } test { try toAsciiPass("\xe3\x83\xb6\xe4\x92\xa9.\xea\xa1\xaa", "xn--qekw60d.xn--gd9a", true); } +test { try toUnicodeFail("\xe2\x80\x8c\xe2\x92\x88\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c1.\xf0\xa4\xae\x8d.\xf3\xa2\x93\x8b\xe1\xa9\xa0"); } // [C1, V7] +test { try toUnicodeFail("1.xn--4x6j.xn--jof45148n"); } // [V7] +test { try toUnicodeFail("xn--1-rgn.xn--4x6j.xn--jof45148n"); } // [C1, V7] +test { try toUnicodeFail("xn--tshw462r.xn--jof45148n"); } // [V7] +test { try toUnicodeFail("xn--0ug88o7471d.xn--jof45148n"); } // [C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("1.xn--8w9c40377c.xn--jofz5294e"); } // [B1, B3, V6, V7] +test { try toUnicodeFail("1.xn--0ug8853gk263g.xn--jof95xex98m"); } // [B1, C1, C2, V6, V7] +test { try toUnicodeFail("xn--tsh4435fk263g.xn--jofz5294e"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--0ug78ol75wzcx4i.xn--jof95xex98m"); } // [B1, C1, C2, V6, V7] +test { 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] +test { try toUnicodeFail("\xf0\x9d\x85\xb5\xe3\x80\x829\xf0\x9e\x80\x88\xe4\xac\xba1."); } // [X4_2] +test { try toUnicodeFail(".xn--91-030c1650n."); } // [X4_2] +test { try toUnicodeFail(".xn--9-ecp936non25a"); } // [V7, X4_2] +test { try toUnicodeFail("xn--3f1h.xn--91-030c1650n."); } // [V7] +test { try toUnicodeFail("xn--3f1h.xn--9-ecp936non25a"); } // [V7] +test { try toUnicodeFail("\xf2\xa1\xbc\xba\xe2\x89\xaf\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf2\xa1\xbc\xba>\xcc\xb8\xe3\x80\x82\xe7\x9b\x9a\xd8\xb5"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--hdh30181h.xn--0gb7878c"); } // [B5, B6, V7] +test { 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] +test { try toUnicodeFail("-\xf1\xbf\xb0\xad\xd6\xb4\xe3\x80\x82-\xf3\xa0\x81\x8a\xf0\x90\xa2\xb8>\xcc\xb8"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----fgc06667m.xn----pgoy615he5y4i"); } // [B1, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ybc997fb5881a.xn--409c6100y"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--ybc997f6rd2n772c.xn--409c6100y"); } // [B2, B3, B6, V7] test { try toAsciiPass("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); } +test { try toUnicodeFail("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d"); } // [B3, C2] test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); } +test { try toUnicodeFail("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb\xe2\x80\x8d"); } // [B3, C2] test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); } +test { try toUnicodeFail("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d"); } // [B3, C2] test { try toUnicodePass("xn--8c1a.xn--2ib8jn539l", "\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb"); } test { try toAsciiPass("xn--8c1a.xn--2ib8jn539l", "xn--8c1a.xn--2ib8jn539l", false); } test { 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 test { try toUnicodePass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\xb4\xda\xbb"); } test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "xn--8c1a.xn--2ib8jn539l", false); } test { try toAsciiPass("\xe8\x88\x9b.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb", "xn--8c1a.xn--2ib8jn539l", true); } +test { try toUnicodeFail("xn--8c1a.xn--2ib8jv19e6413b"); } // [B3, C2] test { try toAsciiPass("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d", "xn--8c1a.xn--2ib8jn539l", true); } +test { try toUnicodeFail("\xe2\xbe\x87.\xd9\xbd\xf0\x9e\xa4\x92\xda\xbb\xe2\x80\x8d"); } // [B3, C2] +test { try toUnicodeFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7\xe2\x89\xaf"); } // [B1, B3, V7] +test { try toUnicodeFail("4\xf2\xad\x86\xa5\xe3\x80\x82\xdd\xa7>\xcc\xb8"); } // [B1, B3, V7] +test { try toUnicodeFail("xn--4-xn17i.xn--rpb459k"); } // [B1, B3, V7] +test { try toUnicodeFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2\xef\xbc\x8e\xda\xad"); } // [B5, V7] +test { try toUnicodeFail("\xf0\xb2\x94\x8f\xf0\x9e\xab\xa8\xf1\xba\xbf\x82\xe7\xa1\xb2.\xda\xad"); } // [B5, V7] +test { try toUnicodeFail("xn--lcz1610fn78gk609a.xn--gkb"); } // [B5, V7] +test { try toUnicodeFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe1\x82\xa6\xe2\x84\xae"); } // [B1, C1] +test { try toUnicodeFail("\xe2\x80\x8c.\xef\xb8\x88\xd9\xa6\xe2\xb4\x86\xe2\x84\xae"); } // [B1, C1] +test { try toUnicodeFail(".xn--fib628k4li"); } // [B1, X4_2] +test { try toUnicodeFail("xn--0ug.xn--fib628k4li"); } // [B1, C1] +test { try toUnicodeFail(".xn--fib263c0yn"); } // [B1, V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--fib263c0yn"); } // [B1, C1, V7] +test { try toUnicodeFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e"); } // [B1, V6] +test { try toUnicodeFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9e"); } // [B1, V6] +test { try toUnicodeFail("\xda\xa3.\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f"); } // [B1, V6] +test { try toUnicodeFail("xn--5jb.xn--xya149b"); } // [B1, V6] +test { try toUnicodeFail("xn--5jb.xn--xya149bpvp"); } // [B1, V6] +test { try toUnicodeFail("\xda\xa3\xef\xbc\x8e\xe0\xb5\x8d\xe2\x80\x8d\xcf\x9f"); } // [B1, V6] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--sgb4140l.xn----qmc5075grs9e"); } // [B2, B3] +test { try toUnicodeFail("xn--sgb953kmi8o.xn----qmc5075grs9e"); } // [B1, B2, B3, C1] +test { 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] +test { try toUnicodeFail("-\xf2\xad\xb7\x99\xd9\xab\xe7\xba\x9b\xe3\x80\x823\xf1\xad\xa4\x874,"); } // [B1, V3, V7, U1] +test { try toUnicodeFail("xn----vqc8143g0tt4i.xn--34,-8787l"); } // [B1, V3, V7, U1] +test { try toUnicodeFail("xn----vqc8143g0tt4i.xn--3-os1sn476y"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5] +test { try toUnicodeFail("\xf0\x9f\x94\x94.\xe1\x82\xa2\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5] +test { try toUnicodeFail("\xf0\x9f\x94\x94.\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5] +test { try toUnicodeFail("xn--nv8h.xn--nsb46rvz1b222p"); } // [B1, B5] +test { try toUnicodeFail("\xf0\x9f\x94\x94\xef\xbc\x8e\xe2\xb4\x82\xdf\x8c\xe0\xaf\x8d\xf0\x90\x8b\xae"); } // [B1, B5] +test { try toUnicodeFail("xn--nv8h.xn--nsb46r83e8112a"); } // [B1, B5, V7] +test { try toUnicodeFail("\xe8\xbb\xa5\xda\xb3.-\xf0\x96\xac\xb5"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("xn--mkb5480e.xn----6u5m"); } // [B1, B5, B6, V3] +test { try toUnicodeFail("\xf0\x90\xb9\xa4\xdf\x8a\xda\xb6.\xf0\x90\xa8\x82-"); } // [B1, V3, V6] +test { try toUnicodeFail("xn--pkb56cn614d.xn----974i"); } // [B1, V3, V6] +test { try toUnicodeFail("-\xf3\xa0\x85\xb10\xef\xbd\xa1\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad"); } // [V3, V6] +test { 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] +test { try toUnicodeFail("-\xf3\xa0\x85\xb10\xe3\x80\x82\xe1\x9f\x8f\xe1\xb7\xbd\xed\x86\x87\xec\x8b\xad"); } // [V3, V6] +test { 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] +test { try toUnicodeFail("-0.xn--r4e872ah77nghm"); } // [V3, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--md9a.--.xn--o4e6836dpxudz0v1c"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn-----bk9hu24z.xn--o4e6836dpxudz0v1c"); } // [B1, B6, V2, V3, V6, V7] +test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6] +test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6] +test { try toUnicodeFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6] +test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6] +test { try toUnicodeFail("xn--1od555l3a.xn--9ic"); } // [V6] +test { try toUnicodeFail("\xe1\x85\x9f\xe2\xb4\x9f\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6] +test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe1\x82\xb5\xe1\xb2\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6] +test { try toUnicodeFail("xn--tndt4hvw.xn--9ic"); } // [V6, V7] +test { try toUnicodeFail("xn--1od7wz74eeb.xn--9ic"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xe3\x80\x82\xe0\xad\x8d"); } // [V6] +test { try toUnicodeFail("xn--3nd0etsm92g.xn--9ic"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x85\x9f\xe1\x82\xbf\xe2\xb4\x95\xe1\x83\xa0\xef\xbd\xa1\xe0\xad\x8d"); } // [V6] +test { try toUnicodeFail("\xf0\x9f\x84\x83\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87"); } // [B1, U1] +test { try toUnicodeFail("2,\xf0\x90\xb9\xa0.\xd9\xa4\xf3\xa0\x85\x87"); } // [B1, U1] +test { try toUnicodeFail("xn--2,-5g3o.xn--dib"); } // [B1, U1] +test { try toUnicodeFail("xn--7n0d1189a.xn--dib"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--vgb2kp1223g.xn--tsb0vz43c"); } // [B2, B3, B5, B6, V7] +test { try toUnicodeFail("xn--vgb2kq00fl213y.xn--tsb0vz43c"); } // [B2, B3, B5, B6, C1, V7] +test { 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] +test { try toUnicodeFail("xn--l96h.xn--o8e4044k"); } // [V7] +test { try toUnicodeFail("xn--0ugba05538b.xn--o8e4044k"); } // [B1, C1, C2, V7] +test { try toUnicodeFail("xn--l96h.xn--03e93aq365d"); } // [V7] +test { try toUnicodeFail("xn--0ugba05538b.xn--03e93aq365d"); } // [B1, C1, C2, V7] +test { try toUnicodeFail("\xf0\x9e\xb7\xbb\xe3\x80\x82\xe2\x9a\x84\xf1\x97\x91\x87\xf0\x91\x81\xbf"); } // [B1, V7] +test { try toUnicodeFail("xn--qe7h.xn--c7h2966f7so4a"); } // [B1, V7] +test { try toUnicodeFail("\xea\xa3\x84\xe2\x89\xa0\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6] +test { try toUnicodeFail("\xea\xa3\x84=\xcc\xb8\xef\xbc\x8e\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6] +test { try toUnicodeFail("\xea\xa3\x84\xe2\x89\xa0.\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6] +test { try toUnicodeFail("\xea\xa3\x84=\xcc\xb8.\xf0\x9e\xa0\xa8\xd9\xa7"); } // [B1, V6] +test { try toUnicodeFail("xn--1chy504c.xn--gib1777v"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x9d\x9f\x9b\xf0\x9d\x86\xaa\xea\xa3\x84\xef\xbd\xa1\xea\xa3\xaa-"); } // [V3, V6] +test { try toUnicodeFail("\xf0\x9d\x9f\x9b\xea\xa3\x84\xf0\x9d\x86\xaa\xef\xbd\xa1\xea\xa3\xaa-"); } // [V3, V6] +test { try toUnicodeFail("3\xea\xa3\x84\xf0\x9d\x86\xaa\xe3\x80\x82\xea\xa3\xaa-"); } // [V3, V6] +test { try toUnicodeFail("xn--3-sl4eu679e.xn----xn4e"); } // [V3, V6] +test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.e"); } // [B2, B3] +test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe2\xb4\x87.e"); } // [B2, B3] +test { try toUnicodeFail("\xdd\x9f\xe1\xae\xa2\xe1\x80\xba\xe1\x82\xa7.E"); } // [B2, B3] +test { try toUnicodeFail("xn--jpb846bjzj7pr.e"); } // [B2, B3] +test { try toUnicodeFail("xn--jpb846bmjw88a.e"); } // [B2, B3, V7] +test { try toUnicodeFail("\xe1\x84\xb9\xef\xbd\xa1\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x84\xb9\xe3\x80\x82\xe0\xbb\x8a\xf2\xa0\xaf\xa4\xf3\xa0\x84\x9e"); } // [V6, V7] +test { try toUnicodeFail("xn--lrd.xn--s8c05302k"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7] +test { try toUnicodeFail("\xe1\x82\xa6\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7] +test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf"); } // [V7] +test { try toUnicodeFail("xn--xkjw3965g.xn--ne6h"); } // [V7] +test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\xaf"); } // [V7] +test { try toUnicodeFail("xn--end82983m.xn--ne6h"); } // [V7] +test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9.\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7] +test { try toUnicodeFail("\xe2\xb4\x86\xf2\xbb\xa2\xa9\xef\xbc\x8e\xf3\xa0\x86\xa1\xef\xb8\x89\xf0\x9e\xa4\x8d"); } // [V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-uze.xn--0ib.xn--f-tcoa9162d"); } // [B5, B6] +test { try toUnicodeFail("xn--ss-uze.xn--0ib.xn--f-sgn48ga6997e"); } // [B5, B6, C1] +test { try toUnicodeFail("xn--zca687a.xn--0ib.xn--f-sgn48ga6997e"); } // [B5, B6, C1] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-k0d31nu121d.xn--f-tcoa9162d"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--ss-k0d31nu121d.xn--f-sgn48ga6997e"); } // [B5, B6, C1, V7] +test { try toUnicodeFail("xn--zca68zj8ac956c.xn--f-sgn48ga6997e"); } // [B5, B6, C1, V7] +test { try toUnicodeFail("\xf3\x98\xaa\x97\xef\xbd\xa1\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf3\x98\xaa\x97\xe3\x80\x82\xf0\x90\xb9\xb4\xf0\x9e\xa8\x8c\xe2\x80\x8d"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--8l83e.xn--so0dw168a"); } // [B1, V7] +test { try toUnicodeFail("xn--8l83e.xn--1ug4105gsxwf"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa2\xf0\x9d\x9f\xa8\xea\xa3\x84"); } // [V7] +test { try toUnicodeFail("\xf1\x97\x9b\xa8.\xf2\x85\x9f\xa26\xea\xa3\x84"); } // [V7] +test { try toUnicodeFail("xn--mi60a.xn--6-sl4es8023c"); } // [V7] +test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe1\x82\xa8"); } // [B1, V3, V6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc3430a9a"); } // [B1, V3, V6] +test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe2\xb4\x91\xe2\xb4\x88"); } // [B1, V3, V6] +test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc155e9a"); } // [B1, V3, V6, V7] +test { 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] +test { try toUnicodeFail("xn--rgbd2e831i.xn----zyc875efr3a"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("\xe1\xaa\xb2\xef\xb6\x8e\xe3\x80\x82-\xdb\xb9\xe1\x82\xb1\xe2\xb4\x88"); } // [B1, V3, V6] +test { try toUnicodeFail("\xf0\x9e\xa4\xa4\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\x9e\xa4\xa4.-\xe0\xa2\xa3\xe3\x80\x82"); } // [B1, V3] +test { try toUnicodeFail("\xf0\x9e\xa4\x82.-\xe0\xa2\xa3\xe3\x80\x82"); } // [B1, V3] +test { try toUnicodeFail("xn--ce6h.xn----cod."); } // [B1, V3] +test { try toUnicodeFail("\xf0\x9e\xa4\x82\xef\xbc\x8e-\xe0\xa2\xa3\xef\xb8\x92"); } // [B1, V3, V7] +test { try toUnicodeFail("xn--ce6h.xn----cod7069p"); } // [B1, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x90\xba\xa8.\xe0\xa1\x99--"); } // [B1, C1, V3, V6] +test { try toUnicodeFail("xn--9p0d.xn-----h6e"); } // [B1, V3, V6] +test { try toUnicodeFail("xn--0ug7905g.xn-----h6e"); } // [B1, C1, V3, V6] +test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe1\x82\xa1"); } // [V7] +test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe2\xb4\xa2.\xe2\xb4\x81"); } // [V7] +test { try toUnicodeFail("\xf0\x90\x8b\xb8\xf3\xae\x98\x8b\xe1\x83\x82.\xe2\xb4\x81"); } // [V7] +test { try toUnicodeFail("xn--qlj1559dr224h.xn--skj"); } // [V7] +test { try toUnicodeFail("xn--6nd5215jr2u0h.xn--skj"); } // [V7] +test { try toUnicodeFail("xn--6nd5215jr2u0h.xn--8md"); } // [V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4-w93ej7463a9io5a.xn--4xa31142bk3f0d"); } // [V7] +test { try toUnicodeFail("xn--4-w93ej7463a9io5a.xn--3xa51142bk3f0d"); } // [V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xf3\xa0\x86\x80\xdc\xa3\xe3\x80\x82\xe1\xb7\xb4\xdd\xb5"); } // [B1, V6] +test { try toUnicodeFail("xn--tnb.xn--5pb136i"); } // [B1, V6] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--0vb1535kdb6e.xn--8kjz186s"); } // [B1] +test { try toUnicodeFail("xn--0vb1535kdb6e.xn--1ug742c5714c"); } // [B1, B6, C2] +test { 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] +test { try toUnicodeFail("xn--0vb1535kdb6e.xn--pnd93707a"); } // [B1, V7] +test { try toUnicodeFail("xn--0vb1535kdb6e.xn--pnd879eqy33c"); } // [B1, B6, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--fze4126jujt0g.xn----c36i"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn--fze807bso0spy14i.xn----c36i"); } // [B1, C2, V3, V6, V7] +test { try toUnicodeFail("\xf0\xbe\xa2\xac\xef\xbd\xa1\xdc\xa9\xef\xb8\x92\xec\xaf\x99\xf0\x9d\x9f\xa7"); } // [B2, V7] +test { 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] +test { try toUnicodeFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xec\xaf\x995"); } // [V7] +test { try toUnicodeFail("\xf0\xbe\xa2\xac\xe3\x80\x82\xdc\xa9\xe3\x80\x82\xe1\x84\x8d\xe1\x85\xb3\xe1\x86\xac5"); } // [V7] +test { try toUnicodeFail("xn--t92s.xn--znb.xn--5-y88f"); } // [V7] +test { try toUnicodeFail("xn--t92s.xn--5-p1c0712mm8rb"); } // [B2, V7] +test { try toUnicodeFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90"); } // [B2, B3, V3] +test { try toUnicodeFail("\xf0\x9e\xa4\x9f-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5"); } // [B2, B3, V3] +test { try toUnicodeFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2<\xcc\xb8\xe1\x84\x88\xe1\x85\xa5"); } // [B2, B3, V3] +test { try toUnicodeFail("\xf0\x9e\xa5\x81-\xe3\x80\x82\xdd\xa2\xe2\x89\xae\xeb\xbb\x90"); } // [B2, B3, V3] +test { try toUnicodeFail("xn----1j8r.xn--mpb269krv4i"); } // [B2, B3, V3] +test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4\xe2\x89\xa0"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0\xef\xbc\x8e\xe0\xa2\xb4=\xcc\xb8"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4\xe2\x89\xa0"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf0\x9e\xa5\xa9-\xf2\x8a\xab\xa0.\xe0\xa2\xb4=\xcc\xb8"); } // [B2, B3, V7] +test { try toUnicodeFail("xn----cm8rp3609a.xn--9yb852k"); } // [B2, B3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe1\x82\xbc.\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc.\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c.\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----0mb9682aov12f.xn--9hb"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----ymb2782aov12f.xn--9hb"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x82\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe1\x82\xbc\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xcf\x83\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf1\x85\x82\x8f\xce\xa3\xe2\xb4\x9c\xef\xbc\x8e\xd9\xa1"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----0mb770hun11i.xn--9hb"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----ymb080hun11i.xn--9hb"); } // [B1, V3, V7] +test { try toUnicodeFail("\xe1\x9f\x8a.\xe2\x80\x8d\xf0\x9d\x9f\xae\xf0\x91\x80\xbf"); } // [C2, V6] +test { try toUnicodeFail("\xe1\x9f\x8a.\xe2\x80\x8d2\xf0\x91\x80\xbf"); } // [C2, V6] +test { try toUnicodeFail("xn--m4e.xn--2-ku7i"); } // [V6] +test { try toUnicodeFail("xn--m4e.xn--2-tgnv469h"); } // [C2, V6] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x89\xaf8\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91"); } // [B1, V6, V7] +test { try toUnicodeFail(">\xcc\xb88\xe3\x80\x82\xe1\xa9\xa0\xf0\x90\xab\x93\xf2\x9f\x87\x91"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--8-ogo.xn--jof5303iv1z5d"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x83\xd9\xa4\xe3\x80\x82\xe2\x80\x8c"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xe3\x80\x82\xe2\x80\x8c"); } // [B1, C1, V6] +test { try toUnicodeFail("xn--dib100l8x1p."); } // [B1, V6] +test { try toUnicodeFail("xn--dib100l8x1p.xn--0ug"); } // [B1, C1, V6] +test { try toUnicodeFail("\xf0\x91\xb2\xab\xe2\x86\x84\xd9\xa4\xef\xbd\xa1\xe2\x80\x8c"); } // [B1, C1, V6] +test { try toUnicodeFail("xn--dib999kcy1p."); } // [B1, V6, V7] +test { try toUnicodeFail("xn--dib999kcy1p.xn--0ug"); } // [B1, C1, V6, V7] +test { 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] +test { try toUnicodeFail("\xe0\xb0\x809\xe2\x80\x8d\xd8\xa8\xd8\xad.\xe2\x80\x8d\xdd\x901."); } // [B1, C2, V6] +test { try toUnicodeFail("xn--9-1mcp570d.xn--1-x3c."); } // [B1, V6] +test { try toUnicodeFail("xn--9-1mcp570dl51a.xn--1-x3c211q."); } // [B1, C2, V6] +test { try toUnicodeFail("xn--9-1mcp570d.xn--3ob470m"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--9-1mcp570dl51a.xn--3ob977jmfd"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6\xc3\x9f\xe8\x91\xbd"); } // [V6] +test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6SS\xe8\x91\xbd"); } // [V6] +test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6ss\xe8\x91\xbd"); } // [V6] +test { try toUnicodeFail("\xea\xab\xb6\xe3\x80\x82\xe5\xac\xb6Ss\xe8\x91\xbd"); } // [V6] +test { try toUnicodeFail("xn--2v9a.xn--ss-q40dp97m"); } // [V6] +test { try toUnicodeFail("xn--2v9a.xn--zca7637b14za"); } // [V6] +test { try toUnicodeFail("\xf0\x91\x9a\xb6\xe2\x92\x88\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba"); } // [B5, B6, V6, V7] +test { try toUnicodeFail("\xf0\x91\x9a\xb61.\xe3\x80\x82\xf1\x9e\xbb\xa1\xf0\x90\xb9\xba"); } // [B5, B6, V6, V7, X4_2] +test { try toUnicodeFail("xn--1-3j0j..xn--yo0d5914s"); } // [B5, B6, V6, V7, X4_2] +test { try toUnicodeFail("xn--tshz969f.xn--yo0d5914s"); } // [B5, B6, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ci2d.xn--gdh.xn--deb0091w5q9u"); } // [B1, B5, B6, V6, V7] +test { try toUnicodeFail("xn--gdh5267fdzpa.xn--deb0091w5q9u"); } // [B1, B5, B6, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--lfb04106d.xn--4xa964mxv16m8moq"); } // [B1, V7] +test { try toUnicodeFail("xn--lfb04106d.xn--3xa174mxv16m8moq"); } // [B1, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4xa2260lk3b8z15g.xn--tw9ct349a"); } // [V7] +test { try toUnicodeFail("xn--4xa2260lk3b8z15g.xn--0ug4653g2xzf"); } // [C1, V7] +test { try toUnicodeFail("xn--3xa4260lk3b8z15g.xn--0ug4653g2xzf"); } // [C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("-\xf2\xb5\x8f\xbd\xef\xbd\xa1-\xef\xb1\x8c\xdd\x9b"); } // [B1, V3, V7] +test { try toUnicodeFail("-\xf2\xb5\x8f\xbd\xe3\x80\x82-\xd9\x86\xd8\xad\xdd\x9b"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----o452j.xn----cnc8e38c"); } // [B1, V3, V7] +test { 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] +test { try toUnicodeFail("\xe2\xba\xa2\xf2\x87\xba\x852\xe3\x80\x82\xe2\x80\x8d\xf0\x9f\x9a\xb7"); } // [C2, V7] +test { try toUnicodeFail("xn--2-4jtr4282f.xn--m78h"); } // [V7] +test { try toUnicodeFail("xn--2-4jtr4282f.xn--1ugz946p"); } // [C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--hvc220of37m.xn--3e36c"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--hvc488g69j402t.xn--3e36c"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe1\x82\xad\xe2\x82\x89\xe2\x81\xb8"); } // [B1] +test { try toUnicodeFail("\xf0\x90\xb9\xa2.\xe1\x82\xad98"); } // [B1] +test { try toUnicodeFail("\xf0\x90\xb9\xa2.\xe2\xb4\x8d98"); } // [B1] +test { try toUnicodeFail("xn--9n0d.xn--98-u61a"); } // [B1] +test { try toUnicodeFail("\xf0\x90\xb9\xa2\xef\xbc\x8e\xe2\xb4\x8d\xe2\x82\x89\xe2\x81\xb8"); } // [B1] +test { try toUnicodeFail("xn--9n0d.xn--98-7ek"); } // [B1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82\xc3\x9f\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82SS\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82ss\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.>\xcc\xb8"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xe3\x80\x82Ss\xe0\xa3\xa219.\xe2\x89\xaf"); } // [B1, B5, C1, V7] +test { try toUnicodeFail(".xn--ss19-w0i.xn--hdh"); } // [B1, B5, V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--ss19-w0i.xn--hdh"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("xn--0ug.xn--19-fia813f.xn--hdh"); } // [B1, B5, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1SS\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a>\xcc\xb8"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xcd\x8f\xef\xbd\xa1Ss\xe0\xa3\xa2\xe2\x92\x9a\xe2\x89\xaf"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail(".xn--ss-9if872xjjc"); } // [B5, B6, V7, X4_2] +test { try toUnicodeFail("xn--0ug.xn--ss-9if872xjjc"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("xn--0ug.xn--zca612bx9vo5b"); } // [B1, B5, B6, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c\xef\xbc\x8e\xf0\xa3\x83\x94"); } // [B1, C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x9e\xa5\x8d\xe1\xa1\x8c.\xf0\xa3\x83\x94"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--c8e5919u.xn--od1j"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--c8e180bqz13b.xn--od1j"); } // [B1, C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn----8bd11730jefvw.xn--wfd802mpm20agsxa"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("xn----8bd11730jefvw.xn--wfd08cd265hgsxa"); } // [B1, B2, B3, V6, V7] +test { try toUnicodeFail("\xf0\x9d\xa8\xa5\xe3\x80\x82\xe2\xab\x9f\xf0\x91\x88\xbe"); } // [V6] +test { try toUnicodeFail("xn--n82h.xn--63iw010f"); } // [V6] +test { try toUnicodeFail("\xe2\xbe\x9b\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("\xe8\xb5\xb0\xdd\x93.\xe1\x82\xb5\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("\xe8\xb5\xb0\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("xn--6ob9779d.xn--mfb511rxu80a"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--6ob9779d.xn--mfb444k5gjt754b"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("\xe2\xbe\x9b\xdd\x93.\xe2\xb4\x95\xf0\x9e\xa0\xac\xd8\x84\xe2\x80\x8d"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("xn--6ob9779d.xn--mfb785ck569a"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--6ob9779d.xn--mfb785czmm0y85b"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("-\xe1\xa2\x97\xe2\x80\x8c\xf0\x9f\x84\x84.\xf0\x91\x9c\xa2"); } // [C1, V3, V6, U1] +test { try toUnicodeFail("-\xe1\xa2\x97\xe2\x80\x8c3,.\xf0\x91\x9c\xa2"); } // [C1, V3, V6, U1] +test { try toUnicodeFail("xn---3,-3eu.xn--9h2d"); } // [V3, V6, U1] +test { try toUnicodeFail("xn---3,-3eu051c.xn--9h2d"); } // [C1, V3, V6, U1] +test { try toUnicodeFail("xn----pck1820x.xn--9h2d"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----pck312bx563c.xn--9h2d"); } // [C1, V3, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1ch2293gv3nr.xn--ilj23531g"); } // [B1, V7] +test { try toUnicodeFail("xn--0ug83gn618a21ov.xn--ilj23531g"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--1ch2293gv3nr.xn--ynd49496l"); } // [B1, V7] +test { try toUnicodeFail("xn--0ug83gn618a21ov.xn--ynd49496l"); } // [B1, C1, V7] +test { try toUnicodeFail("\xd9\xa9\xef\xbd\xa1\xf3\xa0\x87\x80\xf0\x91\x87\x8a"); } // [B1, V6] +test { try toUnicodeFail("\xd9\xa9\xe3\x80\x82\xf3\xa0\x87\x80\xf0\x91\x87\x8a"); } // [B1, V6] +test { try toUnicodeFail("xn--iib.xn--6d1d"); } // [B1, V6] +test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf\xe2\x92\x8d\xe3\x80\x82-"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb8\xe2\x92\x8d\xe3\x80\x82-"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80\xe2\x89\xaf6.\xe3\x80\x82-"); } // [B1, V3, V6, V7, X4_2] +test { try toUnicodeFail("\xe1\x82\x86\xf0\x9e\xb6\x80>\xcc\xb86.\xe3\x80\x82-"); } // [B1, V3, V6, V7, X4_2] +test { try toUnicodeFail("xn--6-oyg968k7h74b..-"); } // [B1, V3, V6, V7, X4_2] +test { try toUnicodeFail("xn--hmd482gqqb8730g.-"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("\xe1\x9e\xb4.\xec\xae\x87-"); } // [V3, X4_2] +test { try toUnicodeFail("\xe1\x9e\xb4.\xe1\x84\x8d\xe1\x85\xb0\xe1\x86\xae-"); } // [V3, X4_2] +test { try toUnicodeFail(".xn----938f"); } // [V3, X4_2] +test { try toUnicodeFail("xn--z3e.xn----938f"); } // [V3, V6, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x82\xe2\x92\x88-\xf4\x80\xaa\x9b"); } // [C1, V7] +test { try toUnicodeFail("\xe2\x80\x8c\xf0\x91\x93\x82\xe3\x80\x821.-\xf4\x80\xaa\x9b"); } // [C1, V3, V7] +test { try toUnicodeFail("xn--wz1d.1.xn----rg03o"); } // [V3, V6, V7] +test { try toUnicodeFail("xn--0ugy057g.1.xn----rg03o"); } // [C1, V3, V7] +test { try toUnicodeFail("xn--wz1d.xn----dcp29674o"); } // [V6, V7] +test { try toUnicodeFail("xn--0ugy057g.xn----dcp29674o"); } // [C1, V7] +test { 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] +test { 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] +test { try toUnicodeFail("1.xn--wgb.xn--c1g6021kg18c"); } // [B1, V6] +test { try toUnicodeFail("1.xn--wgb253k.xn--0ugz6a8040fty5d"); } // [B1, B3, C1, V6] +test { try toUnicodeFail("xn--wgb746m.xn--c1g6021kg18c"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--wgb253kmfd.xn--0ugz6a8040fty5d"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("\xf3\x8c\xad\x87\xef\xbd\xa1\xf0\x9d\x9f\x90\xe1\xae\xa8\xdf\x94"); } // [B1, V7] +test { try toUnicodeFail("\xf3\x8c\xad\x87\xe3\x80\x822\xe1\xae\xa8\xdf\x94"); } // [B1, V7] +test { try toUnicodeFail("xn--xm89d.xn--2-icd143m"); } // [B1, V7] +test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x82\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--tgb9bb64691z.xn--4xa6667k"); } // [B2, B3, B5, B6, V7] +test { try toUnicodeFail("xn--tgb9bb64691z.xn--4xa895lrp7n"); } // [B2, B3, B5, B6, C2, V7] +test { try toUnicodeFail("xn--tgb9bb64691z.xn--3xa006lrp7n"); } // [B2, B3, B5, B6, C2, V7] +test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xce\xa3\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7] +test { try toUnicodeFail("\xef\xb6\x8f\xf2\xab\xb3\xba.\xcf\x83\xe2\x80\x8d\xf0\x90\xb9\xb7"); } // [B2, B3, B5, B6, C2, V7] +test { try toUnicodeFail("\xe2\x92\x8e\xdb\x81\xd8\x85\xef\xbd\xa1\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd"); } // [B1, V6, V7] +test { try toUnicodeFail("7.\xdb\x81\xd8\x85\xe3\x80\x82\xea\xab\xb6\xdb\xb5\xf0\x90\x87\xbd"); } // [B1, V6, V7] +test { try toUnicodeFail("7.xn--nfb98a.xn--imb3805fxt8b"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--nfb98ai25e.xn--imb3805fxt8b"); } // [B1, V6, V7] +test { 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] +test { try toUnicodeFail("xn----f3j6s87156i.xn--nfb035hoo2p"); } // [B1, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8d.\xda\xbd\xd9\xa3\xd6\x96"); } // [B1, C2] +test { try toUnicodeFail(".xn--hcb32bni"); } // [X4_2] +test { try toUnicodeFail("xn--1ug.xn--hcb32bni"); } // [B1, C2] test { try toUnicodePass("xn--hcb32bni", "\xda\xbd\xd9\xa3\xd6\x96"); } test { try toAsciiPass("xn--hcb32bni", "xn--hcb32bni", false); } test { try toAsciiPass("xn--hcb32bni", "xn--hcb32bni", true); } test { try toUnicodePass("\xda\xbd\xd9\xa3\xd6\x96", "\xda\xbd\xd9\xa3\xd6\x96"); } test { try toAsciiPass("\xda\xbd\xd9\xa3\xd6\x96", "xn--hcb32bni", false); } test { try toAsciiPass("\xda\xbd\xd9\xa3\xd6\x96", "xn--hcb32bni", true); } +test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\xb8\xe2\x80\x8d"); } // [B5, B6, C2] +test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe1\x82\xba\xd9\x8a\xd9\xb4\xe2\x80\x8d"); } // [B5, B6, C2] +test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\x8a\xd9\xb4\xe2\x80\x8d"); } // [B5, B6, C2] +test { try toUnicodeFail("xn--emb715u.xn--mhb8fy26k"); } // [B5, B6] +test { try toUnicodeFail("xn--emb715u.xn--mhb8f960g03l"); } // [B5, B6, C2] +test { try toUnicodeFail("\xe3\x92\xa7\xdb\xb1.\xe2\xb4\x9a\xd9\xb8\xe2\x80\x8d"); } // [B5, B6, C2] +test { try toUnicodeFail("xn--emb715u.xn--mhb8f817a"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--emb715u.xn--mhb8f817ao2p"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("\xe0\xbe\x94\xea\xa1\x8b-\xef\xbc\x8e-\xf0\x96\xac\xb4"); } // [V3, V6] +test { try toUnicodeFail("\xe0\xbe\x94\xea\xa1\x8b-.-\xf0\x96\xac\xb4"); } // [V3, V6] +test { try toUnicodeFail("xn----ukg9938i.xn----4u5m"); } // [V3, V6] +test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c\xef\xbc\x8e\xe6\xa0\x87-"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8b\xa2\xe2\x80\x8c.\xe6\xa0\x87-"); } // [C1, V3, V7] +test { try toUnicodeFail("\xf1\xbf\x92\xb3-\xe2\x8a\x91\xcc\xb8\xe2\x80\x8c.\xe6\xa0\x87-"); } // [C1, V3, V7] +test { try toUnicodeFail("xn----9mo67451g.xn----qj7b"); } // [V3, V7] +test { try toUnicodeFail("xn----sgn90kn5663a.xn----qj7b"); } // [C1, V3, V7] +test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xcf\x82\xdf\x9c"); } // [B5, B6] +test { try toUnicodeFail("\xd9\xb1.\xcf\x82\xdf\x9c"); } // [B5, B6] +test { try toUnicodeFail("\xd9\xb1.\xce\xa3\xdf\x9c"); } // [B5, B6] +test { try toUnicodeFail("\xd9\xb1.\xcf\x83\xdf\x9c"); } // [B5, B6] +test { try toUnicodeFail("xn--qib.xn--4xa21s"); } // [B5, B6] +test { try toUnicodeFail("xn--qib.xn--3xa41s"); } // [B5, B6] +test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xce\xa3\xdf\x9c"); } // [B5, B6] +test { try toUnicodeFail("\xd9\xb1\xef\xbc\x8e\xcf\x83\xdf\x9c"); } // [B5, B6] +test { 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] +test { 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] +test { try toUnicodeFail("xn--nfb17942h.xn--nzb6708kx3pn"); } // [B2, B3, B5, B6, V7] +test { try toUnicodeFail("xn--nfb17942h.xn--nzb240jv06otevq"); } // [B2, B3, B5, B6, C2, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xef\xbd\xa1\xe1\xaf\xb2"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xbe\xf0\x90\x8b\xa9\xf0\x9e\xb5\x9c\xe3\x80\x82\xe1\xaf\xb2"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--d97cn8rn44p.xn--0zf"); } // [B1, V6, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--6-iuly4983p.xn--4xa95ohw6pk078g"); } // [B1, B5, V7] +test { try toUnicodeFail("xn--6-iuly4983p.xn--3xa16ohw6pk078g"); } // [B1, B5, V7] +test { try toUnicodeFail("xn--6-5bh476ewr517a.xn--4xa95ohw6pk078g"); } // [B1, B5, V7] +test { try toUnicodeFail("xn--6-5bh476ewr517a.xn--3xa16ohw6pk078g"); } // [B1, B5, V7] +test { 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] +test { try toUnicodeFail("\xda\xb3\xef\xb8\x84\xf1\x85\x8e\xa67\xe3\x80\x82\xf0\x90\xb9\xbd"); } // [B1, B2, V7] +test { try toUnicodeFail("xn--7-yuc34665f.xn--1o0d"); } // [B1, B2, V7] +test { try toUnicodeFail("\xf0\x9e\xae\xa7\xef\xbc\x8e\xe2\x80\x8c\xe2\xab\x9e"); } // [B1, C1, V7] +test { try toUnicodeFail("\xf0\x9e\xae\xa7.\xe2\x80\x8c\xe2\xab\x9e"); } // [B1, C1, V7] +test { try toUnicodeFail("xn--pw6h.xn--53i"); } // [B1, V7] +test { try toUnicodeFail("xn--pw6h.xn--0ug283b"); } // [B1, C1, V7] +test { try toUnicodeFail("-\xf1\x95\x89\xb4.\xdb\xa0\xe1\xa2\x9a-"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----qi38c.xn----jxc827k"); } // [V3, V6, V7] +test { 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] +test { try toUnicodeFail("\xe2\x8c\x81\xe2\x80\x8d\xf0\x91\x84\xb4.\xe2\x80\x8c7\xd9\xac"); } // [B1, C1, C2] +test { try toUnicodeFail("xn--nhh5394g.xn--7-xqc"); } // [B1] +test { try toUnicodeFail("xn--1ug38i2093a.xn--7-xqc297q"); } // [B1, C1, C2] +test { 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] +test { 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] +test { try toUnicodeFail(".xn--mgb1a7bt462h.xn--17e10qe61f9r71s"); } // [V7, X4_2] +test { try toUnicodeFail("xn--mgb1a7bt462hf267a.xn--17e10qe61f9r71s"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xa8\xe3\x80\x828\xf0\x91\x81\x86"); } // [B1] +test { try toUnicodeFail("xn--go0d.xn--8-yu7i"); } // [B1] +test { 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] +test { 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] +test { try toUnicodeFail("xn--mxc5210v.xn--90b01t8u2p1ltd"); } // [B1, B5, B6, V6] +test { try toUnicodeFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xef\xbd\xa1\xf3\xa0\x8d\x85"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xf3\x86\xa9\x8f\xf0\x90\xa6\xb9\xcc\x83\xe3\x80\x82\xf3\xa0\x8d\x85"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn--nsa1265kp9z9e.xn--xt36e"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("\xe1\xa2\x8c\xef\xbc\x8e-\xe0\xa1\x9a"); } // [V3] +test { try toUnicodeFail("\xe1\xa2\x8c.-\xe0\xa1\x9a"); } // [V3] +test { try toUnicodeFail("xn--59e.xn----5jd"); } // [V3] +test { 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] +test { 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] +test { try toUnicodeFail("xn--jb2dj685c.xn--xmc5562kmcb"); } // [B1, V7] +test { try toUnicodeFail("\xe1\x82\xb0\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe1\x82\xb0\xdd\xbf.\xe2\x80\x8c"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\xb4\x90\xdd\xbf.\xe2\x80\x8c"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("xn--gqb743q."); } // [B5, B6] +test { try toUnicodeFail("xn--gqb743q.xn--0ug"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("\xe2\xb4\x90\xdd\xbf\xef\xbc\x8e\xe2\x80\x8c"); } // [B1, B5, B6, C1] +test { try toUnicodeFail("xn--gqb918b."); } // [B5, B6, V7] +test { try toUnicodeFail("xn--gqb918b.xn--0ug"); } // [B1, B5, B6, C1, V7] +test { 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] +test { try toUnicodeFail("4,\xf0\x91\xb2\x9e-1.\xe3\x80\x82\xe2\x80\x8d\xe1\xa0\xa9\xda\xa5"); } // [B1, C2, U1, X4_2] +test { try toUnicodeFail("xn--4,-1-w401a..xn--7jb180g"); } // [B1, B5, B6, U1, X4_2] +test { try toUnicodeFail("xn--4,-1-w401a..xn--7jb180gexf"); } // [B1, C2, U1, X4_2] +test { try toUnicodeFail("xn--4,--je4aw745l.xn--7jb180g"); } // [B1, B5, B6, V7, U1] +test { try toUnicodeFail("xn--4,--je4aw745l.xn--7jb180gexf"); } // [B1, C2, V7, U1] +test { try toUnicodeFail("xn----ecp8796hjtvg.xn--7jb180g"); } // [B1, B5, B6, V7] +test { try toUnicodeFail("xn----ecp8796hjtvg.xn--7jb180gexf"); } // [B1, C2, V7] +test { try toUnicodeFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\xaa\xf2\xae\xbf\x8b"); } // [B2, B3, V7] +test { try toUnicodeFail("\xf1\x97\x80\xa4\xe3\x80\x82\xf0\x9e\xa4\x88\xf2\xae\xbf\x8b"); } // [B2, B3, V7] +test { try toUnicodeFail("xn--4240a.xn--ie6h83808a"); } // [B2, B3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--pdb42d.xn--lib6412enztdwv6h"); } // [B1, B2, B3, V6] +test { try toUnicodeFail("\xf0\x9e\xad\xb3-\xea\xa1\x81\xe3\x80\x82\xe1\xa9\xa9\xe0\xaf\x8d-"); } // [B1, B2, B3, V3, V6, V7] +test { try toUnicodeFail("xn----be4e4276f.xn----lze333i"); } // [B1, B2, B3, V3, V6, V7] +test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8e\xc3\x9f"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.\xc3\x9f"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.SS"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.ss"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2.Ss"); } // [V6, V7] +test { try toUnicodeFail("xn----9tg11172akr8b.ss"); } // [V6, V7] +test { try toUnicodeFail("xn----9tg11172akr8b.xn--zca"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSS"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8ess"); } // [V6, V7] +test { try toUnicodeFail("\xe1\x80\xb9-\xf0\x9a\xae\xad\xf0\x9f\x9e\xa2\xef\xbc\x8eSs"); } // [V6, V7] +test { try toUnicodeFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe1\x82\xbf\xe2\x80\x8c\xe2\x90\xa3"); } // [B3, B6, C1] +test { 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] +test { 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] +test { try toUnicodeFail("xn----eoc6bm.xn--xph904a"); } // [B3, B6, V3] +test { try toUnicodeFail("xn----eoc6bm0504a.xn--0ug13nd0j"); } // [B3, B6, C1] +test { try toUnicodeFail("\xef\xb3\xb2-\xe2\x80\x8c\xef\xbd\xa1\xe2\xb4\x9f\xe2\x80\x8c\xe2\x90\xa3"); } // [B3, B6, C1] +test { try toUnicodeFail("xn----eoc6bm.xn--3nd240h"); } // [B3, B6, V3, V7] +test { try toUnicodeFail("xn----eoc6bm0504a.xn--3nd849e05c"); } // [B3, B6, C1, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("\xe0\xb5\x8d-\xe2\x80\x8d\xe2\x80\x8c\xe3\x80\x82\xf1\xa5\x9e\xa75=\xcc\xb8"); } // [C1, C2, V6, V7] +test { try toUnicodeFail("xn----jmf.xn--5-ufo50192e"); } // [V3, V6, V7] +test { try toUnicodeFail("xn----jmf215lda.xn--5-ufo50192e"); } // [C1, C2, V6, V7] +test { try toUnicodeFail("\xe9\x94\xa3\xe3\x80\x82\xe0\xa9\x8d\xf3\xa0\x98\xbb\xf3\xa0\x9a\x86"); } // [V6, V7] +test { try toUnicodeFail("xn--gc5a.xn--ybc83044ppga"); } // [V6, V7] test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe\xef\xbc\x8e\xd9\x89\xe2\x80\x8d\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); } +test { try toUnicodeFail("\xd8\xbd\xf0\x91\x88\xbe\xef\xbc\x8e\xd9\x89\xe2\x80\x8d\xea\xa4\xab"); } // [B3, C2] test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xe2\x80\x8d\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); } +test { try toUnicodeFail("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xe2\x80\x8d\xea\xa4\xab"); } // [B3, C2] test { try toUnicodePass("xn--8gb2338k.xn--lhb0154f", "\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab"); } test { try toAsciiPass("xn--8gb2338k.xn--lhb0154f", "xn--8gb2338k.xn--lhb0154f", false); } test { try toAsciiPass("xn--8gb2338k.xn--lhb0154f", "xn--8gb2338k.xn--lhb0154f", true); } test { try toUnicodePass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab"); } test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", false); } test { try toAsciiPass("\xd8\xbd\xf0\x91\x88\xbe.\xd9\x89\xea\xa4\xab", "xn--8gb2338k.xn--lhb0154f", true); } +test { try toUnicodeFail("xn--8gb2338k.xn--lhb603k060h"); } // [B3, C2] +test { try toUnicodeFail("\xd9\xa6\xe2\x81\xb4\xe1\x82\xa5\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1] +test { try toUnicodeFail("\xd9\xa64\xe1\x82\xa5.\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1] +test { try toUnicodeFail("\xd9\xa64\xe2\xb4\x85.\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1] +test { try toUnicodeFail("xn--4-kqc6770a.xn--jzb"); } // [B1] +test { try toUnicodeFail("xn--4-kqc6770a.xn--jzb840j"); } // [B1, B3, C1] +test { try toUnicodeFail("\xd9\xa6\xe2\x81\xb4\xe2\xb4\x85\xef\xbc\x8e\xe0\xa2\xbd\xe2\x80\x8c"); } // [B1, B3, C1] +test { try toUnicodeFail("xn--4-kqc489e.xn--jzb"); } // [B1, V7] +test { try toUnicodeFail("xn--4-kqc489e.xn--jzb840j"); } // [B1, B3, C1, V7] test { 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"); } test { try toAsciiPass("\xe1\x83\x81\xe1\x82\xb16\xcc\x98\xe3\x80\x82\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--zca894k", false); } test { 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 test { 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"); } test { try toAsciiPass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--zca894k", false); } test { try toAsciiPass("\xe2\xb4\xa1\xe2\xb4\x916\xcc\x98.\xc3\x9f\xe1\xac\x83", "xn--6-8cb7433a2ba.xn--ss-2vq", true); } +test { try toUnicodeFail("xn--6-8cb306hms1a.xn--ss-2vq"); } // [V7] +test { try toUnicodeFail("xn--6-8cb555h2b.xn--ss-2vq"); } // [V7] +test { try toUnicodeFail("xn--6-8cb555h2b.xn--zca894k"); } // [V7] +test { try toUnicodeFail("\xf2\x8b\xa1\x90\xef\xbd\xa1\xe2\x89\xaf\xf0\x91\x8b\xaa"); } // [V7] +test { try toUnicodeFail("\xf2\x8b\xa1\x90\xef\xbd\xa1>\xcc\xb8\xf0\x91\x8b\xaa"); } // [V7] +test { try toUnicodeFail("\xf2\x8b\xa1\x90\xe3\x80\x82\xe2\x89\xaf\xf0\x91\x8b\xaa"); } // [V7] +test { try toUnicodeFail("\xf2\x8b\xa1\x90\xe3\x80\x82>\xcc\xb8\xf0\x91\x8b\xaa"); } // [V7] +test { try toUnicodeFail("xn--eo08b.xn--hdh3385g"); } // [V7] +test { try toUnicodeFail("\xd9\x9a\xdb\xb2\xe3\x80\x82\xe2\x80\x8c-\xe1\xaf\xb3\xe0\xa3\xa2"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("xn--2hb81a.xn----xrd657l"); } // [B1, V3, V6, V7] +test { try toUnicodeFail("xn--2hb81a.xn----xrd657l30d"); } // [B1, C1, V6, V7] +test { try toUnicodeFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xef\xbd\xa1\xef\xbe\xa0"); } // [V6, V7] +test { try toUnicodeFail("\xf3\xa0\x84\x8f\xf0\x96\xac\xb4\xf3\xa0\xb2\xbd\xe3\x80\x82\xe1\x85\xa0"); } // [V6, V7] +test { try toUnicodeFail("xn--619ep9154c."); } // [V6, V7] +test { try toUnicodeFail("xn--619ep9154c.xn--psd"); } // [V6, V7] +test { try toUnicodeFail("xn--619ep9154c.xn--cl7c"); } // [V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("ss1.xn--kpb6677h.xn--nfb09923ifkyyb"); } // [B2, B3, B5, V7] +test { try toUnicodeFail("xn--1-pfa.xn--kpb6677h.xn--nfb09923ifkyyb"); } // [B2, B3, B5, V7] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--ss-6ke9690a0g1q.xn--nfb09923ifkyyb"); } // [B5, V7] +test { try toUnicodeFail("xn--zca444a0s1ao12n.xn--nfb09923ifkyyb"); } // [B5, V7] +test { try toUnicodeFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb1\xe2\x82\x82"); } // [V7] +test { try toUnicodeFail("\xf3\xa0\xad\x94.\xf0\x90\x8b\xb12"); } // [V7] +test { try toUnicodeFail("xn--vi56e.xn--2-w91i"); } // [V7] +test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-\xc3\x9f\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3] +test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-SS\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3] +test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-ss\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3] +test { try toUnicodeFail("\xdc\x96\xe0\xa5\x87\xe3\x80\x82-Ss\xda\xa5\xe2\x80\x8c"); } // [B1, C1, V3] +test { try toUnicodeFail("xn--gnb63i.xn---ss-4ef"); } // [B1, V3] +test { try toUnicodeFail("xn--gnb63i.xn---ss-4ef9263a"); } // [B1, C1, V3] +test { try toUnicodeFail("xn--gnb63i.xn----qfa845bhx4a"); } // [B1, C1, V3] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--pgb911izv33i.xn--i6f270etuy"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--pgb911imgdrw34r.xn--i6f270etuy"); } // [B1, C2, V6, V7] +test { 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] +test { try toUnicodeFail("xn--pgb911izv33i.xn--5nd792dgv3b"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--pgb911imgdrw34r.xn--5nd792dgv3b"); } // [B1, C2, V6, V7] +test { try toUnicodeFail("\xe2\xb6\xbf.\xc3\x9f\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("\xe2\xb6\xbf.SS\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("\xe2\xb6\xbf.ss\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("\xe2\xb6\xbf.Ss\xe2\x80\x8d"); } // [C2, V7] +test { try toUnicodeFail("xn--7pj.ss"); } // [V7] +test { try toUnicodeFail("xn--7pj.xn--ss-n1t"); } // [C2, V7] +test { try toUnicodeFail("xn--7pj.xn--zca870n"); } // [C2, V7] +test { try toUnicodeFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82"); } // [B2, B3, B6, V6, V7] +test { try toUnicodeFail("\xe1\xaf\xb3\xef\xb8\x92.\xd8\xaa>\xcc\xb8\xea\xa1\x82"); } // [B2, B3, B6, V6, V7] +test { try toUnicodeFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa\xe2\x89\xaf\xea\xa1\x82"); } // [B2, B3, V6, X4_2] +test { try toUnicodeFail("\xe1\xaf\xb3\xe3\x80\x82.\xd8\xaa>\xcc\xb8\xea\xa1\x82"); } // [B2, B3, V6, X4_2] +test { try toUnicodeFail("xn--1zf..xn--pgb885lry5g"); } // [B2, B3, V6, X4_2] +test { try toUnicodeFail("xn--1zf8957g.xn--pgb885lry5g"); } // [B2, B3, B6, V6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1ch1a29470f.xn----7uc5363rc1rn"); } // [B1, V3, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xa1\xdd\xb7\xe3\x80\x82\xea\xa1\x82"); } // [B1] +test { try toUnicodeFail("xn--7pb5275k.xn--bc9a"); } // [B1] +test { 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] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--7fb940rwt3z7xvz.xn--ss-zme7575xp0e"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--7fb940rwt3z7xvz.xn--zca684a699vf2d"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--7fb125cjv87a7xvz.xn--ss-zme7575xp0e"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--7fb125cjv87a7xvz.xn--zca684a699vf2d"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xd9\x83\xf0\x90\xa7\xbe\xe2\x86\x99.\xf1\x8a\xbd\xa1"); } // [B1, C2, V7] +test { try toUnicodeFail("xn--fhb011lnp8n.xn--7s4w"); } // [B3, V7] +test { try toUnicodeFail("xn--fhb713k87ag053c.xn--7s4w"); } // [B1, C2, V7] +test { try toUnicodeFail("\xe6\xa2\x89\xe3\x80\x82\xe2\x80\x8c"); } // [C1] test { try toUnicodePass("xn--7zv.", "\xe6\xa2\x89."); } test { try toUnicodePass("\xe6\xa2\x89.", "\xe6\xa2\x89."); } +test { try toUnicodeFail("xn--7zv.xn--0ug"); } // [C1] +test { 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] +test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x83"); } // [B1, B6, C2] +test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\xb9\xf0\x90\x85\xa2\xe2\x86\x84"); } // [B1, B6, C2] +test { 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] +test { 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] +test { try toUnicodeFail("\xea\xa1\xa3-=\xcc\xb8.\xe2\x80\x8d\xf0\x9e\xa4\x97\xf0\x90\x85\xa2\xe2\x86\x84"); } // [B1, B6, C2] +test { try toUnicodeFail("xn----ufo9661d.xn--r5gy929fhm4f"); } // [B2, B3, B6] +test { try toUnicodeFail("xn----ufo9661d.xn--1ug99cj620c71sh"); } // [B1, B6, C2] +test { try toUnicodeFail("xn----ufo9661d.xn--q5g0929fhm4f"); } // [B2, B3, B6, V7] +test { try toUnicodeFail("xn----ufo9661d.xn--1ug79cm620c71sh"); } // [B1, B6, C2, V7] +test { 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] +test { try toUnicodeFail("\xcf\x829.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("\xce\xa39.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("\xcf\x839.\xf0\x9d\x86\xab\xe2\xb8\xb5\xe3\x80\x82\xf0\x90\xb1\xa29,7"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("xn--9-zmb.xn--ltj1535k.xn--9,7-r67t"); } // [B1, V6, V7, U1] +test { try toUnicodeFail("xn--9-xmb.xn--ltj1535k.xn--9,7-r67t"); } // [B1, V6, V7, U1] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4xa809nwtghi25b.xn--9,7-r67t"); } // [B6, V7, U1] +test { try toUnicodeFail("xn--3xa019nwtghi25b.xn--9,7-r67t"); } // [B6, V7, U1] +test { try toUnicodeFail("xn--4xa809nwtghi25b.xn--7-075iy877c"); } // [B6, V7] +test { try toUnicodeFail("xn--3xa019nwtghi25b.xn--7-075iy877c"); } // [B6, V7] test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8c\xc3\x9f", "xn--iwb.ss", true); } +test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8c\xc3\x9f"); } // [B1, C1] test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8c\xc3\x9f", "xn--iwb.ss", true); } +test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8c\xc3\x9f"); } // [B1, C1] test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8cSS", "xn--iwb.ss", true); } +test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8cSS"); } // [B1, C1] test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8css", "xn--iwb.ss", true); } +test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8css"); } // [B1, C1] test { try toUnicodePass("xn--iwb.ss", "\xe0\xa1\x93.ss"); } test { try toAsciiPass("xn--iwb.ss", "xn--iwb.ss", false); } test { try toAsciiPass("xn--iwb.ss", "xn--iwb.ss", true); } @@ -1922,18 +7465,148 @@ test { try toAsciiPass("\xe0\xa1\x93.ss", "xn--iwb.ss", true); } test { try toUnicodePass("\xe0\xa1\x93.SS", "\xe0\xa1\x93.ss"); } test { try toAsciiPass("\xe0\xa1\x93.SS", "xn--iwb.ss", false); } test { try toAsciiPass("\xe0\xa1\x93.SS", "xn--iwb.ss", true); } +test { try toUnicodeFail("xn--iwb.xn--ss-i1t"); } // [B1, C1] +test { try toUnicodeFail("xn--iwb.xn--zca570n"); } // [B1, C1] test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSS", "xn--iwb.ss", true); } +test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSS"); } // [B1, C1] test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8css", "xn--iwb.ss", true); } +test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8css"); } // [B1, C1] test { try toAsciiPass("\xe0\xa1\x93.\xe2\x80\x8cSs", "xn--iwb.ss", true); } +test { try toUnicodeFail("\xe0\xa1\x93.\xe2\x80\x8cSs"); } // [B1, C1] test { try toAsciiPass("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSs", "xn--iwb.ss", true); } +test { try toUnicodeFail("\xe0\xa1\x93\xef\xbc\x8e\xe2\x80\x8cSs"); } // [B1, C1] +test { try toUnicodeFail("\xf1\xaf\xb6\xa3-.\xe2\x80\x8d\xdd\x8e\xea\xa5\x8d\xf3\xa0\xbb\xa8"); } // [B1, B6, C2, V3, V7] +test { try toUnicodeFail("xn----s116e.xn--1ob6504fmf40i"); } // [B3, B6, V3, V7] +test { try toUnicodeFail("xn----s116e.xn--1ob387jy90hq459k"); } // [B1, B6, C2, V3, V7] +test { try toUnicodeFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x98\xe2\x92\x88"); } // [V3, V7] +test { try toUnicodeFail("\xe4\x83\x9a\xe8\x9f\xa5-\xe3\x80\x82-\xf1\xbd\x92\x981."); } // [V3, V7] +test { try toUnicodeFail("xn----n50a258u.xn---1-up07j."); } // [V3, V7] +test { try toUnicodeFail("xn----n50a258u.xn----ecp33805f"); } // [V3, V7] +test { try toUnicodeFail("\xf0\x90\xb9\xb8\xe4\x9a\xb5-\xea\xa1\xa1\xe3\x80\x82\xe2\xba\x87"); } // [B1] +test { try toUnicodeFail("xn----bm3an932a1l5d.xn--xvj"); } // [B1] +test { try toUnicodeFail("\xf0\x91\x84\xb3\xe3\x80\x82\xe1\xab\x9c\xf0\x90\xb9\xbb"); } // [B1, V6] +test { try toUnicodeFail("xn--v80d.xn--2rf1154i"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V7] +test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xbb.\xe2\x92\x8e\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x89\xae\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V6, V7] +test { try toUnicodeFail("<\xcc\xb8\xf0\x90\xb9\xbb.7.\xf0\x91\x82\xb5\xda\xba\xd8\x82"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--gdhx904g.7.xn--kfb18an307d"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--gdhx904g.xn--kfb18a325efm3s"); } // [B1, V7] +test { try toUnicodeFail("\xe1\xa2\x94\xe2\x89\xa0\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2"); } // [C2, V7] +test { try toUnicodeFail("\xe1\xa2\x94=\xcc\xb8\xf4\x8b\x89\x82.\xe2\x80\x8d\xf0\x90\x8b\xa2"); } // [C2, V7] +test { try toUnicodeFail("xn--ebf031cf7196a.xn--587c"); } // [V7] +test { try toUnicodeFail("xn--ebf031cf7196a.xn--1ug9540g"); } // [C2, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--gdhc0519o0y27b.xn--lib468q0d21a"); } // [B1, B2, B3, V7] +test { try toUnicodeFail("-\xef\xbd\xa1\xe2\xba\x90"); } // [V3] +test { try toUnicodeFail("-\xe3\x80\x82\xe2\xba\x90"); } // [V3] +test { try toUnicodeFail("-.xn--6vj"); } // [V3] +test { try toUnicodeFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac\xef\xbc\x8e\xd9\x9c"); } // [V6, V7] +test { try toUnicodeFail("\xf3\xa0\xb0\xa9\xf0\x91\xb2\xac.\xd9\x9c"); } // [V6, V7] +test { try toUnicodeFail("xn--sn3d59267c.xn--4hb"); } // [V6, V7] +test { try toUnicodeFail("\xf0\x90\x8d\xba.\xf1\x9a\x87\x83\xe2\x80\x8c"); } // [C1, V6, V7] +test { try toUnicodeFail("xn--ie8c.xn--2g51a"); } // [V6, V7] +test { try toUnicodeFail("xn--ie8c.xn--0ug03366c"); } // [C1, V6, V7] +test { try toUnicodeFail("\xd8\xbd\xdb\xa3.\xf0\x90\xa8\x8e"); } // [B1, V6] +test { try toUnicodeFail("xn--8gb64a.xn--mr9c"); } // [B1, V6] +test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x82.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xce\xa3.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe6\xbc\xa6\xe2\xb4\x99\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7] +test { try toUnicodeFail("\xe6\xbc\xa6\xe1\x82\xb9\xcf\x83.\xf1\xa1\xbb\x80\xf0\x90\xb4\x84"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--4xa772sl47b.xn--9d0d3162t"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--3xa972sl47b.xn--9d0d3162t"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--4xa947d717e.xn--9d0d3162t"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--3xa157d717e.xn--9d0d3162t"); } // [B5, B6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--8tc1437dro0d6q06h.xn--1-p948l.xn--m82h"); } // [B1, V6, V7] +test { try toUnicodeFail("xn--8tc1437dro0d6q06h.xn--tsh2611ncu71e"); } // [B1, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xae\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8d<\xcc\xb8\xef\xbc\x8e\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8d\xe2\x89\xae.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7] +test { try toUnicodeFail("\xe2\x80\x8d<\xcc\xb8.\xf3\xa0\x9f\xaa\xf0\xb9\xab\x8f-"); } // [C2, V3, V7] +test { try toUnicodeFail("xn--gdh.xn----cr99a1w710b"); } // [V3, V7] +test { try toUnicodeFail("xn--1ug95g.xn----cr99a1w710b"); } // [C2, V3, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--2u2a.xn--5-uws5848bpf44e"); } // [V7] +test { try toUnicodeFail("xn--1uga7691f.xn--5-uws5848bpf44e"); } // [C2, V7] +test { try toUnicodeFail("xn--2u2a.xn--5-r1g7167ipfw8d"); } // [V7] +test { try toUnicodeFail("xn--1uga7691f.xn--5-r1g7167ipfw8d"); } // [C2, V7] test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d\xef\xbc\x8e\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); } +test { try toUnicodeFail("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d\xef\xbc\x8e\xe5\xa9\x80"); } // [B3, C2] test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); } +test { try toUnicodeFail("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc\xe2\x80\x8d.\xe5\xa9\x80"); } // [B3, C2] test { try toUnicodePass("xn--ix9c26l.xn--q0s", "\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80"); } test { try toAsciiPass("xn--ix9c26l.xn--q0s", "xn--ix9c26l.xn--q0s", false); } test { try toAsciiPass("xn--ix9c26l.xn--q0s", "xn--ix9c26l.xn--q0s", true); } test { try toUnicodePass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80"); } test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", false); } test { try toAsciiPass("\xf0\x90\xab\x9c\xf0\x91\x8c\xbc.\xe5\xa9\x80", "xn--ix9c26l.xn--q0s", true); } +test { try toUnicodeFail("xn--1ugx063g1if.xn--q0s"); } // [B3, C2] +test { 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] +test { 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] +test { try toUnicodeFail("..xn--no0d.xn--7of309e"); } // [B1, X4_2] +test { try toUnicodeFail("xn--y86ca186j.xn--7of309e"); } // [B1, V7] +test { try toUnicodeFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("8\xc3\x9f.\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1] +test { try toUnicodeFail("8SS.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("8ss.\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1] +test { try toUnicodeFail("8ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("8ss.xn---?-261a"); } // [V3, U1] +test { try toUnicodeFail("xn--8-qfa.xn---?-261a"); } // [V3, U1] +test { try toUnicodeFail("\xf0\x9d\x9f\x96\xc3\x9f\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1] +test { try toUnicodeFail("\xf0\x9d\x9f\x96SS\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe2\xb4\x8f"); } // [V3, U1] +test { try toUnicodeFail("\xf0\x9d\x9f\x96ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("8ss.xn---?-gfk"); } // [V3, V7, U1] +test { try toUnicodeFail("xn--8-qfa.xn---?-gfk"); } // [V3, V7, U1] +test { try toUnicodeFail("8ss.-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("8ss.-?\xe2\xb4\x8f"); } // [V3, U1] +test { try toUnicodeFail("8SS.-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("xn--8-qfa.-?\xe2\xb4\x8f"); } // [V3, U1] +test { try toUnicodeFail("XN--8-QFA.-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("Xn--8-Qfa.-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("xn--8-qfa.-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("\xf0\x9d\x9f\x96Ss\xef\xbc\x8e\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("8Ss.\xf3\xa0\x84\x90-?\xe1\x82\xaf"); } // [V3, U1] +test { try toUnicodeFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe1\x82\xa5"); } // [B1, C1, C2, V3, V7] +test { try toUnicodeFail("-\xe2\x80\x8d\xf3\xa0\x8b\x9f.\xe2\x80\x8c\xf0\x90\xb9\xa3\xe2\xb4\x85"); } // [B1, C1, C2, V3, V7] +test { try toUnicodeFail("xn----s721m.xn--wkj1423e"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----ugnv7071n.xn--0ugz32cgr0p"); } // [B1, C1, C2, V3, V7] +test { try toUnicodeFail("xn----s721m.xn--dnd9201k"); } // [B1, V3, V7] +test { try toUnicodeFail("xn----ugnv7071n.xn--dnd999e4j4p"); } // [B1, C1, C2, V3, V7] +test { try toUnicodeFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xef\xbd\xa1\xe2\x82\x82"); } // [C2, V6, V7] +test { 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] +test { try toUnicodeFail("\xea\xa6\xb9\xe2\x80\x8d\xed\x81\xb7\xf0\xbb\xb6\xa1\xe3\x80\x822"); } // [C2, V6, V7] +test { 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] +test { try toUnicodeFail("xn--0m9as84e2e21c.c"); } // [V6, V7] +test { try toUnicodeFail("xn--1ug1435cfkyaoi04d.c"); } // [C2, V6, V7] +test { try toUnicodeFail("?.\xf0\x9f\x84\x84\xf0\x9e\xaf\x98"); } // [B1, V7, U1] +test { try toUnicodeFail("?.3,\xf0\x9e\xaf\x98"); } // [B1, V7, U1] +test { try toUnicodeFail("?.xn--3,-tb22a"); } // [B1, V7, U1] +test { try toUnicodeFail("?.xn--3x6hx6f"); } // [B1, V7, U1] +test { 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] +test { 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] +test { try toUnicodeFail("xn--rt9cl956a.xn--1-dxc8545j0693i."); } // [B1, V6, V7] +test { try toUnicodeFail("xn--rt9cl956a.xn--tlb403mxv4g06s9i"); } // [B1, V6, V7] +test { try toUnicodeFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe1\x82\xa8\xe2\x80\x8d"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("\xf2\x92\x88\xa3\xd7\xa1\xda\xb8\xe3\x80\x82\xe2\xb4\x88\xe2\x80\x8d"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("xn--meb44b57607c.xn--zkj"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--meb44b57607c.xn--1ug232c"); } // [B5, B6, C2, V7] +test { try toUnicodeFail("xn--meb44b57607c.xn--gnd"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--meb44b57607c.xn--gnd699e"); } // [B5, B6, C2, V7] +test { 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] +test { 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] +test { try toUnicodeFail("xn--1-idd62296a1fr6e..xn--uj6at43v"); } // [B1, B5, V6, V7, X4_2] +test { try toUnicodeFail("xn--1-idd62296a1fr6e..xn--0ugx259bocxd"); } // [B1, B5, C1, V6, V7, X4_2] +test { try toUnicodeFail("xn--etb477lq931a1f58e.xn--uj6at43v"); } // [B1, B5, V6, V7] +test { try toUnicodeFail("xn--etb477lq931a1f58e.xn--0ugx259bocxd"); } // [B1, B5, C1, V6, V7] test { 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"); } test { try toAsciiPass("\xf0\x90\xab\x80\xef\xbc\x8e\xda\x89\xf0\x91\x8c\x80", "xn--pw9c.xn--fjb8658k", false); } test { 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 test { try toUnicodePass("xn--pw9c.xn--fjb8658k", "\xf0\x90\xab\x80.\xda\x89\xf0\x91\x8c\x80"); } test { try toAsciiPass("xn--pw9c.xn--fjb8658k", "xn--pw9c.xn--fjb8658k", false); } test { try toAsciiPass("xn--pw9c.xn--fjb8658k", "xn--pw9c.xn--fjb8658k", true); } +test { try toUnicodeFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb3\x9d"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x91\x8b\xaa.\xf0\x90\xb3\x9d"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x91\x8b\xaa.\xf0\x90\xb2\x9d"); } // [B1, V6] +test { try toUnicodeFail("xn--fm1d.xn--5c0d"); } // [B1, V6] +test { try toUnicodeFail("\xf0\x91\x8b\xaa\xef\xbc\x8e\xf0\x90\xb2\x9d"); } // [B1, V6] +test { try toUnicodeFail("\xe2\x89\xa0\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83"); } // [V6] +test { try toUnicodeFail("=\xcc\xb8\xe8\x86\xa3\xe3\x80\x82\xe0\xbe\x83"); } // [V6] +test { try toUnicodeFail("xn--1chy468a.xn--2ed"); } // [V6] +test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1\xc3\x9f"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82\xc3\x9f"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82SS"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82ss"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xe3\x80\x82Ss"); } // [B5, B6, V7] +test { try toUnicodeFail("xn----j6c95618k.ss"); } // [B5, B6, V7] +test { try toUnicodeFail("xn----j6c95618k.xn--zca"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1SS"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1ss"); } // [B5, B6, V7] +test { try toUnicodeFail("\xf1\xb0\x80\x8e-\xdd\xbd\xef\xbd\xa1Ss"); } // [B5, B6, V7] +test { 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] +test { 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] +test { 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] +test { 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] +test { try toUnicodeFail("xn--4xa656hp23pxmc.xn--es5a888tvjc2u15h"); } // [B5, B6, V7] +test { try toUnicodeFail("xn--3xa856hp23pxmc.xn--es5a888tvjc2u15h"); } // [B5, B6, V7] +test { 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] +test { 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] +test { try toUnicodeFail("\xf0\x90\x8b\xb7\xe3\x80\x82\xe2\x80\x8d"); } // [C2] test { try toUnicodePass("xn--r97c.", "\xf0\x90\x8b\xb7."); } test { try toUnicodePass("\xf0\x90\x8b\xb7.", "\xf0\x90\x8b\xb7."); } +test { try toUnicodeFail("xn--r97c.xn--1ug"); } // [C2] +test { try toUnicodeFail("\xf0\x91\xb0\xb3\xf0\x91\x88\xaf\xe3\x80\x82\xe2\xa5\xaa"); } // [V6] +test { try toUnicodeFail("xn--2g1d14o.xn--jti"); } // [V6] +test { 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] +test { try toUnicodeFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe1\x82\xb54\xe2\x80\x8c\xcd\x88"); } // [C1, V6, V7] +test { try toUnicodeFail("\xf0\x91\x86\x80\xe4\x81\xb4\xf1\xa4\xa7\xa3.\xe2\xb4\x954\xe2\x80\x8c\xcd\x88"); } // [C1, V6, V7] +test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb5123a"); } // [V6, V7] +test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb502tlsl"); } // [C1, V6, V7] +test { 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] +test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb324h"); } // [V6, V7] +test { try toUnicodeFail("xn--1mnx647cg3x1b.xn--4-zfb324h32o"); } // [C1, V6, V7] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0"); } // [C1, C2, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8"); } // [C1, C2, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d=\xcc\xb8"); } // [C1, C2, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.\xf0\x90\x8b\xae\xe2\x80\x8d\xe2\x89\xa0"); } // [C1, C2, U1] +test { try toUnicodeFail("xn--?-fwsr13r.xn--1chz659f"); } // [U1] +test { try toUnicodeFail("xn--?-sgn310doh5c.xn--1ug73gl146a"); } // [C1, C2, U1] +test { try toUnicodeFail("xn--?-c1g3623d.xn--1chz659f"); } // [V7, U1] +test { try toUnicodeFail("xn--?-c1g798iy27d.xn--1ug73gl146a"); } // [C1, C2, V7, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1chz659f"); } // [U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1CHZ659F"); } // [U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1chz659f"); } // [U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe2\xb4\x94.xn--1ug73gl146a"); } // [C1, C2, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.XN--1UG73GL146A"); } // [C1, C2, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\x80\x8c\xe1\x82\xb4.xn--1ug73gl146a"); } // [C1, C2, U1] +test { try toUnicodeFail("xn--?-fwsr13r.xn--1ug73gl146a"); } // [C2, U1] +test { try toUnicodeFail("xn--?-c1g3623d.xn--1ug73gl146a"); } // [C2, V7, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.xn--1ug73gl146a"); } // [C2, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe2\xb4\x94.xn--1ug73gl146a"); } // [C2, U1] +test { try toUnicodeFail("\xe6\x86\xa1?\xe1\x82\xb4.XN--1UG73GL146A"); } // [C2, U1]