ICU-2039 API test for one of resource bundle constructors

X-SVN-Rev: 10741
This commit is contained in:
Vladimir Weinstein 2002-12-18 22:49:36 +00:00
parent 17442f6744
commit bae7f08411

View File

@ -416,6 +416,8 @@ NewResourceBundleTest::TestOtherAPI(){
UErrorCode err = U_ZERO_ERROR;
const char* testdatapath;
testdatapath=loadTestData(err);
UnicodeString tDataPathUS = UnicodeString(testdatapath, "");
if(U_FAILURE(err))
{
errln("Could not load testdata.dat %s " + UnicodeString(u_errorName(err)));
@ -423,6 +425,12 @@ NewResourceBundleTest::TestOtherAPI(){
}
Locale *locale=new Locale("te_IN");
ResourceBundle test0(tDataPathUS, *locale, err);
if(U_FAILURE(err)){
errln("Construction failed");
return;
}
ResourceBundle test1(testdatapath, *locale, err);
if(U_FAILURE(err)){
errln("Construction failed");