twa_graph: more test coverage

The goal is to improve coverage stats, but I discovered two issues
while doing so.

* tests/python/twagraph.py: New test case.
* tests/Makefile.am: Add it.
* spot/twa/twagraph.hh: Add fix typos in error messages.
* python/spot/impl.i: Fix broken wrappers for state_from_number and
state_acc_sets.
This commit is contained in:
Alexandre Duret-Lutz 2017-03-07 17:24:14 +01:00
parent be4f139757
commit 2e763a08cc
5 changed files with 98 additions and 4 deletions

View file

@ -257,7 +257,7 @@ namespace spot
{
if (SPOT_UNLIKELY(s >= num_states()))
throw std::invalid_argument
("set_init_state() called with nonexisiting state");
("set_init_state() called with nonexisting state");
init_number_ = s;
}
@ -273,7 +273,7 @@ namespace spot
for (I i = dst_begin; i != dst_end; ++i)
if (SPOT_UNLIKELY(*i >= ns))
throw std::invalid_argument
("set_univ_init_state() called with nonexisiting state");
("set_univ_init_state() called with nonexisting state");
init_number_ = g_.new_univ_dests(dst_begin, dst_end);
}