void IntlTestUtilities::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) { if (exec) logln("TestSuite Utilities: "); switch (index) { CASE(0, MultithreadTest); CASE(1, StringTest); CASE(2, UnicodeStringTest); CASE(3, LocaleTest); CASE(4, CharIterTest); CASE(5, UnicodeTest); CASE(6, ResourceBundleTest); CASE(7, NewResourceBundleTest); CASE(8, PUtilTest); CASE(9, UObjectTest); CASE(10, UVector32Test); CASE(11, UVectorTest); CASE(12, UTextTest); CASE(13, LocaleAliasTest); CASE(14, UnicodeSetTest); CASE(15, ErrorCodeTest); case 16: name = "LocalPointerTest"; if (exec) { logln("TestSuite LocalPointerTest---"); logln(); LocalPointer<IntlTest> test(createLocalPointerTest()); callTest(*test, par); } break; default: name = ""; break; //needed to end loop } }
void IntlTestUtilities::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) { if (exec) logln("TestSuite Utilities: "); switch (index) { CASE(0, MultithreadTest); CASE(1, StringTest); CASE(2, UnicodeStringTest); CASE(3, LocaleTest); CASE(4, CharIterTest); CASE(5, UObjectTest); CASE(6, UnicodeTest); CASE(7, ResourceBundleTest); CASE(8, NewResourceBundleTest); CASE(9, PUtilTest); CASE(10, UVector32Test); CASE(11, UVectorTest); CASE(12, UTextTest); CASE(13, LocaleAliasTest); CASE(14, UnicodeSetTest); CASE(15, ErrorCodeTest); case 16: name = "LocalPointerTest"; if (exec) { logln("TestSuite LocalPointerTest---"); logln(); LocalPointer<IntlTest> test(createLocalPointerTest()); callTest(*test, par); } break; case 17: name = "BytesTrieTest"; if (exec) { logln("TestSuite BytesTrieTest---"); logln(); LocalPointer<IntlTest> test(createBytesTrieTest()); callTest(*test, par); } break; case 18: name = "UCharsTrieTest"; if (exec) { logln("TestSuite UCharsTrieTest---"); logln(); LocalPointer<IntlTest> test(createUCharsTrieTest()); callTest(*test, par); } break; case 19: name = "EnumSetTest"; if (exec) { logln("TestSuite EnumSetTest---"); logln(); LocalPointer<IntlTest> test(createEnumSetTest()); callTest(*test, par); } break; case 20: name = "SimplePatternFormatterTest"; if (exec) { logln("TestSuite SimplePatternFormatterTest---"); logln(); LocalPointer<IntlTest> test(createSimplePatternFormatterTest()); callTest(*test, par); } break; case 21: name = "UnifiedCacheTest"; if (exec) { logln("TestSuite UnifiedCacheTest---"); logln(); LocalPointer<IntlTest> test(createUnifiedCacheTest()); callTest(*test, par); } break; case 22: name = "QuantityFormatterTest"; if (exec) { logln("TestSuite QuantityFormatterTest---"); logln(); LocalPointer<IntlTest> test(createQuantityFormatterTest()); callTest(*test, par); } case 23: name = "PluralMapTest"; if (exec) { logln("TestSuite PluralMapTest---"); logln(); LocalPointer<IntlTest> test(createPluralMapTest()); callTest(*test, par); } break; default: name = ""; break; //needed to end loop } }