]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itrbnf.h
ICU-6.2.6.tar.gz
[apple/icu.git] / icuSources / test / intltest / itrbnf.h
1 /*
2 *******************************************************************************
3 * Copyright (C) 1996-2004, 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 protected:
111 virtual void doTest(RuleBasedNumberFormat* formatter, const char* testData[][2], UBool testParsing);
112 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
113
114 /* U_HAVE_RBNF */
115 #else
116
117 virtual void TestRBNFDisabled();
118
119 /* U_HAVE_RBNF */
120 #endif
121 };
122
123 #endif /* #if !UCONFIG_NO_FORMATTING */
124
125 // endif ITRBNF_H
126 #endif