Spaces:
Sleeping
Sleeping
Download dataset/problem_4/test.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_4/test.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_4/test.py
-
curl -L -o test.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_4/test.py
398 Bytes
| import unittest | |
| from dataset.problem_4.buggy import merge_sorted | |
| class TestMergeSorted(unittest.TestCase): | |
| def test_regular_merge(self): | |
| self.assertEqual(merge_sorted([1, 3, 5], [2, 4, 6]), [1, 2, 3, 4, 5, 6]) | |
| def test_uneven_lengths(self): | |
| self.assertEqual(merge_sorted([1, 2], [3, 4, 5]), [1, 2, 3, 4, 5]) | |
| if __name__ == "__main__": | |
| unittest.main() | |