boolean checkPat (String source, UnicodeSet testSet, String pat) {
UnicodeSet testSet2 = new UnicodeSet(pat);
if (!testSet2.equals(testSet)) {
errln("Fail toPattern: " + source + "; " + pat + " => " +
testSet2.toPattern(false) + ", expected " +
testSet.toPattern(false));
return false;
}
return true;
}