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.

16 lines
478 B

  1. import stormpy
  2. import stormpy.logic
  3. from helpers.helper import get_example_path
  4. import math
  5. from configurations import dft
  6. @dft
  7. class TestBuild:
  8. def test_build_dft(self):
  9. dft = stormpy.dft.load_dft_json(get_example_path("dft", "and.json"))
  10. formulas = stormpy.parse_properties("T=? [ F \"failed\" ]")
  11. assert dft.nr_elements() == 3
  12. results = stormpy.dft.analyze_dft(dft, [formulas[0].raw_formula])
  13. assert math.isclose(results[0], 3)