1
/********************************************************************
3
* Copyright (c) 1997-2001, International Business Machines Corporation and
4
* others. All Rights Reserved.
5
********************************************************************/
8
* CollationFinnishTest 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 w and v are equivalent.
18
class CollationFinnishTest: public IntlTestCollator {
20
// If this is too small for the test data, just increase it.
21
// Just don't make it too large, otherwise the executable will get too big
22
enum EToken_Len { MAX_TOKEN_LEN = 16 };
24
CollationFinnishTest();
25
virtual ~CollationFinnishTest();
26
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
28
// main test routine, tests rules specific to the finish locale
29
void doTest( UnicodeString source, UnicodeString target, Collator::EComparisonResult result);
31
// perform tests with strength PRIMARY
32
void TestPrimary(/* char* par */);
34
// perform test with strength TERTIARY
35
void TestTertiary(/* char* par */);
38
static const UChar testSourceCases[][MAX_TOKEN_LEN];
39
static const UChar testTargetCases[][MAX_TOKEN_LEN];
40
static const Collator::EComparisonResult results[];
42
Collator *myCollation;