]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/escoll.h
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / test / intltest / escoll.h
1 /********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2003, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7 /**
8 * CollationSpanishTest is a third level test class. This tests the locale
9 * specific primary and tertiary rules. This Spanish sort uses the traditional
10 * sorting sequence. The Spanish modern sorting sequence does not sort
11 * ch and ll as unique characters.
12 */
13
14 #ifndef _ESCOLL
15 #define _ESCOLL
16
17 #include "unicode/utypes.h"
18
19 #if !UCONFIG_NO_COLLATION
20
21 #include "tscoll.h"
22
23 class CollationSpanishTest: 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 = 16 };
28
29 CollationSpanishTest();
30 virtual ~CollationSpanishTest();
31 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
32
33 // performs tests with strength PRIMARY
34 void TestPrimary(/* char* par */);
35
36 // prforms test with strength TERTIARY
37 void TestTertiary(/* char* par */);
38
39 private:
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