mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-21431 Adds a check to an ICU4C unit test to prevent a segmentation fault
if this test runs without ICU data.
This commit is contained in:
parent
c3ed0c5371
commit
563f8b550a
1 changed files with 3 additions and 0 deletions
|
@ -10069,6 +10069,9 @@ void NumberFormatTest::Test10997_FormatCurrency() {
|
|||
|
||||
UErrorCode error = U_ZERO_ERROR;
|
||||
NumberFormat* fmt = NumberFormat::createCurrencyInstance(Locale::getUS(), error);
|
||||
if (U_FAILURE(error)) {
|
||||
return;
|
||||
}
|
||||
fmt->setMinimumFractionDigits(4);
|
||||
fmt->setMaximumFractionDigits(4);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue