diff options
Diffstat (limited to 'benchmark/agbenchmark/challenges/deprecated/code/4_tests/data.json')
-rw-r--r-- | benchmark/agbenchmark/challenges/deprecated/code/4_tests/data.json | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/benchmark/agbenchmark/challenges/deprecated/code/4_tests/data.json b/benchmark/agbenchmark/challenges/deprecated/code/4_tests/data.json new file mode 100644 index 000000000..e199b64ec --- /dev/null +++ b/benchmark/agbenchmark/challenges/deprecated/code/4_tests/data.json @@ -0,0 +1,33 @@ +{ + "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." +} |