]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itrbnf.h
2 *******************************************************************************
3 * Copyright (C) 1996-2015, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
11 #include "unicode/utypes.h"
13 #if !UCONFIG_NO_FORMATTING
16 #include "unicode/rbnf.h"
19 class IntlTestRBNF
: public IntlTest
{
23 virtual void runIndexedTest(int32_t index
, UBool exec
, const char* &name
, char* par
);
29 virtual void TestAPI();
31 void TestMultiplePluralRules();
34 * Perform a simple spot check on the FractionalRuleSet logic
36 virtual void TestFractionalRuleSet();
40 * Perform API tests on llong
42 virtual void TestLLong();
43 virtual void TestLLongConstructors();
44 virtual void TestLLongSimpleOperators();
48 * Perform a simple spot check on the English spellout rules
50 void TestEnglishSpellout();
53 * Perform a simple spot check on the English ordinal-abbreviation rules
55 void TestOrdinalAbbreviations();
58 * Perform a simple spot check on the duration-formatting rules
63 * Perform a simple spot check on the Spanish spellout rules
65 void TestSpanishSpellout();
68 * Perform a simple spot check on the French spellout rules
70 void TestFrenchSpellout();
73 * Perform a simple spot check on the Swiss French spellout rules
75 void TestSwissFrenchSpellout();
78 * Check that Belgian French matches Swiss French spellout rules
80 void TestBelgianFrenchSpellout();
83 * Perform a simple spot check on the Italian spellout rules
85 void TestItalianSpellout();
88 * Perform a simple spot check on the Portuguese spellout rules
90 void TestPortugueseSpellout();
93 * Perform a simple spot check on the German spellout rules
95 void TestGermanSpellout();
98 * Perform a simple spot check on the Thai spellout rules
100 void TestThaiSpellout();
103 * Perform a simple spot check on the Swedish spellout rules
105 void TestSwedishSpellout();
108 * Perform a simple spot check on small values
110 void TestSmallValues();
113 * Test localizations using string data.
115 void TestLocalizations();
118 * Test that all locales construct ok.
120 void TestAllLocales();
123 * Test that hebrew fractions format without trailing '<'
125 void TestHebrewFraction();
128 * Regression test, don't truncate
129 * when doing multiplier substitution to a number format rule.
131 void TestMultiplierSubstitution();
134 * Test the setDecimalFormatSymbols in RBNF
136 void TestSetDecimalFormatSymbols();
139 * Test the plural rules in RBNF
141 void TestPluralRules();
143 void TestInfinityNaN();
144 void TestVariableDecimalPoint();
148 virtual void doTest(RuleBasedNumberFormat
* formatter
, const char* const testData
[][2], UBool testParsing
);
149 virtual void doLenientParseTest(RuleBasedNumberFormat
* formatter
, const char* testData
[][2]);
154 virtual void TestRBNFDisabled();
160 #endif /* #if !UCONFIG_NO_FORMATTING */