1/* 2********************************************************************** 3* Copyright (C) 1998-2012, 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#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 35void IntlTestRBBI::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) 36{ 37 if (exec) logln("TestSuite RuleBasedBreakIterator: "); 38 switch (index) { 39 TESTCLASS(0, RBBIAPITest); 40 TESTCLASS(1, RBBITest); 41 default: name=""; break; 42 } 43} 44 45#endif /* #if !UCONFIG_NO_BREAK_ITERATION */ 46