Home | History | Annotate | Download | only in intltest
      1 /********************************************************************
      2  * COPYRIGHT:
      3  * Copyright (c) 1997-2006, International Business Machines Corporation and
      4  * others. All Rights Reserved.
      5  ********************************************************************/
      6 
      7 
      8 #ifndef CONTRACTIONTABLETEST_H
      9 #define CONTRACTIONTABLETEST_H
     10 
     11 #include "unicode/utypes.h"
     12 
     13 #if !UCONFIG_NO_COLLATION
     14 
     15 #include "tscoll.h"
     16 #include "ucol_cnt.h"
     17 #include "utrie.h"
     18 
     19 class ContractionTableTest: public IntlTestCollator {
     20 public:
     21     ContractionTableTest();
     22     virtual ~ContractionTableTest();
     23     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
     24 
     25     // performs test with strength TERIARY
     26     void TestGrowTable(/* char* par */);
     27     void TestSetContraction();
     28     void TestAddATableElement();
     29     void TestClone();
     30     void TestChangeContraction();
     31     void TestChangeLastCE();
     32     void TestErrorCodeChecking();
     33 private:
     34     CntTable *testTable, *testClone;
     35     /*CompactEIntArray *testMapping;*/
     36     UNewTrie *testMapping;
     37 };
     38 
     39 #endif /* #if !UCONFIG_NO_COLLATION */
     40 
     41 #endif
     42