You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
514 B
15 lines
514 B
import stormpy
|
|
import stormpy.logic
|
|
|
|
class TestParse:
|
|
def test_parse_program(self):
|
|
program = stormpy.parse_program("../examples/dtmc/die/die.pm")
|
|
assert program.nr_modules() == 1
|
|
assert program.model_type() == stormpy.PrismModelType.DTMC
|
|
assert not program.has_undefined_constants()
|
|
|
|
def test_parse_formula(self):
|
|
prop = "P=? [F \"one\"]"
|
|
formulas = stormpy.parse_formulas(prop)
|
|
assert len(formulas) == 1
|
|
assert str(formulas[0]) == prop
|