test_minMax.py
Go to the documentation of this file.
1 import unittest
2 from rosparam_handler.param.MinMaxParameters import MinMaxParameters
3 
4 
5 class TestMinMaxParameters(unittest.TestCase):
7  params = MinMaxParameters()
8  self.assertEqual(params.int_param_w_minmax, 2)
9  self.assertAlmostEqual(params.double_param_w_minmax, 2.)
10 
11  self.assertEqual(params.vector_int_param_w_minmax, [0, 2, 2])
12  self.assertEqual(params.vector_double_param_w_minmax, [0, 1.2, 2.])
13 
14  self.assertEqual(params.map_param_w_minmax, {"value1": 0., "value2": 1.2, "value3": 2.})


rosparam_handler
Author(s): Claudio Bandera
autogenerated on Mon Jun 10 2019 14:48:10