randaut: add a --colored option
Fixes #83. * src/bin/randaut.cc: Add option. * src/twaalgos/randomgraph.cc, src/twaalgos/randomgraph.hh: Honor it. * src/tests/randaut.test: Add tests. * doc/org/randaut.org: Document it.
This commit is contained in:
parent
97665a584e
commit
715805fad3
5 changed files with 148 additions and 33 deletions
|
|
@ -133,3 +133,15 @@ AP: 2 "p0" "p1"
|
|||
AP: 3 "p0" "p1" "p2"
|
||||
EOF
|
||||
diff output expected
|
||||
|
||||
$randaut -A3 --colored 2 -H | grep 'properties:.*colored'
|
||||
$randaut -S -A'parity min even 3' --colored 2 -H | grep 'properties:.*colored'
|
||||
|
||||
$randaut --colored 2 2>stderr && exit 1
|
||||
grep 'randaut: --colored requires' stderr
|
||||
$randaut -A0..2 --colored 2 2>stderr && exit 1
|
||||
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
|
||||
|
||||
:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue