Go to the documentation of this file.00001 import unittest
00002 from rosparam_handler.param.MinMaxParameters import MinMaxParameters
00003
00004
00005 class TestMinMaxParameters(unittest.TestCase):
00006 def test_min_max_parameters(self):
00007 params = MinMaxParameters()
00008 self.assertEqual(params.int_param_w_minmax, 2)
00009 self.assertAlmostEqual(params.double_param_w_minmax, 2.)
00010
00011 self.assertEqual(params.vector_int_param_w_minmax, [0, 2, 2])
00012 self.assertEqual(params.vector_double_param_w_minmax, [0, 1.2, 2.])
00013
00014 self.assertEqual(params.map_param_w_minmax, {"value1": 0., "value2": 1.2, "value3": 2.})