fix crash of randaut -Q0

* src/twaalgos/randomgraph.cc: Replace an assertion by an exception.
* src/bin/randaut.cc: Diagnose -Q0.
* src/tests/randaut.test: Test it.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2015-10-15 13:29:59 +02:00
parent cd2e527526
commit 6cf807da6e
4 changed files with 10 additions and 1 deletions

View file

@ -144,4 +144,7 @@ grep 'randaut: --colored requires' stderr
$randaut -S -A'parity min even 0..3' -q -n10 --colored 2 2>stderr && exit 1
grep 'randaut: --colored requires' stderr
$randaut -Q0 1 2>stderr && exit 1
grep '0 states' stderr
: