mtl-aas/stl/test_parser.py
Marcell Vazquez-Chanlatte 212a8c195a stl generator
2017-09-29 21:13:22 -07:00

13 lines
279 B
Python

# -*- coding: utf-8 -*-
import stl
from hypothesis import given, event
from stl.hypothesis import SignalTemporalLogicStategy
@given(SignalTemporalLogicStategy(max_length=25))
def test_invertable_repr(phi):
event(str(phi))
assert str(phi) == str(stl.parse(str(phi)))