python: fix check of is_parity()
* wrap/python/tests/accparse2.py: Do not check max and odd if is_parity is False, as this "argout" parameters are not initialized by SWIG.
This commit is contained in:
parent
96e2da8666
commit
7b5c37d5a5
1 changed files with 3 additions and 3 deletions
|
|
@ -25,11 +25,11 @@ assert(a.is_parity() == [True, False, True])
|
||||||
a.set_acceptance(spot.parse_acc_code('parity max even 5'))
|
a.set_acceptance(spot.parse_acc_code('parity max even 5'))
|
||||||
assert(a.is_parity() == [True, True, False])
|
assert(a.is_parity() == [True, True, False])
|
||||||
a.set_acceptance(spot.parse_acc_code('generalized-Buchi 5'))
|
a.set_acceptance(spot.parse_acc_code('generalized-Buchi 5'))
|
||||||
assert(a.is_parity() == [False, False, False])
|
assert(a.is_parity()[0] == False)
|
||||||
assert(a.is_parity(True) == [False, False, False])
|
assert(a.is_parity(True)[0] == False)
|
||||||
a.set_acceptance(spot.parse_acc_code(
|
a.set_acceptance(spot.parse_acc_code(
|
||||||
'Inf(4) | (Fin(3)&Inf(2)) | (Fin(3)&Fin(1)&Inf(0))'))
|
'Inf(4) | (Fin(3)&Inf(2)) | (Fin(3)&Fin(1)&Inf(0))'))
|
||||||
assert(a.is_parity() == [False, False, False])
|
assert(a.is_parity()[0] == False)
|
||||||
assert(a.is_parity(True) == [True, True, False])
|
assert(a.is_parity(True) == [True, True, False])
|
||||||
|
|
||||||
a = spot.acc_cond(0)
|
a = spot.acc_cond(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue