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