Skip to content

Commit aef5c31

Browse files
author
Edi Muškardin
authored
Merge pull request #98 from andreastedile/master
Remove unused parameter from WMethodEqOracle
2 parents c6790a7 + 28eff39 commit aef5c31

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

aalpy/oracles/WMethodEqOracle.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ class WMethodEqOracle(Oracle):
1111
finite-state machines'.
1212
"""
1313

14-
def __init__(self, alphabet: list, sul: SUL, max_number_of_states, shuffle_test_set=True):
14+
def __init__(self, alphabet: list, sul: SUL, max_number_of_states):
1515
"""
1616
Args:
1717
1818
alphabet: input alphabet
1919
sul: system under learning
2020
max_number_of_states: maximum number of states in the automaton
21-
shuffle_test_set: if True, test cases will be shuffled
2221
"""
2322

2423
super().__init__(alphabet, sul)
2524
self.m = max_number_of_states
26-
self.shuffle = shuffle_test_set
2725
self.cache = set()
2826

2927
def test_suite(self, cover, depth, char_set):

tests/test_wmethod_oracle.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ def test_wmethod_oracle(self):
8282
assert len(real.states) == 6
8383
assert len(hyp.states) == 2
8484
alphabet = real.get_input_alphabet()
85-
oracle = WMethodEqOracle(
86-
alphabet, AutomatonSUL(real), len(real.states) + 1, shuffle_test_set=False
87-
)
85+
oracle = WMethodEqOracle(alphabet, AutomatonSUL(real), len(real.states) + 1)
8886
cex = oracle.find_cex(hyp)
8987
assert cex is not None, "Expected a counterexample, but got None"
9088

@@ -98,9 +96,7 @@ def test_wmethod_oracle_with_lstar(self):
9896
assert len(real.states) == 6
9997
assert len(hyp.states) == 2
10098
alphabet = real.get_input_alphabet()
101-
oracle = WMethodEqOracle(
102-
alphabet, AutomatonSUL(real), len(real.states) + 1, shuffle_test_set=False
103-
)
99+
oracle = WMethodEqOracle(alphabet, AutomatonSUL(real), len(real.states) + 1)
104100
lstar_hyp = run_Lstar(alphabet, AutomatonSUL(real), oracle, "moore")
105101
# print(lstar_hyp)
106102
# visualize_automaton(lstar_hyp)

0 commit comments

Comments
 (0)