-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snipped side by side if output is long. #675
Conversation
@@ -137,7 +138,10 @@ def print_input(): | |||
log.emit('output:\n%s', utils.snip_large_file_content(answer.encode(), limit=40, head=20, tail=10, bold=True)) | |||
log.emit('expected:\n%s', utils.snip_large_file_content(expected.encode(), limit=40, head=20, tail=10, bold=True)) | |||
elif mode == "side-by-side": | |||
display_side_by_side_color(answer, expected) | |||
if max(answer.count("\n"), expected.count("\n")) <= 40: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
私は40がちょうどよいと思います:+1:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simple
がlimit40なんですけど、あっちは縦に詰んでるからside-by-side
は80行でも許されるのかなと思いつつ、開いているターミナルが50行程度だったので、40としました。
fa9e21f
to
796658d
Compare
これマージされたらリリースします。 |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
Resolve #674