HF RL Explorer

recipes: edge case

recipes: edge case: a task in smol-software-harbor (Harbor dataset). scale() in scaler.py must reject a non-positive number of servings on either side, but scale(1, 4, 0) silently returns 0 and negative targets give negative quantities. Make it raise ValueError for those too, like it already does…

The task

`scale()` in `scaler.py` must reject a non-positive number of servings on either side, but `scale(1, 4, 0)` silently returns 0 and negative targets give negative quantities. Make it raise `ValueError` for those too, like it already does for the source servings. Check with `python3 -m unittest -q tests/test_scale.py`.

Part of efederici/smol-software-harbor.