]>
Commit | Line | Data |
---|---|---|
f3c0d7a5 A |
1 | // © 2016 and later: Unicode, Inc. and others. |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
b75a7d8f A |
3 | /******************************************************************** |
4 | * COPYRIGHT: | |
b331163b | 5 | * Copyright (c) 1997-2014, International Business Machines Corporation and |
b75a7d8f A |
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 | ||
374ca955 A |
28 | /** |
29 | * The function used to test the Number format API | |
30 | **/ | |
31 | static void TestNumberFormat(void); | |
b75a7d8f | 32 | |
46f4442e A |
33 | /** |
34 | * The function used to test parsing of numbers in UNUM_SPELLOUT style | |
35 | **/ | |
36 | static void TestSpelloutNumberParse(void); | |
37 | ||
374ca955 A |
38 | /** |
39 | * The function used to test significant digits in the Number format API | |
40 | **/ | |
41 | static void TestSignificantDigits(void); | |
42 | ||
729e4ab9 A |
43 | /** |
44 | * The function used to test Number format API rounding with significant digits | |
45 | **/ | |
46 | static void TestSigDigRounding(void); | |
47 | ||
374ca955 A |
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); | |
b75a7d8f | 64 | |
73c04bcf A |
65 | /** |
66 | * Test some Currency stuff | |
67 | **/ | |
68 | static void TestCurrencyRegression(void); | |
69 | ||
729e4ab9 A |
70 | /** |
71 | * Test strict parsing of "0" | |
72 | **/ | |
73 | static void TestParseZero(void); | |
73c04bcf | 74 | |
4388f060 A |
75 | /** |
76 | * Test cloning formatter with RBNF | |
77 | **/ | |
78 | static void TestCloneWithRBNF(void); | |
79 | ||
b331163b A |
80 | /** |
81 | * Test the Currency Usage Implementations | |
82 | **/ | |
83 | static void TestCurrencyUsage(void); | |
b75a7d8f A |
84 | #endif /* #if !UCONFIG_NO_FORMATTING */ |
85 | ||
86 | #endif |