2002-08-01 20:12:25 +00:00
|
|
|
/***************************************************************************
|
|
|
|
*
|
2007-07-19 04:33:20 +00:00
|
|
|
* Copyright (C) 2000-2007, International Business Machines
|
2002-08-01 20:12:25 +00:00
|
|
|
* 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"
|
2002-09-21 00:43:14 +00:00
|
|
|
|
|
|
|
#if !UCONFIG_NO_TRANSLITERATION
|
|
|
|
|
2000-01-18 02:34:41 +00:00
|
|
|
#include "ittrans.h"
|
|
|
|
#include "transtst.h"
|
|
|
|
#include "transapi.h"
|
2000-03-28 23:51:25 +00:00
|
|
|
#include "cpdtrtst.h"
|
2000-05-24 17:31:51 +00:00
|
|
|
#include "transrt.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) { \
|
2007-07-19 04:33:20 +00:00
|
|
|
logln(#test "---"); logln(); \
|
2000-05-24 17:31:51 +00:00
|
|
|
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);
|
2004-02-25 23:02:26 +00:00
|
|
|
CASE(3, TransliteratorRoundTripTest);
|
2007-07-19 04:33:20 +00:00
|
|
|
CASE(4, JamoTest);
|
|
|
|
CASE(5, TransliteratorErrorTest);
|
|
|
|
CASE(6, ReplaceableTest);
|
2003-11-19 21:37:56 +00:00
|
|
|
#if !UCONFIG_NO_TRANSLITERATION && defined(U_USE_UNICODE_FILTER_LOGIC_OBSOLETE_2_8)
|
2007-07-19 04:33:20 +00:00
|
|
|
CASE(7, UnicodeFilterLogicTest);
|
2003-11-19 21:37:56 +00:00
|
|
|
#endif
|
2001-11-28 23:03:04 +00:00
|
|
|
|
2000-08-11 22:26:55 +00:00
|
|
|
default: name=""; break;
|
|
|
|
}
|
2000-01-18 02:34:41 +00:00
|
|
|
}
|
2002-09-21 00:43:14 +00:00
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_TRANSLITERATION */
|