Skip to content

Commit

Permalink
Removed star test
Browse files Browse the repository at this point in the history
  • Loading branch information
VincenzoArceri committed Aug 23, 2023
1 parent ad48a0a commit dad9923
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ private SimpleAutomaton connectAutomaton(SimpleAutomaton second, SortedSet<State
t.getSymbol()));
}
if (t.getSource().isInitial()) {
// TODO better recheck this function
for (State s : connectOn) {
if (states.contains(secondMapping.get(t.getSource())))
delta.add(new Transition<>(secondMapping.get(t.getSource()), firstMapping.get(s),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,4 @@ public void test03() {
SimpleAutomaton c = new SimpleAutomaton("a").union(new SimpleAutomaton(" b "));
assertTrue(c.trim().isEqualTo(new SimpleAutomaton("a").union(new SimpleAutomaton("b"))));
}

@Test
public void test04() {
SimpleAutomaton c = new SimpleAutomaton(" a ").star();
assertTrue(c.trim().isEqualTo(new SimpleAutomaton("a").star()));
}
}

0 comments on commit dad9923

Please sign in to comment.