mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5410 Improve code coverage
X-SVN-Rev: 20500
This commit is contained in:
parent
b72a2a59a4
commit
3a1a424dc2
1 changed files with 2 additions and 2 deletions
|
@ -294,11 +294,11 @@ public final class UCharacterCaseTest extends TestFmwk
|
|||
for (int i = 0; i < TITLE_DATA_.length;) {
|
||||
String test = TITLE_DATA_[i++];
|
||||
String expected = TITLE_DATA_[i++];
|
||||
ULocale locale = new ULocale(TITLE_DATA_[i++]);
|
||||
Locale locale = new Locale(TITLE_DATA_[i++]);
|
||||
int breakType = Integer.parseInt(TITLE_DATA_[i++]);
|
||||
BreakIterator iter =
|
||||
breakType >= 0 ?
|
||||
BreakIterator.getBreakInstance(locale, breakType) :
|
||||
BreakIterator.getBreakInstance(ULocale.forLocale(locale), breakType) :
|
||||
null;
|
||||
String result = UCharacter.toTitleCase(locale, test, iter);
|
||||
if (!expected.equals(result)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue