hoa: test DOS-style input

* src/tgbatest/hoaparse.test: Add test.
This commit is contained in:
Alexandre Duret-Lutz 2014-11-25 11:44:58 +01:00
parent 0d59e55f4d
commit fa2ad77078

View file

@ -429,6 +429,13 @@ input:7.15-23: aborted input automaton
input:8.1-16.12: aborted input automaton input:8.1-16.12: aborted input automaton
EOF EOF
# DOS-style new lines should have the same output.
sed 's/$/\r/g' input > input.dos
mv input.dos input
../../bin/autfilt --hoa input 2>stderr && exit 1
cat stderr
diff stderr input.exp
cat >expected <<EOF cat >expected <<EOF
HOA: v1 HOA: v1
States: 2 States: 2