]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itrbnf.h
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / test / intltest / itrbnf.h
1 /*
2 *******************************************************************************
3 * Copyright (C) 1996-2005, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
6 */
7
8 #ifndef ITRBNF_H
9 #define ITRBNF_H
10
11 #include "unicode/utypes.h"
12
13 #if !UCONFIG_NO_FORMATTING
14
15 #include "intltest.h"
16 #include "unicode/rbnf.h"
17
18
19 class IntlTestRBNF : public IntlTest {
20 public:
21
22 // IntlTest override
23 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par);
24
25 #if U_HAVE_RBNF
26 /**
27 * Perform an API test
28 */
29 virtual void TestAPI();
30
31 /**
32 * Perform a simple spot check on the FractionalRuleSet logic
33 */
34 virtual void TestFractionalRuleSet();
35
36 #if 0
37 /**
38 * Perform API tests on llong
39 */
40 virtual void TestLLong();
41 virtual void TestLLongConstructors();
42 virtual void TestLLongSimpleOperators();
43 #endif
44
45 /**
46 * Perform a simple spot check on the English spellout rules
47 */
48 virtual void TestEnglishSpellout();
49
50 /**
51 * Perform a simple spot check on the English ordinal-abbreviation rules
52 */
53 virtual void TestOrdinalAbbreviations();
54
55 /**
56 * Perform a simple spot check on the duration-formatting rules
57 */
58 virtual void TestDurations();
59
60 /**
61 * Perform a simple spot check on the Spanish spellout rules
62 */
63 virtual void TestSpanishSpellout();
64
65 /**
66 * Perform a simple spot check on the French spellout rules
67 */
68 virtual void TestFrenchSpellout();
69
70 /**
71 * Perform a simple spot check on the Swiss French spellout rules
72 */
73 virtual void TestSwissFrenchSpellout();
74
75 /**
76 * Check that Belgian French matches Swiss French spellout rules
77 */
78 virtual void TestBelgianFrenchSpellout();
79
80 /**
81 * Perform a simple spot check on the Italian spellout rules
82 */
83 virtual void TestItalianSpellout();
84
85 /**
86 * Perform a simple spot check on the German spellout rules
87 */
88 virtual void TestGermanSpellout();
89
90 /**
91 * Perform a simple spot check on the Thai spellout rules
92 */
93 virtual void TestThaiSpellout();
94
95 /**
96 * Perform a simple spot check on the Swedish spellout rules
97 */
98 virtual void TestSwedishSpellout();
99
100 /**
101 * Perform a simple spot check on small values
102 */
103 virtual void TestSmallValues();
104
105 /**
106 * Test localizations using string data.
107 */
108 virtual void TestLocalizations();
109
110 /**
111 * Test that all locales construct ok.
112 */
113 virtual void TestAllLocales();
114
115 /**
116 * Test that hebrew fractions format without trailing '<'
117 */
118 virtual void TestHebrewFraction();
119
120 protected:
121 virtual void doTest(RuleBasedNumberFormat* formatter, const char* testData[][2], UBool testParsing);
122 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
123
124 /* U_HAVE_RBNF */
125 #else
126
127 virtual void TestRBNFDisabled();
128
129 /* U_HAVE_RBNF */
130 #endif
131 };
132
133 #endif /* #if !UCONFIG_NO_FORMATTING */
134
135 // endif ITRBNF_H
136 #endif