home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / intltest / usettest.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-26  |  1.0 KB  |  40 lines

  1. /*
  2. **********************************************************************
  3. *   Copyright (C) 1999 Alan Liu and others. All rights reserved.
  4. **********************************************************************
  5. *   Date        Name        Description
  6. *   10/20/99    alan        Creation.
  7. **********************************************************************
  8. */
  9.  
  10. #ifndef _TESTUNISET
  11. #define _TESTUNISET
  12.  
  13. #include "utypes.h"
  14. #include "intltest.h"
  15.  
  16. class UnicodeSet;
  17. class UnicodeString;
  18.  
  19. /**
  20.  * UnicodeSet test
  21.  */
  22. class UnicodeSetTest: public IntlTest {
  23.  
  24.     void runIndexedTest(int32_t index, bool_t exec, char* &name, char* par=NULL);
  25.     
  26. private:
  27.  
  28.     void TestPatterns();
  29.     void TestAddRemove();
  30.  
  31.     void expectPattern(UnicodeSet& set,
  32.                        const UnicodeString& pattern,
  33.                        const UnicodeString& expectedPairs);
  34.     void expectPairs(const UnicodeSet& set,
  35.                      const UnicodeString& expectedPairs);
  36.     static UnicodeString escape(const UnicodeString& s);
  37. };
  38.  
  39. #endif
  40.