1 /********************************************************************
3 * Copyright (c) 1997-2003, 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.
16 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_COLLATION
22 class CollationFinnishTest
: public IntlTestCollator
{
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 };
28 CollationFinnishTest();
29 virtual ~CollationFinnishTest();
30 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
32 // perform tests with strength PRIMARY
33 void TestPrimary(/* char* par */);
35 // perform test with strength TERTIARY
36 void TestTertiary(/* char* par */);
39 static const UChar testSourceCases
[][MAX_TOKEN_LEN
];
40 static const UChar testTargetCases
[][MAX_TOKEN_LEN
];
41 static const Collator::EComparisonResult results
[];
43 Collator
*myCollation
;
46 #endif /* #if !UCONFIG_NO_COLLATION */