1 #include <gtest/gtest.h> 3 #include <rosparam_handler/MinMaxParameters.h> 5 typedef rosparam_handler::MinMaxParameters
ParamType;
8 TEST(RosparamHandler, MinMax) {
10 ASSERT_NO_THROW(testParams.fromParamServer());
12 ASSERT_EQ(2, testParams.int_param_w_minmax);
13 ASSERT_DOUBLE_EQ(2., testParams.double_param_w_minmax);
15 ASSERT_EQ(std::vector<int>({0, 2, 2}), testParams.vector_int_param_w_minmax);
16 ASSERT_EQ(std::vector<double>({0., 1.2, 2.}), testParams.vector_double_param_w_minmax);
18 std::map<std::string, double> tmp{{
"value1", 0.}, {
"value2", 1.2}, {
"value3", 2.}};
19 ASSERT_EQ(tmp, testParams.map_param_w_minmax);
TEST(RosparamHandler, MinMax)
rosparam_handler::MinMaxConfig ConfigType
rosparam_handler::MinMaxParameters ParamType
rosparam_handler::DefaultsParameters ParamType