Ejemplo n.º 1
0
 def test_frange_again(self):
     min_i = 20.08
     max_i = 20.11
     jump = 0.01
     result_list = cast.frange(min_i, max_i, jump)
     self.assertEqual(result_list, [20.08, 20.09, 20.1])
Ejemplo n.º 2
0
 def test_frange(self):
     min_i = -1
     max_i = 1
     jump = 0.5
     result_list = cast.frange(min_i, max_i, jump)
     self.assertEqual(result_list, [-1, -0.5, 0, 0.5])