diff options
author | maheshgudi | 2018-08-13 15:36:48 +0530 |
---|---|---|
committer | ankitjavalkar | 2019-12-27 10:59:31 +0530 |
commit | 4def423d573beceee07780f21bcd55836d50b558 (patch) | |
tree | cad2ebb97b101a85ecef3c6a9ccb0a51fb46f051 /yaksh/error_messages.py | |
parent | f082788af3c31e0bcc184d184fdedd4e0893136e (diff) | |
download | online_test-4def423d573beceee07780f21bcd55836d50b558.tar.gz online_test-4def423d573beceee07780f21bcd55836d50b558.tar.bz2 online_test-4def423d573beceee07780f21bcd55836d50b558.zip |
Allow new line to be added in an stdio testcase
Diffstat (limited to 'yaksh/error_messages.py')
-rw-r--r-- | yaksh/error_messages.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yaksh/error_messages.py b/yaksh/error_messages.py index f34bf28..bf79ef8 100644 --- a/yaksh/error_messages.py +++ b/yaksh/error_messages.py @@ -33,9 +33,8 @@ def prettify_exceptions(exception, message, traceback=None, 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()): + enumerate(zip_longest(exp_lines, user_lines)): + if user_line != expected_line: err_line_numbers.append(line_no) return err_line_numbers |