2002-08-01 20:12:25 +00:00
|
|
|
/***************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (C) 2000-2002, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
************************************************************************
|
2000-01-18 02:34:41 +00:00
|
|
|
* Date Name Description
|
|
|
|
* 01/03/2000 Madhu Creation.
|
2000-03-28 23:51:25 +00:00
|
|
|
* 03/2000 Madhu Added additional tests
|
2000-01-18 02:34:41 +00:00
|
|
|
***********************************************************************/
|
|
|
|
/**
|
|
|
|
* IntlTestTransliterator is the medium level test class for Transliterator
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
#include "ittrans.h"
|
|
|
|
#include "transtst.h"
|
|
|
|
#include "transapi.h"
|
2000-03-28 23:51:25 +00:00
|
|
|
#include "cpdtrtst.h"
|
|
|
|
#include "unhxtrts.h"
|
|
|
|
#include "hxuntrts.h"
|
|
|
|
#include "ufltlgts.h"
|
2000-05-24 17:31:51 +00:00
|
|
|
#include "transrt.h"
|
2000-05-25 19:28:16 +00:00
|
|
|
#include "usettest.h"
|
2001-02-28 19:49:07 +00:00
|
|
|
#include "jamotest.h"
|
2001-11-16 23:31:46 +00:00
|
|
|
#include "trnserr.h"
|
2001-11-28 23:03:04 +00:00
|
|
|
#include "reptest.h"
|
2000-05-24 17:31:51 +00:00
|
|
|
|
|
|
|
#define CASE(id,test) case id: \
|
|
|
|
name = #test; \
|
|
|
|
if (exec) { \
|
|
|
|
logln(#test "---"); logln(""); \
|
|
|
|
test t; \
|
|
|
|
callTest(t, par); \
|
|
|
|
} \
|
|
|
|
break
|
2000-01-18 02:34:41 +00:00
|
|
|
|
2000-08-14 21:42:36 +00:00
|
|
|
void IntlTestTransliterator::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
|
2000-01-18 02:34:41 +00:00
|
|
|
{
|
|
|
|
if (exec) logln("TestSuite Transliterator");
|
|
|
|
switch (index) {
|
2000-05-24 17:31:51 +00:00
|
|
|
CASE(0, TransliteratorTest);
|
|
|
|
CASE(1, TransliteratorAPITest);
|
|
|
|
CASE(2, CompoundTransliteratorTest);
|
|
|
|
CASE(3, UniToHexTransliteratorTest);
|
|
|
|
CASE(4, HexToUniTransliteratorTest);
|
2001-09-28 20:56:10 +00:00
|
|
|
CASE(5, UnicodeFilterLogicTest);
|
|
|
|
CASE(6, TransliteratorRoundTripTest);
|
|
|
|
CASE(7, UnicodeSetTest);
|
|
|
|
CASE(8, JamoTest);
|
2001-11-16 23:31:46 +00:00
|
|
|
CASE(9, TransliteratorErrorTest);
|
2001-11-28 23:03:04 +00:00
|
|
|
CASE(10, ReplaceableTest);
|
|
|
|
|
2000-08-11 22:26:55 +00:00
|
|
|
default: name=""; break;
|
|
|
|
}
|
2000-01-18 02:34:41 +00:00
|
|
|
}
|