blob: 20a62ff322988fdebb0d7d35823728285ddff99e [file] [log] [blame]
* Copyright (c) 2002, International Business Machines Corporation and
* others. All Rights Reserved.
* UCAConformanceTest performs conformance tests defined in the data
* files. ICU ships with stub data files, as the whole test are too
* long. To do the whole test, download the test files.
#ifndef _UCACONF_TST
#define _UCACONF_TST
#include "unicode/utypes.h"
#include "unicode/tblcoll.h"
#include "unicode/ustring.h"
#include "tscoll.h"
#include "uparse.h"
#include "cstring.h"
#include <stdio.h>
class UCAConformanceTest: public IntlTestCollator {
virtual ~UCAConformanceTest();
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par = NULL */);
void TestTableNonIgnorable(/* par */);
void TestTableShifted(/* par */);
void TestRulesNonIgnorable(/* par */);
void TestRulesShifted(/* par */);
void initRbUCA();
void setCollNonIgnorable(UCollator *coll);
void setCollShifted(UCollator *coll);
void testConformance(UCollator *coll);
void openTestFile(const char *type);
UCollator *UCA;
UCollator *rbUCA;
FILE *testFile;
UErrorCode status;
char testDataPath[1024];
#endif /* #if !UCONFIG_NO_COLLATION */