示例#1
0
 def test_ant_grid_turn_dir_right_to_left_when_activated(self):
     ant = AntGrid()
     ant.dir = "left"
     ant.turn(activated=True)
     self.assertEqual("down", ant.dir)
示例#2
0
 def test_ant_grid_turn_dir_right_to_left_when_activated(self):
     ant = AntGrid()
     ant.dir = "left"
     ant.turn(activated=True)
     self.assertEqual("down", ant.dir)
示例#3
0
 def test_ant_grid_turn_dir_right_to_left_when_unactivated(self):
     ant = AntGrid()
     ant.dir = "left"
     ant.turn(activated=False)
     self.assertEqual("up", ant.dir)
示例#4
0
 def test_ant_grid_turn_dir_right_to_left_when_unactivated(self):
     ant = AntGrid()
     ant.dir = "left"
     ant.turn(activated=False)
     self.assertEqual("up", ant.dir)