* Test method for {@link statechum.analysis.learning.rpnicore.WMethod#appendAllSequences(statechum.analysis.learning.TestFSMAlgo.FSMStructure, java.util.Set, java.util.Set)}.
*/
@Test
public final void testAppendAllSequences1() {
LearnerGraph fsm = new LearnerGraph(buildGraph("A-p->A-b->B-c->B-a->C\nQ-d->S","testAppendAllSequences1"),config);
PrefixFreeCollection sequences = new SlowPrefixFreeCollection();
sequences.addSequence(Arrays.asList(new String[]{"p","b"}));
Set<List<String>> expected = buildSet(new String[][]{
new String[]{"p","b"},
new String[]{"g"},
new String[]{"p","p","p"}
});
fsm.wmethod.appendAllSequences(sequences, buildList(new String[][] {
new String[]{"p"},new String[]{"p","p"},new String[] {}, new String [] {"g"},new String[]{"p","p","p"}}));
Set<List<String>> actual = new HashSet<List<String>>();actual.addAll(sequences.getData());
Assert.assertTrue("expected : "+expected+" got: "+actual,expected.equals(actual));
}