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

« back to all changes in this revision

Viewing changes to source/test/intltest/lcukocol.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
 
#ifndef LOTUSCOLLATIONKOREANTEST_H
9
 
#define LOTUSCOLLATIONKOREANTEST_H
10
 
 
11
 
#include "tscoll.h"
12
 
 
13
 
class LotusCollationKoreanTest: public IntlTestCollator {
14
 
public:
15
 
    // If this is too small for the test data, just increase it.
16
 
    // Just don't make it too large, otherwise the executable will get too big
17
 
    enum EToken_Len { MAX_TOKEN_LEN = 16 };
18
 
 
19
 
    LotusCollationKoreanTest();
20
 
    virtual ~LotusCollationKoreanTest();
21
 
    void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
22
 
 
23
 
    // main test routine, tests rules specific to "Kana" locale
24
 
    void doTest( UnicodeString source, UnicodeString target, Collator::EComparisonResult result);
25
 
 
26
 
    // performs test with strength TERIARY
27
 
    void TestTertiary(/* char* par */);
28
 
 
29
 
private:
30
 
    static const UChar testSourceCases[][MAX_TOKEN_LEN];
31
 
    static const UChar testTargetCases[][MAX_TOKEN_LEN];
32
 
    static const Collator::EComparisonResult results[];
33
 
 
34
 
    Collator *myCollation;
35
 
};
36
 
#endif