Exemple #1
0
 def test_first_step_from_unactivated_origin_with_dir_up_is_right(self):
     ant = AntGrid()
     ant.x, ant.y = 0, 0
     ant.dir = "up"
     ant.step()
     self.assertEqual(1, ant.x)
     self.assertEqual(0, ant.y)
Exemple #2
0
 def test_first_step_from_unactivated_origin_with_dir_up_is_right(self):
     ant = AntGrid()
     ant.x, ant.y = 0, 0
     ant.dir = "up"
     ant.step()
     self.assertEqual(1, ant.x)
     self.assertEqual(0, ant.y)