]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itrbnf.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
5 * Copyright (C) 1996-2015, International Business Machines Corporation and *
6 * others. All Rights Reserved. *
7 *******************************************************************************
13 #include "unicode/utypes.h"
15 #if !UCONFIG_NO_FORMATTING
18 #include "unicode/rbnf.h"
21 class IntlTestRBNF
: public IntlTest
{
25 virtual void runIndexedTest(int32_t index
, UBool exec
, const char* &name
, char* par
);
31 virtual void TestAPI();
33 void TestMultiplePluralRules();
36 * Perform a simple spot check on the FractionalRuleSet logic
38 virtual void TestFractionalRuleSet();
42 * Perform API tests on llong
44 virtual void TestLLong();
45 virtual void TestLLongConstructors();
46 virtual void TestLLongSimpleOperators();
50 * Perform a simple spot check on the English spellout rules
52 void TestEnglishSpellout();
55 * Perform a simple spot check on the English ordinal-abbreviation rules
57 void TestOrdinalAbbreviations();
60 * Perform a simple spot check on the duration-formatting rules
65 * Perform a simple spot check on the Spanish spellout rules
67 void TestSpanishSpellout();
70 * Perform a simple spot check on the French spellout rules
72 void TestFrenchSpellout();
75 * Perform a simple spot check on the Swiss French spellout rules
77 void TestSwissFrenchSpellout();
80 * Check that Belgian French matches Swiss French spellout rules
82 void TestBelgianFrenchSpellout();
85 * Perform a simple spot check on the Italian spellout rules
87 void TestItalianSpellout();
90 * Perform a simple spot check on the Portuguese spellout rules
92 void TestPortugueseSpellout();
95 * Perform a simple spot check on the German spellout rules
97 void TestGermanSpellout();
100 * Perform a simple spot check on the Thai spellout rules
102 void TestThaiSpellout();
105 * Perform a simple spot check on the Swedish spellout rules
107 void TestSwedishSpellout();
110 * Perform a simple spot check on small values
112 void TestSmallValues();
115 * Test localizations using string data.
117 void TestLocalizations();
120 * Test that all locales construct ok.
122 void TestAllLocales();
125 * Test that hebrew fractions format without trailing '<'
127 void TestHebrewFraction();
130 * Regression test, don't truncate
131 * when doing multiplier substitution to a number format rule.
133 void TestMultiplierSubstitution();
136 * Test the setDecimalFormatSymbols in RBNF
138 void TestSetDecimalFormatSymbols();
141 * Test the plural rules in RBNF
143 void TestPluralRules();
145 void TestInfinityNaN();
146 void TestVariableDecimalPoint();
148 void TestLargeNumbers();
149 void TestCompactDecimalFormatStyle();
150 void TestParseFailure();
151 void TestMinMaxIntegerDigitsIgnored();
154 virtual void doTest(RuleBasedNumberFormat
* formatter
, const char* const testData
[][2], UBool testParsing
);
155 virtual void doLenientParseTest(RuleBasedNumberFormat
* formatter
, const char* testData
[][2]);
160 virtual void TestRBNFDisabled();
166 #endif /* #if !UCONFIG_NO_FORMATTING */