Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: source/test/intltest/itrbnf.h

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/test/intltest/itformat.cpp ('k') | source/test/intltest/itrbnf.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ******************************************************************************* 2 *******************************************************************************
3 * Copyright (C) 1996-2014, International Business Machines Corporation and * 3 * Copyright (C) 1996-2015, International Business Machines Corporation and *
4 * others. All Rights Reserved. * 4 * others. All Rights Reserved. *
5 ******************************************************************************* 5 *******************************************************************************
6 */ 6 */
7 7
8 #ifndef ITRBNF_H 8 #ifndef ITRBNF_H
9 #define ITRBNF_H 9 #define ITRBNF_H
10 10
11 #include "unicode/utypes.h" 11 #include "unicode/utypes.h"
12 12
13 #if !UCONFIG_NO_FORMATTING 13 #if !UCONFIG_NO_FORMATTING
14 14
15 #include "intltest.h" 15 #include "intltest.h"
16 #include "unicode/rbnf.h" 16 #include "unicode/rbnf.h"
17 17
18 18
19 class IntlTestRBNF : public IntlTest { 19 class IntlTestRBNF : public IntlTest {
20 public: 20 public:
21 21
22 // IntlTest override 22 // IntlTest override
23 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char * par); 23 virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char * par);
24 24
25 #if U_HAVE_RBNF 25 #if U_HAVE_RBNF
26 /** 26 /**
27 * Perform an API test 27 * Perform an API test
28 */ 28 */
29 virtual void TestAPI(); 29 virtual void TestAPI();
30 30
31 void TestMultiplePluralRules();
32
31 /** 33 /**
32 * Perform a simple spot check on the FractionalRuleSet logic 34 * Perform a simple spot check on the FractionalRuleSet logic
33 */ 35 */
34 virtual void TestFractionalRuleSet(); 36 virtual void TestFractionalRuleSet();
35 37
36 #if 0 38 #if 0
37 /** 39 /**
38 * Perform API tests on llong 40 * Perform API tests on llong
39 */ 41 */
40 virtual void TestLLong(); 42 virtual void TestLLong();
41 virtual void TestLLongConstructors(); 43 virtual void TestLLongConstructors();
42 virtual void TestLLongSimpleOperators(); 44 virtual void TestLLongSimpleOperators();
43 #endif 45 #endif
44 46
45 /** 47 /**
46 * Perform a simple spot check on the English spellout rules 48 * Perform a simple spot check on the English spellout rules
47 */ 49 */
48 virtual void TestEnglishSpellout(); 50 void TestEnglishSpellout();
49 51
50 /** 52 /**
51 * Perform a simple spot check on the English ordinal-abbreviation rules 53 * Perform a simple spot check on the English ordinal-abbreviation rules
52 */ 54 */
53 virtual void TestOrdinalAbbreviations(); 55 void TestOrdinalAbbreviations();
54 56
55 /** 57 /**
56 * Perform a simple spot check on the duration-formatting rules 58 * Perform a simple spot check on the duration-formatting rules
57 */ 59 */
58 virtual void TestDurations(); 60 void TestDurations();
59 61
60 /** 62 /**
61 * Perform a simple spot check on the Spanish spellout rules 63 * Perform a simple spot check on the Spanish spellout rules
62 */ 64 */
63 virtual void TestSpanishSpellout(); 65 void TestSpanishSpellout();
64 66
65 /** 67 /**
66 * Perform a simple spot check on the French spellout rules 68 * Perform a simple spot check on the French spellout rules
67 */ 69 */
68 virtual void TestFrenchSpellout(); 70 void TestFrenchSpellout();
69 71
70 /** 72 /**
71 * Perform a simple spot check on the Swiss French spellout rules 73 * Perform a simple spot check on the Swiss French spellout rules
72 */ 74 */
73 virtual void TestSwissFrenchSpellout(); 75 void TestSwissFrenchSpellout();
74 76
75 /** 77 /**
76 * Check that Belgian French matches Swiss French spellout rules 78 * Check that Belgian French matches Swiss French spellout rules
77 */ 79 */
78 virtual void TestBelgianFrenchSpellout(); 80 void TestBelgianFrenchSpellout();
79 81
80 /** 82 /**
81 * Perform a simple spot check on the Italian spellout rules 83 * Perform a simple spot check on the Italian spellout rules
82 */ 84 */
83 virtual void TestItalianSpellout(); 85 void TestItalianSpellout();
84 86
85 /** 87 /**
86 * Perform a simple spot check on the Portuguese spellout rules 88 * Perform a simple spot check on the Portuguese spellout rules
87 */ 89 */
88 virtual void TestPortugueseSpellout(); 90 void TestPortugueseSpellout();
89 91
90 /** 92 /**
91 * Perform a simple spot check on the German spellout rules 93 * Perform a simple spot check on the German spellout rules
92 */ 94 */
93 virtual void TestGermanSpellout(); 95 void TestGermanSpellout();
94 96
95 /** 97 /**
96 * Perform a simple spot check on the Thai spellout rules 98 * Perform a simple spot check on the Thai spellout rules
97 */ 99 */
98 virtual void TestThaiSpellout(); 100 void TestThaiSpellout();
99 101
100 /** 102 /**
101 * Perform a simple spot check on the Swedish spellout rules 103 * Perform a simple spot check on the Swedish spellout rules
102 */ 104 */
103 virtual void TestSwedishSpellout(); 105 void TestSwedishSpellout();
104 106
105 /** 107 /**
106 * Perform a simple spot check on small values 108 * Perform a simple spot check on small values
107 */ 109 */
108 virtual void TestSmallValues(); 110 void TestSmallValues();
109 111
110 /** 112 /**
111 * Test localizations using string data. 113 * Test localizations using string data.
112 */ 114 */
113 virtual void TestLocalizations(); 115 void TestLocalizations();
114 116
115 /** 117 /**
116 * Test that all locales construct ok. 118 * Test that all locales construct ok.
117 */ 119 */
118 virtual void TestAllLocales(); 120 void TestAllLocales();
119 121
120 /** 122 /**
121 * Test that hebrew fractions format without trailing '<' 123 * Test that hebrew fractions format without trailing '<'
122 */ 124 */
123 virtual void TestHebrewFraction(); 125 void TestHebrewFraction();
124 126
125 /** 127 /**
126 * Regression test, don't truncate 128 * Regression test, don't truncate
127 * when doing multiplier substitution to a number format rule. 129 * when doing multiplier substitution to a number format rule.
128 */ 130 */
129 virtual void TestMultiplierSubstitution(); 131 void TestMultiplierSubstitution();
130 132
131 /** 133 /**
132 * Test the setDecimalFormatSymbols in RBNF 134 * Test the setDecimalFormatSymbols in RBNF
133 */ 135 */
134 virtual void TestSetDecimalFormatSymbols(); 136 void TestSetDecimalFormatSymbols();
135 137
136 /** 138 /**
137 * Test the plural rules in RBNF 139 * Test the plural rules in RBNF
138 */ 140 */
139 virtual void TestPluralRules(); 141 void TestPluralRules();
140 142
141 protected: 143 void TestInfinityNaN();
144 void TestVariableDecimalPoint();
145 void TestRounding();
146
147 protected:
142 virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testDa ta[][2], UBool testParsing); 148 virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testDa ta[][2], UBool testParsing);
143 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]); 149 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
144 150
145 /* U_HAVE_RBNF */ 151 /* U_HAVE_RBNF */
146 #else 152 #else
147 153
148 virtual void TestRBNFDisabled(); 154 virtual void TestRBNFDisabled();
149 155
150 /* U_HAVE_RBNF */ 156 /* U_HAVE_RBNF */
151 #endif 157 #endif
152 }; 158 };
153 159
154 #endif /* #if !UCONFIG_NO_FORMATTING */ 160 #endif /* #if !UCONFIG_NO_FORMATTING */
155 161
156 // endif ITRBNF_H 162 // endif ITRBNF_H
157 #endif 163 #endif
OLDNEW
« no previous file with comments | « source/test/intltest/itformat.cpp ('k') | source/test/intltest/itrbnf.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698