]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/ittrans.cpp
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / test / intltest / ittrans.cpp
1 /***************************************************************************
2 *
3 * Copyright (C) 2000-2002, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *
6 ************************************************************************
7 * Date Name Description
8 * 01/03/2000 Madhu Creation.
9 * 03/2000 Madhu Added additional tests
10 ***********************************************************************/
11 /**
12 * IntlTestTransliterator is the medium level test class for Transliterator
13 */
14
15 #include "unicode/utypes.h"
16
17 #if !UCONFIG_NO_TRANSLITERATION
18
19 #include "ittrans.h"
20 #include "transtst.h"
21 #include "transapi.h"
22 #include "cpdtrtst.h"
23 #include "unhxtrts.h"
24 #include "hxuntrts.h"
25 #include "ufltlgts.h"
26 #include "transrt.h"
27 #include "usettest.h"
28 #include "jamotest.h"
29 #include "trnserr.h"
30 #include "reptest.h"
31
32 #define CASE(id,test) case id: \
33 name = #test; \
34 if (exec) { \
35 logln(#test "---"); logln(""); \
36 test t; \
37 callTest(t, par); \
38 } \
39 break
40
41 void IntlTestTransliterator::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
42 {
43 if (exec) logln("TestSuite Transliterator");
44 switch (index) {
45 CASE(0, TransliteratorTest);
46 CASE(1, TransliteratorAPITest);
47 CASE(2, CompoundTransliteratorTest);
48 CASE(3, UniToHexTransliteratorTest);
49 CASE(4, HexToUniTransliteratorTest);
50 CASE(5, UnicodeFilterLogicTest);
51 CASE(6, TransliteratorRoundTripTest);
52 CASE(7, UnicodeSetTest);
53 CASE(8, JamoTest);
54 CASE(9, TransliteratorErrorTest);
55 CASE(10, ReplaceableTest);
56
57 default: name=""; break;
58 }
59 }
60
61 #endif /* #if !UCONFIG_NO_TRANSLITERATION */