ICU-1053 add a simple Any-Remove test
X-SVN-Rev: 5259
This commit is contained in:
parent
2e0818a9fc
commit
953c8621af
@ -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
|
||||||
//======================================================================
|
//======================================================================
|
||||||
|
@ -163,6 +163,8 @@ class TransliteratorTest : public IntlTest {
|
|||||||
|
|
||||||
void TestCompoundFilter(void);
|
void TestCompoundFilter(void);
|
||||||
|
|
||||||
|
void TestRemove(void);
|
||||||
|
|
||||||
//======================================================================
|
//======================================================================
|
||||||
// Support methods
|
// Support methods
|
||||||
//======================================================================
|
//======================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user