]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/canittst.h
ICU-6.2.6.tar.gz
[apple/icu.git] / icuSources / test / intltest / canittst.h
1 /********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 2002-2003, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************
6 *
7 * @author Mark E. Davis
8 * @author Vladimir Weinstein
9 */
10
11 /**
12 * Test Canonical Iterator
13 */
14
15 #ifndef _CANITTST
16 #define _CANITTST
17
18 #include "unicode/utypes.h"
19
20 #if !UCONFIG_NO_NORMALIZATION
21
22
23 U_NAMESPACE_BEGIN
24
25 class Transliterator;
26
27 U_NAMESPACE_END
28
29 #include "unicode/translit.h"
30 #include "intltest.h"
31 #include "hash.h"
32
33 class CanonicalIteratorTest : public IntlTest {
34 public:
35 CanonicalIteratorTest();
36 virtual ~CanonicalIteratorTest();
37
38 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
39
40 void TestCanonicalIterator(void);
41 void TestExhaustive(void);
42 void TestBasic();
43 void TestAPI();
44 UnicodeString collectionToString(Hashtable *col);
45 //static UnicodeString collectionToString(Collection col);
46 private:
47 void expectEqual(const UnicodeString &message, const UnicodeString &item, const UnicodeString &a, const UnicodeString &b);
48
49 Transliterator *nameTrans;
50 Transliterator *hexTrans;
51
52 UnicodeString getReadable(const UnicodeString &obj);
53 };
54
55 #endif /* #if !UCONFIG_NO_NORMALIZATION */
56
57 #endif // _CANITTST