]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itrbnfrt.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-2006, 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"
20 class RbnfRoundTripTest
: public IntlTest
{
23 virtual void runIndexedTest(int32_t index
, UBool exec
, const char* &name
, char* par
);
27 * Perform an exhaustive round-trip test on the English spellout rules
29 virtual void TestEnglishSpelloutRT();
32 * Perform an exhaustive round-trip test on the duration-formatting rules
34 virtual void TestDurationsRT();
37 * Perform an exhaustive round-trip test on the Spanish spellout rules
39 virtual void TestSpanishSpelloutRT();
42 * Perform an exhaustive round-trip test on the French spellout rules
44 virtual void TestFrenchSpelloutRT();
47 * Perform an exhaustive round-trip test on the Swiss French spellout rules
49 virtual void TestSwissFrenchSpelloutRT();
52 * Perform an exhaustive round-trip test on the Italian spellout rules
54 virtual void TestItalianSpelloutRT();
57 * Perform an exhaustive round-trip test on the German spellout rules
59 virtual void TestGermanSpelloutRT();
62 * Perform an exhaustive round-trip test on the Swedish spellout rules
64 virtual void TestSwedishSpelloutRT();
67 * Perform an exhaustive round-trip test on the Dutch spellout rules
69 virtual void TestDutchSpelloutRT();
72 * Perform an exhaustive round-trip test on the Japanese spellout rules
74 virtual void TestJapaneseSpelloutRT();
77 * Perform an exhaustive round-trip test on the Russian spellout rules
79 virtual void TestRussianSpelloutRT();
82 * Perform an exhaustive round-trip test on the Portuguese spellout rules
84 virtual void TestPortugueseSpelloutRT();
87 void doTest(const RuleBasedNumberFormat
* formatter
, double lowLimit
, double highLimit
);
92 void TestRBNFDisabled();
98 #endif /* #if !UCONFIG_NO_FORMATTING */