Ensure time remains positive following a timeshift
This commit is contained in:
parent
4f138133ef
commit
f3b84ef0fd
2 changed files with 11 additions and 1 deletions
|
|
@ -11,3 +11,12 @@ def test_eval_regression_smoke1():
|
|||
}
|
||||
f2 = mtl.parse('(a U[0,3] b)')
|
||||
f2(d2, quantitative=False)
|
||||
|
||||
|
||||
def test_eval_regression_next_neg():
|
||||
"""From issue #219"""
|
||||
d = {"a": [(0, False), (1, True)]}
|
||||
f = mtl.parse("(a & (X (~a)))")
|
||||
v = f(d, quantitative=False, dt=1, time=None)
|
||||
assert not f(d, quantitative=False, dt=1)
|
||||
assert min(t for t, _ in v) >= 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue