mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-8804 Ensure empty strings are included when calling the split method of a string
X-SVN-Rev: 30993
This commit is contained in:
parent
6592593c88
commit
7d66d16531
1 changed files with 3 additions and 1 deletions
|
@ -694,7 +694,9 @@ public final class UCharacterTest extends TestFmwk
|
|||
if(s.length()<4 || s.startsWith("#")) {
|
||||
continue;
|
||||
}
|
||||
String[] fields = s.split(";");
|
||||
String[] fields = s.split(";", -1);
|
||||
assert (fields.length == 15 ) : "Number of fields is " + fields.length + ": " + s;
|
||||
|
||||
int ch = Integer.parseInt(fields[0], 16);
|
||||
|
||||
// testing the general category
|
||||
|
|
Loading…
Add table
Reference in a new issue