diff options
author | mahesh | 2017-05-17 12:26:06 +0530 |
---|---|---|
committer | mahesh | 2017-05-17 12:45:41 +0530 |
commit | 94f51e9c4286224057a404e48fad5069a4ed332c (patch) | |
tree | 03685a4e1b8104734d829ad58d22b83a9b3e93fe /yaksh/compare_stdio.py | |
parent | 6d8e1aa67381cd3b07e4ac89818af2a96ca05668 (diff) | |
download | online_test-94f51e9c4286224057a404e48fad5069a4ed332c.tar.gz online_test-94f51e9c4286224057a404e48fad5069a4ed332c.tar.bz2 online_test-94f51e9c4286224057a404e48fad5069a4ed332c.zip |
changed assertions for stdio test cases
Diffstat (limited to 'yaksh/compare_stdio.py')
-rw-r--r-- | yaksh/compare_stdio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/compare_stdio.py b/yaksh/compare_stdio.py index ba258c3..3b1b998 100644 --- a/yaksh/compare_stdio.py +++ b/yaksh/compare_stdio.py @@ -29,13 +29,13 @@ class CompareOutputs(object): if ng != ne: err_line_no = self._incorrect_user_lines(exp_lines, given_lines) msg["error_no"] = err_line_no - msg["error"] = "We had expected {0} number of lines. We got {1} number of lines.".format(ne, ng) + msg["error"] = "Incorrect Answer: We had expected {0} number of lines. We got {1} number of lines.".format(ne, ng) return False, msg else: err_line_no = self._incorrect_user_lines(exp_lines, given_lines) if err_line_no: msg["error_no"] = err_line_no - msg["error"] = "Line number(s) {0} did not match."\ + msg["error"] = "Incorrect Answer: Line number(s) {0} did not match."\ .format(", ".join(map(str,[x+1 for x in err_line_no]))) return False, msg else: |