20 {
21 using EnvStateFunc = typename Model::EnvStateFunc;
22 using EnvParamFunc = typename Model::EnvParamFunc;
23
24
25 model.add_env_param_func(
"test_param", []() {
return -1; },
26 "some_glob_parameter", {true, true, {}});
27
28 EnvParamFunc
epf = []() {
return -2; };
29
30
31 model.add_env_param_func(
"another param test",
epf,
"some_glob_parameter",
32 {true, true, {}});
33
34
35
36 model.add_env_state_func(
"test_state",
39 env_state.set_env(
"some_het_parameter", -1.);
41 }
42 );
43
46 env_state.set_env(
"some_het_parameter", -1.);
48 };
49
50
51 model.add_env_state_func(
"another state test",
esf, Update::async);
52
53
55
56
57
60
61
62 model.set_parameter(
"some_glob_parameter", 100.);
64
65
67}
BOOST_TEST(constrain_angle(+1.)==+1.)
Assert the basic working of the regularisation function for angles.