added test coverage for f_neg_canonical_form
This commit is contained in:
parent
7aed260d5d
commit
fd555661a0
3 changed files with 16 additions and 8 deletions
|
|
@ -2,6 +2,7 @@ import stl
|
|||
from stl.hypothesis import SignalTemporalLogicStrategy
|
||||
|
||||
from hypothesis import given
|
||||
from pytest import raises
|
||||
|
||||
|
||||
CONTEXT = {
|
||||
|
|
@ -23,6 +24,11 @@ def test_f_neg_or_canonical_form(phi):
|
|||
isinstance(x, (stl.ast.G, stl.ast.And)) for x in phi2.walk())
|
||||
|
||||
|
||||
def test_f_neg_or_canonical_form_not_implemented():
|
||||
with raises(NotImplementedError):
|
||||
stl.utils.f_neg_or_canonical_form(stl.ast.AST())
|
||||
|
||||
|
||||
def test_inline_context_rigid():
|
||||
phi = stl.parse('G(AP1)')
|
||||
phi2 = phi.inline_context(CONTEXT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue