scuffed-code/icu4c/source/test/intltest/tmsgfmt.h

95 lines
2.4 KiB
C
Raw Normal View History

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2003, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
1999-08-16 21:50:52 +00:00
#ifndef _TESTMESSAGEFORMAT
#define _TESTMESSAGEFORMAT
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "unicode/unistr.h"
#include "unicode/fmtable.h"
1999-08-16 21:50:52 +00:00
#include "intltest.h"
/**
* TestMessageFormat tests MessageFormat, and also a few unctions in ChoiceFormat
*/
class TestMessageFormat: public IntlTest {
public:
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
1999-08-16 21:50:52 +00:00
/**
* regression test for a specific bug regarding ChoiceFormat boundaries
**/
void testBug1(void);
/**
* regression test for a specific bug regarding MessageFormat using ChoiceFormat
**/
void testBug2(void);
/**
* regression test for a specific bug involving NumberFormat and Locales
**/
void testBug3(void);
/**
* test MessageFormat with various given patterns
**/
void PatternTest(void);
/**
* test MesageFormat formatting functionality in a simple example
**/
void sample(void);
/**
* tests the static MessageFormat::format method
**/
void testStaticFormat(/* char* par */);
1999-08-16 21:50:52 +00:00
/**
* tests MesageFormat functionality with a simple format
**/
void testSimpleFormat(/* char* par */);
1999-08-16 21:50:52 +00:00
/**
* tests MesageFormat functionality with a format including a ChoiceFormat
**/
void testMsgFormatChoice(/* char* par */);
1999-08-16 21:50:52 +00:00
/**
* Verify that MessageFormat accomodates more than 10 arguments
* and more than 10 subformats.
*/
void TestUnlimitedArgsAndSubformats();
/**
* Test RBNF extensions to MessageFormat.
*/
void TestRBNF();
1999-08-16 21:50:52 +00:00
//
/**
* ------------ API tests ----------
* These routines test various API functionality.
* In addition to the methods their name suggests,
* they often test other methods as well.
**/
void testCopyConstructor(void);
void testCopyConstructor2(void);
1999-08-16 21:50:52 +00:00
void testAssignment(void);
void testClone(void);
void testEquals(void);
void testNotEquals(void);
void testSetLocale(void);
void testFormat(void);
void testParse(void);
void testAdopt(void);
private:
};
#endif /* #if !UCONFIG_NO_FORMATTING */
1999-08-16 21:50:52 +00:00
#endif