1 2/******************************************************************** 3 * COPYRIGHT: 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************************************************************************/ 12 13#ifndef CPDTRTST_H 14#define CPDTRTST_H 15 16#include "unicode/utypes.h" 17 18#if !UCONFIG_NO_TRANSLITERATION 19 20#include "unicode/translit.h" 21#include "intltest.h" 22 23/** 24 * @test 25 * @summary General test of Compound Transliterator 26 */ 27class CompoundTransliteratorTest : public IntlTest { 28public: 29 void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL); 30 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); 41 42 //====================================================================== 43 // Support methods 44 //====================================================================== 45 46 /** 47 * Splits a UnicodeString 48 */ 49 UnicodeString* split(const UnicodeString& str, UChar seperator, int32_t& count); 50 51 void expect(const CompoundTransliterator& t, 52 const UnicodeString& source, 53 const UnicodeString& expectedResult); 54 55 void expectAux(const UnicodeString& tag, 56 const UnicodeString& summary, UBool pass, 57 const UnicodeString& expectedResult); 58 59 60}; 61 62#endif /* #if !UCONFIG_NO_TRANSLITERATION */ 63 64#endif 65