parsetl: improve coverage
* spot/parsetl/parsetl.yy: Adjust one diagnostic. * spot/parsetl/scantl.ll: Fix recovering of missing closing brace in lenient mode. * tests/python/declenv.py: Move some tests... * tests/python/ltlparse.py: ... here, and add many more. * NEWS: Mention the lenient mode bug.
This commit is contained in:
parent
ab8a40cb10
commit
3d3baf449e
5 changed files with 162 additions and 26 deletions
|
|
@ -51,21 +51,3 @@ assert "unknown atomic proposition `d'" in err
|
|||
|
||||
f4 = spot.parse_prefix_ltl("R a b", env)
|
||||
assert not f4.errors
|
||||
|
||||
for (x, op) in [('a* <-> b*', "`<->'"),
|
||||
('a* -> b', "`->'"),
|
||||
('a ^ b*', "`^'"),
|
||||
('!(b*)', "`!'"),
|
||||
('a*[=2]', "[=...]"),
|
||||
('a*[->2]', "[->...]")]:
|
||||
f5 = spot.parse_infix_sere(x)
|
||||
assert f5.errors
|
||||
ostr = spot.ostringstream()
|
||||
f5.format_errors(ostr)
|
||||
err = ostr.str()
|
||||
assert "not a Boolean expression" in err
|
||||
assert op in err
|
||||
assert "SERE" in err
|
||||
|
||||
f6 = spot.parse_infix_sere('(a <-> b -> c ^ b)[=2] & c[->2]')
|
||||
assert not f6.errors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue