ICU-45 Tests for RBBI

X-SVN-Rev: 593
This commit is contained in:
Madhu K 2000-01-15 01:51:06 +00:00
parent 379766b73b
commit 7b897b7cbf
2 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,50 @@
/*
*****************************************************************************************
* *
* COPYRIGHT: *
* (C) Copyright Taligent, Inc., 1997 *
* (C) Copyright International Business Machines Corporation, 1999-2000 *
* Licensed Material - Program-Property of IBM - All Rights Reserved. *
* US Government Users Restricted Rights - Use, duplication, or disclosure *
* restricted by GSA ADP Schedule Contract with IBM Corp. *
* *
*****************************************************************************************
*/
/***********************************************************************
* 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"
void IntlTestRBBI::runIndexedTest( int32_t index, bool_t exec, char* &name, char* par )
{
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;
}
}

View File

@ -0,0 +1,34 @@
/*
*****************************************************************************************
* *
* COPYRIGHT: *
* (C) Copyright Taligent, Inc., 1997 *
* (C) Copyright International Business Machines Corporation, 1999-2000 *
* Licensed Material - Program-Property of IBM - All Rights Reserved. *
* US Government Users Restricted Rights - Use, duplication, or disclosure *
* restricted by GSA ADP Schedule Contract with IBM Corp. *
* *
*****************************************************************************************
************************************************************************
* Date Name Description
* 12/14/99 Madhu Creation.
************************************************************************/
/**
* IntlTestRBBI is the top level test class for the RuleBasedBreakIterator tests
*/
#ifndef INTLTESTRBBI_H
#define INTLTESTRBBI_H
#include "unicode/utypes.h"
#include "intltest.h"
class IntlTestRBBI: public IntlTest {
public:
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
};
#endif