Spaces:
Running
Running
File size: 309 Bytes
03a907a | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import unittest
from dataset.problem_10.buggy import rotate_90_clockwise
class TestRotateMatrix(unittest.TestCase):
def test_2x2(self):
matrix = [[1, 2], [3, 4]]
self.assertEqual(rotate_90_clockwise(matrix), [[3, 1], [4, 2]])
if __name__ == "__main__":
unittest.main()
|