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
@ -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…
Reference in New Issue
Block a user