fix is_generalized_rabin and is_generalized_streett

* spot/twa/acc.cc: Recoginize the single-pair case.
* python/spot/impl.i: Return the vector instead of taking it
by reference.
* tests/python/setacc.py: Add test cases.
* NEWS: Mention those changes.
This commit is contained in:
Alexandre Duret-Lutz 2018-11-08 11:35:15 +01:00
parent 29e08a1afb
commit fd32ab5dd7
4 changed files with 66 additions and 6 deletions

View file

@ -478,6 +478,7 @@ namespace std {
namespace std {
%template(vector_rs_pair) vector<spot::acc_cond::rs_pair>;
}
%apply std::vector<unsigned> &OUTPUT {std::vector<unsigned>& pairs}
%apply std::vector<spot::acc_cond::rs_pair> &OUTPUT {std::vector<spot::acc_cond::rs_pair>& pairs}
%include <spot/twa/acc.hh>
%template(pair_bool_mark) std::pair<bool, spot::acc_cond::mark_t>;