• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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) 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 ) override;
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     void testDigitSymbols();
32     void testNumberingSystem();
33 
34      /** helper functions**/
35     void Verify(double value, const UnicodeString& pattern,
36                 const DecimalFormatSymbols &sym, const UnicodeString& expected);
37 };
38 
39 #endif /* #if !UCONFIG_NO_FORMATTING */
40 
41 #endif
42