spelling suggestions (edit distance): add test
spelling suggestions (edit distance): add test: a task in smol-software-harbor (Harbor dataset). The tests in tests/test main.c barely cover suggest() ( src/suggest.c ). Add checks for: a word with no dictionary entry within max dist returns NULL ; on a tie the first dictionary word wins; and a…
The task
The tests in `tests/test_main.c` barely cover `suggest()` (`src/suggest.c`). Add checks for: a word with no dictionary entry within `max_dist` returns `NULL`; on a tie the first dictionary word wins; and a match at exactly `max_dist` is accepted. Do not change `src/`; keep the existing checks. Run `make -B test`.
Part of efederici/smol-software-harbor.