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

« back to all changes in this revision

Viewing changes to source/test/intltest/ficoll.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
 
 * COPYRIGHT: 
3
 
 * Copyright (c) 1997-2001, International Business Machines Corporation and
4
 
 * others. All Rights Reserved.
5
 
 ********************************************************************/
6
 
 
7
 
/**
8
 
 * CollationFinnishTest is a third level test class. This tests the locale
9
 
 * specific primary and tertiary rules. For example, a-ring sorts after z
10
 
 * and w and v are equivalent.
11
 
 */
12
 
 
13
 
#ifndef _FICOLL
14
 
#define _FICOLL
15
 
 
16
 
#include "tscoll.h"
17
 
 
18
 
class CollationFinnishTest: public IntlTestCollator {
19
 
public:
20
 
    // If this is too small for the test data, just increase it.
21
 
    // Just don't make it too large, otherwise the executable will get too big
22
 
    enum EToken_Len { MAX_TOKEN_LEN = 16 };
23
 
 
24
 
    CollationFinnishTest();
25
 
    virtual ~CollationFinnishTest();
26
 
    void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
27
 
 
28
 
    // main test routine, tests rules specific to the finish locale
29
 
    void doTest( UnicodeString source, UnicodeString target, Collator::EComparisonResult result);
30
 
 
31
 
    // perform tests with strength PRIMARY
32
 
    void TestPrimary(/* char* par */);
33
 
 
34
 
    // perform test with strength TERTIARY
35
 
    void TestTertiary(/* char* par */);
36
 
 
37
 
private:
38
 
    static const UChar testSourceCases[][MAX_TOKEN_LEN];
39
 
    static const UChar testTargetCases[][MAX_TOKEN_LEN];
40
 
    static const Collator::EComparisonResult results[];
41
 
 
42
 
    Collator *myCollation;
43
 
};
44
 
#endif