Examples of SlowPrefixFreeCollection


Examples of statechum.model.testset.SlowPrefixFreeCollection

   */
  @Test
  public final void testAppendSequence4()
  {
    LearnerGraph fsm = buildLearnerGraph("A-p->A-b->B-c->B-a->C\nQ-d->S","testAppendSequence4",config);
    PrefixFreeCollection sequences = new SlowPrefixFreeCollection();
    sequences.addSequence(labelList(new String[]{"p","b"}));
    Set<List<Label>> expected = buildSet(new String[][]{
        new String[]{"p","b"},
        new String[]{"p","p"}
      },config);
   
    fsm.wmethod.appendSequence(sequences, labelList(new String[]{"p","p"}));
    Set<List<Label>> actual = new HashSet<List<Label>>();actual.addAll(sequences.getData());
    Assert.assertTrue("expected : "+expected+" got: "+actual,expected.equals(actual));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.