]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/itrbbi.cpp
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / test / intltest / itrbbi.cpp
CommitLineData
b75a7d8f
A
1/*
2**********************************************************************
4388f060 3* Copyright (C) 1998-2012, International Business Machines Corporation
b75a7d8f
A
4* and others. All Rights Reserved.
5**********************************************************************
6*/
7/***********************************************************************
8* Date Name Description
9* 12/14/99 Madhu Creation.
10***********************************************************************/
11/**
12 * IntlTestRBBI is the medium level test class for RuleBasedBreakIterator
13 */
14
15#include "unicode/utypes.h"
16
17#if !UCONFIG_NO_BREAK_ITERATION
18
19#include "itrbbi.h"
20#include "rbbiapts.h"
21#include "rbbitst.h"
22
4388f060
A
23#define TESTCLASS(n,classname) \
24 case n: \
25 name = #classname; \
26 if (exec) { \
27 logln(#classname "---"); \
28 logln(""); \
29 classname t; \
30 callTest(t, par); \
31 } \
32 break
33
34
b75a7d8f
A
35void IntlTestRBBI::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
36{
37 if (exec) logln("TestSuite RuleBasedBreakIterator: ");
38 switch (index) {
4388f060
A
39 TESTCLASS(0, RBBIAPITest);
40 TESTCLASS(1, RBBITest);
b75a7d8f
A
41 default: name=""; break;
42 }
43}
44
45#endif /* #if !UCONFIG_NO_BREAK_ITERATION */