scuffed-code/icu4c/source/test/intltest/itconv.cpp

42 lines
1.1 KiB
C++
Raw Normal View History

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2001, International Business Machines Corporation and
* 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".
*/
#include "unicode/utypes.h"
1999-08-16 21:50:52 +00:00
#include "itconv.h"
#include "cppcnvt.h"
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:
name = "TestConvert";
1999-08-16 21:50:52 +00:00
if (exec) {
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
}
}