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:
parent
61924aec37
commit
cd4c326f7b
5 changed files with 98 additions and 4 deletions
|
|
@ -487,12 +487,12 @@ def out(self, src: 'unsigned int'):
|
|||
return $action(self, src)
|
||||
%}
|
||||
%feature("shadow") spot::twa_graph::state_from_number %{
|
||||
def state_from_number(self, s: 'unsigned int') -> "spot::twa_graph_state const *":
|
||||
def state_from_number(self, src: 'unsigned int') -> "spot::twa_graph_state const *":
|
||||
self.report_univ_dest(src)
|
||||
return $action(self, src)
|
||||
%}
|
||||
%feature("shadow") spot::twa_graph::state_acc_sets %{
|
||||
def state_acc_sets(self, s: 'unsigned int') -> "spot::acc_cond::mark_t":
|
||||
def state_acc_sets(self, src: 'unsigned int') -> "spot::acc_cond::mark_t":
|
||||
self.report_univ_dest(src)
|
||||
return $action(self, src)
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue