2016-06-15 18:58:17 +00:00
|
|
|
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (c) 1997-2003, 2007-2009 International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
2000-01-15 02:00:06 +00:00
|
|
|
********************************************************************/
|
|
|
|
/********************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
*
|
|
|
|
* File CNMDPTST.H
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
* Name Description
|
|
|
|
* Madhu Katragadda Creation
|
|
|
|
*********************************************************************************
|
|
|
|
*/
|
|
|
|
/* C DEPTH TEST FOR NUMBER FORMAT */
|
|
|
|
|
|
|
|
#ifndef _CNUMDEPTST
|
|
|
|
#define _CNUMDEPTST
|
|
|
|
|
2002-09-20 17:54:45 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "cintltst.h"
|
|
|
|
|
|
|
|
/* The function used to test differnet format patterns*/
|
|
|
|
static void TestPatterns(void);
|
|
|
|
|
|
|
|
/* Test the handling of quotes*/
|
|
|
|
static void TestQuotes(void);
|
|
|
|
|
|
|
|
/* Test patterns with exponential representation*/
|
|
|
|
static void TestExponential(void);
|
|
|
|
|
|
|
|
/* Test the handling of the currency symbol in patterns. */
|
|
|
|
static void TestCurrencySign(void);
|
|
|
|
|
|
|
|
/* Test proper rounding by the format method.*/
|
|
|
|
static void TestRounding487(void);
|
|
|
|
|
2007-06-06 01:17:15 +00:00
|
|
|
/* Test proper handling of rounding modes. */
|
|
|
|
static void TestRounding5350(void);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
/* Test localized currency patterns. */
|
|
|
|
static void TestCurrency(void);
|
|
|
|
|
2000-06-22 01:09:15 +00:00
|
|
|
/* Test getDoubleAttribute and getDoubleAttribute */
|
|
|
|
static void TestDoubleAttribute(void);
|
|
|
|
|
2000-07-20 23:47:59 +00:00
|
|
|
static void TestSecondaryGrouping(void);
|
2000-06-22 01:09:15 +00:00
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
/*Internal functions used*/
|
|
|
|
static void roundingTest(UNumberFormat*, double, int32_t, const char*);
|
2007-06-06 01:17:15 +00:00
|
|
|
static void roundingTest2(UNumberFormat*, double, int32_t, const char*);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2003-11-04 22:35:06 +00:00
|
|
|
static void TestCurrencyKeywords(void);
|
|
|
|
|
2009-03-09 20:39:13 +00:00
|
|
|
static void TestGetKeywordValuesForLocale(void);
|
|
|
|
|
2002-09-20 17:54:45 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|