2000-01-15 01:51:06 +00:00
|
|
|
/*
|
2000-01-15 02:00:06 +00:00
|
|
|
**********************************************************************
|
2012-01-20 02:35:00 +00:00
|
|
|
* Copyright (C) 1998-2012, International Business Machines Corporation
|
2000-01-15 02:00:06 +00:00
|
|
|
* and others. All Rights Reserved.
|
|
|
|
**********************************************************************
|
2000-01-15 01:51:06 +00:00
|
|
|
*/
|
|
|
|
/***********************************************************************
|
|
|
|
* Date Name Description
|
|
|
|
* 12/14/99 Madhu Creation.
|
|
|
|
***********************************************************************/
|
|
|
|
/**
|
|
|
|
* IntlTestRBBI is the medium level test class for RuleBasedBreakIterator
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
2002-09-21 00:43:14 +00:00
|
|
|
|
|
|
|
#if !UCONFIG_NO_BREAK_ITERATION
|
|
|
|
|
2000-01-15 01:51:06 +00:00
|
|
|
#include "itrbbi.h"
|
|
|
|
#include "rbbiapts.h"
|
|
|
|
#include "rbbitst.h"
|
2011-07-13 06:49:42 +00:00
|
|
|
|
|
|
|
#define TESTCLASS(n,classname) \
|
|
|
|
case n: \
|
|
|
|
name = #classname; \
|
|
|
|
if (exec) { \
|
|
|
|
logln(#classname "---"); \
|
|
|
|
logln(""); \
|
|
|
|
classname t; \
|
|
|
|
callTest(t, par); \
|
|
|
|
} \
|
|
|
|
break
|
|
|
|
|
2000-01-15 01:51:06 +00:00
|
|
|
|
2000-08-14 21:42:36 +00:00
|
|
|
void IntlTestRBBI::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
|
2000-01-15 01:51:06 +00:00
|
|
|
{
|
|
|
|
if (exec) logln("TestSuite RuleBasedBreakIterator: ");
|
|
|
|
switch (index) {
|
2011-07-13 06:49:42 +00:00
|
|
|
TESTCLASS(0, RBBIAPITest);
|
|
|
|
TESTCLASS(1, RBBITest);
|
2000-01-15 01:51:06 +00:00
|
|
|
default: name=""; break;
|
2000-08-11 22:26:55 +00:00
|
|
|
}
|
2000-01-15 01:51:06 +00:00
|
|
|
}
|
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_BREAK_ITERATION */
|