2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
|
|
|
* Copyright (c) 1997-1999, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* CollationISOTest is a third level test class. This tests the ISO 14651
|
|
|
|
* test entries with the French locale.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ISOCOLL
|
|
|
|
#define _ISOCOLL
|
|
|
|
|
|
|
|
#ifndef _UTYPES
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _COLL
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/coll.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _TBLCOLL
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/tblcoll.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _INTLTEST
|
|
|
|
#include "intltest.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class CollationISOTest: public IntlTest {
|
|
|
|
public:
|
|
|
|
// static constants
|
|
|
|
enum EToken_Len { MAX_TOKEN_LEN = 5 };
|
|
|
|
|
|
|
|
CollationISOTest();
|
2000-04-18 17:58:18 +00:00
|
|
|
virtual ~CollationISOTest();
|
2000-08-14 21:42:36 +00:00
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
// test proper comparing for 3774 entries of ISO 14651 characters
|
|
|
|
void TestAll( char* par );
|
|
|
|
|
|
|
|
private:
|
|
|
|
void quickSort(CollationKey** keyArray, int *indexes, int lo0, int hi0);
|
|
|
|
|
|
|
|
static const UChar testCases[][MAX_TOKEN_LEN];
|
|
|
|
|
|
|
|
Collator *myCollation;
|
|
|
|
};
|
|
|
|
#endif
|