diff options
author | maheshgudi | 2018-04-06 16:52:45 +0530 |
---|---|---|
committer | maheshgudi | 2018-04-06 16:52:51 +0530 |
commit | 7f04851ccbb4d8b541a3ed38aa13cff36b6e898c (patch) | |
tree | 1a35de41c7d71fb8f49eb0b12328763502668752 /yaksh/grader.py | |
parent | 97e6372b344f02c541e443afde5ba468506bccd8 (diff) | |
download | online_test-7f04851ccbb4d8b541a3ed38aa13cff36b6e898c.tar.gz online_test-7f04851ccbb4d8b541a3ed38aa13cff36b6e898c.tar.bz2 online_test-7f04851ccbb4d8b541a3ed38aa13cff36b6e898c.zip |
Add test cases to check if code passes without testcases
Diffstat (limited to 'yaksh/grader.py')
-rw-r--r-- | yaksh/grader.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/grader.py b/yaksh/grader.py index eede4d6..c9dc8a2 100644 --- a/yaksh/grader.py +++ b/yaksh/grader.py @@ -131,10 +131,9 @@ class Grader(object): # Add a new signal handler for the execution of this code. prev_handler = create_signal_handler() success = False + test_case_success_status = [False] if len(test_case_instances) != 0: test_case_success_status = [False] * len(test_case_instances) - else: - test_case_success_status = [False] error = [] weight = 0.0 |