]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itrbbi.cpp
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / test / intltest / itrbbi.cpp
1 /*
2 **********************************************************************
3 * Copyright (C) 1998-2001, International Business Machines Corporation
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
23 void IntlTestRBBI::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
24 {
25 if (exec) logln("TestSuite RuleBasedBreakIterator: ");
26 switch (index) {
27 case 0:
28 name = "RBBIAPITest";
29 if (exec) {
30 logln("RBBIAPITest--"); logln("");
31 RBBIAPITest test;
32 callTest( test, par );
33 }
34 break;
35
36 case 1:
37 name = "RBBITest";
38 if (exec) {
39 logln("RBBITest---"); logln("");
40 RBBITest test;
41 callTest( test, par );
42 }
43 break;
44 default: name=""; break;
45 }
46 }
47
48 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */