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
6  * and others. All Rights Reserved.
7  ***********************************************************************/
8 
9 #ifndef _NUMBERFORMATREGRESSIONTEST_
10 #define _NUMBERFORMATREGRESSIONTEST_
11 
12 #include "unicode/utypes.h"
13 
14 #if !UCONFIG_NO_FORMATTING
15 
16 #include "unicode/unistr.h"
17 #include "unicode/numfmt.h"
18 #include "unicode/decimfmt.h"
19 #include "intltest.h"
20 
21 /**
22  * Performs regression test for MessageFormat
23  **/
24 class NumberFormatRegressionTest: public IntlTest {
25 
26     // IntlTest override
27     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) override;
28 public:
29 
30     void Test4075713(void);
31     void Test4074620(void) ;
32     void Test4088161 (void);
33     void Test4087245 (void);
34     void Test4087535 (void);
35     void Test4088503 (void);
36     void Test4066646 (void);
37     float assignFloatValue(float returnfloat);
38     void Test4059870(void);
39     void Test4083018 (void);
40     void Test4071492 (void);
41     void Test4086575(void);
42     void Test4068693(void);
43     void Test4069754(void);
44     void Test4087251 (void);
45     void Test4090489 (void);
46     void Test4090504 (void);
47     void Test4095713 (void);
48     void Test4092561 (void);
49     void Test4092480 (void);
50     void Test4087244 (void);
51     void Test4070798 (void);
52     void Test4071005 (void);
53     void Test4071014 (void);
54     void Test4071859 (void);
55     void Test4093610(void);
56     void roundingTest(DecimalFormat *df, double x, UnicodeString& expected);
57     void Test4098741(void);
58     void Test4074454(void);
59     void Test4099404(void);
60     void Test4101481(void);
61     void Test4052223(void);
62     void Test4061302(void);
63     void Test4062486(void);
64     void Test4108738(void);
65     void Test4106658(void);
66     void Test4106662(void);
67     void Test4114639(void);
68     void Test4106664(void);
69     void Test4106667(void);
70     void Test4110936(void);
71     void Test4122840(void);
72     void Test4125885(void);
73     void Test4134034(void);
74     void Test4134300(void);
75     void Test4140009(void);
76     void Test4141750(void);
77     void Test4145457(void);
78     void Test4147295(void);
79     void Test4147706(void);
80 
81     void Test4162198(void);
82     void Test4162852(void);
83 
84     void Test4167494(void);
85     void Test4170798(void);
86     void Test4176114(void);
87     void Test4179818(void);
88     void Test4212072(void);
89     void Test4216742(void);
90     void Test4217661(void);
91     void Test4161100(void);
92     void Test4243011(void);
93     void Test4243108(void);
94     void TestJ691(void);
95     void Test8199(void);
96     void Test9109(void);
97     void Test9780(void);
98     void Test9677(void);
99     void Test10361(void);
100 protected:
101     UBool failure(UErrorCode status, const UnicodeString& msg, UBool possibleDataError=FALSE);
102     UBool failure(UErrorCode status, const UnicodeString& msg, const char *l, UBool possibleDataError=FALSE);
103     UBool failure(UErrorCode status, const UnicodeString& msg, const Locale& l, UBool possibleDataError=FALSE);
104 };
105 
106 #endif /* #if !UCONFIG_NO_FORMATTING */
107 
108 #endif // _NUMBERFORMATREGRESSIONTEST_
109 //eof
110