]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/cnmdptst.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2003, 2007-2009 International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /********************************************************************************
12 * Modification History:
14 * Madhu Katragadda Creation
15 *********************************************************************************
17 /* C DEPTH TEST FOR NUMBER FORMAT */
22 #include "unicode/utypes.h"
23 #include "unicode/unum.h"
25 #if !UCONFIG_NO_FORMATTING
29 /* The function used to test differnet format patterns*/
30 static void TestPatterns(void);
32 /* Test the handling of quotes*/
33 static void TestQuotes(void);
35 /* Test patterns with exponential representation*/
36 static void TestExponential(void);
38 /* Test the handling of the currency symbol in patterns. */
39 static void TestCurrencySign(void);
41 /* Test proper rounding by the format method.*/
42 static void TestRounding487(void);
44 /* Test proper handling of rounding modes. */
45 static void TestRounding5350(void);
47 /* Test localized currency patterns. */
48 static void TestCurrency(void);
50 /* Test getDoubleAttribute and getDoubleAttribute */
51 static void TestDoubleAttribute(void);
53 static void TestSecondaryGrouping(void);
55 /*Internal functions used*/
56 static void roundingTest(UNumberFormat
*, double, int32_t, const char*);
57 static void roundingTest2(UNumberFormat
*, double, int32_t, const char*);
59 static void TestCurrencyKeywords(void);
61 static void TestGetKeywordValuesForLocale(void);
63 #endif /* #if !UCONFIG_NO_FORMATTING */