"EIEIO " + // 1 syllable
"EieIOo " + // 1 syllable
"OTTO " // 2 syllables
);
EventDriver eventDriver = new SyllableTransitionEventDriver();
EventSet sampleEventSet = eventDriver.createEventSet(text.toCharArray());
EventSet expectedEventSet = new EventSet();
Vector<Event> tmp = new Vector<Event>();
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 2]", eventDriver));
tmp.add(new Event("[2, 2]", eventDriver));
tmp.add(new Event("[2, 2]", eventDriver));
tmp.add(new Event("[2, 2]", eventDriver));
tmp.add(new Event("[2, 3]", eventDriver));
tmp.add(new Event("[3, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 1]", eventDriver));
tmp.add(new Event("[1, 2]", eventDriver));
expectedEventSet.addEvents(tmp);
System.out.println(expectedEventSet.toString());
System.out.println(sampleEventSet.toString());
assertTrue(expectedEventSet.equals(sampleEventSet));
/* test case 2 -- trigrams */
EventDriver ed = new SyllableTransitionEventDriver();
ed.setParameter("N","3");
sampleEventSet = ed.createEventSet(text.toCharArray());
expectedEventSet = new EventSet();
tmp = new Vector<Event>();
tmp.add(new Event("[1, 1, 1]", ed));