Example #1
0
 def test_equal_1(self):
     matrix = [[1, 2], [3, 4]]
     rotate_in_place(matrix)
     self.assertEqual(matrix, [[3, 1], [4, 2]])
Example #2
0
 def test_equal_2(self):
     matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
     rotate_in_place(matrix)
     self.assertEqual(matrix, [[7, 4, 1], [8, 5, 2], [9, 6, 3]])