Browse Source

Relaxed precision requirements on an MA LRA test-case to correctly represent a relative precision criterion.

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
9d2e5c2193
  1. 2
      src/test/storm/modelchecker/csl/MarkovAutomatonCslModelCheckerTest.cpp

2
src/test/storm/modelchecker/csl/MarkovAutomatonCslModelCheckerTest.cpp

@ -341,7 +341,7 @@ namespace {
EXPECT_NEAR(this->parseNumber("0"), this->getQuantitativeResultAtInitialState(model, result), this->precision()); EXPECT_NEAR(this->parseNumber("0"), this->getQuantitativeResultAtInitialState(model, result), this->precision());
result = checker->check(this->env(), tasks[8]); result = checker->check(this->env(), tasks[8]);
EXPECT_NEAR(this->parseNumber("407"), this->getQuantitativeResultAtInitialState(model, result), this->precision());
EXPECT_NEAR(this->parseNumber("407"), this->getQuantitativeResultAtInitialState(model, result), this->precision() * this->parseNumber("407")); // use relative precision!
result = checker->check(this->env(), tasks[9]); result = checker->check(this->env(), tasks[9]);
EXPECT_NEAR(this->parseNumber("27"), this->getQuantitativeResultAtInitialState(model, result), this->precision()); EXPECT_NEAR(this->parseNumber("27"), this->getQuantitativeResultAtInitialState(model, result), this->precision());

Loading…
Cancel
Save