Spaces:
Sleeping
Sleeping
Download debug_env/tasks/task1/test_code.py from VanshGoel1/debug-env: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/VanshGoel1/debug-env/resolve/main/debug_env/tasks/task1/test_code.py
- Command line
-
hf download hf://spaces/VanshGoel1/debug-env/debug_env/tasks/task1/test_code.py
-
curl -L -o test_code.py https://huggingface.co/spaces/VanshGoel1/debug-env/resolve/main/debug_env/tasks/task1/test_code.py
254 Bytes
| from broken_code import add, multiply | |
| def test_add(): | |
| assert add(1, 2) == 3 | |
| assert add(0, 0) == 0 | |
| assert add(-1, 1) == 0 | |
| def test_multiply(): | |
| assert multiply(3, 4) == 12 | |
| assert multiply(0, 5) == 0 | |
| assert multiply(-2, 3) == -6 | |