1999-10-26 17:16:13 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
|
|
|
* Copyright (C) 1999 Alan Liu and others. All rights reserved.
|
|
|
|
**********************************************************************
|
|
|
|
* Date Name Description
|
|
|
|
* 10/20/99 alan Creation.
|
|
|
|
**********************************************************************
|
|
|
|
*/
|
|
|
|
|
1999-10-20 22:08:09 +00:00
|
|
|
#ifndef _TESTUNISET
|
|
|
|
#define _TESTUNISET
|
|
|
|
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-10-20 22:08:09 +00:00
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
class UnicodeSet;
|
|
|
|
class UnicodeString;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* UnicodeSet test
|
|
|
|
*/
|
|
|
|
class UnicodeSetTest: public IntlTest {
|
|
|
|
|
|
|
|
void runIndexedTest(int32_t index, bool_t exec, char* &name, char* par=NULL);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
1999-12-22 22:57:04 +00:00
|
|
|
void TestPatterns(void);
|
2000-01-12 18:04:21 +00:00
|
|
|
void TestCategories(void);
|
1999-12-22 22:57:04 +00:00
|
|
|
void TestAddRemove(void);
|
1999-10-20 22:08:09 +00:00
|
|
|
|
2000-01-12 18:04:21 +00:00
|
|
|
void expectContainment(const UnicodeSet& set,
|
|
|
|
const UnicodeString& setName,
|
|
|
|
const UnicodeString& charsIn,
|
|
|
|
const UnicodeString& charsOut);
|
1999-10-26 17:16:13 +00:00
|
|
|
void expectPattern(UnicodeSet& set,
|
|
|
|
const UnicodeString& pattern,
|
|
|
|
const UnicodeString& expectedPairs);
|
|
|
|
void expectPairs(const UnicodeSet& set,
|
|
|
|
const UnicodeString& expectedPairs);
|
1999-10-20 22:08:09 +00:00
|
|
|
static UnicodeString escape(const UnicodeString& s);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|