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