Skip to content

Commit

Permalink
Adapted test to changes in #138 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
volkm authored Nov 28, 2023
2 parents d5df2a5 + 8a346f2 commit 4590572
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/pars/test_pla.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ def test_pla(self):
checker = stormpy.pars.create_region_checker(env, model, formulas[0].raw_formula)
parameters = model.collect_probability_parameters()
assert len(parameters) == 2
region = stormpy.pars.ParameterRegion.create_from_string("0.7<=pL<=0.9,0.75<=pK<=0.95", parameters, splitting_threshold=None)
region = stormpy.pars.ParameterRegion.create_from_string("0.7<=pL<=0.9,0.75<=pK<=0.95", parameters)
result = checker.check_region(env, region)
assert result == stormpy.pars.RegionResult.ALLSAT
region = stormpy.pars.ParameterRegion.create_from_string("0.4<=pL<=0.65,0.75<=pK<=0.95", parameters, splitting_threshold=None)
region = stormpy.pars.ParameterRegion.create_from_string("0.4<=pL<=0.65,0.75<=pK<=0.95", parameters)
result = checker.check_region(env, region, stormpy.pars.RegionResultHypothesis.UNKNOWN, stormpy.pars.RegionResult.UNKNOWN, True)
assert result == stormpy.pars.RegionResult.EXISTSBOTH
region = stormpy.pars.ParameterRegion.create_from_string("0.1<=pL<=0.73,0.2<=pK<=0.715", parameters, splitting_threshold=None)
region = stormpy.pars.ParameterRegion.create_from_string("0.1<=pL<=0.73,0.2<=pK<=0.715", parameters)
result = checker.check_region(env, region)
assert result == stormpy.pars.RegionResult.ALLVIOLATED

Expand Down

0 comments on commit 4590572

Please sign in to comment.