Shopy101

Prompt · Code

Write unit tests

A test list and code that doesn't skip edge cases.

Fill in the blanks

Fields you leave empty stay in square brackets; the assistant will ask you for them.

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]
```

More prompts

See all