ICU-8804 Ensure empty strings are included when calling the split method of a string

X-SVN-Rev: 30993
This commit is contained in:
Michael Ow 2011-11-30 18:17:25 +00:00
parent 6592593c88
commit 7d66d16531

View File

@ -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