测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 338 字符 |
模型生成的代码 (338 字符)
def is_product_even(numbers):
"""
Check if the product of numbers in a list is even.
Args:
numbers (list of int): A list of integers.
Returns:
bool: True if the product is even, False otherwise.
"""
# If any number is even, the product is even.
return any(x % 2 == 0 for x in numbers)
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试