ICU-4354 remove tabs.

X-SVN-Rev: 17467
This commit is contained in:
Eric Mader 2005-04-06 00:38:48 +00:00
parent ae64d54339
commit 0e9c21e7e9
3 changed files with 35 additions and 35 deletions

View File

@ -487,10 +487,10 @@ IntlTest::IntlTest()
path = NULL;
LL_linestart = TRUE;
errorCount = 0;
dataErrorCount = 0;
dataErrorCount = 0;
verbose = FALSE;
no_err_msg = FALSE;
warn_on_missing_data = FALSE;
warn_on_missing_data = FALSE;
quick = FALSE;
leaks = FALSE;
testoutfp = stdout;
@ -563,7 +563,7 @@ int32_t IntlTest::getErrors( void )
int32_t IntlTest::getDataErrors( void )
{
return dataErrorCount;
return dataErrorCount;
}
UBool IntlTest::runTest( char* name, char* par )
@ -728,9 +728,9 @@ int32_t IntlTest::IncErrorCount( void )
int32_t IntlTest::IncDataErrorCount( void )
{
dataErrorCount++;
if (caller) caller->IncDataErrorCount();
return dataErrorCount;
dataErrorCount++;
if (caller) caller->IncDataErrorCount();
return dataErrorCount;
}
void IntlTest::err()
@ -754,9 +754,9 @@ void IntlTest::dataerr( const UnicodeString &message )
{
IncDataErrorCount();
if (!warn_on_missing_data) {
IncErrorCount();
}
if (!warn_on_missing_data) {
IncErrorCount();
}
if (!no_err_msg) LL_message( message, FALSE );
}
@ -765,9 +765,9 @@ void IntlTest::dataerrln( const UnicodeString &message )
{
IncDataErrorCount();
if (!warn_on_missing_data) {
IncErrorCount();
}
if (!warn_on_missing_data) {
IncErrorCount();
}
if (!no_err_msg) LL_message( message, TRUE );
}
@ -1036,7 +1036,7 @@ main(int argc, char* argv[])
major.setNoErrMsg( no_err_msg );
major.setQuick( quick );
major.setLeaks( leaks );
major.setWarnOnMissingData( warnOnMissingData );
major.setWarnOnMissingData( warnOnMissingData );
fprintf(stdout, "-----------------------------------------------\n");
fprintf(stdout, " IntlTest (C++) Test Suite for \n");
fprintf(stdout, " International Components for Unicode %s\n", U_ICU_VERSION);
@ -1047,7 +1047,7 @@ main(int argc, char* argv[])
fprintf(stdout, " No error messages (n) : %s\n", (no_err_msg? "On" : "Off"));
fprintf(stdout, " Exhaustive (e) : %s\n", (!quick? "On" : "Off"));
fprintf(stdout, " Leaks (l) : %s\n", (leaks? "On" : "Off"));
fprintf(stdout, " Warn on missing data (w) : %s\n", (warnOnMissingData? "On" : "Off"));
fprintf(stdout, " Warn on missing data (w) : %s\n", (warnOnMissingData? "On" : "Off"));
fprintf(stdout, "-----------------------------------------------\n");
/* Check whether ICU will initialize without forcing the build data directory into
@ -1187,19 +1187,19 @@ main(int argc, char* argv[])
fprintf(stdout, "OK: All tests passed without error.\n");
if (major.getDataErrors() != 0) {
fprintf(stdout, "\t*WARNING* some data-loading errors were ignored by the -w option.\n");
}
if (major.getDataErrors() != 0) {
fprintf(stdout, "\t*WARNING* some data-loading errors were ignored by the -w option.\n");
}
}else{
fprintf(stdout, "Errors in total: %ld.\n", (long)major.getErrors());
major.printErrors();
if (major.getDataErrors() != 0) {
fprintf(stdout, "\t*Note* some errors are data-loading related. If the data used is not the \n"
"\tstock ICU data (i.e some have been added or removed), consider using\n"
"\tthe '-w' option to turn these errors into warnings.\n");
}
if (major.getDataErrors() != 0) {
fprintf(stdout, "\t*Note* some errors are data-loading related. If the data used is not the \n"
"\tstock ICU data (i.e some have been added or removed), consider using\n"
"\tthe '-w' option to turn these errors into warnings.\n");
}
/* Call afterwards to display errors. */
u_cleanup();

View File

@ -78,10 +78,10 @@ public:
virtual UBool setNoErrMsg( UBool no_err_msg = TRUE );
virtual UBool setQuick( UBool quick = TRUE );
virtual UBool setLeaks( UBool leaks = TRUE );
virtual UBool setWarnOnMissingData( UBool warn_on_missing_data = TRUE );
virtual UBool setWarnOnMissingData( UBool warn_on_missing_data = TRUE );
virtual int32_t getErrors( void );
virtual int32_t getDataErrors (void );
virtual int32_t getDataErrors (void );
virtual void setCaller( IntlTest* callingTest ); // for internal use only
virtual void setPath( char* path ); // for internal use only
@ -104,9 +104,9 @@ public:
virtual void errln( const UnicodeString &message );
virtual void dataerr( const UnicodeString &message );
virtual void dataerr( const UnicodeString &message );
virtual void dataerrln( const UnicodeString &message );
virtual void dataerrln( const UnicodeString &message );
// convenience functions: sprintf() + errln() etc.
void log(const char *fmt, ...);
@ -115,8 +115,8 @@ public:
void infoln(const char *fmt, ...);
void err(const char *fmt, ...);
void errln(const char *fmt, ...);
void dataerr(const char *fmt, ...);
void dataerrln(const char *fmt, ...);
void dataerr(const char *fmt, ...);
void dataerrln(const char *fmt, ...);
// Print ALL named errors encountered so far
void printErrors();
@ -174,7 +174,7 @@ protected:
virtual int32_t IncErrorCount( void );
virtual int32_t IncDataErrorCount( void );
virtual int32_t IncDataErrorCount( void );
virtual UBool callTest( IntlTest& testToBeCalled, char* par );
@ -183,14 +183,14 @@ protected:
UBool no_err_msg;
UBool quick;
UBool leaks;
UBool warn_on_missing_data;
UBool warn_on_missing_data;
private:
UBool LL_linestart;
int32_t LL_indentlevel;
int32_t errorCount;
int32_t dataErrorCount;
int32_t dataErrorCount;
IntlTest* caller;
char* path; // specifies subtests

View File

@ -1194,10 +1194,10 @@ LocaleTest::TestEuroSupport()
NumberFormat *nf = NumberFormat::createCurrencyInstance(loc, status);
UnicodeString pos;
if (U_FAILURE(status)) {
dataerrln("Error calling NumberFormat::createCurrencyInstance(%s)", *locales);
continue;
}
if (U_FAILURE(status)) {
dataerrln("Error calling NumberFormat::createCurrencyInstance(%s)", *locales);
continue;
}
nf->format(271828.182845, pos);
UnicodeString neg;