Skip to content
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

Allow CRLF #703

Merged
merged 8 commits into from
Mar 18, 2020
Merged

Allow CRLF #703

merged 8 commits into from
Mar 18, 2020

Conversation

kmyk
Copy link
Member

@kmyk kmyk commented Mar 16, 2020

fix #685

やりました。

Screenshot from 2020-03-17 02-54-08

実装が汚いけど、もっと賢い方法でやるとコードが膨らんでむしろ汚くなるのでまだ愚直にやります。同様のパターンが他にももうひとつふたつ増えたら対応します。

@@ -94,6 +94,21 @@ def match(a, b):
if rstrip and a.rstrip(rstrip_targets) == b.rstrip(rstrip_targets):
log.warning('WA if no rstrip')
return True
if a == b.replace('\n', '\r\n'):
log.warning(r'WA if not replaceing "\r\n" with "\n"')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: replacingです。全体的に。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直した

@fukatani
Copy link
Contributor

TestTestLogでテストするのをおすすめします。

@kmyk
Copy link
Member Author

kmyk commented Mar 17, 2020

テストを足しました。
ただし、この機能はログについての機能ではないので TestTestLog は使いません。

@kmyk
Copy link
Member Author

kmyk commented Mar 17, 2020

Windows 上でだけ落ちた。気を付けて書いたのに困っちゃうな

Copy link
Contributor

@fukatani fukatani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

テストを足してくださり、ありがとうございます!

@fukatani fukatani merged commit d442859 into master Mar 18, 2020
@fukatani fukatani deleted the feature/allow-crlf branch March 18, 2020 11:53
@jellc jellc mentioned this pull request May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow CRLF for newlines in test subcommand
2 participants