complement: improve code coverage

* spot/twaalgos/complement.cc: removed unused code
* tests/python/except.py: test for exception raised
This commit is contained in:
Antoine Martin 2018-07-02 18:36:56 +02:00
parent 4ca38d225a
commit 43d426aaae
2 changed files with 9 additions and 16 deletions

View file

@ -152,3 +152,10 @@ except RuntimeError as e:
assert "bit index is out of bounds" in str(e)
else:
report_missing_exception()
try:
spot.complement_semidet(spot.translate('Gb R a', 'ba'))
except RuntimeError as e:
assert "requires a semi-deterministic input" in str(e)
else:
report_missing_exception()