diff options
author | ankitjavalkar | 2016-12-21 15:12:19 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-12-21 18:12:52 +0530 |
commit | fb991b4792b48c80e269236bf5aa28a70d34dbf6 (patch) | |
tree | 6a8ef1418a85adfcde4e874b1af58be0fadc298a /yaksh | |
parent | c7cdf2554a1a55f27685c1d6fececb76a746e536 (diff) | |
download | online_test-fb991b4792b48c80e269236bf5aa28a70d34dbf6.tar.gz online_test-fb991b4792b48c80e269236bf5aa28a70d34dbf6.tar.bz2 online_test-fb991b4792b48c80e269236bf5aa28a70d34dbf6.zip |
Add errors only if test case is unsuccessful
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/grader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/grader.py b/yaksh/grader.py index db15e59..41b3ac1 100644 --- a/yaksh/grader.py +++ b/yaksh/grader.py @@ -147,8 +147,8 @@ class Grader(object): test_case_success, err, mark_fraction = test_case_instance.check_code() if test_case_success: weight += mark_fraction - - error.append(err) + else: + error.append(err) test_case_success_status[idx] = test_case_success success = all(test_case_success_status) |