1 /***********************************************************************
3 * Copyright (c) 1997-2004, International Business Machines Corporation
4 * and others. All Rights Reserved.
5 ***********************************************************************/
8 * CollationDummyTest is a third level test class. This tests creation of
9 * a customized collator object. For example, number 1 to be sorted
10 * equlivalent to word 'one'.
16 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_COLLATION
20 #include "unicode/tblcoll.h"
23 class CollationDummyTest
: public IntlTestCollator
{
25 // If this is too small for the test data, just increase it.
26 // Just don't make it too large, otherwise the executable will get too big
27 enum EToken_Len
{ MAX_TOKEN_LEN
= 16 };
30 virtual ~CollationDummyTest();
31 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* /*par = NULL */);
33 // perform test with strength PRIMARY
34 void TestPrimary(/* char* par */);
36 // perform test with strength SECONDARY
37 void TestSecondary(/* char* par */);
39 // perform test with strength tertiary
40 void TestTertiary(/* char* par */);
42 // perform extra tests
43 void TestExtra(/* char* par */);
50 static const Collator::EComparisonResult results
[];
52 RuleBasedCollator
*myCollation
;
55 #endif /* #if !UCONFIG_NO_COLLATION */