Home | History | Annotate | Download | only in intltest
      1 //  2016 and later: Unicode, Inc. and others.
      2 // License & terms of use: http://www.unicode.org/copyright.html
      3 /************************************************************************
      4  * COPYRIGHT:
      5  * Copyright (c) 2013, International Business Machines Corporation
      6  * and others. All Rights Reserved.
      7  ************************************************************************/
      8 
      9 #ifndef _REGIONTEST_
     10 #define _REGIONTEST_
     11 
     12 #include "unicode/utypes.h"
     13 
     14 #if !UCONFIG_NO_FORMATTING
     15 
     16 #include "unicode/region.h"
     17 #include "intltest.h"
     18 
     19 /**
     20  * Performs various tests on Region APIs
     21  **/
     22 class RegionTest: public IntlTest {
     23     // IntlTest override
     24     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
     25 
     26 public:
     27     RegionTest();
     28     virtual ~RegionTest();
     29 
     30     void TestKnownRegions(void);
     31     void TestGetInstanceString(void);
     32     void TestGetInstanceInt(void);
     33     void TestGetContainedRegions(void);
     34     void TestGetContainedRegionsWithType(void);
     35     void TestGetContainingRegion(void);
     36     void TestGetContainingRegionWithType(void);
     37     void TestGetPreferredValues(void);
     38     void TestContains(void);
     39     void TestAvailableTerritories(void);
     40     void TestNoContainedRegions(void);
     41 
     42 private:
     43 
     44     UBool optionv; // TRUE if @v option is given on command line
     45 };
     46 
     47 #endif /* #if !UCONFIG_NO_FORMATTING */
     48 
     49 #endif // _REGIONTEST_
     50 //eof
     51