home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / intltest / itmajor.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  2.5 KB  |  76 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.  * MajorTestLevel is the top level test class for everything in the directory "IntlWork".
  16.  */
  17.  
  18. #include "utypes.h"
  19. #include "itmajor.h"
  20.  
  21. #include "itutil.h"
  22. #include "tscoll.h"
  23. #include "ittxtbd.h"
  24. #include "itformat.h"
  25. #include "itconv.h"
  26.  
  27.  
  28. void MajorTestLevel::runIndexedTest( int32_t index, bool_t exec, char* &name, char* par )
  29. {
  30.     switch (index) {
  31.         case 0: name = "utility"; 
  32.                 if (exec) { 
  33.                     logln("TestSuite Utilities---"); logln();
  34.                     IntlTestUtilities test;
  35.                     callTest( test, par );
  36.                 }
  37.                 break;
  38.  
  39.         case 1: name = "collate"; 
  40.                 if (exec) {
  41.                     logln("TestSuite Collator----"); logln();
  42.                     IntlTestCollator test;
  43.                     callTest( test, par );
  44.                 }
  45.                 break;
  46.  
  47.         case 2: name = "textbounds"; 
  48.                 if (exec) {
  49.                     logln("TestSuite TextBoundary----"); logln();
  50.                     IntlTestTextBoundary test;
  51.                     callTest( test, par );
  52.                 }
  53.                 break;
  54.  
  55.         case 3: name = "format"; 
  56.                 if (exec) {
  57.                     logln("TestSuite Format----"); logln();
  58.                     IntlTestFormat test;
  59.                     callTest( test, par );
  60.                 }
  61.                 break;
  62.  
  63.         case 4: name = "convert"; 
  64.                 if (exec) {
  65.                     logln("TestSuite Convert----"); logln();
  66.                     IntlTestConvert test;
  67.                     callTest( test, par );
  68.                 }
  69.                 break;
  70.  
  71.  
  72.         default: name = ""; break;
  73.     }
  74. }
  75.  
  76.