Test Case Generation from Spec
Best right after writing a function, while the intended contract is still fresh.
Given this function signature and description: [paste], generate unit tests covering: (1) the happy path, (2) each boundary condition, (3) at least two adversarial/malformed inputs. Use [framework name].