home *** CD-ROM | disk | FTP | other *** search
-
- /*
- ********************************************************************
- * COPYRIGHT:
- * (C) Copyright Taligent, Inc., 1997
- * (C) Copyright International Business Machines Corporation, 1997 - 1998
- * Licensed Material - Program-Property of IBM - All Rights Reserved.
- * US Government Users Restricted Rights - Use, duplication, or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- *
- ********************************************************************
- */
-
-
- #ifndef _TESTMESSAGEFORMAT
- #define _TESTMESSAGEFORMAT
-
- #include "utypes.h"
- #include "intltest.h"
-
- class Formattable;
- class UnicodeString;
-
- /**
- * TestMessageFormat tests MessageFormat, and also a few unctions in ChoiceFormat
- */
- class TestMessageFormat: public IntlTest {
- public:
- void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
-
- /**
- * 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* parm);
- /**
- * tests MesageFormat functionality with a simple format
- **/
- void testSimpleFormat(char* parm);
- /**
- * tests MesageFormat functionality with a format including a ChoiceFormat
- **/
- void testMsgFormatChoice(char* parm);
-
- //
- /**
- * ------------ 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 testAssignment(void);
- void testClone(void);
- void testEquals(void);
- void testNotEquals(void);
- void testSetLocale(void);
- void testFormat(void);
- void testParse(void);
- void testAdopt(void);
-
- private:
- static Formattable testArgs[];
- static UnicodeString testCases[];
- static UnicodeString testResultPatterns[];
- static UnicodeString testResultStrings[];
- };
-
-
- #endif
-