ICU-1053 add a simple Any-Remove test

X-SVN-Rev: 5259
This commit is contained in:
Alan Liu 2001-07-17 23:37:45 +00:00
parent 2e0818a9fc
commit 953c8621af
2 changed files with 15 additions and 0 deletions

View File

@ -64,6 +64,7 @@ TransliteratorTest::runIndexedTest(int32_t index, UBool exec,
TESTCASE(28,TestNormalizationTransliterator); TESTCASE(28,TestNormalizationTransliterator);
TESTCASE(29,TestCompoundRBT); TESTCASE(29,TestCompoundRBT);
TESTCASE(30,TestCompoundFilter); TESTCASE(30,TestCompoundFilter);
TESTCASE(31,TestRemove);
default: name = ""; break; default: name = ""; break;
} }
} }
@ -1329,6 +1330,18 @@ void TransliteratorTest::TestCompoundFilter(void) {
delete t; delete t;
} }
void TransliteratorTest::TestRemove(void) {
Transliterator *t = Transliterator::createInstance("Remove[abc]");
if (t == 0) {
errln("FAIL: createInstance failed");
return;
}
expect(*t, "Able bodied baker's cats", "Ale odied ker's ts");
delete t;
}
//====================================================================== //======================================================================
// Support methods // Support methods
//====================================================================== //======================================================================

View File

@ -163,6 +163,8 @@ class TransliteratorTest : public IntlTest {
void TestCompoundFilter(void); void TestCompoundFilter(void);
void TestRemove(void);
//====================================================================== //======================================================================
// Support methods // Support methods
//====================================================================== //======================================================================