Imported Upstream version 58.1
[platform/upstream/icu.git] / source / test / intltest / itrbnfp.h
1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4  *******************************************************************************
5  * Copyright (C) 2004, International Business Machines Corporation and         *
6  * others. All Rights Reserved.                                                *
7  *******************************************************************************
8  */
9
10 #ifndef ITRBNFP_H
11 #define ITRBNFP_H
12
13 #include "unicode/utypes.h"
14
15 #if !UCONFIG_NO_FORMATTING
16
17 #include "intltest.h"
18 #include "unicode/rbnf.h"
19
20
21 class IntlTestRBNFParse : public IntlTest {
22  public:
23
24   // IntlTest override
25   virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par);
26
27 #if U_HAVE_RBNF
28   /** 
29    * Perform an API test
30    */
31   virtual void TestParse();
32
33   void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status);
34   void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
35
36  protected:
37
38 /* U_HAVE_RBNF */
39 #else
40
41   virtual void TestRBNFParseDisabled();
42
43 /* U_HAVE_RBNF */
44 #endif
45 };
46
47 #endif /* #if !UCONFIG_NO_FORMATTING */
48
49 // endif ITRBNFP_H
50 #endif