scuffed-code/icu4c/source/test/intltest/dcfmapts.h
Scott Russell 867e55f0cb ICU-10970 Support required decimal point
X-SVN-Rev: 36300
2014-08-30 21:53:10 +00:00

43 lines
1.2 KiB
C++

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2014, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#ifndef _INTLTESTDECIMALFORMATAPI
#define _INTLTESTDECIMALFORMATAPI
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "unicode/unistr.h"
#include "intltest.h"
class IntlTestDecimalFormatAPI: public IntlTest {
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
public:
/**
* Tests basic functionality of various API functions for DecimalFormat
**/
void testAPI(/*char *par*/);
void testRounding(/*char *par*/);
void testRoundingInc(/*char *par*/);
void TestCurrencyPluralInfo();
void TestScale();
void TestFixedDecimal();
void TestBadFastpath();
void TestRequiredDecimalPoint();
private:
/*Helper functions */
void verify(const UnicodeString& message, const UnicodeString& got, double expected);
void verifyString(const UnicodeString& message, const UnicodeString& got, UnicodeString& expected);
};
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif