]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/ittrans.cpp
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / test / intltest / ittrans.cpp
1 /***************************************************************************
2 *
3 * Copyright (C) 2000-2004, 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 "transrt.h"
24 #include "usettest.h"
25 #include "jamotest.h"
26 #include "trnserr.h"
27 #include "reptest.h"
28
29 #define CASE(id,test) case id: \
30 name = #test; \
31 if (exec) { \
32 logln(#test "---"); logln(""); \
33 test t; \
34 callTest(t, par); \
35 } \
36 break
37
38 void IntlTestTransliterator::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
39 {
40 if (exec) logln("TestSuite Transliterator");
41 switch (index) {
42 CASE(0, TransliteratorTest);
43 CASE(1, TransliteratorAPITest);
44 CASE(2, CompoundTransliteratorTest);
45 CASE(3, TransliteratorRoundTripTest);
46 CASE(4, UnicodeSetTest);
47 CASE(5, JamoTest);
48 CASE(6, TransliteratorErrorTest);
49 CASE(7, ReplaceableTest);
50 #if !UCONFIG_NO_TRANSLITERATION && defined(U_USE_UNICODE_FILTER_LOGIC_OBSOLETE_2_8)
51 CASE(10, UnicodeFilterLogicTest);
52 #endif
53
54 default: name=""; break;
55 }
56 }
57
58 #endif /* #if !UCONFIG_NO_TRANSLITERATION */