mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-01 13:24:22 +01:00
34 lines
1.1 KiB
JSON
34 lines
1.1 KiB
JSON
{
|
|
"category": [
|
|
"code",
|
|
"iterate"
|
|
],
|
|
"cutoff": 120,
|
|
"dependencies": [
|
|
"TestReturnCodeModify"
|
|
],
|
|
"eval_id": "d39b8ed1-5984-40b0-8de6-a1c5eec30bc7",
|
|
"ground": {
|
|
"answer": "Just a simple multiple by 2 function. Num is 4 so answer is 8",
|
|
"eval": {
|
|
"type": "python"
|
|
},
|
|
"files": [
|
|
"test.py"
|
|
],
|
|
"should_contain": [
|
|
"8",
|
|
"49",
|
|
"-12"
|
|
],
|
|
"should_not_contain": []
|
|
},
|
|
"info": {
|
|
"description": "Small step up, just writing the function with a name as well as the return statement.",
|
|
"difficulty": "advanced",
|
|
"side_effects": []
|
|
},
|
|
"name": "ReturnCodeTests",
|
|
"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."
|
|
}
|