---
@agent {
  role: test engineer,
  llm: claude-3-5-sonnet-20241022,
  max_tokens: 2000,
  temperature: 0.4
}

@input language: String
@input function_code: String

@validate output {
  must_contain: ["test", "assert"],
  format: text,
  min_length: 100
}
---

# Test Generation Request

**Language**: {{ language }}

**Function to test**:
```{{ language }}
{{ function_code }}
```

Generate comprehensive unit tests for this function covering:

1. **Happy path**: Normal expected usage
2. **Edge cases**: Boundary conditions, empty inputs, etc.
3. **Error cases**: Invalid inputs, error handling
4. **Special cases**: Any language-specific considerations

Provide:
- Complete, runnable test code
- Clear test names describing what's being tested
- Assertions that verify expected behavior
- Comments explaining non-obvious test cases

Use idiomatic {{ language }} testing conventions.
