mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-21 23:14:24 +01:00
22 lines
931 B
JSON
22 lines
931 B
JSON
{
|
|
"name": "TestReturnCodeTests",
|
|
"category": ["code", "iterate"],
|
|
"task": "First, modify testfile.py to fill in the test case to be able to test the code in sample_code.py. Next, modify the multiply_int function in sample_code.py to be able to pass in a 'multiplier' argument to multiply the 'num' by 'multiplier'. Both arguments are integers. You can make sure you have correctly done this by running testfile.py that you previously modified.",
|
|
"dependencies": ["TestReturnCodeModify"],
|
|
"cutoff": 120,
|
|
"ground": {
|
|
"answer": "Just a simple multiple by 2 function. Num is 4 so answer is 8",
|
|
"should_contain": ["8", "49", "-12"],
|
|
"should_not_contain": [],
|
|
"files": ["test.py"],
|
|
"eval": {
|
|
"type": "python"
|
|
}
|
|
},
|
|
"info": {
|
|
"difficulty": "advanced",
|
|
"description": "Small step up, just writing the function with a name as well as the return statement.",
|
|
"side_effects": []
|
|
}
|
|
}
|