def test_turn_left(self): self.labyrinths = game.Labyrinths() self.lab = [[1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0]] self.result = [[0, 0, 0, 0], [0, 0, 0, 0], [1, 1, 1, 1]] self.assertEqual(self.labyrinths.turn_left(self.lab), self.result)
def test_turn_around(self): self.labyrinths = game.Labyrinths() self.lab = [[1, 1, 2, 1, 1], [1, 0, 1, 1, 1], [0, 1, 0, 1, 0], [1, 1, 1, 0, 0], [1, 1, 1, 1, 1], [2, 2, 0, 1, 0]] self.result = [[0, 1, 0, 2, 2], [1, 1, 1, 1, 1], [0, 0, 1, 1, 1], [0, 1, 0, 1, 0], [1, 1, 1, 0, 1], [1, 1, 2, 1, 1]] self.assertEqual(self.labyrinths.turn_around(self.lab), self.result)