autfilt: easier simplification defaults

This is motivated by an email from Fanda.

* src/bin/common_post.cc, src/bin/common_post.hh: Add variables to
detect when level or pref are sets.
* src/bin/autfilt.cc: Adjust default for pref/sets.
* src/tests/readsave.test: Add test cases.
* NEWS: Mention it.
This commit is contained in:
Alexandre Duret-Lutz 2015-10-15 16:37:26 +02:00
parent 2ae1b6a6f0
commit e3682a2301
5 changed files with 40 additions and 2 deletions

View file

@ -715,6 +715,8 @@ State: 2 {0 1} [0] 2
EOF
$autfilt -H --small --high input4 >output4
$autfilt -H --small input4 >output4b
$autfilt -H --high input4 >output4c
cat output4
cat >expect4<<EOF
@ -737,3 +739,5 @@ State: 2 {0}
EOF
diff output4 expect4
diff output4b expect4
diff output4c expect4