"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "source/test/intltest/numfmtst.cpp" between
icu4c-67rc-src.tgz and icu4c-67_1-src.tgz

About: ICU (International Components for Unicode) is a set of C/C++ and Java libraries providing Unicode and Globalization support for software applications on a wide variety of platforms.

numfmtst.cpp  (icu4c-67rc-src.tgz):numfmtst.cpp  (icu4c-67_1-src.tgz)
skipping to change at line 9660 skipping to change at line 9660
assertEquals("Set negative prefix suffix", assertEquals("Set negative prefix suffix",
u"-$", fmt->getNegativePrefix(result.remove())); u"-$", fmt->getNegativePrefix(result.remove()));
assertEquals("Set negative prefix format", assertEquals("Set negative prefix format",
u"$100.00", fmt->format(100, result.remove(), NULL, status)); u"$100.00", fmt->format(100, result.remove(), NULL, status));
} }
void NumberFormatTest::Test20956_MonetarySymbolGetters() { void NumberFormatTest::Test20956_MonetarySymbolGetters() {
IcuTestErrorCode status(*this, "Test20956_MonetarySymbolGetters"); IcuTestErrorCode status(*this, "Test20956_MonetarySymbolGetters");
LocalPointer<DecimalFormat> decimalFormat(static_cast<DecimalFormat*>( LocalPointer<DecimalFormat> decimalFormat(static_cast<DecimalFormat*>(
NumberFormat::createCurrencyInstance("et", status))); NumberFormat::createCurrencyInstance("et", status)));
if (status.errDataIfFailureAndReset()) {
return;
}
decimalFormat->setCurrency(u"EEK"); decimalFormat->setCurrency(u"EEK");
const DecimalFormatSymbols* decimalFormatSymbols = decimalFormat->getDecimal FormatSymbols(); const DecimalFormatSymbols* decimalFormatSymbols = decimalFormat->getDecimal FormatSymbols();
assertEquals("MONETARY DECIMAL SEPARATOR", assertEquals("MONETARY DECIMAL SEPARATOR",
u".", u".",
decimalFormatSymbols->getSymbol(DecimalFormatSymbols::kMonetarySeparator Symbol)); decimalFormatSymbols->getSymbol(DecimalFormatSymbols::kMonetarySeparator Symbol));
assertEquals("DECIMAL SEPARATOR", assertEquals("DECIMAL SEPARATOR",
u",", u",",
decimalFormatSymbols->getSymbol(DecimalFormatSymbols::kDecimalSeparatorS ymbol)); decimalFormatSymbols->getSymbol(DecimalFormatSymbols::kDecimalSeparatorS ymbol));
skipping to change at line 9804 skipping to change at line 9807
assertEquals("ppos : ", 0, ppos.getIndex()); assertEquals("ppos : ", 0, ppos.getIndex());
assertEquals("result : ", "0", result.getDecimalNumber(status).data()); assertEquals("result : ", "0", result.getDecimalNumber(status).data());
} }
} }
void NumberFormatTest::Test20961_CurrencyPluralPattern() { void NumberFormatTest::Test20961_CurrencyPluralPattern() {
IcuTestErrorCode status(*this, "Test20961_CurrencyPluralPattern"); IcuTestErrorCode status(*this, "Test20961_CurrencyPluralPattern");
{ {
LocalPointer<DecimalFormat> decimalFormat(static_cast<DecimalFormat*>( LocalPointer<DecimalFormat> decimalFormat(static_cast<DecimalFormat*>(
NumberFormat::createInstance("en-US", UNUM_CURRENCY_PLURAL, status)) ); NumberFormat::createInstance("en-US", UNUM_CURRENCY_PLURAL, status)) );
if (status.errDataIfFailureAndReset()) {
return;
}
UnicodeString result; UnicodeString result;
decimalFormat->toPattern(result); decimalFormat->toPattern(result);
assertEquals("Currency pattern", u"#,##0.00 ¤¤¤", result); assertEquals("Currency pattern", u"#,##0.00 ¤¤¤", result);
} }
} }
#endif /* #if !UCONFIG_NO_FORMATTING */ #endif /* #if !UCONFIG_NO_FORMATTING */
 End of changes. 2 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)