]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/dacoll.h
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / test / intltest / dacoll.h
1 /********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2003, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7 /**
8 * CollationDanishTest is a third level test class. This tests the locale
9 * specific primary and tertiary rules. For example, a-ring sorts after z
10 * and a-umlaut sorts before ae ligatures. Additional test strings from the
11 * internet are also included.
12 */
13
14 #ifndef _DACOLL
15 #define _DACOLL
16
17 #include "unicode/utypes.h"
18
19 #if !UCONFIG_NO_COLLATION
20
21 #include "tscoll.h"
22
23 class CollationDanishTest: public IntlTestCollator {
24 public:
25 // If this is too small for the test data, just increase it.
26 // Just don't make it too large, otherwise the executable will get too big
27 enum EToken_Len { MAX_TOKEN_LEN = 24 };
28
29 CollationDanishTest();
30 virtual ~CollationDanishTest();
31 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
32
33 // perform tests with strength PRIMARY
34 void TestPrimary(/* char* par */);
35
36 // perform test with strength TERTIARY
37 void TestTertiary(/* char* par */);
38
39 private:
40 static const UChar testBugs[][MAX_TOKEN_LEN];
41 static const UChar testNTList[][MAX_TOKEN_LEN];
42 static const UChar testSourceCases[][MAX_TOKEN_LEN];
43 static const UChar testTargetCases[][MAX_TOKEN_LEN];
44 static const Collator::EComparisonResult results[];
45
46 Collator *myCollation;
47 };
48
49 #endif /* #if !UCONFIG_NO_COLLATION */
50
51 #endif