fix line number tracking in files with DOS newlines

* src/dstarparse/dstarscan.ll, src/kripkeparse/kripkescan.ll,
src/neverparse/neverclaimscan.ll, src/tgbaparse/tgbascan.ll:
Distinguish between 1-sized EOL and 2-sized EOL.
* src/kripketest/bad_parsing.test, src/tgbatest/neverclaimread.test,
src/tgbatest/readsave.test: Add more tests.
* NEWS: Mention it.
* src/kripkeparse/scankripke.ll: Remove this unused file.
This commit is contained in:
Alexandre Duret-Lutz 2014-11-18 11:07:02 +01:00
parent 881afd67ba
commit 45e9b96b66
9 changed files with 48 additions and 128 deletions

View file

@ -287,6 +287,14 @@ EOF
grep input: stderr > stderrfilt
diff stderrfilt expected-err
# DOS-style new lines should have the same output.
sed 's/$/\r/g' input > input.dos
mv input.dos input
run 2 ../ltl2tgba -ks -XN input > stdout 2>stderr
cat stderr
grep input: stderr > stderrfilt
diff stderrfilt expected-err
cat >formulae<<EOF
a
FG a