Home | History | Annotate | Download | only in intltest
      1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
      2 // License & terms of use: http://www.unicode.org/copyright.html
      3 /********************************************************************
      4  * COPYRIGHT:
      5  * Copyright (c) 1997-2013, International Business Machines Corporation and
      6  * others. All Rights Reserved.
      7  ********************************************************************/
      8 
      9 #ifndef _INTLTESTDECIMALFORMATSYMBOLS
     10 #define _INTLTESTDECIMALFORMATSYMBOLS
     11 
     12 #include "unicode/utypes.h"
     13 
     14 #if !UCONFIG_NO_FORMATTING
     15 
     16 #include "unicode/unistr.h"
     17 #include "unicode/dcfmtsym.h"
     18 #include "intltest.h"
     19 /**
     20  * Tests for DecimalFormatSymbols
     21  **/
     22 class IntlTestDecimalFormatSymbols: public IntlTest {
     23     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
     24 
     25 private:
     26     /**
     27      * Test the API of DecimalFormatSymbols; primarily a simple get/set set.
     28      */
     29     void testSymbols(/*char *par*/);
     30     void testLastResortData();
     31 
     32      /** helper functions**/
     33     void Verify(double value, const UnicodeString& pattern,
     34                 const DecimalFormatSymbols &sym, const UnicodeString& expected);
     35 };
     36 
     37 #endif /* #if !UCONFIG_NO_FORMATTING */
     38 
     39 #endif
     40