Prompt · Code
Write unit tests
A test list and code that doesn't skip edge cases.
Ready prompt
Write unit tests for the function below using [test framework]. First list the cases to test: normal input, boundary values, empty/invalid input, error cases. Then write the test code. Each test name should say what it verifies. ``` [function] ```