mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-13568 Fix crasher introduced in r40839 (bad test code)
Root cause (why the construction failed) unknown. X-SVN-Rev: 40850
This commit is contained in:
parent
195d9b256a
commit
4b36c0ad9c
1 changed files with 4 additions and 0 deletions
|
@ -8931,6 +8931,10 @@ void NumberFormatTest::Test11035_FormatCurrencyAmount() {
|
|||
|
||||
Locale loc1 = Locale("pt_PT");
|
||||
NumberFormat* fmt1 = NumberFormat::createCurrencyInstance(loc1, status);
|
||||
if (U_FAILURE(status)) {
|
||||
errln("Fail: could not create currency instance: %s\n", u_errorName(status));
|
||||
return;
|
||||
}
|
||||
fmt1->setCurrency(u"PTE", status);
|
||||
UnicodeString actualSetCurrency;
|
||||
fmt1->format(amount, actualSetCurrency);
|
||||
|
|
Loading…
Add table
Reference in a new issue