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

« back to all changes in this revision

Viewing changes to source/test/intltest/strtest.cpp

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2005-05-21 22:44:31 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: package-import@ubuntu.com-20050521224431-r7rktfhnu1n4tf1g
Tags: 2.1-2.1
Rename icu-doc to icu21-doc. icu-doc is built by the icu28 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
}
37
37
 
38
38
void StringTest::TestSizeofInt64(void) {
 
39
#ifdef U_INT64_T_UNAVAILABLE
 
40
    errln("int64_t and uint64_t are undefined.");
 
41
#else
39
42
    if(8!=sizeof(int64_t)) {
40
43
        errln("TestSizeofInt64: 8!=sizeof(int64_t) - int64_t needs to be fixed in platform.h");
41
44
    }
42
45
    if(8!=sizeof(uint64_t)) {
43
46
        errln("TestSizeofInt64: 8!=sizeof(uint64_t) - uint64_t needs to be fixed in platform.h");
44
47
    }
 
48
#endif
45
49
}
46
50
 
47
51
void StringTest::TestCharsetFamily(void) {
117
121
            }
118
122
        }
119
123
        break;
 
124
    case 6:
 
125
        name="Test_UNICODE_STRING_SIMPLE";
 
126
        if(exec) {
 
127
            UnicodeString ustringVar=UNICODE_STRING_SIMPLE("aZ0 -");
 
128
            if( ustringVar.length()!=5 ||
 
129
                ustringVar[0]!=0x61 ||
 
130
                ustringVar[1]!=0x5a ||
 
131
                ustringVar[2]!=0x30 ||
 
132
                ustringVar[3]!=0x20 ||
 
133
                ustringVar[4]!=0x2d
 
134
            ) {
 
135
                errln("Test_UNICODE_STRING_SIMPLE: UNICODE_STRING_SIMPLE does not work right! "
 
136
                      "See unistr.h and utypes.h with platform.h.");
 
137
            }
 
138
        }
 
139
        break;
120
140
    default:
121
141
        name="";
122
142
        break;