]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/plurults.h
ICU-511.27.tar.gz
[apple/icu.git] / icuSources / test / intltest / plurults.h
CommitLineData
46f4442e 1/********************************************************************
4388f060 2 * COPYRIGHT:
51004dcb 3 * Copyright (c) 1997-2012, 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"
15
16/**
17 * Test basic functionality of various API functions
18 **/
19class PluralRulesTest : public IntlTest {
4388f060 20 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
46f4442e
A
21
22private:
23 /**
24 * Performs tests on many API functions, see detailed comments in source code
25 **/
4388f060
A
26 void testAPI();
27 void testGetUniqueKeywordValue();
28 void testGetSamples();
29 void testWithin();
30 void testGetAllKeywordValues();
51004dcb 31 void testOrdinal();
4388f060
A
32
33 void assertRuleValue(const UnicodeString& rule, double expected);
34 void assertRuleKeyValue(const UnicodeString& rule, const UnicodeString& key,
35 double expected);
46f4442e
A
36};
37
38#endif /* #if !UCONFIG_NO_FORMATTING */
39
40#endif