2001-03-21 18:10:38 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2003-06-03 20:58:22 +00:00
|
|
|
* Copyright (c) 1997-2003, International Business Machines Corporation and
|
2001-03-21 18:10:38 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
|
2001-08-31 18:02:09 +00:00
|
|
|
#ifndef LOTUSCOLLATIONKOREANTEST_H
|
|
|
|
#define LOTUSCOLLATIONKOREANTEST_H
|
2001-03-21 18:10:38 +00:00
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_COLLATION
|
|
|
|
|
2001-08-31 18:02:09 +00:00
|
|
|
#include "tscoll.h"
|
2001-03-21 18:10:38 +00:00
|
|
|
|
2001-08-31 18:02:09 +00:00
|
|
|
class LotusCollationKoreanTest: public IntlTestCollator {
|
2001-03-21 18:10:38 +00:00
|
|
|
public:
|
2001-03-30 01:22:03 +00:00
|
|
|
// If this is too small for the test data, just increase it.
|
|
|
|
// Just don't make it too large, otherwise the executable will get too big
|
|
|
|
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
2001-03-21 18:10:38 +00:00
|
|
|
|
|
|
|
LotusCollationKoreanTest();
|
|
|
|
virtual ~LotusCollationKoreanTest();
|
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
|
|
|
|
|
|
|
|
// performs test with strength TERIARY
|
|
|
|
void TestTertiary(/* char* par */);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static const UChar testSourceCases[][MAX_TOKEN_LEN];
|
|
|
|
static const UChar testTargetCases[][MAX_TOKEN_LEN];
|
2003-03-19 13:21:51 +00:00
|
|
|
static const Collator::EComparisonResult results[];
|
2001-03-21 18:10:38 +00:00
|
|
|
|
|
|
|
Collator *myCollation;
|
|
|
|
};
|
2002-09-21 00:43:14 +00:00
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_COLLATION */
|
|
|
|
|
2001-08-31 18:20:59 +00:00
|
|
|
#endif
|