]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | /******************************************************************** |
57a6839d A |
2 | * COPYRIGHT: |
3 | * Copyright (c) 1997-2014, International Business Machines Corporation and | |
b75a7d8f A |
4 | * others. All Rights Reserved. |
5 | ********************************************************************/ | |
6 | ||
7 | ||
8 | #ifndef _INTLTESTDECIMALFORMATAPI | |
9 | #define _INTLTESTDECIMALFORMATAPI | |
10 | ||
11 | #include "unicode/utypes.h" | |
12 | ||
13 | #if !UCONFIG_NO_FORMATTING | |
14 | ||
15 | #include "unicode/unistr.h" | |
16 | #include "intltest.h" | |
17 | ||
18 | ||
19 | class IntlTestDecimalFormatAPI: public IntlTest { | |
57a6839d | 20 | void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); |
b75a7d8f A |
21 | |
22 | public: | |
23 | /** | |
24 | * Tests basic functionality of various API functions for DecimalFormat | |
25 | **/ | |
26 | void testAPI(/*char *par*/); | |
27 | void testRounding(/*char *par*/); | |
729e4ab9 A |
28 | void testRoundingInc(/*char *par*/); |
29 | void TestCurrencyPluralInfo(); | |
51004dcb | 30 | void TestScale(); |
57a6839d A |
31 | void TestFixedDecimal(); |
32 | void TestBadFastpath(); | |
b75a7d8f A |
33 | private: |
34 | /*Helper functions */ | |
35 | void verify(const UnicodeString& message, const UnicodeString& got, double expected); | |
51004dcb | 36 | void verifyString(const UnicodeString& message, const UnicodeString& got, UnicodeString& expected); |
b75a7d8f A |
37 | }; |
38 | ||
39 | #endif /* #if !UCONFIG_NO_FORMATTING */ | |
40 | ||
41 | #endif |