| OLD | NEW |
| 1 /******************************************************************** | 1 /******************************************************************** |
| 2 * COPYRIGHT: | 2 * COPYRIGHT: |
| 3 * Copyright (c) 1997-2009, International Business Machines Corporation and | 3 * Copyright (c) 1997-2015, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 ********************************************************************/ | 5 ********************************************************************/ |
| 6 | 6 |
| 7 #ifndef _NUMBERFORMATROUNDTRIPTEST_ | 7 #ifndef _NUMBERFORMATROUNDTRIPTEST_ |
| 8 #define _NUMBERFORMATROUNDTRIPTEST_ | 8 #define _NUMBERFORMATROUNDTRIPTEST_ |
| 9 | 9 |
| 10 #include "unicode/utypes.h" | 10 #include "unicode/utypes.h" |
| 11 | 11 |
| 12 #if !UCONFIG_NO_FORMATTING | 12 #if !UCONFIG_NO_FORMATTING |
| 13 | 13 |
| 14 #include "unicode/numfmt.h" | 14 #include "unicode/numfmt.h" |
| 15 #include "unicode/fmtable.h" | 15 #include "unicode/fmtable.h" |
| 16 #include "intltest.h" | 16 #include "intltest.h" |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Performs round-trip tests for NumberFormat | 19 * Performs round-trip tests for NumberFormat |
| 20 **/ | 20 **/ |
| 21 class NumberFormatRoundTripTest : public IntlTest { | 21 class NumberFormatRoundTripTest : public IntlTest { |
| 22 | 22 |
| 23 // IntlTest override | 23 // IntlTest override |
| 24 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par
); | 24 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par
); |
| 25 public: | 25 public: |
| 26 | 26 |
| 27 static UBool verbose; | 27 static UBool verbose; |
| 28 static UBool STRING_COMPARE; | 28 static UBool STRING_COMPARE; |
| 29 static UBool EXACT_NUMERIC_COMPARE; | 29 static UBool EXACT_NUMERIC_COMPARE; |
| 30 static UBool DEBUG; | 30 static UBool DEBUG_VAR; |
| 31 static double MAX_ERROR; | 31 static double MAX_ERROR; |
| 32 static double max_numeric_error; | 32 static double max_numeric_error; |
| 33 static double min_numeric_error; | 33 static double min_numeric_error; |
| 34 | 34 |
| 35 | 35 |
| 36 void start(void); | 36 void start(void); |
| 37 | 37 |
| 38 void test(NumberFormat *fmt); | 38 void test(NumberFormat *fmt); |
| 39 void test(NumberFormat *fmt, double value); | 39 void test(NumberFormat *fmt, double value); |
| 40 void test(NumberFormat *fmt, int32_t value); | 40 void test(NumberFormat *fmt, int32_t value); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 68 | 68 |
| 69 protected: | 69 protected: |
| 70 UBool failure(UErrorCode status, const char* msg, UBool possibleDataError=FA
LSE); | 70 UBool failure(UErrorCode status, const char* msg, UBool possibleDataError=FA
LSE); |
| 71 | 71 |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif /* #if !UCONFIG_NO_FORMATTING */ | 74 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 75 | 75 |
| 76 #endif // _NUMBERFORMATROUNDTRIPTEST_ | 76 #endif // _NUMBERFORMATROUNDTRIPTEST_ |
| 77 //eof | 77 //eof |
| OLD | NEW |