ICU-1007 add tests for better normalization test code coverage

X-SVN-Rev: 6754
This commit is contained in:
Markus Scherer 2001-11-10 23:33:01 +00:00
parent 23fa5a9046
commit fad8c5cf95

View file

@ -780,4 +780,14 @@ BasicNormalizerTest::TestNormalizerAPI() {
if(copy.last()!=0x308) {
errln("error in Normalizer(1000*U+0308).last()");
}
// test UNORM_NONE
norm.setMode(UNORM_NONE);
if(norm.first()!=0x61 || norm.next()!=0x308 || norm.last()!=0x2f800) {
errln("error in Normalizer(UNORM_NONE).first()/next()/last()");
}
Normalizer::normalize(s, UNORM_NONE, 0, out, status);
if(out!=s) {
errln("error in Normalizer::normalize(UNORM_NONE)");
}
}