summaryrefslogtreecommitdiff
path: root/yaksh/compare_stdio.py
diff options
context:
space:
mode:
authormahesh2017-05-17 12:26:06 +0530
committermahesh2017-05-17 12:45:41 +0530
commit94f51e9c4286224057a404e48fad5069a4ed332c (patch)
tree03685a4e1b8104734d829ad58d22b83a9b3e93fe /yaksh/compare_stdio.py
parent6d8e1aa67381cd3b07e4ac89818af2a96ca05668 (diff)
downloadonline_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.py4
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: