ICU-45 Tests for RBBI
X-SVN-Rev: 593
This commit is contained in:
parent
379766b73b
commit
7b897b7cbf
50
icu4c/source/test/intltest/itrbbi.cpp
Normal file
50
icu4c/source/test/intltest/itrbbi.cpp
Normal 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;
|
||||
}
|
||||
}
|
||||
|
34
icu4c/source/test/intltest/itrbbi.h
Normal file
34
icu4c/source/test/intltest/itrbbi.h
Normal 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
|
Loading…
Reference in New Issue
Block a user