twagraph: fix merge_edges() ignoring the first edge

This fixes #441, reported by Jérôme Dubois.

* tests/python/mergedge.py: New file.
* tests/Makefile.am: Add it.
* spot/twa/twagraph.cc (merge_edges): Fix initialization of second
loop.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2020-11-24 15:55:36 +01:00
parent 71060db9dd
commit fb224d3f63
4 changed files with 36 additions and 1 deletions

View file

@ -195,7 +195,8 @@ namespace spot
trans.resize(out);
tend = out;
out = in = 2;
out = 1;
in = 2;
// FIXME: We could should also merge edges when using
// fin_acceptance, but the rule for Fin sets are different than