X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/9d88c94317aeac5dd26c1dbe8c2112dbe855d2b5..73c04bcfe1096173b00431f0cdc742894b15eef0:/icuSources/test/intltest/numfmtst.h diff --git a/icuSources/test/intltest/numfmtst.h b/icuSources/test/intltest/numfmtst.h index 07ab0aa1..2c7e5bbe 100644 --- a/icuSources/test/intltest/numfmtst.h +++ b/icuSources/test/intltest/numfmtst.h @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2004, International Business Machines Corporation and + * Copyright (c) 1997-2006, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -28,6 +28,9 @@ class NumberFormatTest: public CalendarTimeZoneTest { * Test APIs (to increase code coverage) */ void TestAPI(void); + + void TestCoverage(void); + /** * Test the handling of quotes **/ @@ -102,6 +105,10 @@ class NumberFormatTest: public CalendarTimeZoneTest { void TestCurrencyNames(void); + void TestCurrencyAmount(void); + + void TestCurrencyUnit(void); + void TestSymbolsWithBadLocale(void); void TestAdoptDecimalFormatSymbols(void); @@ -109,9 +116,14 @@ class NumberFormatTest: public CalendarTimeZoneTest { void TestPerMill(void); void TestIllegalPatterns(void); - + void TestCases(void); + void TestJB3832(void); + + void TestHost(void); + + void TestCurrencyFormat(void); private: static UBool equalValue(const Formattable& a, const Formattable& b); @@ -153,20 +165,6 @@ class NumberFormatTest: public CalendarTimeZoneTest { void expectCurrency(NumberFormat& nf, const Locale& locale, double value, const UnicodeString& string); - void expectPat(DecimalFormat& fmt, const UnicodeString& exp); - - void expectPat(DecimalFormat& fmt, const char *exp) { - expectPat(fmt, UnicodeString(exp, "")); - } - - void expectPad(DecimalFormat& fmt, const UnicodeString& pat, - int32_t pos); - - void expectPad(DecimalFormat& fmt, const char *pat, - int32_t pos) { - expectPad(fmt, pat, pos, 0, (UChar)0); - } - void expectPad(DecimalFormat& fmt, const UnicodeString& pat, int32_t pos, int32_t width, UChar pad); @@ -183,6 +181,20 @@ class NumberFormatTest: public CalendarTimeZoneTest { expectPad(fmt, UnicodeString(pat, ""), pos, width, pad); } + void expectPat(DecimalFormat& fmt, const UnicodeString& exp); + + void expectPat(DecimalFormat& fmt, const char *exp) { + expectPat(fmt, UnicodeString(exp, "")); + } + + void expectPad(DecimalFormat& fmt, const UnicodeString& pat, + int32_t pos); + + void expectPad(DecimalFormat& fmt, const char *pat, + int32_t pos) { + expectPad(fmt, pat, pos, 0, (UChar)0); + } + // internal utility routine static UnicodeString& escape(UnicodeString& s);