Fill fields, review the preview, then copy or open elsewhere.
Leave a field empty to keep its placeholder in the preview.
Write comprehensive unit tests for the following function using {{framework}}.
Cover:
- Happy-path cases
- Edge cases (empty input, boundary values, max sizes)
- Error cases (invalid input, exceptions)
Use clear test names that describe the behavior being tested.
Function:
{{code}}