]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/plurfmts.h
1 /********************************************************************
3 * Copyright (c) 1997-2013, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
7 #ifndef _PLURALFORMATTEST
8 #define _PLURALFORMATTEST
10 #include "unicode/utypes.h"
11 #include "unicode/plurrule.h"
12 #include "unicode/plurfmt.h"
15 #if !UCONFIG_NO_FORMATTING
20 * Test basic functionality of various API functions
22 class PluralFormatTest
: public IntlTest
{
23 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
27 * Performs tests on many API functions, see detailed comments in source code
29 void pluralFormatBasicTest(/* char* par */);
30 void pluralFormatUnitTest(/* char* par */);
31 void pluralFormatLocaleTest(/* char* par */);
32 void pluralFormatExtendedTest();
33 void pluralFormatExtendedParseTest();
34 void ordinalFormatTest();
36 void numberFormatTest(PluralFormat
* plFmt
,
40 UnicodeString
* numOddAppendStr
,
41 UnicodeString
* numEvenAppendStr
,
42 UBool overwrite
, // overwrite the numberFormat.format result
43 UnicodeString
*message
);
44 void helperTestResults(const char** localeArray
,
45 int32_t capacityOfArray
,
46 UnicodeString
& testPattern
,
47 int8_t *expectingResults
);
50 #endif /* #if !UCONFIG_NO_FORMATTING */