]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /******************************************************************** |
2 | * COPYRIGHT: | |
3 | * Copyright (c) 1997-2003, International Business Machines Corporation and | |
4 | * others. All Rights Reserved. | |
5 | ******************************************************************** | |
6 | ************************************************************************ | |
7 | * Date Name Description | |
8 | * 03/17/2000 Madhu Creation. | |
9 | ************************************************************************/ | |
10 | ||
11 | #ifndef HEXTOUNITRTST_H | |
12 | #define HEXTOUNITRTST_H | |
13 | ||
14 | #include "unicode/utypes.h" | |
15 | ||
16 | #if !UCONFIG_NO_TRANSLITERATION | |
17 | ||
18 | #include "unicode/translit.h" | |
19 | #include "hextouni.h" | |
20 | #include "intltest.h" | |
21 | ||
22 | /** | |
23 | * @test | |
24 | * @summary General test of HexadecimalToUnicodeTransliterator | |
25 | */ | |
26 | class HexToUniTransliteratorTest : public IntlTest { | |
27 | public: | |
28 | void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL); | |
29 | ||
30 | /*Tests the constructors */ | |
31 | void TestConstruction(void); | |
32 | /*Tests the function clone, and operator==()*/ | |
33 | void TestCloneEqual(void); | |
34 | /*Tests the function getTransliterator() and setTransliterators() and adoptTransliterators()*/ | |
35 | void TestPattern(void); | |
36 | /*Tests the function handleTransliterate()*/ | |
37 | void TestSimpleTransliterate(void); | |
38 | /*Tests the function handleTransliterate()*/ | |
39 | void TestTransliterate(void); | |
40 | ||
41 | //====================================================================== | |
42 | // Support methods | |
43 | //====================================================================== | |
44 | void expectTranslit(const HexToUnicodeTransliterator& t, | |
45 | const UnicodeString& message, | |
46 | const UnicodeString& source, | |
47 | int32_t start, int32_t limit, int32_t cursor, | |
48 | const UnicodeString& expectedResult); | |
49 | ||
50 | void expectPattern(HexToUnicodeTransliterator& t, | |
51 | const UnicodeString& pattern, | |
52 | const UnicodeString& source, | |
53 | const UnicodeString& expectedResult); | |
54 | ||
55 | void expect(const HexToUnicodeTransliterator& t, | |
56 | const UnicodeString& message, | |
57 | const UnicodeString& source, | |
58 | const UnicodeString& expectedResult); | |
59 | ||
60 | void expectAux(const UnicodeString& tag, | |
61 | const UnicodeString& summary, UBool pass, | |
62 | const UnicodeString& expectedResult); | |
63 | ||
64 | ||
65 | }; | |
66 | ||
67 | #endif /* #if !UCONFIG_NO_TRANSLITERATION */ | |
68 | ||
69 | #endif |