2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2002-11-26 21:18:47 +00:00
|
|
|
* Copyright (c) 1997-2002, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2001-08-31 18:02:09 +00:00
|
|
|
#ifndef CHARITERTEST_H
|
|
|
|
#define CHARITERTEST_H
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "intltest.h"
|
2002-03-19 06:55:07 +00:00
|
|
|
#include "unicode/uiter.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Some tests for CharacterIterator and StringCharacterIterator
|
|
|
|
**/
|
|
|
|
class CharIterTest: public IntlTest {
|
|
|
|
public:
|
|
|
|
CharIterTest();
|
|
|
|
|
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 Constructors and operators ==, != and a few other methods
|
|
|
|
**/
|
|
|
|
void TestConstructionAndEquality(void);
|
2000-06-22 01:09:15 +00:00
|
|
|
/**
|
|
|
|
* Test Constructors and operators ==, != and a few other methods for UChariter
|
|
|
|
**/
|
|
|
|
void TestConstructionAndEqualityUChariter(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
/**
|
|
|
|
* test the iteration functionality in different ways
|
|
|
|
**/
|
|
|
|
void TestIteration(void);
|
2000-08-14 21:42:36 +00:00
|
|
|
/**
|
2000-05-23 20:51:39 +00:00
|
|
|
* test the iteration functionality in different ways with unicodestring of UChar32's
|
|
|
|
**/
|
|
|
|
void TestIterationUChar32(void);
|
2002-03-19 00:20:53 +00:00
|
|
|
|
|
|
|
void TestUCharIterator();
|
|
|
|
void TestUCharIterator(UCharIterator *iter, CharacterIterator &ci, const char *moves, const char *which);
|
2002-11-27 02:40:34 +00:00
|
|
|
void TestCoverage();
|
2002-11-26 21:18:47 +00:00
|
|
|
void TestCharIteratorSubClasses();
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
|
2001-08-31 18:02:09 +00:00
|
|
|
#endif
|
1999-08-16 21:50:52 +00:00
|
|
|
|