Spaces:
Sleeping
Sleeping
Download dataset/problem_15/test.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_15/test.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_15/test.py
-
curl -L -o test.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_15/test.py
354 Bytes
| import unittest | |
| from dataset.problem_15.buggy import has_overlap | |
| class TestIntervalOverlap(unittest.TestCase): | |
| def test_overlapping(self): | |
| self.assertTrue(has_overlap((1, 5), (4, 9))) | |
| def test_touching_endpoints(self): | |
| self.assertTrue(has_overlap((1, 3), (3, 7))) | |
| if __name__ == "__main__": | |
| unittest.main() | |