Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
EnvironmentBuilderTest.cpp
Go to the documentation of this file.
1#include "test/storm_gtest.h"
2
12
13// storm-pars does not register every settings module; building an environment must keep the defaults for the missing ones.
14TEST(EnvironmentBuilderTest, MissingModulesKeepDefaults) {
17
18 storm::Environment const defaultEnv;
19 storm::Environment builtEnv;
21 EXPECT_EQ(defaultEnv.modelchecker().multi().getMethod(), builtEnv.modelchecker().multi().getMethod());
22 EXPECT_EQ(defaultEnv.modelchecker().multi().getPrecision(), builtEnv.modelchecker().multi().getPrecision());
23 EXPECT_EQ(defaultEnv.solver().glpk().getIntegerTolerance(), builtEnv.solver().glpk().getIntegerTolerance());
24}
SolverEnvironment & solver()
ModelCheckerEnvironment & modelchecker()
MultiObjectiveModelCheckerEnvironment & multi()
storm::modelchecker::multiobjective::MultiObjectiveMethod const & getMethod() const
GlpkSolverEnvironment & glpk()
static storm::Environment buildEnvironment()
bool hasModule()
Returns true if the given module is registered.
TEST(EnvironmentBuilderTest, MissingModulesKeepDefaults)