2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2001-03-21 20:09:56 +00:00
|
|
|
* Copyright (c) 1997-2001, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* IntlTestConvert is the medium level test class for everything in the directory "utility".
|
|
|
|
*/
|
|
|
|
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "itconv.h"
|
|
|
|
#include "cppcnvt.h"
|
|
|
|
|
2000-08-14 21:42:36 +00:00
|
|
|
void IntlTestConvert::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par )
|
1999-08-16 21:50:52 +00:00
|
|
|
{
|
|
|
|
if (exec) logln("TestSuite Convert: ");
|
|
|
|
switch (index) {
|
|
|
|
case 0:
|
2000-01-08 00:54:57 +00:00
|
|
|
name = "TestConvert";
|
1999-08-16 21:50:52 +00:00
|
|
|
if (exec) {
|
2000-01-08 00:54:57 +00:00
|
|
|
logln("TestConvert---"); logln("");
|
|
|
|
ConvertTest test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
name = "TestAmbiguous";
|
|
|
|
if (exec) {
|
|
|
|
logln("TestAmbiguous---"); logln("");
|
1999-08-16 21:50:52 +00:00
|
|
|
ConvertTest test;
|
|
|
|
callTest( test, par );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default: name = ""; break; //needed to end loop
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|