mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-17 02:37:25 +00:00
ICU-3783 Add back object tests for abstract classes.
X-SVN-Rev: 15667
This commit is contained in:
parent
2080453d18
commit
4d96c03896
1 changed files with 9 additions and 8 deletions
|
@ -33,7 +33,7 @@
|
|||
#define TESTCLASSID_TRANSLIT(c, t) { delete testClass(Transliterator::createInstance(UnicodeString(t), UTRANS_FORWARD,parseError,status), #c, "Transliterator: " #t, c ::getStaticClassID()); if(U_FAILURE(status)) { errln(UnicodeString(#c " - Transliterator: " #t " - got err status ") + UnicodeString(u_errorName(status))); status = U_ZERO_ERROR; } }
|
||||
#define TESTCLASSID_CTOR(c, x) { delete testClass(new c x, #c, "new " #c #x, c ::getStaticClassID()); if(U_FAILURE(status)) { errln(UnicodeString(#c " - new " #x " - got err status ") + UnicodeString(u_errorName(status))); status = U_ZERO_ERROR; } }
|
||||
#define TESTCLASSID_DEFAULT(c) delete testClass(new c, #c, "new " #c , c::getStaticClassID())
|
||||
//#define TESTCLASSID_ABSTRACT(c) testClass(NULL, #c, NULL, c::getStaticClassID())
|
||||
#define TESTCLASSID_ABSTRACT(c) testClass(NULL, #c, NULL, c::getStaticClassID())
|
||||
|
||||
#define MAX_CLASS_ID 200
|
||||
|
||||
|
@ -227,7 +227,7 @@ void UObjectTest::testIDs()
|
|||
#if !UCONFIG_NO_FORMATTING
|
||||
/* TESTCLASSID_FACTORY(NFSubstitution, NFSubstitution::makeSubstitution(8, */
|
||||
/* TESTCLASSID_DEFAULT(DigitList); UMemory but not UObject*/
|
||||
//TESTCLASSID_ABSTRACT(NumberFormat);
|
||||
TESTCLASSID_ABSTRACT(NumberFormat);
|
||||
TESTCLASSID_CTOR(DateFormatSymbols, (status));
|
||||
TESTCLASSID_CTOR(DecimalFormatSymbols, (status));
|
||||
#if UOBJTEST_TEST_INTERNALS
|
||||
|
@ -295,13 +295,14 @@ void UObjectTest::testIDs()
|
|||
//TESTCLASSID_DEFAULT(TempSearch);
|
||||
//TESTCLASSID_DEFAULT(TestMultipleKeyStringFactory);
|
||||
//TESTCLASSID_DEFAULT(TestReplaceable);
|
||||
//#if !UCONFIG_NO_FORMATTING
|
||||
//TESTCLASSID_ABSTRACT(TimeZone);
|
||||
//#endif
|
||||
|
||||
#if !UCONFIG_NO_FORMATTING
|
||||
TESTCLASSID_ABSTRACT(TimeZone);
|
||||
#endif
|
||||
|
||||
#if !UCONFIG_NO_TRANSLITERATION
|
||||
TESTCLASSID_FACTORY(TitlecaseTransliterator, Transliterator::createInstance(UnicodeString("Any-Title"), UTRANS_FORWARD, parseError, status));
|
||||
//TESTCLASSID_ABSTRACT(Transliterator);
|
||||
TESTCLASSID_ABSTRACT(Transliterator);
|
||||
|
||||
#if UOBJTEST_TEST_INTERNALS
|
||||
TESTCLASSID_CTOR(StringMatcher, (UnicodeString("x"), 0,0,0,TransliterationRuleData(status)));
|
||||
|
@ -311,8 +312,8 @@ void UObjectTest::testIDs()
|
|||
|
||||
TESTCLASSID_DEFAULT(UnicodeString);
|
||||
TESTCLASSID_CTOR(UnicodeSet, (0, 1));
|
||||
//TESTCLASSID_ABSTRACT(UnicodeFilter);
|
||||
//TESTCLASSID_ABSTRACT(UnicodeFunctor);
|
||||
TESTCLASSID_ABSTRACT(UnicodeFilter);
|
||||
TESTCLASSID_ABSTRACT(UnicodeFunctor);
|
||||
TESTCLASSID_CTOR(UnicodeSetIterator,(UnicodeSet(0,1)));
|
||||
TESTCLASSID_CTOR(UStack, (status));
|
||||
TESTCLASSID_CTOR(UVector, (status));
|
||||
|
|
Loading…
Add table
Reference in a new issue