Task task10_multiple_tests
# Test Task with Multiple Test Files
Create a simple calculator script that supports basic operations.
## Requirements
1. Create a file `calculator.py` that:
- Has a function `add(a, b)` that returns a + b
- Has a function `subtract(a, b)` that returns a - b
- Has a function `multiply(a, b)` that returns a * b
- Has a function `divide(a, b)` that returns a / b (handle division by zero)
2. Create a file `main.py` that:
- Imports the calculator module
- Prints "Calculator ready!"
Make sure all functions work correctly.
PS: You are currently working in an automated system and cannot ask any question or have back and forth with an user.
Create a simple calculator script that supports basic operations.
## Requirements
1. Create a file `calculator.py` that:
- Has a function `add(a, b)` that returns a + b
- Has a function `subtract(a, b)` that returns a - b
- Has a function `multiply(a, b)` that returns a * b
- Has a function `divide(a, b)` that returns a / b (handle division by zero)
2. Create a file `main.py` that:
- Imports the calculator module
- Prints "Calculator ready!"
Make sure all functions work correctly.
PS: You are currently working in an automated system and cannot ask any question or have back and forth with an user.
Results
15
Models Tested
80.0%
Success Rate
1m 57s
Avg Duration
12s - 10m 0s
Duration Range
Details
| Score | Model | Duration | Session (KB) | test_calculator_functions.sh | test_file_exists.sh | test_main_output.sh |
|---|---|---|---|---|---|---|
| 100.0% | openrouter/anthropic/claude-opus-4.5 | 41s | 76.1 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/openai/gpt-oss-120b | 39s | 62.3 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/qwen/qwen3-coder | 39s | 81.1 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/x-ai/grok-3-mini | 52s | 286.1 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/google/gemini-2.5-pro | 54s | 79.2 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/openai/gpt-4o-mini | 8m 26s | 85.2 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/google/gemini-2.5-flash-lite-preview-09-2025 | 29s | 78.6 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/anthropic/claude-haiku-4.5 | 42s | 89.8 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/deepseek/deepseek-v3.1-terminus | 41s | 53.3 | ✅ | ✅ | ✅ |
| 100.0% | litellm/GLM-4.5-Air-FP8-dev | 30s | 74.8 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/anthropic/claude-sonnet-4.5 | 34s | 61.3 | ✅ | ✅ | ✅ |
| 100.0% | openrouter/x-ai/grok-code-fast-1 | 2m 58s | 61.4 | ✅ | ✅ | ✅ |
| 33.3% | openrouter/google/gemini-3-pro-preview | 1m 7s | 36.4 | ✅ | ❌ | ❌ |
| 0.0% | openrouter/openai/gpt-oss-20b | 12s | 20.5 | ❌ | ❌ | ❌ |
| 0.0% | openrouter/deepseek/deepseek-chat-v3-0324 | 10m 0s | 0.0 | — | — | — |