Browse Source

extract parametric prism program parse test

refactoring
Tom Janson 8 years ago
parent
commit
56ba8685d5
  1. 6
      tests/core/test_parse.py
  2. 3
      tests/storage/test_model.py

6
tests/core/test_parse.py

@ -10,6 +10,12 @@ class TestParse:
assert program.model_type == stormpy.PrismModelType.DTMC
assert not program.has_undefined_constants
def test_parse_parametric_prism_program(self):
program = stormpy.parse_prism_program(get_example_path("pdtmc", "brp16_2.pm"))
assert program.nr_modules == 5
assert program.model_type == stormpy.PrismModelType.DTMC
assert program.has_undefined_constants
def test_parse_formula(self):
formula = "P=? [F \"one\"]"
properties = stormpy.parse_properties(formula)

3
tests/storage/test_model.py

@ -26,9 +26,6 @@ class TestModel:
def test_build_parametric_dtmc_from_prism_program(self):
program = stormpy.parse_prism_program(get_example_path("pdtmc", "brp16_2.pm"))
assert program.nr_modules == 5
assert program.model_type == stormpy.PrismModelType.DTMC
assert program.has_undefined_constants
prop = "P=? [F s=5]"
formulas = stormpy.parse_properties_for_prism_program(prop, program)
model = stormpy.build_parametric_model(program, formulas)

Loading…
Cancel
Save