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