home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / intltest / frcoll.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  2.2 KB  |  66 lines

  1. /*
  2. *****************************************************************************************
  3. *                                                                                       *
  4. * COPYRIGHT:                                                                            *
  5. *   (C) Copyright Taligent, Inc.,  1997                                                 *
  6. *   (C) Copyright International Business Machines Corporation,  1997-1998                    *
  7. *   Licensed Material - Program-Property of IBM - All Rights Reserved.                  *
  8. *   US Government Users Restricted Rights - Use, duplication, or disclosure             *
  9. *   restricted by GSA ADP Schedule Contract with IBM Corp.                              *
  10. *                                                                                       *
  11. *****************************************************************************************
  12. */
  13.  
  14. /**
  15.  * CollationFrenchTest is a third level test class. This tests the locale
  16.  * specific tertiary rules.  For example, the French secondary sorting on
  17.  * accented characters.
  18.  */
  19. #ifndef _FRCOLL
  20. #define _FRCOLL
  21.  
  22. #ifndef _UTYPES
  23. #include "utypes.h"
  24. #endif
  25.  
  26. #ifndef _COLL
  27. #include "coll.h"
  28. #endif
  29.  
  30. #ifndef _INTLTEST
  31. #include "intltest.h"
  32. #endif
  33.  
  34. class CollationFrenchTest: public IntlTest {
  35. public:
  36.     // static constants
  37.     enum EToken_Len { MAX_TOKEN_LEN = 128 };
  38.  
  39.     CollationFrenchTest();
  40.     ~CollationFrenchTest();
  41.     void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
  42.  
  43.     // amin test routine, test rules specific to the french locale
  44.     void doTest( UnicodeString source, UnicodeString target, Collator::EComparisonResult result);
  45.  
  46.     // perform tests with strength SECONDARY
  47.     void TestSecondary( char* par );
  48.  
  49.     // perform tests with strength TERTIARY
  50.     void TestTertiary( char* par );
  51.  
  52.     // perform extra tests
  53.     void TestExtra( char* par );
  54.  
  55. private:
  56.     static const UChar testSourceCases[][MAX_TOKEN_LEN];
  57.     static const UChar testTargetCases[][MAX_TOKEN_LEN];
  58.     static const UChar testBugs[][MAX_TOKEN_LEN];
  59.     static const Collator::EComparisonResult results[];
  60.     static const UChar testAcute[][MAX_TOKEN_LEN];
  61.  
  62.     Collator *myCollation;
  63. };
  64.  
  65. #endif
  66.