~ubuntu-branches/ubuntu/gutsy/icu/gutsy-updates

« back to all changes in this revision

Viewing changes to source/test/intltest/itrbnf.h

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *******************************************************************************
3
 
 * Copyright (C) 1996-2000, International Business Machines Corporation and    *
4
 
 * others. All Rights Reserved.                                                *
5
 
 *******************************************************************************
6
 
 */
7
 
 
8
 
#ifndef ITRBNF_H
9
 
#define ITRBNF_H
10
 
 
11
 
#include "intltest.h"
12
 
 
13
 
#include "unicode/utypes.h"
14
 
#include "unicode/rbnf.h"
15
 
 
16
 
 
17
 
class IntlTestRBNF : public IntlTest {
18
 
 public:
19
 
 
20
 
  // IntlTest override
21
 
  virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par);
22
 
 
23
 
#if U_HAVE_RBNF
24
 
  /** 
25
 
   * Perform an API test
26
 
   */
27
 
  virtual void TestAPI();
28
 
 
29
 
  /**
30
 
   * Perform a simple spot check on the FractionalRuleSet logic
31
 
   */
32
 
  virtual void TestFractionalRuleSet();
33
 
 
34
 
#if 0
35
 
  /**
36
 
   * Perform API tests on llong
37
 
   */
38
 
  virtual void TestLLong();
39
 
  virtual void TestLLongConstructors();
40
 
  virtual void TestLLongSimpleOperators();
41
 
#endif
42
 
 
43
 
  /**
44
 
   * Perform a simple spot check on the English spellout rules
45
 
   */
46
 
  virtual void TestEnglishSpellout();
47
 
 
48
 
  /**
49
 
   * Perform a simple spot check on the English ordinal-abbreviation rules
50
 
   */
51
 
  virtual void TestOrdinalAbbreviations();
52
 
 
53
 
  /**
54
 
   * Perform a simple spot check on the duration-formatting rules
55
 
   */
56
 
  virtual void TestDurations();
57
 
 
58
 
  /**
59
 
   * Perform a simple spot check on the Spanish spellout rules
60
 
   */
61
 
  virtual void TestSpanishSpellout();
62
 
 
63
 
  /**
64
 
   * Perform a simple spot check on the French spellout rules
65
 
   */
66
 
  virtual void TestFrenchSpellout();
67
 
 
68
 
  /**
69
 
   * Perform a simple spot check on the Swiss French spellout rules
70
 
   */
71
 
  virtual void TestSwissFrenchSpellout();
72
 
 
73
 
  /**
74
 
   * Perform a simple spot check on the Italian spellout rules
75
 
   */
76
 
  virtual void TestItalianSpellout();
77
 
 
78
 
  /**
79
 
   * Perform a simple spot check on the German spellout rules
80
 
   */
81
 
  virtual void TestGermanSpellout();
82
 
 
83
 
  /**
84
 
   * Perform a simple spot check on the Thai spellout rules
85
 
   */
86
 
  virtual void TestThaiSpellout();
87
 
 
88
 
 protected:
89
 
  virtual void doTest(RuleBasedNumberFormat* formatter, const char* testData[][2], UBool testParsing);
90
 
  virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
91
 
 
92
 
/* U_HAVE_RBNF */
93
 
#else
94
 
 
95
 
  virtual void TestRBNFDisabled();
96
 
 
97
 
/* U_HAVE_RBNF */
98
 
#endif
99
 
};
100
 
 
101
 
// endif ITRBNF_H
102
 
#endif