blob: c767ff195f8001e439962ee70393ee89ff192757 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
*******************************************************************************
* Copyright (C) 2004, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
#ifndef ITRBNFP_H
#define ITRBNFP_H
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "intltest.h"
#include "unicode/rbnf.h"
class IntlTestRBNFParse : public IntlTest {
public:
// IntlTest override
virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par);
#if U_HAVE_RBNF
/**
* Perform an API test
*/
virtual void TestParse();
void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status);
void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
protected:
/* U_HAVE_RBNF */
#else
virtual void TestRBNFParseDisabled();
/* U_HAVE_RBNF */
#endif
};
#endif /* #if !UCONFIG_NO_FORMATTING */
// endif ITRBNFP_H
#endif
|