
Prompt - Unit Test Generator with Edge Cases
ChatGPT000
engineering
Prompt - Unit Test Generator with Edge Cases
Write comprehensive unit tests for the following function using [Jest/pytest/JUnit]: [PASTE FUNCTION]. Cover: normal/happy-path cases, edge cases (empty, null, boundary, large inputs), and error cases. Use clear test names that describe the scenario. Include setup/teardown if needed and add a brief comment on any case that reveals a likely bug in the original function.
