2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2013-02-07 19:48:29 +00:00
|
|
|
* Copyright (c) 1997-2013, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef _INTLTESTDECIMALFORMATAPI
|
|
|
|
#define _INTLTESTDECIMALFORMATAPI
|
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
2001-10-08 23:26:58 +00:00
|
|
|
#include "unicode/unistr.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
|
|
|
|
class IntlTestDecimalFormatAPI: public IntlTest {
|
2000-08-14 21:42:36 +00:00
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-06-22 17:26:12 +00:00
|
|
|
public:
|
1999-08-16 21:50:52 +00:00
|
|
|
/**
|
|
|
|
* Tests basic functionality of various API functions for DecimalFormat
|
|
|
|
**/
|
2000-08-23 19:11:16 +00:00
|
|
|
void testAPI(/*char *par*/);
|
|
|
|
void testRounding(/*char *par*/);
|
2009-02-03 15:54:55 +00:00
|
|
|
void testRoundingInc(/*char *par*/);
|
2009-09-08 22:29:54 +00:00
|
|
|
void TestCurrencyPluralInfo();
|
2013-02-07 19:48:29 +00:00
|
|
|
void TestScale();
|
2000-08-14 21:42:36 +00:00
|
|
|
private:
|
2000-06-22 01:09:15 +00:00
|
|
|
/*Helper functions */
|
2000-08-14 21:42:36 +00:00
|
|
|
void verify(const UnicodeString& message, const UnicodeString& got, double expected);
|
2013-02-07 19:48:29 +00:00
|
|
|
void verifyString(const UnicodeString& message, const UnicodeString& got, UnicodeString& expected);
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|