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
2
Models Tested
50.0%
Success Rate
30s
Avg Duration
21s - 39s
Duration Range
Details
| Score | Model | Duration | Session (KB) | test_calculator_functions.sh | test_file_exists.sh | test_main_output.sh |
|---|---|---|---|---|---|---|
| 100.0% | litellm/GLM-4.5-Air-FP8-dev | 39s | 71.2 | ✅ | ✅ | ✅ |
| 0.0% | litellm/Mistral-Large-3-sandbox | 21s | 16.3 | ❌ | ❌ | ❌ |