TransliteratorTest.java | 58 2. Make liberal use of the expect() method; it is your friend. 238 expect("ab>x|y;" + 254 expect("ab>x|yzacw;" + 272 expect(t, "abcdefgABCDEFGU", "&bcd&fg!^**!^*&"); method 280 expect("{ [:Ll:] } x > y; [:Ll:] > z;", "aAbxq", "zAyzz"); 281 expect("a[0-9]b > qrs", "1a7b9", "1qrs9"); 283 expect("$digit = [0-9];" + 297 * of the transliterators and expect the identity function. F x 334 expect(fwd, DATA[i], DATA[i+1]); method 335 expect(rev, DATA[i+1], DATA[i]) method 470 expect(t, "aaaaa", "aaaaa"); method 485 expect(b, "\\\\u0030\\\\u0031", "01"); method 488 expect(ab, s, s); method 495 expect(ba, str.toString(), str.toString()); method 574 expect(t, DATA[i+1], DATA[i+2]); method 606 expect(gl, syn, "syn"); method 612 expect(gl, sayn, "saun"); method 628 expect(mini, syn, "syn"); method 629 expect(mini, sayn, "saun"); method 722 expect(t, DATA[i+1], DATA[i+2]); method 746 expect(t, DATA[i+1], DATA[i+2]); method 780 expect(t, DATA[i+1], DATA[i+2]); method 855 expect(hk, DATA[i+1], DATA[i+2]); method 858 expect(kh, DATA[i+2], DATA[i+1]); method 861 expect(hk, DATA[i+1], DATA[i+2]); method 862 expect(kh, DATA[i+2], DATA[i+1]); method 891 expect(dg, dev, guj); method 919 expect(t, DATA[i+2], DATA[i+3]); method 951 expect(toUpper, "The quick brown fox jumped over the lazy dogs.", method 953 expect(toLower, "The quIck brown fOX jUMPED OVER THE LAzY dogs.", method 955 expect(toTitle, "the quick brown foX caN'T jump over the laZy dogs.", method 969 expect(uni2name, "\\u00A0abc\\u4E01\\u00B5\\u0A81\\uFFFD\\u0004\\u0009\\u0081\\uFFFF", method 971 expect(name2uni, "{\\\\N { NO-BREAK SPACE}abc\\\\N{ CJK UNIFIED IDEOGRAPH-4E01 }\\\\N{x\\\\N{MICRO SIGN}\\\\N{GUJARATI SIGN CANDRABINDU}\\\\N{REPLACEMENT CHARACTER}\\\\N{<control-0004>}\\\\N{<control-0009>}\\\\N{<control-0081>}\\\\N{<noncharacter-FFFF>}\\\\N{<control-0004>}\\\\N{", method 978 expect(t, s, s); method 1133 expect(NFD, in, expd); method 1134 expect(NFC, in, expc); method 1143 expect(NFKD, in, expkd); method 1144 expect(NFKC, in, expkc); method 1148 expect(t, "\\u010dx", "c\\u030C"); method 1169 expect(t, "\\u0043at in the hat, bat on the mat", method 1265 expect(t, method 1276 expect(t, "The quick brown fox.", method 1701 expect(t, "aa", "Q"); method 1817 expect(t, source, exp); method 1843 expect(t, "a\\u3042\\u30A2", "\\u3042\\u3042\\u30A2"); method 1866 expect(t, "aAaA", "bAbA"); method 1876 expect(t, "aAaA", "bAbA"); method 1895 expect(gr, "\\u03B1\\u0314", "ha"); method 2065 expect(latinToDev,(source[i]),(expected[i])); method 2066 expect(devToLatin,(expected[i]),(source[i])); method 2103 expect(latinToDev,(source[i]),(expected[i])); method 2104 expect(devToLatin,(expected[i]),(source[i])); method 2153 expect(latinToDev,(source[i]),(expected[i])); method 2154 expect(devToLatin,(expected[i]),(source[i])); method 2203 expect(latinToDevToLatin,(source[i]),(source[i])); method 2204 expect(devToLatinToDev,(expected[i]),(expected[i])); method 2223 StringBuffer expect = new StringBuffer(" \\u0A02"); local 2227 expect(trans,src.toString(),expect.toString()); method 2235 expect(trans,src.toString(),expect.toString()); method 2252 expect(t, "\\u0430", "a"); method 2258 expect(t, "a", "\\u03B1"); method 2270 expect(t, "a\\u0300b can't abe", "A\\u0300b Can't Abe"); method 2289 expect(t, DATA[i+1], DATA[i+2]); method 2491 expect(t2, source, target); method 2492 expect(t3, target, source); method 2717 expect(t, source, target); method 2881 expect(t, "The Quick Brown Fox", method 2900 expect(t, "\\u0301", method 2940 expect(t, "a aa ab bc d gd de gde gdefg ddefg", method 2957 expect(t, "a ab abc qte qste qrste", method 2985 expect(t, "abc", "\\\\u0061\\\\u0062\\\\u0063"); method 2992 expect(t, "ab", "<img src=\\"http:\/\/www.unicode.org\/gifs\/24\/00\/U0061.gif\\">" + method 2998 expect(t, "abc", "\\\\u0061 LATIN SMALL LETTER A \\\\u0062 LATIN SMALL LETTER B \\\\u0063 LATIN SMALL LETTER C "); method 3035 expect(anyLatin, method 3515 expect(t, "a", "b"); method 3786 expect(BEGIN_END_TEST_CASES[i], BEGIN_END_TEST_CASES[i + 1], BEGIN_END_TEST_CASES[i + 2]); method 3792 expect(reversed, "xy XY XYZ yz YZ", "xy abc xaba yz aba"); method 3823 expect(t2, BEGIN_END_TEST_CASES[i + 1], BEGIN_END_TEST_CASES[i + 2]); method 3831 expect(reversed2, "xy XY XYZ yz YZ", "xy abc xaba yz aba"); method 3899 expect(hf, DATA[i+1], DATA[i+2]); method 3902 expect(fh, DATA[i+2], DATA[i+1]); method 3905 expect(hf, DATA[i+1], DATA[i+2]); method 3906 expect(fh, DATA[i+2], DATA[i+1]); method 3973 expect(tr, thaiText, latinText); method 3989 expect(t, "a", "a"); method 4072 static void expect(String rules, method in class:TransliteratorTest 4077 expect(t, source, expectedResult, pos); method 4080 static void expect(String rules, String source, String expectedResult) { method in class:TransliteratorTest 4081 expect(rules, source, expectedResult, null); method 4084 static void expect(Transliterator t, String source, String expectedResult, method in class:TransliteratorTest 4086 expect(t, source, expectedResult); method 4088 expect(reverseTransliterator, expectedResult, source); method 4092 static void expect(Transliterator t, String source, String expectedResult) { method in class:TransliteratorTest 4093 expect(t, source, expectedResult, (Transliterator.Position) null); method 4096 static void expect(Transliterator t, String source, String expectedResult, method in class:TransliteratorTest [all...] |