diff options
author | ankitjavalkar | 2019-12-27 17:58:09 +0530 |
---|---|---|
committer | GitHub | 2019-12-27 17:58:09 +0530 |
commit | 18188766cf1e91fe086ed8bfe2939d836ea92ff7 (patch) | |
tree | 34fbf78dd0fb85671746be09008d49dcfb269486 /yaksh/error_messages.py | |
parent | f082788af3c31e0bcc184d184fdedd4e0893136e (diff) | |
parent | 28c64f6f1771fe93385e3767d5bee9fe55af8c82 (diff) | |
download | online_test-18188766cf1e91fe086ed8bfe2939d836ea92ff7.tar.gz online_test-18188766cf1e91fe086ed8bfe2939d836ea92ff7.tar.bz2 online_test-18188766cf1e91fe086ed8bfe2939d836ea92ff7.zip |
Merge pull request #635 from ankitjavalkar/maheshgudi-fix_stdio_spacing_error
Allow new line to be added in an stdio testcase
Diffstat (limited to 'yaksh/error_messages.py')
-rw-r--r-- | yaksh/error_messages.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/error_messages.py b/yaksh/error_messages.py index f34bf28..2d27417 100644 --- a/yaksh/error_messages.py +++ b/yaksh/error_messages.py @@ -34,8 +34,7 @@ def _get_incorrect_user_lines(exp_lines, user_lines): err_line_numbers = [] for line_no, (expected_line, user_line) in \ enumerate(zip_longest(exp_lines, user_lines)): - if (not user_line or not expected_line or - user_line.strip() != expected_line.strip()): + if user_line != expected_line: err_line_numbers.append(line_no) return err_line_numbers |