2 /********************************************************************
4 * Copyright (c) 1997-2003, International Business Machines Corporation and
5 * others. All Rights Reserved.
6 ********************************************************************/
7 /***********************************************************************
8 ************************************************************************
9 * Date Name Description
10 * 03/09/2000 Madhu Creation.
11 ************************************************************************/
16 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_TRANSLITERATION
20 #include "unicode/translit.h"
25 * @summary General test of Compound Transliterator
27 class CompoundTransliteratorTest
: public IntlTest
{
29 void runIndexedTest(int32_t index
, UBool exec
, const char* &name
, char* par
=NULL
);
31 /*Tests the constructors */
32 void TestConstruction(void);
33 /*Tests the function clone, and operator==()*/
34 void TestCloneEqual(void);
35 /*Tests the function getCount()*/
36 void TestGetCount(void);
37 /*Tests the function getTransliterator() and setTransliterators() and adoptTransliterators()*/
38 void TestGetSetAdoptTransliterator(void);
39 /*Tests the function handleTransliterate()*/
40 void TestTransliterate(void);
42 //======================================================================
44 //======================================================================
47 * Splits a UnicodeString
49 UnicodeString
* split(const UnicodeString
& str
, UChar seperator
, int32_t& count
);
51 void expect(const CompoundTransliterator
& t
,
52 const UnicodeString
& source
,
53 const UnicodeString
& expectedResult
);
55 void expectAux(const UnicodeString
& tag
,
56 const UnicodeString
& summary
, UBool pass
,
57 const UnicodeString
& expectedResult
);
62 #endif /* #if !UCONFIG_NO_TRANSLITERATION */