1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/********************************************************************
4 * COPYRIGHT:
5 * Copyright (c) 1997-2002, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8
9#ifndef CHARITERTEST_H
10#define CHARITERTEST_H
11
12#include "intltest.h"
13#include "unicode/uiter.h"
14
15/**
16 * Some tests for CharacterIterator and StringCharacterIterator
17 **/
18class CharIterTest: public IntlTest {
19public:
20    CharIterTest();
21
22    void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
23
24    /**
25     * Test Constructors and operators ==, != and a few other methods
26     **/
27    void TestConstructionAndEquality(void);
28    /**
29     * Test Constructors and operators ==, != and a few other methods for UChariter
30     **/
31    void TestConstructionAndEqualityUChariter(void);
32    /**
33     * test the iteration functionality in different ways
34     **/
35    void TestIteration(void);
36     /**
37     * test the iteration functionality in different ways with  unicodestring of UChar32's
38     **/
39    void TestIterationUChar32(void);
40
41    void TestUCharIterator();
42    void TestUCharIterator(UCharIterator *iter, CharacterIterator &ci, const char *moves, const char *which);
43    void TestCoverage();
44    void TestCharIteratorSubClasses();
45};
46
47#endif
48
49