Path: blob/master/test/jdk/sun/net/idn/TestData.java
41149 views
/*1* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/*24*******************************************************************************25* Copyright (C) 2003-2004, International Business Machines Corporation and *26* others. All Rights Reserved. *27*******************************************************************************28*/29import java.text.ParseException;3031/**32* @author ram33*34* To change the template for this generated type comment go to35* Window>Preferences>Java>Code Generation>Code and Comments36*/37public class TestData {38public static final char[][] unicodeIn ={39{400x0644, 0x064A, 0x0647, 0x0645, 0x0627, 0x0628, 0x062A, 0x0643, 0x0644,410x0645, 0x0648, 0x0634, 0x0639, 0x0631, 0x0628, 0x064A, 0x061F42},43{440x4ED6, 0x4EEC, 0x4E3A, 0x4EC0, 0x4E48, 0x4E0D, 0x8BF4, 0x4E2D, 0x6587,4546},47{480x0050, 0x0072, 0x006F, 0x010D, 0x0070, 0x0072, 0x006F, 0x0073, 0x0074,490x011B, 0x006E, 0x0065, 0x006D, 0x006C, 0x0075, 0x0076, 0x00ED, 0x010D,500x0065, 0x0073, 0x006B, 0x0079,51},52{530x05DC, 0x05DE, 0x05D4, 0x05D4, 0x05DD, 0x05E4, 0x05E9, 0x05D5, 0x05D8,540x05DC, 0x05D0, 0x05DE, 0x05D3, 0x05D1, 0x05E8, 0x05D9, 0x05DD, 0x05E2,550x05D1, 0x05E8, 0x05D9, 0x05EA,56},57{580x092F, 0x0939, 0x0932, 0x094B, 0x0917, 0x0939, 0x093F, 0x0928, 0x094D,590x0926, 0x0940, 0x0915, 0x094D, 0x092F, 0x094B, 0x0902, 0x0928, 0x0939,600x0940, 0x0902, 0x092C, 0x094B, 0x0932, 0x0938, 0x0915, 0x0924, 0x0947,610x0939, 0x0948, 0x0902,62},63{640x306A, 0x305C, 0x307F, 0x3093, 0x306A, 0x65E5, 0x672C, 0x8A9E, 0x3092,650x8A71, 0x3057, 0x3066, 0x304F, 0x308C, 0x306A, 0x3044, 0x306E, 0x304B,6667},68/*69{700xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,710xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,720xC5BC, 0xB9C8, 0xB098, 0xC88B, 0xC744, 0xAE4C,73},74*/75{760x043F, 0x043E, 0x0447, 0x0435, 0x043C, 0x0443, 0x0436, 0x0435, 0x043E,770x043D, 0x0438, 0x043D, 0x0435, 0x0433, 0x043E, 0x0432, 0x043E, 0x0440,780x044F, 0x0442, 0x043F, 0x043E, 0x0440, 0x0443, 0x0441, 0x0441, 0x043A,790x0438,80},81{820x0050, 0x006F, 0x0072, 0x0071, 0x0075, 0x00E9, 0x006E, 0x006F, 0x0070,830x0075, 0x0065, 0x0064, 0x0065, 0x006E, 0x0073, 0x0069, 0x006D, 0x0070,840x006C, 0x0065, 0x006D, 0x0065, 0x006E, 0x0074, 0x0065, 0x0068, 0x0061,850x0062, 0x006C, 0x0061, 0x0072, 0x0065, 0x006E, 0x0045, 0x0073, 0x0070,860x0061, 0x00F1, 0x006F, 0x006C,87},88{890x4ED6, 0x5011, 0x7232, 0x4EC0, 0x9EBD, 0x4E0D, 0x8AAA, 0x4E2D, 0x6587,9091},92{930x0054, 0x1EA1, 0x0069, 0x0073, 0x0061, 0x006F, 0x0068, 0x1ECD, 0x006B,940x0068, 0x00F4, 0x006E, 0x0067, 0x0074, 0x0068, 0x1EC3, 0x0063, 0x0068,950x1EC9, 0x006E, 0x00F3, 0x0069, 0x0074, 0x0069, 0x1EBF, 0x006E, 0x0067,960x0056, 0x0069, 0x1EC7, 0x0074,97},98{990x0033, 0x5E74, 0x0042, 0x7D44, 0x91D1, 0x516B, 0x5148, 0x751F,100},101{1020x5B89, 0x5BA4, 0x5948, 0x7F8E, 0x6075, 0x002D, 0x0077, 0x0069, 0x0074,1030x0068, 0x002D, 0x0053, 0x0055, 0x0050, 0x0045, 0x0052, 0x002D, 0x004D,1040x004F, 0x004E, 0x004B, 0x0045, 0x0059, 0x0053,105},106{1070x0048, 0x0065, 0x006C, 0x006C, 0x006F, 0x002D, 0x0041, 0x006E, 0x006F,1080x0074, 0x0068, 0x0065, 0x0072, 0x002D, 0x0057, 0x0061, 0x0079, 0x002D,1090x305D, 0x308C, 0x305E, 0x308C, 0x306E, 0x5834, 0x6240,110},111{1120x3072, 0x3068, 0x3064, 0x5C4B, 0x6839, 0x306E, 0x4E0B, 0x0032,113},114{1150x004D, 0x0061, 0x006A, 0x0069, 0x3067, 0x004B, 0x006F, 0x0069, 0x3059,1160x308B, 0x0035, 0x79D2, 0x524D,117},118{1190x30D1, 0x30D5, 0x30A3, 0x30FC, 0x0064, 0x0065, 0x30EB, 0x30F3, 0x30D0,120121},122{1230x305D, 0x306E, 0x30B9, 0x30D4, 0x30FC, 0x30C9, 0x3067,124},125// test non-BMP code points126{1270xD800, 0xDF00, 0xD800, 0xDF01, 0xD800, 0xDF02, 0xD800, 0xDF03, 0xD800, 0xDF05,1280xD800, 0xDF06, 0xD800, 0xDF07, 0xD800, 0xDF09, 0xD800, 0xDF0A, 0xD800, 0xDF0B,129130},131{1320xD800, 0xDF0D, 0xD800, 0xDF0C, 0xD800, 0xDF1E, 0xD800, 0xDF0F, 0xD800, 0xDF16,1330xD800, 0xDF15, 0xD800, 0xDF14, 0xD800, 0xDF12, 0xD800, 0xDF10, 0xD800, 0xDF20,1340xD800, 0xDF21,135136},137// Greek138{1390x03b5, 0x03bb, 0x03bb, 0x03b7, 0x03bd, 0x03b9, 0x03ba, 0x03ac140},141// Maltese142{1430x0062, 0x006f, 0x006e, 0x0121, 0x0075, 0x0073, 0x0061, 0x0127,1440x0127, 0x0061145},146// Russian147{1480x043f, 0x043e, 0x0447, 0x0435, 0x043c, 0x0443, 0x0436, 0x0435,1490x043e, 0x043d, 0x0438, 0x043d, 0x0435, 0x0433, 0x043e, 0x0432,1500x043e, 0x0440, 0x044f, 0x0442, 0x043f, 0x043e, 0x0440, 0x0443,1510x0441, 0x0441, 0x043a, 0x0438152},153154};155156public static final String[] asciiIn = {157"xn--egbpdaj6bu4bxfgehfvwxn",158"xn--ihqwcrb4cv8a8dqg056pqjye",159"xn--Proprostnemluvesky-uyb24dma41a",160"xn--4dbcagdahymbxekheh6e0a7fei0b",161"xn--i1baa7eci9glrd9b2ae1bj0hfcgg6iyaf8o0a1dig0cd",162"xn--n8jok5ay5dzabd5bym9f0cm5685rrjetr6pdxa",163/* "xn--989aomsvi5e83db1d2a355cv1e0vak1dwrv93d5xbh15a0dt30a5jpsd879ccm6fea98c",*/164"xn--b1abfaaepdrnnbgefbaDotcwatmq2g4l",165"xn--PorqunopuedensimplementehablarenEspaol-fmd56a",166"xn--ihqwctvzc91f659drss3x8bo0yb",167"xn--TisaohkhngthchnitingVit-kjcr8268qyxafd2f1b9g",168"xn--3B-ww4c5e180e575a65lsy2b",169"xn---with-SUPER-MONKEYS-pc58ag80a8qai00g7n9n",170"xn--Hello-Another-Way--fc4qua05auwb3674vfr0b",171"xn--2-u9tlzr9756bt3uc0v",172"xn--MajiKoi5-783gue6qz075azm5e",173"xn--de-jg4avhby1noc0d",174"xn--d9juau41awczczp",175"XN--097CCDEKGHQJK",176"XN--db8CBHEJLGH4E0AL",177"xn--hxargifdar", // Greek178"xn--bonusaa-5bb1da", // Maltese179"xn--b1abfaaepdrnnbgefbadotcwatmq2g4l", // Russian (Cyrillic)180};181182public static final String[] domainNames = {183"slip129-37-118-146.nc.us.ibm.net",184"saratoga.pe.utexas.edu",185"dial-120-45.ots.utexas.edu",186"woo-085.dorms.waller.net",187"hd30-049.hil.compuserve.com",188"pem203-31.pe.ttu.edu",189"56K-227.MaxTNT3.pdq.net",190"dial-36-2.ots.utexas.edu",191"slip129-37-23-152.ga.us.ibm.net",192"ts45ip119.cadvision.com",193"sdn-ts-004txaustP05.dialsprint.net",194"bar-tnt1s66.erols.com",195"101.st-louis-15.mo.dial-access.att.net",196"h92-245.Arco.COM",197"dial-13-2.ots.utexas.edu",198"net-redynet29.datamarkets.com.ar",199"ccs-shiva28.reacciun.net.ve",200"7.houston-11.tx.dial-access.att.net",201"ingw129-37-120-26.mo.us.ibm.net",202"dialup6.austintx.com",203"dns2.tpao.gov.tr",204"slip129-37-119-194.nc.us.ibm.net",205"cs7.dillons.co.uk.203.119.193.in-addr.arpa",206"swprd1.innovplace.saskatoon.sk.ca",207"bikini.bologna.maraut.it",208"node91.subnet159-198-79.baxter.com",209"cust19.max5.new-york.ny.ms.uu.net",210"balexander.slip.andrew.cmu.edu",211"pool029.max2.denver.co.dynip.alter.net",212"cust49.max9.new-york.ny.ms.uu.net",213"s61.abq-dialin2.hollyberry.com",214215};216217public static final String[] domainNames1Uni = {218"\u0917\u0928\u0947\u0936.sanjose.ibm.com",219"www.\u0121.com",220//"www.\u00E0\u00B3\u00AF.com",221"www.\u00C2\u00A4.com",222"www.\u00C2\u00A3.com",223// "\\u0025", //'%' (0x0025) produces U_IDNA_STD3_ASCII_RULES_ERROR224// "\\u005C\\u005C", //'\' (0x005C) produces U_IDNA_STD3_ASCII_RULES_ERROR225//"@",226//"\\u002F",227//"www.\\u0021.com",228//"www.\\u0024.com",229//"\\u003f",230// These yeild U_IDNA_PROHIBITED_ERROR231//"\\u00CF\\u0082.com",232//"\\u00CE\\u00B2\\u00C3\\u009Fss.com",233//"\\u00E2\\u0098\\u00BA.com",234"\u00C3\u00BC.com"235};236public static final String[] domainNamesToASCIIOut = {237"xn--31b8a2bwd.sanjose.ibm.com",238"www.xn--vea.com",239//"www.xn--3 -iia80t.com",240"www.xn--bba7j.com",241"www.xn--9a9j.com",242// "\u0025",243// "\u005C\u005C",244// "@",245// "\u002F",246// "www.\u0021.com",247// "www.\u0024.com",248// "\u003f",249"xn--14-ria7423a.com"250251};252253public static final String[] domainNamesToUnicodeOut = {254"\u0917\u0928\u0947\u0936.sanjose.ibm.com",255"www.\u0121.com",256//"www.\u00E0\u0033\u0020\u0304.com",257"www.\u00E2\u00A4.com",258"www.\u00E2\u00A3.com",259// "\u0025",260// "\u005C\u005C",261// "@",262// "\u002F",263// "www.\u0021.com",264// "www.\u0024.com",265// "\u003f",266"\u00E3\u0031\u2044\u0034.com"267268};269270271public static class ErrorCase{272273public char[] unicode;274public String ascii;275public Exception expected;276public boolean useSTD3ASCIIRules;277public boolean testToUnicode;278public boolean testLabel;279ErrorCase(char[] uniIn, String asciiIn, Exception ex,280boolean std3, boolean testToUni, boolean testlabel){281unicode = uniIn;282ascii = asciiIn;283expected = ex;284useSTD3ASCIIRules = std3;285testToUnicode = testToUni;286testLabel = testlabel;287288}289};290public static final ErrorCase[] errorCases = {291292293new ErrorCase( new char[]{2940x0077, 0x0077, 0x0077, 0x002e, /* www. */2950xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,2960x070F,/*prohibited*/2970xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,2980x002e, 0x0063, 0x006f, 0x006d, /* com. */299300},301"www.XN--8mb5595fsoa28orucya378bqre2tcwop06c5qbw82a1rffmae0361dea96b.com",302new ParseException("StringPrep PROHIBITED_ERROR", -1),303false, true, true),304305new ErrorCase( new char[]{3060x0077, 0x0077, 0x0077, 0x002e, /* www. */3070xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,3080x0221, 0x0234/*Unassigned code points*/,3090x002e, 0x0063, 0x006f, 0x006d, /* com. */310311},312"www.XN--6lA2Bz548Fj1GuA391Bf1Gb1N59Ab29A7iA.com",313314new ParseException("StringPrep UNASSIGNED_ERROR", -1),315false, true, true316),317new ErrorCase( new char[]{3180x0077, 0x0077, 0x0077, 0x002e, /* www. */3190xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,3200x0644, 0x064A, 0x0647,/*Arabic code points. Cannot mix RTL with LTR*/3210xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,3220x002e, 0x0063, 0x006f, 0x006d, /* com. */323324},325"www.xn--ghBGI4851OiyA33VqrD6Az86C4qF83CtRv93D5xBk15AzfG0nAgA0578DeA71C.com",326new ParseException("StringPrep CHECK_BIDI_ERROR", -1),327false, true, true328),329new ErrorCase( new char[]{3300x0077, 0x0077, 0x0077, 0x002e, /* www. */331/* labels cannot begin with an HYPHEN */3320x002D, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,3330x002E,3340xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,3350x002e, 0x0063, 0x006f, 0x006d, /* com. */336337338},339"www.xn----b95Ew8SqA315Ao5FbuMlnNmhA.com",340new ParseException("StringPrep STD3_ASCII_RULES_ERROR", -1),341true, true, false342),343new ErrorCase( new char[]{344/* correct ACE-prefix followed by unicode */3450x0077, 0x0077, 0x0077, 0x002e, /* www. */3460x0078, 0x006e, 0x002d,0x002d, /* ACE Prefix */3470x002D, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,3480x002D,3490xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,3500x002e, 0x0063, 0x006f, 0x006d, /* com. */351352353},354/* wrong ACE-prefix followed by valid ACE-encoded ASCII */355"www.XY-----b91I0V65S96C2A355Cw1E5yCeQr19CsnP1mFfmAE0361DeA96B.com",356new ParseException("StringPrep ACE_PREFIX_ERROR", -1),357false, false, false358),359/* cannot verify U_IDNA_VERIFICATION_ERROR */360361new ErrorCase( new char[]{3620x0077, 0x0077, 0x0077, 0x002e, /* www. */3630xC138, 0xACC4, 0xC758, 0xBAA8, 0xB4E0, 0xC0AC, 0xB78C, 0xB4E4, 0xC774,3640xD55C, 0xAD6D, 0xC5B4, 0xB97C, 0xC774, 0xD574, 0xD55C, 0xB2E4, 0xBA74,3650xC5BC, 0xB9C8, 0xB098, 0xC88B, 0xC744, 0xAE4C,3660x002e, 0x0063, 0x006f, 0x006d, /* com. */367368},369"www.xn--989AoMsVi5E83Db1D2A355Cv1E0vAk1DwRv93D5xBh15A0Dt30A5JpSD879Ccm6FeA98C.com",370new ParseException("StringPrep LABEL_TOO_LONG_ERROR", -1),371false, true, true372),373new ErrorCase( new char[]{3740x0077, 0x0077, 0x0077, 0x002e, /* www. */3750x0030, 0x0644, 0x064A, 0x0647, 0x0031, /* Arabic code points squashed between EN codepoints */3760x002e, 0x0063, 0x006f, 0x006d, /* com. */377378},379"www.xn--01-tvdmo.com",380new ParseException("StringPrep CHECK_BIDI_ERROR", -1),381false, true, true382),383384new ErrorCase( new char[]{3850x0077, 0x0077, 0x0077, 0x002e, // www.3860x206C, 0x0644, 0x064A, 0x0647, 0x206D, // Arabic code points squashed between BN codepoints3870x002e, 0x0063, 0x006f, 0x006d, // com.388389},390"www.XN--ghbgi278xia.com",391new ParseException("StringPrep PROHIBITED_ERROR", -1),392false, true, true393),394new ErrorCase( new char[] {3950x0077, 0x0077, 0x0077, 0x002e, // www.3960x002D, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, // HYPHEN at the start of label3970x002e, 0x0063, 0x006f, 0x006d, // com.398399},400"www.-abcde.com",401new ParseException("StringPrep STD3_ASCII_RULES_ERROR", -1),402true, true, false403),404new ErrorCase( new char[] {4050x0077, 0x0077, 0x0077, 0x002e, // www.4060x0041, 0x0042, 0x0043, 0x0044, 0x0045,0x002D, // HYPHEN at the end of the label4070x002e, 0x0063, 0x006f, 0x006d, // com.408409},410"www.abcde-.com",411new ParseException("StringPrep STD3_ASCII_RULES_ERROR", -1),412true, true, false413),414new ErrorCase( new char[]{4150x0077, 0x0077, 0x0077, 0x002e, // www.4160x0041, 0x0042, 0x0043, 0x0044, 0x0045,0x0040, // Containing non LDH code point4170x002e, 0x0063, 0x006f, 0x006d, // com.418419},420"[email protected]",421new ParseException("StringPrep STD3_ASCII_RULES_ERROR", -1),422true, true, false423),424425};426427428public static final class ConformanceTestCase{429String comment;430String input;431String output;432String profile;433int flags;434Exception expected;435private static byte[] getBytes(String in){436if(in==null){437return null;438}439byte[] bytes = new byte[in.length()];440for(int i=0; i < in.length();i++){441bytes[i] = (byte)in.charAt(i);442}443return bytes;444}445ConformanceTestCase(String comt, String in, String out,446String prof, int flg, Exception ex)447{448449try{450comment = comt;451byte[] bytes = getBytes(in);452input = new String(bytes,"UTF-8");453bytes = getBytes(out);454output = (bytes==null)? null : new String(bytes,"UTF-8");455profile = prof;456flags = flg;457expected = ex;458}catch (Exception e){459e.printStackTrace();460throw new RuntimeException();461}462}463}464465public static final ConformanceTestCase[] conformanceTestCases =466{467468new ConformanceTestCase(469"Case folding ASCII U+0043 U+0041 U+0046 U+0045",470"\u0043\u0041\u0046\u0045", "\u0063\u0061\u0066\u0065",471"Nameprep", 0,472null473474),475new ConformanceTestCase(476"Case folding 8bit U+00DF (german sharp s)",477"\u00C3\u009F", "\u0073\u0073",478"Nameprep", 0,479null480),481new ConformanceTestCase(482"Non-ASCII multibyte space character U+1680",483"\u00E1\u009A\u0080", null,484"Nameprep", 0,485new ParseException("StringPrep PROHIBITED_ERROR", -1)486),487new ConformanceTestCase(488"Non-ASCII 8bit control character U+0085",489"\u00C2\u0085", null,490"Nameprep", 0,491new ParseException("StringPrep PROHIBITED_ERROR", -1)492),493new ConformanceTestCase(494"Non-ASCII multibyte control character U+180E",495"\u00E1\u00A0\u008E", null,496"Nameprep", 0,497new ParseException("StringPrep PROHIBITED_ERROR", -1)498),499new ConformanceTestCase(500"Non-ASCII control character U+1D175",501"\u00F0\u009D\u0085\u00B5", null,502"Nameprep", 0,503new ParseException("StringPrep PROHIBITED_ERROR", -1)504),505new ConformanceTestCase(506"Plane 0 private use character U+F123",507"\u00EF\u0084\u00A3", null,508"Nameprep", 0,509new ParseException("StringPrep PROHIBITED_ERROR", -1)510),511new ConformanceTestCase(512"Plane 15 private use character U+F1234",513"\u00F3\u00B1\u0088\u00B4", null,514"Nameprep", 0,515new ParseException("StringPrep PROHIBITED_ERROR", -1)516),517new ConformanceTestCase(518"Plane 16 private use character U+10F234",519"\u00F4\u008F\u0088\u00B4", null,520"Nameprep", 0,521new ParseException("StringPrep PROHIBITED_ERROR", -1)522),523new ConformanceTestCase(524"Non-character code point U+8FFFE",525"\u00F2\u008F\u00BF\u00BE", null,526"Nameprep", 0,527new ParseException("StringPrep PROHIBITED_ERROR", -1)528),529new ConformanceTestCase(530"Non-character code point U+10FFFF",531"\u00F4\u008F\u00BF\u00BF", null,532"Nameprep", 0,533new ParseException("StringPrep PROHIBITED_ERROR", -1)534),535/*536{537"Surrogate code U+DF42",538"\u00ED\u00BD\u0082", null, "Nameprep", InternationalizedDomainNames.DEFAULT,539U_IDNA_PROHIBITED_ERROR540},541*/542new ConformanceTestCase(543"Non-plain text character U+FFFD",544"\u00EF\u00BF\u00BD", null,545"Nameprep", 0,546new ParseException("StringPrep PROHIBITED_ERROR", -1)547),548new ConformanceTestCase(549"Ideographic description character U+2FF5",550"\u00E2\u00BF\u00B5", null,551"Nameprep", 0,552new ParseException("StringPrep PROHIBITED_ERROR", -1)553),554new ConformanceTestCase(555"Display property character U+0341",556"\u00CD\u0081", "\u00CC\u0081",557"Nameprep", 0,558null559560),561562new ConformanceTestCase(563"Left-to-right mark U+200E",564"\u00E2\u0080\u008E", "\u00CC\u0081",565"Nameprep", 0,566new ParseException("StringPrep PROHIBITED_ERROR", -1)567),568new ConformanceTestCase(569570"Deprecated U+202A",571"\u00E2\u0080\u00AA", "\u00CC\u0081",572"Nameprep", 0,573new ParseException("StringPrep PROHIBITED_ERROR", -1)574),575new ConformanceTestCase(576"Language tagging character U+E0001",577"\u00F3\u00A0\u0080\u0081", "\u00CC\u0081",578"Nameprep", 0,579new ParseException("StringPrep PROHIBITED_ERROR", -1)580),581new ConformanceTestCase(582"Language tagging character U+E0042",583"\u00F3\u00A0\u0081\u0082", null,584"Nameprep", 0,585new ParseException("StringPrep PROHIBITED_ERROR", -1)586),587new ConformanceTestCase(588"Bidi: RandALCat character U+05BE and LCat characters",589"\u0066\u006F\u006F\u00D6\u00BE\u0062\u0061\u0072", null,590"Nameprep", 0,591new ParseException("StringPrep CHECK_BIDI_ERROR", -1)592),593new ConformanceTestCase(594"Bidi: RandALCat character U+FD50 and LCat characters",595"\u0066\u006F\u006F\u00EF\u00B5\u0090\u0062\u0061\u0072", null,596"Nameprep",0 ,597new ParseException("StringPrep CHECK_BIDI_ERROR", -1)598),599new ConformanceTestCase(600"Bidi: RandALCat character U+FB38 and LCat characters",601"\u0066\u006F\u006F\u00EF\u00B9\u00B6\u0062\u0061\u0072", "\u0066\u006F\u006F \u00d9\u008e\u0062\u0061\u0072",602"Nameprep", 0,603null604),605new ConformanceTestCase(606"Bidi: RandALCat without trailing RandALCat U+0627 U+0031",607"\u00D8\u00A7\u0031", null,608"Nameprep", 0,609new ParseException("StringPrep CHECK_BIDI_ERROR", -1)610),611new ConformanceTestCase(612"Bidi: RandALCat character U+0627 U+0031 U+0628",613"\u00D8\u00A7\u0031\u00D8\u00A8", "\u00D8\u00A7\u0031\u00D8\u00A8",614"Nameprep", 0,615null616),617new ConformanceTestCase(618"Unassigned code point U+E0002",619"\u00F3\u00A0\u0080\u0082", null,620"Nameprep", 0,621new ParseException("StringPrep UNASSIGNED_ERROR", -1)622),623624/* // Invalid UTF-8625{626"Larger test (shrinking)",627"X\u00C2\u00AD\u00C3\u00DF\u00C4\u00B0\u00E2\u0084\u00A1\u006a\u00cc\u008c\u00c2\u00a0\u00c2"628"\u00aa\u00ce\u00b0\u00e2\u0080\u0080", "xssi\u00cc\u0087""tel\u00c7\u00b0 a\u00ce\u00b0 ",629"Nameprep",630InternationalizedDomainNames.DEFAULT, U_ZERO_ERROR631},632{633634"Larger test (expanding)",635"X\u00C3\u00DF\u00e3\u008c\u0096\u00C4\u00B0\u00E2\u0084\u00A1\u00E2\u0092\u009F\u00E3\u008c\u0080",636"xss\u00e3\u0082\u00ad\u00e3\u0083\u00ad\u00e3\u0083\u00a1\u00e3\u0083\u00bc\u00e3\u0083\u0088"637"\u00e3\u0083\u00ab""i\u00cc\u0087""tel\u0028""d\u0029\u00e3\u0082\u00a2\u00e3\u0083\u0091"638"\u00e3\u0083\u00bc\u00e3\u0083\u0088"639"Nameprep",640InternationalizedDomainNames.DEFAULT, U_ZERO_ERROR641},642*/643};644}645646647