• 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-2014, International Business Machines Corporation and
6  * others. All Rights Reserved.
7  ********************************************************************/
8 /********************************************************************************
9 *
10 * File CNUMTST.H
11 *
12 * Modification History:
13 *        Name                     Description
14 *     Madhu Katragadda              Creation
15 *********************************************************************************
16 */
17 /* C API TEST FOR NUMBER FORMAT */
18 #ifndef _CNUMFRMTST
19 #define _CNUMFRMTST
20 
21 #include "unicode/utypes.h"
22 
23 #if !UCONFIG_NO_FORMATTING
24 
25 #include "cintltst.h"
26 
27 
28 /**
29  * The function used to test the Number format API
30  **/
31 static void TestNumberFormat(void);
32 
33 /**
34  * The function used to test parsing of numbers in UNUM_SPELLOUT style
35  **/
36 static void TestSpelloutNumberParse(void);
37 
38 /**
39  * The function used to test significant digits in the Number format API
40  **/
41 static void TestSignificantDigits(void);
42 
43 /**
44  * The function used to test Number format API rounding with significant digits
45  **/
46 static void TestSigDigRounding(void);
47 
48 /**
49  * The function used to test the Number format API with padding
50  **/
51 static void TestNumberFormatPadding(void);
52 
53 /**
54  * The function used to test the Number format API with padding
55  **/
56 static void TestInt64Format(void);
57 
58 static void TestNonExistentCurrency(void);
59 
60 /**
61  * Test RBNF access through unumfmt APIs.
62  **/
63 static void TestRBNFFormat(void);
64 
65 /**
66  * Test some Currency stuff
67  **/
68 static void TestCurrencyRegression(void);
69 
70 /**
71  * Test strict parsing of "0"
72  **/
73 static void TestParseZero(void);
74 
75 /**
76  * Test cloning formatter with RBNF
77  **/
78 static void TestCloneWithRBNF(void);
79 
80 /**
81  * Test the Currency Usage Implementations
82  **/
83 static void TestCurrencyUsage(void);
84 #endif /* #if !UCONFIG_NO_FORMATTING */
85 
86 #endif
87