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.

12 lines
495 B

  1. import stormpy
  2. import stormpy.logic
  3. from helpers.helper import get_example_path
  4. import pytest
  5. class TestPrism:
  6. def test_prism_to_jani(self):
  7. program = stormpy.parse_prism_program(get_example_path("dtmc", "die.pm"))
  8. orig_properties = stormpy.parse_properties_for_prism_program("P=? [F \"two\"]", program)
  9. assert len(orig_properties) == 1
  10. jani_model, new_properties = program.to_jani(orig_properties)
  11. assert len(new_properties) == len(orig_properties)