]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itrbnf.h
2 *******************************************************************************
3 * Copyright (C) 1996-2004, 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 German spellout rules
88 virtual void TestGermanSpellout();
91 * Perform a simple spot check on the Thai spellout rules
93 virtual void TestThaiSpellout();
96 * Perform a simple spot check on the Swedish spellout rules
98 virtual void TestSwedishSpellout();
101 * Perform a simple spot check on small values
103 virtual void TestSmallValues();
106 * Test localizations using string data.
108 virtual void TestLocalizations();
111 virtual void doTest(RuleBasedNumberFormat
* formatter
, const char* testData
[][2], UBool testParsing
);
112 virtual void doLenientParseTest(RuleBasedNumberFormat
* formatter
, const char* testData
[][2]);
117 virtual void TestRBNFDisabled();
123 #endif /* #if !UCONFIG_NO_FORMATTING */