Spaces:
Sleeping
Sleeping
Download dataset/problem_10/test.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_10/test.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_10/test.py
-
curl -L -o test.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_10/test.py
309 Bytes
| 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() | |