acc: Adjust generalition of parity acceptance
According to https://github.com/adl/hoaf/issues/46 * src/twa/acc.cc (parity): Adjust generation. * src/tests/hoaparse.test, wrap/python/tests/accparse.ipynb: Adjust existing test cases. * wrap/python/tests/accparse2.py: New test cases.
This commit is contained in:
parent
05ef316c23
commit
5d7f4464ea
4 changed files with 37 additions and 32 deletions
|
|
@ -36,9 +36,11 @@ a = spot.acc_cond(0)
|
|||
a.set_acceptance(spot.parse_acc_code('all'))
|
||||
assert(a.is_rabin() == -1)
|
||||
assert(a.is_streett() == 0)
|
||||
assert(a.is_parity() == [True, True, True])
|
||||
a.set_acceptance(spot.parse_acc_code('none'))
|
||||
assert(a.is_rabin() == 0)
|
||||
assert(a.is_streett() == -1)
|
||||
assert(a.is_parity() == [True, True, False])
|
||||
|
||||
a = spot.acc_cond(2)
|
||||
a.set_acceptance(spot.parse_acc_code('(Fin(0)&Inf(1))'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue