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

#380: fix AtCoderProblem.get_input_format() #398

Merged
merged 4 commits into from
Mar 21, 2019
Merged

#380: fix AtCoderProblem.get_input_format() #398

merged 4 commits into from
Mar 21, 2019

Conversation

kmyk
Copy link
Member

@kmyk kmyk commented Mar 19, 2019

close #380

なんだか複数になってしまったが、やったのは以下です。

@kmyk kmyk added this to the v6.1.0 milestone Mar 19, 2019
@kmyk kmyk requested a review from fukatani March 19, 2019 12:10
pre = section.find('pre')
if pre is not None:
return pre.decode_contents(formatter=None)
return None
Copy link
Contributor

Choose a reason for hiding this comment

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

正常な入力で、Noneが返ることはあるでしょうか?
あるなら、Noneが返る入力でテストがあったほうがいいと思います。

Copy link
Member Author

Choose a reason for hiding this comment

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

入力形式が与えられない問題や、そもそも入力がない問題があります

たしかにそのテストはあるべきでした。書きます

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 fukatani assigned kmyk and unassigned fukatani Mar 20, 2019
@kmyk kmyk assigned fukatani and unassigned kmyk Mar 20, 2019
@fukatani
Copy link
Contributor

LGTM

@fukatani fukatani merged commit 5d224d4 into master Mar 21, 2019
@fukatani fukatani deleted the issue/380 branch March 21, 2019 15:08
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.

Fails to fetch the input formats of old Atcoder problems
2 participants