2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// 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-2014, 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 CNUMTST.H
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
* Name Description
|
|
|
|
* Madhu Katragadda Creation
|
|
|
|
*********************************************************************************
|
|
|
|
*/
|
|
|
|
/* C API TEST FOR NUMBER FORMAT */
|
|
|
|
#ifndef _CNUMFRMTST
|
|
|
|
#define _CNUMFRMTST
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
|
2004-04-29 17:50:01 +00:00
|
|
|
/**
|
|
|
|
* The function used to test the Number format API
|
|
|
|
**/
|
|
|
|
static void TestNumberFormat(void);
|
|
|
|
|
2009-02-19 08:41:08 +00:00
|
|
|
/**
|
|
|
|
* The function used to test parsing of numbers in UNUM_SPELLOUT style
|
|
|
|
**/
|
|
|
|
static void TestSpelloutNumberParse(void);
|
|
|
|
|
2004-04-29 17:50:01 +00:00
|
|
|
/**
|
|
|
|
* The function used to test significant digits in the Number format API
|
|
|
|
**/
|
|
|
|
static void TestSignificantDigits(void);
|
|
|
|
|
2010-06-04 05:42:19 +00:00
|
|
|
/**
|
|
|
|
* The function used to test Number format API rounding with significant digits
|
|
|
|
**/
|
|
|
|
static void TestSigDigRounding(void);
|
|
|
|
|
2004-04-29 17:50:01 +00:00
|
|
|
/**
|
|
|
|
* The function used to test the Number format API with padding
|
|
|
|
**/
|
|
|
|
static void TestNumberFormatPadding(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The function used to test the Number format API with padding
|
|
|
|
**/
|
|
|
|
static void TestInt64Format(void);
|
|
|
|
|
2004-08-09 07:07:33 +00:00
|
|
|
static void TestNonExistentCurrency(void);
|
|
|
|
|
2004-04-29 17:50:01 +00:00
|
|
|
/**
|
|
|
|
* Test RBNF access through unumfmt APIs.
|
|
|
|
**/
|
|
|
|
static void TestRBNFFormat(void);
|
2004-03-12 20:15:13 +00:00
|
|
|
|
2005-06-02 21:56:14 +00:00
|
|
|
/**
|
|
|
|
* Test some Currency stuff
|
|
|
|
**/
|
|
|
|
static void TestCurrencyRegression(void);
|
|
|
|
|
2011-05-04 12:23:42 +00:00
|
|
|
/**
|
|
|
|
* Test strict parsing of "0"
|
|
|
|
**/
|
|
|
|
static void TestParseZero(void);
|
2005-06-02 21:56:14 +00:00
|
|
|
|
2011-10-26 02:16:23 +00:00
|
|
|
/**
|
|
|
|
* Test cloning formatter with RBNF
|
|
|
|
**/
|
|
|
|
static void TestCloneWithRBNF(void);
|
|
|
|
|
2014-06-12 21:40:34 +00:00
|
|
|
/**
|
|
|
|
* Test the Currency Usage Implementations
|
|
|
|
**/
|
|
|
|
static void TestCurrencyUsage(void);
|
2002-09-20 17:54:45 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|