ICU-8407 IntlTestNumberFormat::testLocale() - don't do scientific test for en_US_POSIX

X-SVN-Rev: 29584
This commit is contained in:
Eric Mader 2011-03-09 17:17:19 +00:00
parent e44c32c669
commit f244b0674d

View file

@ -11,6 +11,7 @@
#include "unicode/decimfmt.h"
#include "tsnmfmt.h"
#include "putilimp.h"
#include "cstring.h"
#include <float.h>
#include <stdlib.h>
@ -94,11 +95,13 @@ IntlTestNumberFormat::testLocale(/* char* par, */const Locale& locale, const Uni
fFormat = NumberFormat::createPercentInstance(locale, fStatus);
testFormat(/* par */);
name = "Scientific test";
logln((UnicodeString)name + " (" + localeName + ")");
fStatus = U_ZERO_ERROR;
fFormat = NumberFormat::createScientificInstance(locale, fStatus);
testFormat(/* par */);
if (uprv_strcmp(locale.getName(), "en_US_POSIX") != 0) {
name = "Scientific test";
logln((UnicodeString)name + " (" + localeName + ")");
fStatus = U_ZERO_ERROR;
fFormat = NumberFormat::createScientificInstance(locale, fStatus);
testFormat(/* par */);
}
}
double IntlTestNumberFormat::randDouble()