mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-3961 Can't reproduce. Added test.
X-SVN-Rev: 25800
This commit is contained in:
parent
cd3511d43d
commit
bda3b4e16c
1 changed files with 12 additions and 0 deletions
|
@ -2233,4 +2233,16 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void TestSetCurrency() {
|
||||
DecimalFormatSymbols decf1 = DecimalFormatSymbols.getInstance(ULocale.US);
|
||||
DecimalFormatSymbols decf2 = DecimalFormatSymbols.getInstance(ULocale.US);
|
||||
decf2.setCurrencySymbol("UKD");
|
||||
DecimalFormat format1 = new DecimalFormat("000.000", decf1);
|
||||
DecimalFormat format2 = new DecimalFormat("000.000", decf2);
|
||||
Currency euro = Currency.getInstance("EUR");
|
||||
format1.setCurrency(euro);
|
||||
format2.setCurrency(euro);
|
||||
assertEquals("Reset with currency symbol", format1, format2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue