]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/cnmdptst.h
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / test / cintltst / cnmdptst.h
1 /********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2003, 2007-2009 International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6 /********************************************************************************
7 *
8 * File CNMDPTST.H
9 *
10 * Modification History:
11 * Name Description
12 * Madhu Katragadda Creation
13 *********************************************************************************
14 */
15 /* C DEPTH TEST FOR NUMBER FORMAT */
16
17 #ifndef _CNUMDEPTST
18 #define _CNUMDEPTST
19
20 #include "unicode/utypes.h"
21
22 #if !UCONFIG_NO_FORMATTING
23
24 #include "cintltst.h"
25
26 /* The function used to test differnet format patterns*/
27 static void TestPatterns(void);
28
29 /* Test the handling of quotes*/
30 static void TestQuotes(void);
31
32 /* Test patterns with exponential representation*/
33 static void TestExponential(void);
34
35 /* Test the handling of the currency symbol in patterns. */
36 static void TestCurrencySign(void);
37
38 /* Test proper rounding by the format method.*/
39 static void TestRounding487(void);
40
41 /* Test proper handling of rounding modes. */
42 static void TestRounding5350(void);
43
44 /* Test localized currency patterns. */
45 static void TestCurrency(void);
46
47 /* Test getDoubleAttribute and getDoubleAttribute */
48 static void TestDoubleAttribute(void);
49
50 static void TestSecondaryGrouping(void);
51
52 /*Internal functions used*/
53 static void roundingTest(UNumberFormat*, double, int32_t, const char*);
54 static void roundingTest2(UNumberFormat*, double, int32_t, const char*);
55
56 static void TestCurrencyKeywords(void);
57
58 static void TestGetKeywordValuesForLocale(void);
59
60 #endif /* #if !UCONFIG_NO_FORMATTING */
61
62 #endif