Download data/software-top_words-5/test_solution.py from stoiclion/agent-workbench: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/datasets/stoiclion/agent-workbench/resolve/main/data/software-top_words-5/test_solution.py
- Command line
-
hf download hf://datasets/stoiclion/agent-workbench/data/software-top_words-5/test_solution.py
-
curl -L -o test_solution.py https://huggingface.co/datasets/stoiclion/agent-workbench/resolve/main/data/software-top_words-5/test_solution.py
353 Bytes
| from solution import top_words | |
| CASES = [ | |
| (('b a b c', 1), ['b']), | |
| ] | |
| failed = 0 | |
| for args, want in CASES: | |
| got = top_words(*args) | |
| status = 'ok' if got == want else 'FAIL' | |
| failed += status == 'FAIL' | |
| print(status, 'top_words', args, '->', repr(got), '(expected', repr(want) + ')') | |
| print('passed', len(CASES) - failed, 'of', len(CASES)) | |