]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/tchcfmt.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 /********************************************************************
6 * Copyright (c) 1997-2008, International Business Machines Corporation and
7 * others. All Rights Reserved.
8 ********************************************************************/
11 * TestChoiceFormat is a third level test class
14 #include "unicode/utypes.h"
16 #if !UCONFIG_NO_FORMATTING
22 * tests Choice Format, functionality of examples, as well as API functionality
24 class TestChoiceFormat
: public IntlTest
{
26 * tests basic functionality in a simple example
28 void TestSimpleExample(void);
30 * tests functionality in a more complex example,
31 * and extensive API functionality.
32 * See verbose message output statements for specifically tested API
34 void TestComplexExample(void);
37 * Test new closure API
39 void TestClosures(void);
44 void TestPatterns(void);
45 void TestChoiceFormatToPatternOverflow(void);
47 void _testPattern(const char* pattern
,
49 double v1
, const char* str1
,
50 double v2
, const char* str2
,
51 double v3
, const char* str3
);
53 * runs tests in local funtions:
55 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
58 #endif /* #if !UCONFIG_NO_FORMATTING */