Пример #1
0
 def test_calculate_movement_backward__facing_W(self):
     from plutoRover import calculate_movement
     calculate_movement("B", "W")
     from plutoRover import x, y
     self.assertEqual(x, 0)
     self.assertEqual(y, 0)
Пример #2
0
 def test_calculate_movement_forward_facing_S(self):
     from plutoRover import calculate_movement
     calculate_movement("F", "S")
     from plutoRover import x, y
     self.assertEqual(x, 1)
     self.assertEqual(y, 0)