autfilt: add --unused-ap and --used-ap
Last part of #170. * bin/autfilt.cc: Implement the new options. * tests/core/remprop.test: Add a quick test. * NEWS: Mention these options.
This commit is contained in:
parent
95d16ba009
commit
f5bfc07cfc
3 changed files with 53 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ State: 0 {0}
|
|||
--END--
|
||||
EOF
|
||||
|
||||
autfilt automaton > output
|
||||
autfilt automaton --used-ap=1 --unused-ap=2 > output
|
||||
diff automaton output
|
||||
|
||||
cat >expect <<EOF
|
||||
|
|
@ -132,3 +132,6 @@ EOF
|
|||
|
||||
autfilt --remove-unused-ap automaton > output
|
||||
diff output expect
|
||||
|
||||
autfilt output --used-ap=0..1 --unused-ap=0 > output2
|
||||
diff output output2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue