]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/plurults.h
ICU-551.24.tar.gz
[apple/icu.git] / icuSources / test / intltest / plurults.h
CommitLineData
46f4442e 1/********************************************************************
4388f060 2 * COPYRIGHT:
57a6839d 3 * Copyright (c) 1997-2013, International Business Machines Corporation and
46f4442e
A
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7#ifndef _PluralRulesTest
8#define _PluralRulesTest
9
10#include "unicode/utypes.h"
11
12#if !UCONFIG_NO_FORMATTING
13
14#include "intltest.h"
57a6839d
A
15#include "unicode/localpointer.h"
16#include "unicode/plurrule.h"
46f4442e
A
17
18/**
19 * Test basic functionality of various API functions
20 **/
21class PluralRulesTest : public IntlTest {
4388f060 22 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
46f4442e
A
23
24private:
25 /**
26 * Performs tests on many API functions, see detailed comments in source code
27 **/
4388f060
A
28 void testAPI();
29 void testGetUniqueKeywordValue();
30 void testGetSamples();
31 void testWithin();
32 void testGetAllKeywordValues();
51004dcb 33 void testOrdinal();
57a6839d
A
34 void testSelect();
35 void testAvailbleLocales();
36 void testParseErrors();
37 void testFixedDecimal();
4388f060
A
38
39 void assertRuleValue(const UnicodeString& rule, double expected);
40 void assertRuleKeyValue(const UnicodeString& rule, const UnicodeString& key,
41 double expected);
57a6839d
A
42 void checkSelect(const LocalPointer<PluralRules> &rules, UErrorCode &status,
43 int32_t line, const char *keyword, ...);
46f4442e
A
44};
45
46#endif /* #if !UCONFIG_NO_FORMATTING */
47
48#endif