mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-13568 Fixing uninitialized memory in test code.
X-SVN-Rev: 40851
This commit is contained in:
parent
4b36c0ad9c
commit
023af04592
1 changed files with 1 additions and 5 deletions
|
@ -8923,7 +8923,7 @@ void NumberFormatTest::checkExceptionIssue11735() {
|
|||
}
|
||||
|
||||
void NumberFormatTest::Test11035_FormatCurrencyAmount() {
|
||||
UErrorCode status;
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
double amount = 12345.67;
|
||||
const char16_t* expected = u"12,345$67 ";
|
||||
|
||||
|
@ -8931,10 +8931,6 @@ 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