Files
Auto-GPT/benchmark/agbenchmark/challenges/deprecated/code/4_tests/data.json
merwanehamadi 0e804e27dd Add more data challenges (#5390)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-28 19:30:08 -07:00

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."
}