CodingFree→ Claude / ChatGPT
Generate Unit Tests
A solid first pass of tests for a function, including edge cases.
What you get: A test file covering the happy path, edge cases, and error conditions, using your test framework.
Write unit tests for the function below using {{test_framework}}. Cover: the happy path, boundary/edge-case inputs, and error conditions. Use descriptive test names that state the expected behavior, not the implementation.
Function:
{{code}}