Spaces:
Sleeping
Sleeping
Download dataset/problem_6/test.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_6/test.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_6/test.py
-
curl -L -o test.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_6/test.py
379 Bytes
| import unittest | |
| from dataset.problem_6.buggy import count_unique_words | |
| class TestCountUniqueWords(unittest.TestCase): | |
| def test_duplicates(self): | |
| self.assertEqual(count_unique_words("Hi hi HI"), 1) | |
| def test_punctuation(self): | |
| self.assertEqual(count_unique_words("Hello, world! Hello."), 2) | |
| if __name__ == "__main__": | |
| unittest.main() | |