mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-68 test UNICODE_STRING
X-SVN-Rev: 269
This commit is contained in:
parent
bbf2815b33
commit
be1763e24c
1 changed files with 16 additions and 0 deletions
|
@ -92,6 +92,22 @@ void StringTest::runIndexedTest(int32_t index, bool_t exec, char *&name, char *p
|
|||
}
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
name="Test_UNICODE_STRING";
|
||||
if(exec) {
|
||||
UnicodeString ustringVar=UNICODE_STRING("aZ0 -", 5);
|
||||
if( ustringVar.length()!=5 ||
|
||||
ustringVar[0]!=0x61 ||
|
||||
ustringVar[1]!=0x5a ||
|
||||
ustringVar[2]!=0x30 ||
|
||||
ustringVar[3]!=0x20 ||
|
||||
ustringVar[4]!=0x2d
|
||||
) {
|
||||
errln("Test_UNICODE_STRING: UNICODE_STRING does not work right! "
|
||||
"See unistr.h and utypes.h with platform.h.");
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
name="";
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue