2000-03-28 23:51:25 +00:00
|
|
|
/*
|
|
|
|
*****************************************************************************************
|
|
|
|
* *
|
|
|
|
* COPYRIGHT: *
|
2001-03-21 20:09:56 +00:00
|
|
|
* (C) Copyright International Business Machines Corporation, 2001 *
|
2000-03-28 23:51:25 +00:00
|
|
|
* Licensed Material - Program-Property of IBM - All Rights Reserved. *
|
|
|
|
* US Government Users Restricted Rights - Use, duplication, or disclosure *
|
|
|
|
* restricted by GSA ADP Schedule Contract with IBM Corp. *
|
|
|
|
* *
|
|
|
|
*****************************************************************************************
|
|
|
|
*/
|
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 "jahatrts.h"
|
|
|
|
#include "hajatrts.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"
|
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);
|
|
|
|
CASE(5, JamoToHangTransliteratorTest);
|
|
|
|
CASE(6, HangToJamoTransliteratorTest);
|
|
|
|
CASE(7, UnicodeFilterLogicTest);
|
|
|
|
CASE(8, TransliteratorRoundTripTest);
|
2000-05-25 19:28:16 +00:00
|
|
|
CASE(9, UnicodeSetTest);
|
2001-02-28 19:49:07 +00:00
|
|
|
CASE(10, JamoTest);
|
2000-08-11 22:26:55 +00:00
|
|
|
default: name=""; break;
|
|
|
|
}
|
2000-01-18 02:34:41 +00:00
|
|
|
}
|