diff options
author | ankitjavalkar | 2016-04-06 11:26:52 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-05-05 19:16:26 +0530 |
commit | d3241512c71d61b355358a691d18e4ff8a8df34c (patch) | |
tree | 0d1810fab8a10b7671400dab64a8b877b334a676 /yaksh/java_code_evaluator.py | |
parent | f120f5763904589d3c18b6cc0f4e227bcaef9a0a (diff) | |
download | online_test-d3241512c71d61b355358a691d18e4ff8a8df34c.tar.gz online_test-d3241512c71d61b355358a691d18e4ff8a8df34c.tar.bz2 online_test-d3241512c71d61b355358a691d18e4ff8a8df34c.zip |
Multiple test cases passed as dicts, check_code() is iterated based on no. of test cases
Diffstat (limited to 'yaksh/java_code_evaluator.py')
-rw-r--r-- | yaksh/java_code_evaluator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/java_code_evaluator.py b/yaksh/java_code_evaluator.py index e99448c..b325208 100644 --- a/yaksh/java_code_evaluator.py +++ b/yaksh/java_code_evaluator.py @@ -29,7 +29,7 @@ class JavaCodeEvaluator(CodeEvaluator): user_code_directory) return compile_command, compile_main - def check_code(self, user_answer, test_case_data): + def check_code(self, user_answer, test_case): """ Function validates student code using instructor code as reference.The first argument ref_code_path, is the path to instructor code, it is assumed to have executable permission. @@ -49,7 +49,7 @@ class JavaCodeEvaluator(CodeEvaluator): if the required permissions are not given to the file(s). """ - ref_code_path = test_case_data[0] + ref_code_path = test_case clean_ref_code_path, clean_test_case_path = self._set_test_code_file_path(ref_code_path) if not isfile(clean_ref_code_path): |