2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
|
|
|
* Copyright (c) 1997-1999, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef _INTLTESTDECIMALFORMATAPI
|
|
|
|
#define _INTLTESTDECIMALFORMATAPI
|
|
|
|
|
|
|
|
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
|
|
|
|
class IntlTestDecimalFormatAPI: public IntlTest {
|
2000-06-22 01:09:15 +00:00
|
|
|
void runIndexedTest( int32_t index, bool_t exec, 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
|
|
|
|
**/
|
|
|
|
void testAPI(char *par);
|
2000-06-22 01:09:15 +00:00
|
|
|
void testRounding(char *par);
|
2000-06-22 17:26:12 +00:00
|
|
|
private:
|
2000-06-22 01:09:15 +00:00
|
|
|
/*Helper functions */
|
|
|
|
void verify(const UnicodeString& message, const UnicodeString& got, double expected);
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|