ks_cobuchi: forbid n=0

* spot/gen/automata.hh: State the precondition.
* spot/gen/automata.cc: Catch n==0.
* tests/core/genaut.test: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2017-04-22 14:36:11 +02:00
parent 586f0cce7b
commit d25cdd4c6c
3 changed files with 7 additions and 2 deletions

View file

@ -36,3 +36,6 @@ cat >expected <<EOF
7,20,48,1,Fin(0)
EOF
diff out expected
genaut --ks-cobuchi=0 2>err && exit 1
grep positive err