2001-11-13 19:45:55 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
|
|
|
* Copyright (c) 1997-2001, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef CONTRACTIONTABLETEST_H
|
|
|
|
#define CONTRACTIONTABLETEST_H
|
|
|
|
|
|
|
|
#include "tscoll.h"
|
|
|
|
#include "ucol_cnt.h"
|
2001-12-19 07:02:47 +00:00
|
|
|
#include "utrie.h"
|
2001-11-13 19:45:55 +00:00
|
|
|
|
|
|
|
class ContractionTableTest: public IntlTestCollator {
|
|
|
|
public:
|
|
|
|
ContractionTableTest();
|
|
|
|
virtual ~ContractionTableTest();
|
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
|
|
|
|
|
|
|
|
// performs test with strength TERIARY
|
|
|
|
void TestGrowTable(/* char* par */);
|
|
|
|
void TestSetContraction();
|
|
|
|
void TestAddATableElement();
|
|
|
|
void TestClone();
|
|
|
|
void TestChangeContraction();
|
|
|
|
void TestChangeLastCE();
|
|
|
|
private:
|
|
|
|
CntTable *testTable, *testClone;
|
2001-12-19 07:02:47 +00:00
|
|
|
/*CompactEIntArray *testMapping;*/
|
|
|
|
UNewTrie *testMapping;
|
2001-11-13 19:45:55 +00:00
|
|
|
UErrorCode status;
|
|
|
|
};
|
|
|
|
#endif
|