]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itrbnf.h
2 *******************************************************************************
3 * Copyright (C) 1996-2012, 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();
32 * Perform a simple spot check on the FractionalRuleSet logic
34 virtual void TestFractionalRuleSet();
38 * Perform API tests on llong
40 virtual void TestLLong();
41 virtual void TestLLongConstructors();
42 virtual void TestLLongSimpleOperators();
46 * Perform a simple spot check on the English spellout rules
48 virtual void TestEnglishSpellout();
51 * Perform a simple spot check on the English ordinal-abbreviation rules
53 virtual void TestOrdinalAbbreviations();
56 * Perform a simple spot check on the duration-formatting rules
58 virtual void TestDurations();
61 * Perform a simple spot check on the Spanish spellout rules
63 virtual void TestSpanishSpellout();
66 * Perform a simple spot check on the French spellout rules
68 virtual void TestFrenchSpellout();
71 * Perform a simple spot check on the Swiss French spellout rules
73 virtual void TestSwissFrenchSpellout();
76 * Check that Belgian French matches Swiss French spellout rules
78 virtual void TestBelgianFrenchSpellout();
81 * Perform a simple spot check on the Italian spellout rules
83 virtual void TestItalianSpellout();
86 * Perform a simple spot check on the Portuguese spellout rules
88 virtual void TestPortugueseSpellout();
91 * Perform a simple spot check on the German spellout rules
93 virtual void TestGermanSpellout();
96 * Perform a simple spot check on the Thai spellout rules
98 virtual void TestThaiSpellout();
101 * Perform a simple spot check on the Swedish spellout rules
103 virtual void TestSwedishSpellout();
106 * Perform a simple spot check on small values
108 virtual void TestSmallValues();
111 * Test localizations using string data.
113 virtual void TestLocalizations();
116 * Test that all locales construct ok.
118 virtual void TestAllLocales();
121 * Test that hebrew fractions format without trailing '<'
123 virtual void TestHebrewFraction();
126 * Regression test, don't truncate
127 * when doing multiplier substitution to a number format rule.
129 virtual void TestMultiplierSubstitution();
132 * Test the setDecimalFormatSymbols in RBNF
134 virtual void TestSetDecimalFormatSymbols();
137 virtual void doTest(RuleBasedNumberFormat
* formatter
, const char* const testData
[][2], UBool testParsing
);
138 virtual void doLenientParseTest(RuleBasedNumberFormat
* formatter
, const char* testData
[][2]);
143 virtual void TestRBNFDisabled();
149 #endif /* #if !UCONFIG_NO_FORMATTING */