diff options
author | maheshgudi | 2017-10-26 18:34:36 +0530 |
---|---|---|
committer | maheshgudi | 2017-11-07 14:50:09 +0530 |
commit | 16e8d4b3c096e6034c0066adffc8f5a520f272c7 (patch) | |
tree | af551bc18cb679bd816a78b45b8087beabf8a5be /yaksh/compare_stdio.py | |
parent | 807a52e45a9b6c6ac64a7a5e4bd8248900fb4367 (diff) | |
download | online_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.py | 3 |
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) |