autfilt --acceptance-is=Fin-less should reject "f"

* bin/autfilt.cc: Fix detection of Fin-less acceptance.
* tests/core/remfin.test: Add some tests.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2018-03-16 14:00:27 +01:00
parent 1db3472a99
commit 1c26764b13
3 changed files with 11 additions and 1 deletions

View file

@ -1541,3 +1541,10 @@ SPOT_STREETT_CONV_MIN=0 \
autcross --language-preserved -Ftest1 \
'SPOT_STREETT_CONV_MIN=1 autfilt --remove-fin %H>%O' \
'SPOT_STREETT_CONV_MIN=1 autfilt --tgba %H>%O'
ltl2tgba true > h1
autfilt -F h1 --acceptance-is=Fin-less
autfilt --complement -F h1 > h2
autfilt -F h2 --acceptance-is=f
autfilt -F h2 --acceptance-is=Fin-less && exit 1
autfilt --remove-fin -F h2 | autfilt --acceptance-is=Fin-less