Skip to content

Commit

Permalink
fix BreadthFirstExplorationEqOracle.py test case generation
Browse files Browse the repository at this point in the history
fix sevpa list type
  • Loading branch information
emuskardin committed Oct 16, 2024
1 parent a8db057 commit 9e9edcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion aalpy/automata/Sevpa.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class SevpaState(AutomatonState):

def __init__(self, state_id, is_accepting=False):
super().__init__(state_id)
self.transitions = defaultdict(List[SevpaTransition])
# list of SevpaTransition
self.transitions = defaultdict(list)
self.is_accepting = is_accepting


Expand Down
3 changes: 1 addition & 2 deletions aalpy/oracles/BreadthFirstExplorationEqOracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def __init__(self, alphabet, sul: SUL, depth=5):

# generate all test-cases
for seq in product(self.alphabet, repeat=self.depth):
input_seq = tuple([i for sub in seq for i in sub])
self.queue.append(input_seq)
self.queue.append(seq)

shuffle(self.queue)

Expand Down

0 comments on commit 9e9edcd

Please sign in to comment.