HF RL Explorer

recipe scaling: fix bug

recipe scaling: fix bug: a task in smol-software-harbor (Harbor dataset). Scaled recipes show improper fractions such as 7/4 cups instead of 1 3/4 cups : Scale.pretty in lib/scale.rb must print mixed numbers as its comment describes. Fix it and run for f in test/ test.rb; do ruby -Ilib "$f" exit…

The task

Scaled recipes show improper fractions such as `7/4 cups` instead of `1 3/4 cups`: `Scale.pretty` in `lib/scale.rb` must print mixed numbers as its comment describes. Fix it and run `for f in test/*_test.rb; do ruby -Ilib "$f" || exit 1; done`.

Part of efederici/smol-software-harbor.