]>
Commit | Line | Data |
---|---|---|
1 | /******************************************************************** | |
2 | * COPYRIGHT: | |
3 | * Copyright (c) 1997-2003, International Business Machines Corporation and | |
4 | * others. All Rights Reserved. | |
5 | ********************************************************************/ | |
6 | ||
7 | /** | |
8 | * CollationTurkishTest is a third level test class. This tests the locale | |
9 | * specific primary and tertiary rules. For example, the dotless-i and dotted-I | |
10 | * sorts between h and j. | |
11 | */ | |
12 | ||
13 | #ifndef _TRCOLL | |
14 | #define _TRCOLL | |
15 | ||
16 | #include "unicode/utypes.h" | |
17 | ||
18 | #if !UCONFIG_NO_COLLATION | |
19 | ||
20 | #include "tscoll.h" | |
21 | ||
22 | class CollationTurkishTest: public IntlTestCollator { | |
23 | public: | |
24 | // If this is too small for the test data, just increase it. | |
25 | // Just don't make it too large, otherwise the executable will get too big | |
26 | enum EToken_Len { MAX_TOKEN_LEN = 16 }; | |
27 | ||
28 | CollationTurkishTest(); | |
29 | virtual ~CollationTurkishTest(); | |
30 | void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); | |
31 | ||
32 | // perform tests for turkish locale with strength PRIMARY | |
33 | void TestPrimary(/* char* par */); | |
34 | ||
35 | // perform tests for turkish locale with strength TERTIARY | |
36 | void TestTertiary(/* char* par */); | |
37 | ||
38 | private: | |
39 | // static constants | |
40 | static const UChar testSourceCases[][MAX_TOKEN_LEN]; | |
41 | static const UChar testTargetCases[][MAX_TOKEN_LEN]; | |
42 | static const Collator::EComparisonResult results[]; | |
43 | ||
44 | Collator *myCollation; | |
45 | }; | |
46 | ||
47 | #endif /* #if !UCONFIG_NO_COLLATION */ | |
48 | ||
49 | #endif |