summaryrefslogtreecommitdiff
path: root/yaksh/compare_stdio.py
diff options
context:
space:
mode:
authormaheshgudi2017-10-26 18:34:36 +0530
committermaheshgudi2017-11-07 14:50:09 +0530
commit16e8d4b3c096e6034c0066adffc8f5a520f272c7 (patch)
treeaf551bc18cb679bd816a78b45b8087beabf8a5be /yaksh/compare_stdio.py
parent807a52e45a9b6c6ac64a7a5e4bd8248900fb4367 (diff)
downloadonline_test-16e8d4b3c096e6034c0066adffc8f5a520f272c7.tar.gz
online_test-16e8d4b3c096e6034c0066adffc8f5a520f272c7.tar.bz2
online_test-16e8d4b3c096e6034c0066adffc8f5a520f272c7.zip
Beautiful error outputs
Diffstat (limited to 'yaksh/compare_stdio.py')
-rw-r--r--yaksh/compare_stdio.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/compare_stdio.py b/yaksh/compare_stdio.py
index c4076de..9c13a98 100644
--- a/yaksh/compare_stdio.py
+++ b/yaksh/compare_stdio.py
@@ -18,7 +18,8 @@ def compare_outputs(expected_output, user_output, given_input=None):
exp_lines = expected_output.splitlines()
msg = {"given_input":given_input,
"expected_output": exp_lines,
- "user_output":given_lines
+ "user_output":given_lines,
+ "type": "stdio"
}
ng = len(given_lines)
ne = len(exp_lines)