1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2002, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
10 #define CHARITERTEST_H
13 #include "unicode/uiter.h"
16 * Some tests for CharacterIterator and StringCharacterIterator
18 class CharIterTest: public IntlTest {
22 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
25 * Test Constructors and operators ==, != and a few other methods
27 void TestConstructionAndEquality(void);
29 * Test Constructors and operators ==, != and a few other methods for UChariter
31 void TestConstructionAndEqualityUChariter(void);
33 * test the iteration functionality in different ways
35 void TestIteration(void);
37 * test the iteration functionality in different ways with unicodestring of UChar32's
39 void TestIterationUChar32(void);
41 void TestUCharIterator();
42 void TestUCharIterator(UCharIterator *iter, CharacterIterator &ci, const char *moves, const char *which);
44 void TestCharIteratorSubClasses();