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

  1. import stormpy
  2. import stormpy.logic
  3. class TestParse:
  4. def test_parse_program(self):
  5. program = stormpy.parse_program("../examples/dtmc/die/die.pm")
  6. assert program.nr_modules() == 1
  7. assert program.model_type() == stormpy.PrismModelType.DTMC
  8. assert not program.has_undefined_constants()
  9. def test_parse_formula(self):
  10. prop = "P=? [F \"one\"]"
  11. formulas = stormpy.parse_formulas(prop)
  12. assert len(formulas) == 1
  13. assert str(formulas[0]) == prop