2000-03-10 00:42:27 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
|
|
|
* Copyright (c) 1998-1999, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* MajorTestLevel is the top level test class for everything in the directory "IntlWork".
|
|
|
|
*/
|
|
|
|
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "itmajor.h"
|
|
|
|
|
|
|
|
#include "itutil.h"
|
|
|
|
#include "tscoll.h"
|
|
|
|
#include "ittxtbd.h"
|
|
|
|
#include "itformat.h"
|
|
|
|
#include "itconv.h"
|
2000-01-18 02:35:52 +00:00
|
|
|
#include "ittrans.h"
|
2000-01-15 01:56:11 +00:00
|
|
|
#include "itrbbi.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-05-18 22:08:39 +00:00
|
|
|
void MajorTestLevel::runIndexedTest( int32_t index, UBool exec, char* &name, char* par )
|
1999-08-16 21:50:52 +00:00
|
|
|
{
|
|
|
|
switch (index) {
|
|
|
|
case 0: name = "utility";
|
|
|
|
if (exec) {
|
|
|
|
logln("TestSuite Utilities---"); logln();
|
|
|
|
IntlTestUtilities test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1: name = "collate";
|
|
|
|
if (exec) {
|
|
|
|
logln("TestSuite Collator----"); logln();
|
|
|
|
IntlTestCollator test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2: name = "textbounds";
|
|
|
|
if (exec) {
|
|
|
|
logln("TestSuite TextBoundary----"); logln();
|
|
|
|
IntlTestTextBoundary test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 3: name = "format";
|
|
|
|
if (exec) {
|
|
|
|
logln("TestSuite Format----"); logln();
|
|
|
|
IntlTestFormat test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 4: name = "convert";
|
|
|
|
if (exec) {
|
|
|
|
logln("TestSuite Convert----"); logln();
|
|
|
|
IntlTestConvert test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
1999-11-22 17:16:10 +00:00
|
|
|
case 5: name = "translit";
|
|
|
|
if (exec) {
|
|
|
|
logln("TestSuite Transliterator----"); logln();
|
2000-01-18 02:35:52 +00:00
|
|
|
IntlTestTransliterator test;
|
1999-11-22 17:16:10 +00:00
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
2000-01-15 01:56:11 +00:00
|
|
|
case 6: name = "rbbi";
|
|
|
|
if (exec) {
|
|
|
|
logln("TestSuite RuleBasedBreakIterator----"); logln();
|
|
|
|
IntlTestRBBI test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
default: name = ""; break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|