OLD | NEW |
(Empty) | |
| 1 /*********************************************************************** |
| 2 * COPYRIGHT: |
| 3 * Copyright (c) 1997-2004, International Business Machines Corporation |
| 4 * and others. All Rights Reserved. |
| 5 ***********************************************************************/ |
| 6 |
| 7 /** |
| 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'. |
| 11 */ |
| 12 |
| 13 #ifndef _ALLCOLL |
| 14 #define _ALLCOLL |
| 15 |
| 16 #include "unicode/utypes.h" |
| 17 |
| 18 #if !UCONFIG_NO_COLLATION |
| 19 |
| 20 #include "unicode/tblcoll.h" |
| 21 #include "tscoll.h" |
| 22 |
| 23 class CollationDummyTest: public IntlTestCollator { |
| 24 public: |
| 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 }; |
| 28 |
| 29 CollationDummyTest(); |
| 30 virtual ~CollationDummyTest(); |
| 31 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*p
ar = NULL */); |
| 32 |
| 33 // perform test with strength PRIMARY |
| 34 void TestPrimary(/* char* par */); |
| 35 |
| 36 // perform test with strength SECONDARY |
| 37 void TestSecondary(/* char* par */); |
| 38 |
| 39 // perform test with strength tertiary |
| 40 void TestTertiary(/* char* par */); |
| 41 |
| 42 // perform extra tests |
| 43 void TestExtra(/* char* par */); |
| 44 |
| 45 void TestIdentical(); |
| 46 |
| 47 void TestJB581(); |
| 48 |
| 49 private: |
| 50 static const Collator::EComparisonResult results[]; |
| 51 |
| 52 RuleBasedCollator *myCollation; |
| 53 }; |
| 54 |
| 55 #endif /* #if !UCONFIG_NO_COLLATION */ |
| 56 |
| 57 #endif |
OLD | NEW |