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

« back to all changes in this revision

Viewing changes to source/test/intltest/ucdtest.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
 
#include "intltest.h"
8
 
 
9
 
/** Helper function for TestUnicodeData */
10
 
U_CAPI void U_CALLCONV unicodeDataLineFn(void *context,
11
 
                              char *fields[][2], int32_t fieldCount,
12
 
                              UErrorCode *pErrorCode);
13
 
 
14
 
/** 
15
 
 * Test API and functionality of class Unicode
16
 
 **/
17
 
class UnicodeTest: public IntlTest {
18
 
public:
19
 
    UnicodeTest();
20
 
    virtual ~UnicodeTest();
21
 
    
22
 
    void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
23
 
 
24
 
    /** 
25
 
     * Test methods toUpperCase() and toLowerCase()
26
 
     **/
27
 
    void TestUpperLower(void);
28
 
    /** 
29
 
     * Test methods isLetter() and isDigit() 
30
 
     **/
31
 
    void TestLetterNumber(void);
32
 
    /** 
33
 
     * Tests methods isControl() and isPrintable()
34
 
     **/
35
 
    void TestControlPrint(void);
36
 
    /** 
37
 
     * Tests methods isJavaIdentifierStart(), isJavaIdentifierPart(),
38
 
     * isUnicodeIdentifierStart() and isUnicodeIdentifierPart()
39
 
     **/
40
 
    void TestIdentifier(void);
41
 
    /** 
42
 
     * Tests methods isDefined(), isBaseForm(), isSpaceChar() and getCellWidth()
43
 
     **/
44
 
    void TestMisc(void);
45
 
 
46
 
    /** 
47
 
     * tests methods getType(), isTitleCase(), and toTitleCase() 
48
 
     * as well as characterDirection()
49
 
     **/
50
 
    void TestUnicodeData(void);
51
 
    /** 
52
 
      * tests methods isSingle(), isLead(), and isTrail() 
53
 
      **/
54
 
    void TestCodeUnit(void);
55
 
    /**
56
 
      * Tests for isSurrogate(), isUnicodeChar(), isError(), isValid() 
57
 
      **/
58
 
    void TestCodePoint();
59
 
    /**
60
 
      * Tests for needMultipleChar(), charLength()
61
 
      **/
62
 
    void TestCharLength();
63
 
    /**
64
 
      * Tests for getScript()
65
 
      **/
66
 
    void TestScript();
67
 
 
68
 
private:
69
 
    /**
70
 
     * internal utility used by TestUnicodeData
71
 
     **/
72
 
    int32_t MakeProp(char* str);
73
 
    /**
74
 
     * internal utility used by TestUnicodeData
75
 
     **/
76
 
    int32_t MakeDir(char* str);
77
 
 
78
 
    friend void U_CALLCONV unicodeDataLineFn(void *context,
79
 
                              char *fields[][2], int32_t fieldCount,
80
 
                              UErrorCode *pErrorCode);
81
 
};
82