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(); 31 void Test4074620() ; 32 void Test4088161(); 33 void Test4087245(); 34 void Test4087535(); 35 void Test4088503(); 36 void Test4066646(); 37 float assignFloatValue(float returnfloat); 38 void Test4059870(); 39 void Test4083018(); 40 void Test4071492(); 41 void Test4086575(); 42 void Test4068693(); 43 void Test4069754(); 44 void Test4087251(); 45 void Test4090489(); 46 void Test4090504(); 47 void Test4095713(); 48 void Test4092561(); 49 void Test4092480(); 50 void Test4087244(); 51 void Test4070798(); 52 void Test4071005(); 53 void Test4071014(); 54 void Test4071859(); 55 void Test4093610(); 56 void roundingTest(DecimalFormat *df, double x, UnicodeString& expected); 57 void Test4098741(); 58 void Test4074454(); 59 void Test4099404(); 60 void Test4101481(); 61 void Test4052223(); 62 void Test4061302(); 63 void Test4062486(); 64 void Test4108738(); 65 void Test4106658(); 66 void Test4106662(); 67 void Test4114639(); 68 void Test4106664(); 69 void Test4106667(); 70 void Test4110936(); 71 void Test4122840(); 72 void Test4125885(); 73 void Test4134034(); 74 void Test4134300(); 75 void Test4140009(); 76 void Test4141750(); 77 void Test4145457(); 78 void Test4147295(); 79 void Test4147706(); 80 81 void Test4162198(); 82 void Test4162852(); 83 84 void Test4167494(); 85 void Test4170798(); 86 void Test4176114(); 87 void Test4179818(); 88 void Test4212072(); 89 void Test4216742(); 90 void Test4217661(); 91 void Test4161100(); 92 void Test4243011(); 93 void Test4243108(); 94 void TestJ691(); 95 void Test8199(); 96 void Test9109(); 97 void Test9780(); 98 void Test9677(); 99 void Test10361(); 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