python: add some doc & tests for the acceptance bindings
* wrap/python/tests/acc_cond.ipynb: New file. * wrap/python/tests/Makefile.am, doc/org/tut.org: Add it. * wrap/python/spot_impl.i: Add printer for acc_cond::mark_t.
This commit is contained in:
parent
4993e80706
commit
2927cf38ac
4 changed files with 1005 additions and 8 deletions
|
|
@ -441,14 +441,6 @@ namespace std {
|
|||
std::string __str__() { return spot::str_psl(*self); }
|
||||
}
|
||||
|
||||
%extend spot::acc_cond::mark_t {
|
||||
// http://comments.gmane.org/gmane.comp.programming.swig/14822
|
||||
mark_t(const std::vector<unsigned>& f)
|
||||
{
|
||||
return new spot::acc_cond::mark_t(f.begin(), f.end());
|
||||
}
|
||||
}
|
||||
|
||||
%extend spot::twa {
|
||||
void set_name(std::string name)
|
||||
{
|
||||
|
|
@ -487,12 +479,25 @@ namespace std {
|
|||
}
|
||||
|
||||
%extend spot::acc_cond::mark_t {
|
||||
// http://comments.gmane.org/gmane.comp.programming.swig/14822
|
||||
mark_t(const std::vector<unsigned>& f)
|
||||
{
|
||||
return new spot::acc_cond::mark_t(f.begin(), f.end());
|
||||
}
|
||||
|
||||
std::string __str__()
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << *self;
|
||||
return os.str();
|
||||
}
|
||||
|
||||
std::string __repr__()
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << *self;
|
||||
return os.str();
|
||||
}
|
||||
}
|
||||
|
||||
%extend spot::twa_run {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue