1// Copyright (C) 2016 and later: Unicode, Inc. and others. 2// License & terms of use: http://www.unicode.org/copyright.html 3/******************************************************************** 4 * COPYRIGHT: 5 * Copyright (c) 1997-2003, 2007-2009 International Business Machines Corporation and 6 * others. All Rights Reserved. 7 ********************************************************************/ 8/******************************************************************************** 9* 10* File CNMDPTST.H 11* 12* Modification History: 13* Name Description 14* Madhu Katragadda Creation 15********************************************************************************* 16*/ 17/* C DEPTH TEST FOR NUMBER FORMAT */ 18 19#ifndef _CNUMDEPTST 20#define _CNUMDEPTST 21 22#include "unicode/utypes.h" 23#include "unicode/unum.h" 24 25#if !UCONFIG_NO_FORMATTING 26 27#include "cintltst.h" 28 29/* The function used to test differnet format patterns*/ 30static void TestPatterns(void); 31 32/* Test the handling of quotes*/ 33static void TestQuotes(void); 34 35/* Test patterns with exponential representation*/ 36static void TestExponential(void); 37 38/* Test the handling of the currency symbol in patterns. */ 39static void TestCurrencySign(void); 40 41/* Test proper rounding by the format method.*/ 42static void TestRounding487(void); 43 44/* Test proper handling of rounding modes. */ 45static void TestRounding5350(void); 46 47/* Test localized currency patterns. */ 48static void TestCurrency(void); 49 50/* Test getDoubleAttribute and getDoubleAttribute */ 51static void TestDoubleAttribute(void); 52 53static void TestSecondaryGrouping(void); 54 55/*Internal functions used*/ 56static void roundingTest(UNumberFormat*, double, int32_t, const char*); 57static void roundingTest2(UNumberFormat*, double, int32_t, const char*); 58 59static void TestCurrencyKeywords(void); 60 61static void TestGetKeywordValuesForLocale(void); 62 63#endif /* #if !UCONFIG_NO_FORMATTING */ 64 65#endif 66