thermal receipt printer: add test
thermal receipt printer: add test: a task in smol-software-harbor (Harbor dataset). Add tests to tests/test layout.py for line() : wrapping at spaces (a name that fits exactly in the room left of the price stays on one line), the price right-aligned so the last line is exactly 32 characters, and…
The task
Add tests to `tests/test_layout.py` for `line()`: wrapping at spaces (a name that fits exactly in the room left of the price stays on one line), the price right-aligned so the last line is exactly 32 characters, and splitting of a word longer than the room. Keep the existing test and do not change `printer/`. Run…
Part of efederici/smol-software-harbor.