mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-13568 Adding assertSuccess in test function.
X-SVN-Rev: 40852
This commit is contained in:
parent
023af04592
commit
61191ffda3
1 changed files with 3 additions and 0 deletions
|
@ -8931,12 +8931,15 @@ void NumberFormatTest::Test11035_FormatCurrencyAmount() {
|
|||
|
||||
Locale loc1 = Locale("pt_PT");
|
||||
NumberFormat* fmt1 = NumberFormat::createCurrencyInstance(loc1, status);
|
||||
assertSuccess("Creating fmt1", status);
|
||||
fmt1->setCurrency(u"PTE", status);
|
||||
assertSuccess("Setting currency on fmt1", status);
|
||||
UnicodeString actualSetCurrency;
|
||||
fmt1->format(amount, actualSetCurrency);
|
||||
|
||||
Locale loc2 = Locale("pt_PT@currency=PTE");
|
||||
NumberFormat* fmt2 = NumberFormat::createCurrencyInstance(loc2, status);
|
||||
assertSuccess("Creating fmt2", status);
|
||||
UnicodeString actualLocaleString;
|
||||
fmt2->format(amount, actualLocaleString);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue