test UNICODE_STRING

X-Trac-URL: https://ssl.icu-project.org/trac/ticket/68



git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@269 0a8b766c-62c9-45f9-954d-7f2943c9ead0
This commit is contained in:
Markus Scherer 1999-12-01 17:52:21 +00:00
parent ded7d8f1c9
commit b3abcf2dba

View file

@ -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;