summaryrefslogtreecommitdiff
path: root/yaksh/code_evaluator.py
diff options
context:
space:
mode:
authorankitjavalkar2016-12-19 19:37:23 +0530
committerankitjavalkar2016-12-20 12:46:04 +0530
commit798d36aa12e22928e884668ae5c80a25d48393ea (patch)
tree8de32b8f4eac72ad103272ab056c421c46718c11 /yaksh/code_evaluator.py
parent4a0f94084bc26559ef3e26470619e87314f9d70e (diff)
downloadonline_test-798d36aa12e22928e884668ae5c80a25d48393ea.tar.gz
online_test-798d36aa12e22928e884668ae5c80a25d48393ea.tar.bz2
online_test-798d36aa12e22928e884668ae5c80a25d48393ea.zip
Change weight variable name to mark_fraction
Diffstat (limited to 'yaksh/code_evaluator.py')
-rw-r--r--yaksh/code_evaluator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/code_evaluator.py b/yaksh/code_evaluator.py
index ae61752..095099b 100644
--- a/yaksh/code_evaluator.py
+++ b/yaksh/code_evaluator.py
@@ -144,9 +144,9 @@ class CodeEvaluator(object):
for idx, test_case_instance in enumerate(test_case_instances):
test_case_success = False
test_case_instance.compile_code()
- test_case_success, err, test_case_weight = test_case_instance.check_code()
+ test_case_success, err, mark_fraction = test_case_instance.check_code()
if test_case_success:
- weight += test_case_weight
+ weight += mark_fraction
error += err + "\n"
test_case_success_status[idx] = test_case_success