Unit test writer
ProblemWriting tests for existing functions is tedious, so edge cases go untested until they break in production.
Python: def slugify(title): return title.lower().replace(' ', '-') # pytest
Covers: basic title, multiple spaces, leading/trailing spaces, punctuation, empty string, unicode.
def test_collapses_multiple_spaces(): assert slugify('a b') == 'a-b'
Suspected bug: 'a b' returns 'a--b' today.
Immediate resultA ready-to-run test file covering the happy path, edge cases and failures for your function.


