python: fix return of is_rabin_like() and is_streett_like()

* python/spot/impl.i: Fix instantiation of vector_rs_pairs.
* tests/python/setacc.py: Add test cases.
* NEWS: Mention the bugs.
This commit is contained in:
Alexandre Duret-Lutz 2018-10-31 19:43:26 +01:00
parent 266581b272
commit 5bb9c87d4c
3 changed files with 25 additions and 2 deletions

View file

@ -475,7 +475,9 @@ namespace std {
%feature("flatnested") spot::acc_cond::acc_code;
%feature("flatnested") spot::acc_cond::rs_pair;
%apply bool* OUTPUT {bool& max, bool& odd};
%template(vector_rs_pair) std::vector<spot::acc_cond::rs_pair>;
namespace std {
%template(vector_rs_pair) vector<spot::acc_cond::rs_pair>;
}
%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>;