public void TestExemplarSet2(){
int equalCount = 0;
HashSet testedExemplars = new HashSet();
for(int i=0; i<availableLocales.length; i++){
ULocale locale = availableLocales[i];
LocaleData ld = LocaleData.getInstance(locale);
int[] scriptCodes = UScript.getCode(locale);
if (scriptCodes==null) {
if(locale.toString().indexOf(("in"))<0){
errln("UScript.getCode returned null for locale: "+ locale);
}
continue;
}
UnicodeSet exemplarSets[] = new UnicodeSet[4];
for (int k=0; k<2; ++k) { // for casing option in (normal, uncased)
int option = (k==0) ? 0 : UnicodeSet.CASE;
for(int h=0; h<2; ++h){
int type = (h==0) ? LocaleData.ES_STANDARD : LocaleData.ES_AUXILIARY;
UnicodeSet exemplarSet = ld.getExemplarSet(option, type);
exemplarSets[k*2+h] = exemplarSet;
ExemplarGroup exGrp = new ExemplarGroup(exemplarSet, scriptCodes);
if (!testedExemplars.contains(exGrp)) {
testedExemplars.add(exGrp);