2
/********************************************************************
4
* Copyright (c) 1997-2008, International Business Machines Corporation and
5
* others. All Rights Reserved.
6
********************************************************************/
9
* TestChoiceFormat is a third level test class
12
#include "unicode/utypes.h"
14
#if !UCONFIG_NO_FORMATTING
20
* tests Choice Format, functionality of examples, as well as API functionality
22
class TestChoiceFormat: public IntlTest {
24
* tests basic functionality in a simple example
26
void TestSimpleExample(void);
28
* tests functionality in a more complex example,
29
* and extensive API functionality.
30
* See verbose message output statements for specifically tested API
32
void TestComplexExample(void);
35
* Test new closure API
37
void TestClosures(void);
42
void TestPatterns(void);
43
void TestChoiceFormatToPatternOverflow(void);
45
void _testPattern(const char* pattern,
47
double v1, const char* str1,
48
double v2, const char* str2,
49
double v3, const char* str3);
51
* runs tests in local funtions:
53
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
56
#endif /* #if !UCONFIG_NO_FORMATTING */