void CollationFrenchTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par*/ ) { if (exec) logln("TestSuite CollationFrenchTest: "); if((!myCollation) && exec) { dataerrln(__FILE__ " cannot test - failed to create collator."); name = "some test"; return; } switch (index) { case 0: name = "TestSecondary"; if (exec) TestSecondary(/* par */); break; case 1: name = "TestTertiary"; if (exec) TestTertiary(/* par */); break; case 2: name = "TestExtra"; if (exec) TestExtra(/* par */); break; default: name = ""; break; } }
void CollationEnglishTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par*/ ) { if (exec) logln("TestSuite CollationEnglishTest: "); if(myCollation) { switch (index) { case 0: name = "TestPrimary"; if (exec) TestPrimary(/* par */); break; case 1: name = "TestSecondary"; if (exec) TestSecondary(/* par */); break; case 2: name = "TestTertiary"; if (exec) TestTertiary(/* par */); break; default: name = ""; break; } } else { dataerrln("Collator couldn't be instantiated!"); name = ""; } }