Example #1
0
 def testBackwardHalfMetre(self):
     d = DriveSystem(2)
     d.backward(0.5)
     self.assertEqual(d.get_position(), (0, -0.5))
     self.assertEqual(d.get_bearing(), 0)
Example #2
0
 def testBackwardTwoMetres(self):
     d = DriveSystem(2)
     d.backward(2)
     self.assertEqual(d.get_position(), (0, -2))
     self.assertEqual(d.get_bearing(), 0)
Example #3
0
 def testBackwardOneMetre(self):
     d = DriveSystem(2)
     d.backward(1)
     self.assertEqual(d.get_position(), (0, -1))
     self.assertEqual(d.get_bearing(), 0)