Exemplo n.º 1
0
 def test_float_desc_to_asc(self):
     rng = Range(1.0, 0, -.2)
     rng.reverse()
     self.assertEqual(rng.start, 0)
     self.assertEqual(rng.stop, 1.0)
     self.assertEqual(rng.step, .2)
Exemplo n.º 2
0
 def test_int_desc_to_asc(self):
     rng = Range(10, 0, -2)
     rng.reverse()
     self.assertEqual(rng.start, 0)
     self.assertEqual(rng.stop, 10)
     self.assertEqual(rng.step, 2)