]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/tmsgfmt.h
1 /***********************************************************************
3 * Copyright (c) 1997-2004, International Business Machines Corporation
4 * and others. All Rights Reserved.
5 ***********************************************************************/
8 #ifndef _TESTMESSAGEFORMAT
9 #define _TESTMESSAGEFORMAT
11 #include "unicode/utypes.h"
13 #if !UCONFIG_NO_FORMATTING
15 #include "unicode/unistr.h"
16 #include "unicode/fmtable.h"
20 * TestMessageFormat tests MessageFormat, and also a few unctions in ChoiceFormat
22 class TestMessageFormat
: public IntlTest
{
24 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
27 * regression test for a specific bug regarding ChoiceFormat boundaries
31 * regression test for a specific bug regarding MessageFormat using ChoiceFormat
35 * regression test for a specific bug involving NumberFormat and Locales
39 * test MessageFormat with various given patterns
41 void PatternTest(void);
43 * test MesageFormat formatting functionality in a simple example
48 * tests the static MessageFormat::format method
50 void testStaticFormat(/* char* par */);
52 * tests MesageFormat functionality with a simple format
54 void testSimpleFormat(/* char* par */);
56 * tests MesageFormat functionality with a format including a ChoiceFormat
58 void testMsgFormatChoice(/* char* par */);
61 * Verify that MessageFormat accomodates more than 10 arguments
62 * and more than 10 subformats.
64 void TestUnlimitedArgsAndSubformats();
67 * Test RBNF extensions to MessageFormat.
73 * ------------ API tests ----------
74 * These routines test various API functionality.
75 * In addition to the methods their name suggests,
76 * they often test other methods as well.
78 void testCopyConstructor(void);
79 void testCopyConstructor2(void);
80 void testAssignment(void);
82 void testEquals(void);
83 void testNotEquals(void);
84 void testSetLocale(void);
85 void testFormat(void);
92 #endif /* #if !UCONFIG_NO_FORMATTING */