Spaces:
Sleeping
Sleeping
Download dataset/problem_17/test.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 276 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_17/test.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_17/test.py
-
curl -L -o test.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_17/test.py
276 Bytes
| import unittest | |
| from dataset.problem_17.buggy import dedupe_preserve_order | |
| class TestDedupe(unittest.TestCase): | |
| def test_order(self): | |
| self.assertEqual(dedupe_preserve_order([1, 2, 1, 3, 2]), [1, 2, 3]) | |
| if __name__ == "__main__": | |
| unittest.main() | |