more coverage

* python/spot/impl.i: Add missing bindings from remprop.hh
* tests/python/except.py: New file to test several error cases.
* tests/Makefile.am: Add it.
* spot/twaalgos/rabin2parity.cc (iar): Fix error message.
This commit is contained in:
Alexandre Duret-Lutz 2018-01-19 21:19:36 +01:00
parent 206b1ee287
commit 527c802511
4 changed files with 67 additions and 7 deletions

View file

@ -282,12 +282,8 @@ namespace spot
twa_graph_ptr
iar(const const_twa_graph_ptr& aut)
{
auto res = iar_maybe(aut);
if (!res)
throw std::runtime_error("rabin2parity works only for Rabin-like "
"automata");
return res;
if (auto res = iar_maybe(aut))
return res;
throw std::runtime_error("iar() expects Rabin-like input");
}
}