bin: improve range diagnostic

Fixes #181.

* bin/common_range.cc: Here.
* tests/core/ltlfilt.test: Add test case.
This commit is contained in:
Alexandre Duret-Lutz 2016-06-21 18:15:08 +02:00
parent 205e2116d1
commit f7f353db68
2 changed files with 9 additions and 2 deletions

View file

@ -344,4 +344,8 @@ test "`cat out`" = 'GF"a\"\\b"'
$ltlfilt --lbt-input -f 'G F "a\"\\b"' -l > out
test "`cat out`" = 'G F "a\"\\b"'
$ltlfilt --size=foo=2..3 2>stderr && exit 1
grep 'invalid range.*should start with' stderr
true