]>
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 virtual void TestEnglishSpellout();
53 * Perform a simple spot check on the English ordinal-abbreviation rules
55 virtual void TestOrdinalAbbreviations();
58 * Perform a simple spot check on the duration-formatting rules
60 virtual void TestDurations();
63 * Perform a simple spot check on the Spanish spellout rules
65 virtual void TestSpanishSpellout();
68 * Perform a simple spot check on the French spellout rules
70 virtual void TestFrenchSpellout();
73 * Perform a simple spot check on the Swiss French spellout rules
75 virtual void TestSwissFrenchSpellout();
78 * Check that Belgian French matches Swiss French spellout rules
80 virtual void TestBelgianFrenchSpellout();
83 * Perform a simple spot check on the Italian spellout rules
85 virtual void TestItalianSpellout();
88 * Perform a simple spot check on the Portuguese spellout rules
90 virtual void TestPortugueseSpellout();
93 * Perform a simple spot check on the German spellout rules
95 virtual void TestGermanSpellout();
98 * Perform a simple spot check on the Thai spellout rules
100 virtual void TestThaiSpellout();
103 * Perform a simple spot check on the Swedish spellout rules
105 virtual void TestSwedishSpellout();
108 * Perform a simple spot check on small values
110 virtual void TestSmallValues();
113 * Test localizations using string data.
115 virtual void TestLocalizations();
118 * Test that all locales construct ok.
120 virtual void TestAllLocales();
123 * Test that hebrew fractions format without trailing '<'
125 virtual void TestHebrewFraction();
128 * Regression test, don't truncate
129 * when doing multiplier substitution to a number format rule.
131 virtual void TestMultiplierSubstitution();
134 * Test the setDecimalFormatSymbols in RBNF
136 virtual void TestSetDecimalFormatSymbols();
139 * Test the plural rules in RBNF
141 virtual void TestPluralRules();
144 virtual void doTest(RuleBasedNumberFormat
* formatter
, const char* const testData
[][2], UBool testParsing
);
145 virtual void doLenientParseTest(RuleBasedNumberFormat
* formatter
, const char* testData
[][2]);
150 virtual void TestRBNFDisabled();
156 #endif /* #if !UCONFIG_NO_FORMATTING */