diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-04 13:16:15 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-04 13:16:15 +0000 |
commit | 4f735f9c7efbb40316858ad2efed993d860c7461 (patch) | |
tree | 43ccf38db72347f7b31eee44ec13854565310706 /Build/source/libs/icu/icu-49.1/test/intltest/itrbnf.h | |
parent | a88413671252aebde6da430845232b126d5a71dd (diff) |
icu 49.1 (49_rc)
git-svn-id: svn://tug.org/texlive/trunk@25559 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-49.1/test/intltest/itrbnf.h')
-rw-r--r-- | Build/source/libs/icu/icu-49.1/test/intltest/itrbnf.h | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-49.1/test/intltest/itrbnf.h b/Build/source/libs/icu/icu-49.1/test/intltest/itrbnf.h new file mode 100644 index 00000000000..c1965249e2a --- /dev/null +++ b/Build/source/libs/icu/icu-49.1/test/intltest/itrbnf.h @@ -0,0 +1,152 @@ +/* + ******************************************************************************* + * Copyright (C) 1996-2012, International Business Machines Corporation and * + * others. All Rights Reserved. * + ******************************************************************************* + */ + +#ifndef ITRBNF_H +#define ITRBNF_H + +#include "unicode/utypes.h" + +#if !UCONFIG_NO_FORMATTING + +#include "intltest.h" +#include "unicode/rbnf.h" + + +class IntlTestRBNF : public IntlTest { + public: + + // IntlTest override + virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par); + +#if U_HAVE_RBNF + /** + * Perform an API test + */ + virtual void TestAPI(); + + /** + * Perform a simple spot check on the FractionalRuleSet logic + */ + virtual void TestFractionalRuleSet(); + +#if 0 + /** + * Perform API tests on llong + */ + virtual void TestLLong(); + virtual void TestLLongConstructors(); + virtual void TestLLongSimpleOperators(); +#endif + + /** + * Perform a simple spot check on the English spellout rules + */ + virtual void TestEnglishSpellout(); + + /** + * Perform a simple spot check on the English ordinal-abbreviation rules + */ + virtual void TestOrdinalAbbreviations(); + + /** + * Perform a simple spot check on the duration-formatting rules + */ + virtual void TestDurations(); + + /** + * Perform a simple spot check on the Spanish spellout rules + */ + virtual void TestSpanishSpellout(); + + /** + * Perform a simple spot check on the French spellout rules + */ + virtual void TestFrenchSpellout(); + + /** + * Perform a simple spot check on the Swiss French spellout rules + */ + virtual void TestSwissFrenchSpellout(); + + /** + * Check that Belgian French matches Swiss French spellout rules + */ + virtual void TestBelgianFrenchSpellout(); + + /** + * Perform a simple spot check on the Italian spellout rules + */ + virtual void TestItalianSpellout(); + + /** + * Perform a simple spot check on the Portuguese spellout rules + */ + virtual void TestPortugueseSpellout(); + + /** + * Perform a simple spot check on the German spellout rules + */ + virtual void TestGermanSpellout(); + + /** + * Perform a simple spot check on the Thai spellout rules + */ + virtual void TestThaiSpellout(); + + /** + * Perform a simple spot check on the Swedish spellout rules + */ + virtual void TestSwedishSpellout(); + + /** + * Perform a simple spot check on small values + */ + virtual void TestSmallValues(); + + /** + * Test localizations using string data. + */ + virtual void TestLocalizations(); + + /** + * Test that all locales construct ok. + */ + virtual void TestAllLocales(); + + /** + * Test that hebrew fractions format without trailing '<' + */ + virtual void TestHebrewFraction(); + + /** + * Regression test, don't truncate + * when doing multiplier substitution to a number format rule. + */ + virtual void TestMultiplierSubstitution(); + + /** + * Test the setDecimalFormatSymbols in RBNF + */ + virtual void TestSetDecimalFormatSymbols(); + + protected: + virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testData[][2], UBool testParsing); + virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]); + +/* U_HAVE_RBNF */ +#else + + virtual void TestRBNFDisabled(); + +/* U_HAVE_RBNF */ +#endif +}; + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +// endif ITRBNF_H +#endif |