← All tasks
Coding
Write tests
Generate unit, integration or end-to-end tests for existing code.
Ranked from coding, reasoning, speed scores — no head-to-head votes for this task yet.
Coding · 60%Reasoning · 30%Speed · 10%
Start with this prompt
Written for this task. Fill in the bracketed parts.
Write tests for the code below using [test framework]. Cover the happy path, the edge cases, and the failure modes. I care more about tests that would actually catch a regression than about coverage percentage. For each test, a one-line comment on what breakage it's guarding against. Tell me anything you found untestable as written, and why. --- [paste the code]
- ★PerplexityPerplexity AIStrong data5.7—
- 2CopilotMicrosoftStrong data5.5—
- 3DeepSeekDeepSeekStrong data5.4—
- 4ClaudeAnthropicStrong data5.4—
- 5GeminiGoogleStrong data5.4—
- 6GrokxAIStrong data5.3—
- 7ChatGPTOpenAIStrong data5.3—
- 8Meta AIMetaStrong data5.2—
- 9MistralMistral AIStrong data5.2—
Disagree with this ranking?
Vote head-to-head and your answer feeds straight back into this board.
Help rank these →Try another task