2000-01-15 01:51:06 +00:00
|
|
|
/*
|
2000-01-15 02:00:06 +00:00
|
|
|
**********************************************************************
|
2001-03-21 20:09:56 +00:00
|
|
|
* Copyright (C) 1998-2001, 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"
|
|
|
|
#include "itrbbi.h"
|
|
|
|
#include "rbbiapts.h"
|
|
|
|
#include "rbbitst.h"
|
|
|
|
|
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) {
|
|
|
|
case 0:
|
|
|
|
name = "RBBIAPITest";
|
|
|
|
if (exec) {
|
|
|
|
logln("RBBIAPITest--"); logln("");
|
|
|
|
RBBIAPITest test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
name = "RBBITest";
|
|
|
|
if (exec) {
|
|
|
|
logln("RBBITest---"); logln("");
|
|
|
|
RBBITest test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default: name=""; break;
|
2000-08-11 22:26:55 +00:00
|
|
|
}
|
2000-01-15 01:51:06 +00:00
|
|
|
}
|
|
|
|
|