]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/plurults.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2013, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
9 #ifndef _PluralRulesTest
10 #define _PluralRulesTest
12 #include "unicode/utypes.h"
14 #if !UCONFIG_NO_FORMATTING
17 #include "unicode/localpointer.h"
18 #include "unicode/plurrule.h"
21 * Test basic functionality of various API functions
23 class PluralRulesTest
: public IntlTest
{
24 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
28 * Performs tests on many API functions, see detailed comments in source code
31 void testGetUniqueKeywordValue();
32 void testGetSamples();
34 void testGetAllKeywordValues();
37 void testAvailbleLocales();
38 void testParseErrors();
39 void testFixedDecimal();
41 void assertRuleValue(const UnicodeString
& rule
, double expected
);
42 void assertRuleKeyValue(const UnicodeString
& rule
, const UnicodeString
& key
,
44 void checkSelect(const LocalPointer
<PluralRules
> &rules
, UErrorCode
&status
,
45 int32_t line
, const char *keyword
, ...);
48 #endif /* #if !UCONFIG_NO_FORMATTING */