mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-1007 add tests for better normalization test code coverage
X-SVN-Rev: 6754
This commit is contained in:
parent
23fa5a9046
commit
fad8c5cf95
1 changed files with 10 additions and 0 deletions
|
@ -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)");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue