1 /********************************************************************
3 * Copyright (c) 1997-2003, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
8 * CollationGermanTest is a third level test class. This tests the locale
9 * specific primary, secondary and tertiary rules. For example, o-umlaut
10 * is sorted with expanding char e.
15 #include "unicode/utypes.h"
17 #if !UCONFIG_NO_COLLATION
21 class CollationGermanTest
: public IntlTestCollator
{
23 // If this is too small for the test data, just increase it.
24 // Just don't make it too large, otherwise the executable will get too big
25 enum EToken_Len
{ MAX_TOKEN_LEN
= 16 };
27 CollationGermanTest();
28 virtual ~CollationGermanTest();
29 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
31 // perform test with strength PRIMARY
32 void TestPrimary(/* char* par */);
34 // perform test with strength SECONDARY
35 void TestSecondary(/* char* par */);
37 // perform tests 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
[][2];
45 Collator
*myCollation
;
48 #endif /* #if !UCONFIG_NO_COLLATION */