• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 **********************************************************************
3 * Copyright (C) 1998-2011, 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 #include "dicttest.h"
23 
24 #define TESTCLASS(n,classname)        \
25     case n:                           \
26         name = #classname;            \
27         if (exec) {                   \
28             logln(#classname "---");  \
29             logln("");                \
30             classname t;              \
31             callTest(t, par);         \
32         }                             \
33         break
34 
35 
runIndexedTest(int32_t index,UBool exec,const char * & name,char * par)36 void IntlTestRBBI::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
37 {
38     if (exec) logln("TestSuite RuleBasedBreakIterator: ");
39     switch (index) {
40         TESTCLASS(0, RBBIAPITest);
41         TESTCLASS(1, RBBITest);
42         TESTCLASS(2, DictionaryWordTest);
43         default: name=""; break;
44     }
45 }
46 
47 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */
48