1 /********************************************************************
3 * Copyright (c) 1997-2003, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
8 * CollationTurkishTest is a third level test class. This tests the locale
9 * specific primary and tertiary rules. For example, the dotless-i and dotted-I
10 * sorts between h and j.
16 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_COLLATION
22 class CollationTurkishTest
: 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 CollationTurkishTest();
29 virtual ~CollationTurkishTest();
30 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
32 // perform tests for turkish locale with strength PRIMARY
33 void TestPrimary(/* char* par */);
35 // perform tests for turkish locale with strength TERTIARY
36 void TestTertiary(/* char* par */);
40 static const UChar testSourceCases
[][MAX_TOKEN_LEN
];
41 static const UChar testTargetCases
[][MAX_TOKEN_LEN
];
42 static const Collator::EComparisonResult results
[];
44 Collator
*myCollation
;
47 #endif /* #if !UCONFIG_NO_COLLATION */