1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2003, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
10 * CollationFinnishTest is a third level test class. This tests the locale
11 * specific primary and tertiary rules. For example, a-ring sorts after z
12 * and w and v are equivalent.
18 #include "unicode/utypes.h"
20 #if !UCONFIG_NO_COLLATION
24 class CollationFinnishTest: public IntlTestCollator {
26 // If this is too small for the test data, just increase it.
27 // Just don't make it too large, otherwise the executable will get too big
28 enum EToken_Len { MAX_TOKEN_LEN = 16 };
30 CollationFinnishTest();
31 virtual ~CollationFinnishTest();
32 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
34 // perform tests with strength PRIMARY
35 void TestPrimary(/* char* par */);
37 // perform test with strength TERTIARY
38 void TestTertiary(/* char* par */);
41 static const UChar testSourceCases[][MAX_TOKEN_LEN];
42 static const UChar testTargetCases[][MAX_TOKEN_LEN];
43 static const Collator::EComparisonResult results[];
45 Collator *myCollation;
48 #endif /* #if !UCONFIG_NO_COLLATION */