| java.lang.Object com.ibm.icu.dev.test.AbstractTestLog com.ibm.icu.dev.test.TestFmwk com.ibm.icu.dev.test.translit.TransliteratorTest
All known Subclasses: com.ibm.icu.dev.test.translit.JamoTest,
TransliteratorTest | public class TransliteratorTest extends TestFmwk (Code) | | |
Method Summary | |
final static String | CharsToUnicodeString(String s) | public void | CheckIncrementalAux(Transliterator t, String input) | public void | TestAliasInverseID() Check ID of inverse of alias. | public void | TestAlternateSyntax() | public void | TestAnchorMasking() | public void | TestAnchors() | public void | TestAny() | public void | TestAnyX() Test the Any-X transliterators. | public void | TestArbitraryVariableValues() Test zero length and > 1 char length variable values. | public void | TestBeginEnd() | public void | TestBeginEndToRules() | public void | TestCaseMap() Test the case mapping transliterators. | public void | TestCompoundFilter() Compound filter semantics were orginially not implemented
correctly. | public void | TestCompoundFilterID() | public void | TestCompoundHex() Compose the hex transliterators forward and reverse. | public void | TestCompoundInverse() | public void | TestCompoundInverseID() Test IDs of inverses of compound transliterators. | public void | TestCompoundKana() Compose the Kana transliterator forward and reverse and try
some strings that should come out unchanged. | public void | TestCompoundLatinRT() | public void | TestCompoundRBT() Test compound RBT rules. | public void | TestContext() | public void | TestCopyJ476() | public void | TestCoverage() Improve code coverage. | public void | TestCreateInstance() | public void | TestCursorOffset() | public void | TestDevanagariLatinRT() | public void | TestDisplayName() Make sure display names of variants look reasonable. | public void | TestEmptyContext() Test empty context. | public void | TestEscape() Test Escape and Unescape transliterators. | public void | TestFilterIDs() Test filter syntax in IDs. | public void | TestFiltering() Do some basic tests of filtering. | public void | TestFunction() | public void | TestGurmukhiDevanagari() | public void | TestHiraganaKatakana() Test the Hiragana-Katakana transliterator. | public void | TestIDForms() | public void | TestIncrementalProgress() | public void | TestInlineSet() Test inline set syntax and set variable syntax. | public void | TestInstantiation() | public void | TestInterIndic() Test inter-Indic transliterators. | public void | TestInvalidBackRef() | public void | TestInvalidPostContext() | public void | TestJ277() Regression test for bugs found in Greek transliteration. | public void | TestJ329() | public void | TestKeyboard() Basic test of keyboard. | public void | TestKeyboard2() Basic test of keyboard with cursor. | public void | TestKeyboard3() Test keyboard transliteration with back-replacement. | public void | TestLiberalizedID() Test liberalized ID syntax. | public void | TestLocaleInstantiation() Test instantiation from a locale. | public void | TestLocaleResource() Basic test of a locale resource based rule. | public void | TestMulticharStringSet() | public void | TestNFDChainRBT() | public void | TestNameMap() Test the name mapping transliterators. | public void | TestNewEngine() Test various failure points of the new 2.0 engine. | public void | TestNormalizationTransliterator() Test the normalization transliterator. | public void | TestNullInverse() Inverse of "Null" should be "Null". | public void | TestOutputSet() Make sure sets on output are disallowed. | public void | TestParseError() Make sure parse errors reference the right line. | public void | TestPatternQuoting() Test pattern quoting and escape mechanisms. | public void | TestPositionAPI() | public void | TestPositionHandling() Confirm that the contextStart, contextLimit, start, and limit
behave correctly. | public void | TestPropertySet() | public void | TestQuantifiedSegment() Test quantified segment behavior. | public void | TestQuantifier() | public void | TestRegisterAlias() | public void | TestRemove() Test the "Remove" transliterator. | public void | TestRuleBasedInverse() Create some inverses and confirm that they work. | public void | TestRuleWhitespace() Test handling of rule whitespace, for both RBT and UnicodeSet. | public void | TestSTV() | public void | TestSanskritLatinRT() | public void | TestScriptAllCodepoints() This test is not in trnstst.cpp. | public void | TestSegments() Test segments and segment references. | public void | TestSimpleRules() | public void | TestSourceTargetSet() Test the source and target set API. | public void | TestSpecialCases() | public void | TestSupplemental() | public void | TestSurrogateCasing() | public void | TestTeluguLatinRT() | public void | TestTitleAccents() | public void | TestToRules() | public void | TestToRulesMark() Mark's toRules test. | public void | TestUndefinedVariable() Test undefined variable. | public void | TestUserFunction() Test that user-registered transliterators can be used under function
syntax. | public void | TestVariableRange() Test the use variable range pragma, making sure that use of
variable range characters is detected and flagged as an error. | void | checkRules(String label, Transliterator t2, String testRulesForward) | void | expect(String rules, String source, String expectedResult, Transliterator.Position pos) | void | expect(String rules, String source, String expectedResult) | void | expect(Transliterator t, String source, String expectedResult, Transliterator reverseTransliterator) | void | expect(Transliterator t, String source, String expectedResult) | void | expect(Transliterator t, String source, String expectedResult, Transliterator.Position pos) | boolean | expectAux(String tag, String source, String result, String expectedResult) | boolean | expectAux(String tag, String source, String result, boolean pass, String expectedResult) | boolean | expectAux(String tag, String source, boolean pass, String expectedResult) | boolean | expectAux(String tag, String[] results, boolean pass, String expectedResult) | public String | findMatch(String source, String[][] pairs) | public static void | main(String[] args) |
TestAliasInverseID | public void TestAliasInverseID()(Code) | | Check ID of inverse of alias. (J22)
|
TestAlternateSyntax | public void TestAlternateSyntax()(Code) | | |
TestAnchorMasking | public void TestAnchorMasking()(Code) | | Test anchor masking
|
TestAnchors | public void TestAnchors()(Code) | | Test anchors
|
TestAny | public void TestAny()(Code) | | |
TestAnyX | public void TestAnyX()(Code) | | Test the Any-X transliterators.
|
TestArbitraryVariableValues | public void TestArbitraryVariableValues()(Code) | | Test zero length and > 1 char length variable values. Test
use of variable refs in UnicodeSets.
|
TestBeginEnd | public void TestBeginEnd()(Code) | | |
TestBeginEndToRules | public void TestBeginEndToRules()(Code) | | |
TestCaseMap | public void TestCaseMap()(Code) | | Test the case mapping transliterators.
|
TestCompoundFilter | public void TestCompoundFilter()(Code) | | Compound filter semantics were orginially not implemented
correctly. Originally, each component filter f(i) is replaced by
f'(i) = f(i) && g, where g is the filter for the compound
transliterator.
From Mark:
Suppose and I have a transliterator X. Internally X is
"Greek-Latin; Latin-Cyrillic; Any-Lower". I use a filter [^A].
The compound should convert all greek characters (through latin) to
cyrillic, then lowercase the result. The filter should say "don't
touch 'A' in the original". But because an intermediate result
happens to go through "A", the Greek Alpha gets hung up.
|
TestCompoundFilterID | public void TestCompoundFilterID()(Code) | | Test compound filter ID syntax
|
TestCompoundHex | public void TestCompoundHex()(Code) | | Compose the hex transliterators forward and reverse.
|
TestCompoundInverse | public void TestCompoundInverse()(Code) | | Test inverse of Greek-Latin; Title()
|
TestCompoundInverseID | public void TestCompoundInverseID()(Code) | | Test IDs of inverses of compound transliterators. (J20)
|
TestCompoundKana | public void TestCompoundKana()(Code) | | Compose the Kana transliterator forward and reverse and try
some strings that should come out unchanged.
|
TestCompoundLatinRT | public void TestCompoundLatinRT()(Code) | | |
TestCompoundRBT | public void TestCompoundRBT()(Code) | | Test compound RBT rules.
|
TestContext | public void TestContext()(Code) | | |
TestCopyJ476 | public void TestCopyJ476()(Code) | | |
TestCoverage | public void TestCoverage()(Code) | | Improve code coverage.
|
TestCreateInstance | public void TestCreateInstance()(Code) | | |
TestCursorOffset | public void TestCursorOffset()(Code) | | Test cursor positioning outside of the key
|
TestDevanagariLatinRT | public void TestDevanagariLatinRT()(Code) | | |
TestDisplayName | public void TestDisplayName()(Code) | | Make sure display names of variants look reasonable.
|
TestEmptyContext | public void TestEmptyContext()(Code) | | Test empty context.
|
TestEscape | public void TestEscape()(Code) | | Test Escape and Unescape transliterators.
|
TestFilterIDs | public void TestFilterIDs()(Code) | | Test filter syntax in IDs. (J23)
|
TestFiltering | public void TestFiltering()(Code) | | Do some basic tests of filtering.
|
TestFunction | public void TestFunction()(Code) | | |
TestGurmukhiDevanagari | public void TestGurmukhiDevanagari()(Code) | | Test Gurmukhi-Devanagari Tippi and Bindi
|
TestHiraganaKatakana | public void TestHiraganaKatakana()(Code) | | Test the Hiragana-Katakana transliterator.
|
TestIDForms | public void TestIDForms()(Code) | | Test ID form variants
|
TestIncrementalProgress | public void TestIncrementalProgress()(Code) | | |
TestInlineSet | public void TestInlineSet()(Code) | | Test inline set syntax and set variable syntax.
|
TestInstantiation | public void TestInstantiation()(Code) | | |
TestInterIndic | public void TestInterIndic()(Code) | | Test inter-Indic transliterators. These are composed.
|
TestInvalidBackRef | public void TestInvalidBackRef()(Code) | | |
TestInvalidPostContext | public void TestInvalidPostContext()(Code) | | Test invalid post context error handling
|
TestJ277 | public void TestJ277()(Code) | | Regression test for bugs found in Greek transliteration.
|
TestJ329 | public void TestJ329()(Code) | | |
TestKeyboard | public void TestKeyboard()(Code) | | Basic test of keyboard.
|
TestKeyboard2 | public void TestKeyboard2()(Code) | | Basic test of keyboard with cursor.
|
TestKeyboard3 | public void TestKeyboard3()(Code) | | Test keyboard transliteration with back-replacement.
|
TestLiberalizedID | public void TestLiberalizedID()(Code) | | Test liberalized ID syntax. 1006c
|
TestLocaleInstantiation | public void TestLocaleInstantiation()(Code) | | Test instantiation from a locale.
|
TestLocaleResource | public void TestLocaleResource()(Code) | | Basic test of a locale resource based rule.
|
TestMulticharStringSet | public void TestMulticharStringSet()(Code) | | |
TestNFDChainRBT | public void TestNFDChainRBT()(Code) | | Test NFD chaining with RBT
|
TestNameMap | public void TestNameMap()(Code) | | Test the name mapping transliterators.
|
TestNewEngine | public void TestNewEngine()(Code) | | Test various failure points of the new 2.0 engine.
|
TestNormalizationTransliterator | public void TestNormalizationTransliterator()(Code) | | Test the normalization transliterator.
|
TestNullInverse | public void TestNullInverse()(Code) | | Inverse of "Null" should be "Null". (J21)
|
TestOutputSet | public void TestOutputSet()(Code) | | Make sure sets on output are disallowed.
|
TestParseError | public void TestParseError()(Code) | | Make sure parse errors reference the right line.
|
TestPatternQuoting | public void TestPatternQuoting()(Code) | | Test pattern quoting and escape mechanisms.
|
TestPositionAPI | public void TestPositionAPI()(Code) | | |
TestPositionHandling | public void TestPositionHandling()(Code) | | Confirm that the contextStart, contextLimit, start, and limit
behave correctly.
|
TestPropertySet | public void TestPropertySet()(Code) | | Test new property set syntax
|
TestQuantifiedSegment | public void TestQuantifiedSegment()(Code) | | Test quantified segment behavior. We want:
([abc])+ > x $1 x; applied to "cba" produces "xax"
|
TestQuantifier | public void TestQuantifier()(Code) | | |
TestRegisterAlias | public void TestRegisterAlias()(Code) | | |
TestRemove | public void TestRemove()(Code) | | Test the "Remove" transliterator.
|
TestRuleBasedInverse | public void TestRuleBasedInverse()(Code) | | Create some inverses and confirm that they work. We have to be
careful how we do this, since the inverses will not be true
inverses -- we can't throw any random string at the composition
of the transliterators and expect the identity function. F x
F' != I. However, if we are careful about the input, we will
get the expected results.
|
TestRuleWhitespace | public void TestRuleWhitespace()(Code) | | Test handling of rule whitespace, for both RBT and UnicodeSet.
|
TestSTV | public void TestSTV()(Code) | | |
TestSanskritLatinRT | public void TestSanskritLatinRT()(Code) | | |
TestScriptAllCodepoints | public void TestScriptAllCodepoints()(Code) | | This test is not in trnstst.cpp. This test has been moved from com/ibm/icu/dev/test/lang/TestUScript.java
during ICU4J modularization to remove dependency of tests on Transliterator.
|
TestSegments | public void TestSegments()(Code) | | Test segments and segment references.
|
TestSimpleRules | public void TestSimpleRules()(Code) | | |
TestSourceTargetSet | public void TestSourceTargetSet()(Code) | | Test the source and target set API. These are only implemented
for RBT and CompoundTransliterator at this time.
|
TestSpecialCases | public void TestSpecialCases()(Code) | | |
TestSupplemental | public void TestSupplemental()(Code) | | |
TestSurrogateCasing | public void TestSurrogateCasing()(Code) | | |
TestTeluguLatinRT | public void TestTeluguLatinRT()(Code) | | |
TestTitleAccents | public void TestTitleAccents()(Code) | | Test title case handling of accent (should ignore accents)
|
TestToRules | public void TestToRules()(Code) | | |
TestToRulesMark | public void TestToRulesMark()(Code) | | Mark's toRules test.
|
TestUndefinedVariable | public void TestUndefinedVariable()(Code) | | Test undefined variable.
|
TestUserFunction | public void TestUserFunction()(Code) | | Test that user-registered transliterators can be used under function
syntax.
|
TestVariableRange | public void TestVariableRange()(Code) | | Test the use variable range pragma, making sure that use of
variable range characters is detected and flagged as an error.
|
Fields inherited from com.ibm.icu.dev.test.TestFmwk | protected TestParams params(Code)(Java Doc)
|
Methods inherited from com.ibm.icu.dev.test.TestFmwk | protected boolean assertEquals(String message, boolean expected, boolean actual)(Code)(Java Doc) protected boolean assertEquals(String message, long expected, long actual)(Code)(Java Doc) protected boolean assertEquals(String message, float expected, float actual, double error)(Code)(Java Doc) protected boolean assertEquals(String message, double expected, double actual, double error)(Code)(Java Doc) protected boolean assertEquals(String message, Object expected, Object actual)(Code)(Java Doc) protected boolean assertFalse(String message, boolean condition)(Code)(Java Doc) protected boolean assertNotEquals(String message, Object expected, Object actual)(Code)(Java Doc) protected boolean assertNotNull(String message, Object actual)(Code)(Java Doc) protected boolean assertNotSame(String message, Object expected, Object actual)(Code)(Java Doc) protected boolean assertNull(String message, Object actual)(Code)(Java Doc) protected boolean assertSame(String message, Object expected, Object actual)(Code)(Java Doc) protected boolean assertTrue(String message, boolean condition)(Code)(Java Doc) protected int checkArray(String msg, String array, String expected)(Code)(Java Doc) protected int checkArray(String msg, Locale array, String expected)(Code)(Java Doc) protected int checkArray(String msg, ULocale array, String expected)(Code)(Java Doc) protected Random createRandom()(Code)(Java Doc) protected void fail(String message)(Code)(Java Doc) protected static synchronized java.util.Date getDate(int year, int month, int dom)(Code)(Java Doc) protected String getDescription()(Code)(Java Doc) protected int getErrorCount()(Code)(Java Doc) public PrintWriter getErrorLogPrintWriter()(Code)(Java Doc) public int getInclusion()(Code)(Java Doc) public PrintWriter getLogPrintWriter()(Code)(Java Doc) protected String getMethodDescription(String name)(Code)(Java Doc) protected TestFmwk getSubtest(String prefix) throws TestFmwkException(Code)(Java Doc) protected Target getTargets(String targetName)(Code)(Java Doc) public String getTranslitTestFilter()(Code)(Java Doc) protected void handleException(Throwable e)(Code)(Java Doc) public static String hex(char[] s)(Code)(Java Doc) public static String hex(byte[] s)(Code)(Java Doc) public static String hex(char ch)(Code)(Java Doc) public static String hex(int ch)(Code)(Java Doc) public static String hex(String s)(Code)(Java Doc) public static String hex(StringBuffer s)(Code)(Java Doc) protected void init() throws Exception(Code)(Java Doc) public boolean isDateAtLeast(int year, int month, int day)(Code)(Java Doc) public boolean isMemTracking()(Code)(Java Doc) public boolean isModularBuild()(Code)(Java Doc) public boolean isQuick()(Code)(Java Doc) public boolean isTiming()(Code)(Java Doc) public boolean isVerbose()(Code)(Java Doc) public void msg(String message, int level, boolean incCount, boolean newln)(Code)(Java Doc) public boolean noData()(Code)(Java Doc) public static String prettify(String s)(Code)(Java Doc) public static String prettify(StringBuffer s)(Code)(Java Doc) public Target resolveTarget(TestParams params)(Code)(Java Doc) public Target resolveTarget(TestParams params, String targetPath)(Code)(Java Doc) public void run(String[] args)(Code)(Java Doc) public int run(String[] args, PrintWriter log)(Code)(Java Doc) public int runTests(TestParams params, String[] tests)(Code)(Java Doc) protected TimeZone safeGetTimeZone(String id)(Code)(Java Doc) public void usage()(Code)(Java Doc) public static void usage(PrintWriter pw, String className)(Code)(Java Doc) protected boolean validate()(Code)(Java Doc) protected boolean validateMethod(String name)(Code)(Java Doc)
|
Fields inherited from com.ibm.icu.dev.test.AbstractTestLog | public static boolean dontSkipForVersion(Code)(Java Doc)
|
|
|