Generate test cases
generate_testsGenerates adversarial and edge-case test inputs—minimums, maximums, duplicates, sorted, and random cases—for a coding problem to validate solution robustness.
Instructions
Generate adversarial and edge-case test inputs (minimums, maximums, duplicates, sorted, random) for a problem.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"problemCode": "<problemCode>"
},
"name": "generate_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| constraints | No | Constraint parameters (n_min, n_max, val_min, val_max, problem_type) | |
| problemCode | Yes | Problem code |