ICU-21056 Remove obsolete logKnownIssues in CompactDecimalFormatTest

This commit is contained in:
Shane F. Carr 2020-08-11 20:51:41 -05:00
parent 8625158a7b
commit ab086feaa0

View File

@ -713,45 +713,33 @@ public class CompactDecimalFormatTest extends TestFmwk {
@Test
public void TestBug12689() {
if (logKnownIssue("12689", "CDF fails for numbers less than 1 thousand in most locales")) {
return;
}
CompactDecimalFormat cdf;
String result;
cdf = CompactDecimalFormat.getInstance(ULocale.forLanguageTag("en"), CompactStyle.SHORT);
result = cdf.format(new CurrencyAmount(123, Currency.getInstance("USD")));
assertEquals("CDF should correctly format 123 with currency in 'en'", "$120", result);
assertEquals("CDF should correctly format 123 with currency in 'en'", "$123", result);
cdf = CompactDecimalFormat.getInstance(ULocale.forLanguageTag("it"), CompactStyle.SHORT);
result = cdf.format(new CurrencyAmount(123, Currency.getInstance("EUR")));
assertEquals("CDF should correctly format 123 with currency in 'it'", "120 ", result);
assertEquals("CDF should correctly format 123 with currency in 'it'", "123\u00A0", result);
}
@Test
public void TestBug12688() {
if (logKnownIssue("12688", "CDF fails for numbers less than 1 million in 'it'")) {
return;
}
CompactDecimalFormat cdf;
String result;
cdf = CompactDecimalFormat.getInstance(ULocale.forLanguageTag("it"), CompactStyle.SHORT);
result = cdf.format(new CurrencyAmount(123000, Currency.getInstance("EUR")));
assertEquals("CDF should correctly format 123000 with currency in 'it'", "120000 ", result);
assertEquals("CDF should correctly format 123000 with currency in 'it'", "123.000\u00A0", result);
}
@Test
public void TestBug11319() {
if (logKnownIssue("11319", "CDF does not fall back from zh-Hant-HK to zh-Hant")) {
return;
}
CompactDecimalFormat cdf = CompactDecimalFormat.getInstance(new ULocale("zh-Hant-HK"), CompactStyle.SHORT);
CompactDecimalFormat cdf = CompactDecimalFormat.getInstance(new ULocale("yue-HK"), CompactStyle.SHORT);
String result = cdf.format(958000000L);
assertEquals("CDF should correctly format 958 million in zh-Hant-HK", "9.6億", result);
assertEquals("CDF should correctly format 958 million in yue-HK", "9.6億", result);
}
@Test