home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / intltest / tmsgfmt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  2.4 KB  |  91 lines

  1.  
  2. /*
  3. ********************************************************************
  4. * COPYRIGHT: 
  5. * (C) Copyright Taligent, Inc., 1997
  6. * (C) Copyright International Business Machines Corporation, 1997 - 1998
  7. * Licensed Material - Program-Property of IBM - All Rights Reserved. 
  8. * US Government Users Restricted Rights - Use, duplication, or disclosure 
  9. * restricted by GSA ADP Schedule Contract with IBM Corp. 
  10. *
  11. ********************************************************************
  12. */
  13.  
  14.  
  15. #ifndef _TESTMESSAGEFORMAT
  16. #define _TESTMESSAGEFORMAT
  17.  
  18. #include "utypes.h"
  19. #include "intltest.h"
  20.  
  21. class Formattable;
  22. class UnicodeString;
  23.  
  24. /**
  25.  * TestMessageFormat tests MessageFormat, and also a few unctions in ChoiceFormat
  26.  */
  27. class TestMessageFormat: public IntlTest {
  28. public:
  29.     void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
  30.  
  31.     /**
  32.      * regression test for a specific bug regarding ChoiceFormat boundaries
  33.      **/
  34.     void testBug1(void);
  35.     /**
  36.      * regression test for a specific bug regarding MessageFormat using ChoiceFormat
  37.      **/
  38.     void testBug2(void);
  39.     /**
  40.      * regression test for a specific bug involving NumberFormat and Locales
  41.      **/
  42.     void testBug3(void);
  43.     /** 
  44.      * test MessageFormat with various given patterns
  45.      **/
  46.     void PatternTest(void);
  47.     /** 
  48.      * test MesageFormat formatting functionality in a simple example
  49.      **/
  50.     void sample(void);
  51.  
  52.     /** 
  53.     * tests the static MessageFormat::format method
  54.      **/
  55.     void testStaticFormat(char* parm);
  56.     /** 
  57.      * tests MesageFormat functionality with a simple format
  58.      **/
  59.     void testSimpleFormat(char* parm);
  60.     /** 
  61.      * tests MesageFormat functionality with a format including a ChoiceFormat
  62.      **/
  63.     void testMsgFormatChoice(char* parm);
  64.  
  65.     //
  66.     /** 
  67.      * ------------ API tests ----------
  68.      * These routines test various API functionality.
  69.      * In addition to the methods their name suggests,
  70.      * they often test other methods as well.
  71.      **/
  72.     void testCopyConstructor(void);
  73.     void testAssignment(void);
  74.     void testClone(void);
  75.     void testEquals(void);
  76.     void testNotEquals(void);
  77.     void testSetLocale(void);
  78.     void testFormat(void);
  79.     void testParse(void);
  80.     void testAdopt(void);
  81.  
  82. private:
  83.     static Formattable testArgs[];
  84.     static UnicodeString testCases[];
  85.     static UnicodeString testResultPatterns[];
  86.     static UnicodeString testResultStrings[];
  87. };
  88.  
  89.  
  90. #endif
  91.