1
/********************************************************************
3
* Copyright (c) 1997-2001, International Business Machines Corporation and
4
* others. All Rights Reserved.
5
********************************************************************/
8
* CollationDanishTest 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 a-umlaut sorts before ae ligatures. Additional test strings from the
11
* internet are also included.
19
class CollationDanishTest: public IntlTestCollator {
21
// If this is too small for the test data, just increase it.
22
// Just don't make it too large, otherwise the executable will get too big
23
enum EToken_Len { MAX_TOKEN_LEN = 24 };
25
CollationDanishTest();
26
virtual ~CollationDanishTest();
27
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
29
// main test routine, Tests rules specific to danish collation
30
void doTest( UnicodeString source, UnicodeString target, Collator::EComparisonResult result);
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 testBugs[][MAX_TOKEN_LEN];
40
static const UChar testNTList[][MAX_TOKEN_LEN];
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;