2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2001-03-21 20:09:56 +00:00
|
|
|
* Copyright (c) 1997-2001, 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*/);
|
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);
|
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
|