-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add test documenting #10561, two-digit year parsing #39654
Conversation
7ce8a63
to
bb54390
Compare
@nalimilan Thank you for the feedback earlier. I believe your comments have been addressed (and the branch has been squashed per general PR requirements). Please let me know if there's anything else you would like to see in this contribution. :) |
Co-authored-by: Curtis Vogt <[email protected]>
Co-authored-by: Curtis Vogt <[email protected]>
@nalimilan Given your earlier review (thanks!), just wanted to see if you had further comments after my corrections (based on @omus' feedback). :) |
@omus Thanks for the updated review. I think you make a fair point, with the exception of I think that the new test reflects the 'current behavior' of the function and is thus correct and parsimonious. However, we lose as a result the generative intuition of how dataset processing with truncated dates will easily lead to parsing mistakes, which was clearer in my original code. That said, the proper place for the intuition / operator warning is docs / a new default behavior for parsing this type of date and as such beyond the scope of this PR. :) |
e9da62d
to
f2d49e3
Compare
|
@omus Ah, now I see it, thanks. Moved strings into the loop and converted to int in the test, think we get best of both worlds there. |
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.
LGTM. Will merge after CI completes
Pushed a formatting change (which also triggered a new build). |
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.
It's usually best to keep formatting changes in separate PRs but I'm okay to proceed with them here. Some minor things to change though
Co-authored-by: Curtis Vogt <[email protected]>
Co-authored-by: Curtis Vogt <[email protected]>
Exciting to see this merged, thanks for your reviews! @omus |
…ng#39654) * Add test documenting JuliaLang#10561, two-digit year parsing * Update stdlib/Dates/test/io.jl Co-authored-by: Curtis Vogt <[email protected]> * Update stdlib/Dates/test/io.jl Co-authored-by: Curtis Vogt <[email protected]> * Simplify test behavior * Simplify test * Tweak parse direction * Clean up formatting (and trigger new build) * Update stdlib/Dates/test/io.jl Co-authored-by: Curtis Vogt <[email protected]> * Update stdlib/Dates/test/io.jl Co-authored-by: Curtis Vogt <[email protected]> Co-authored-by: Curtis Vogt <[email protected]>
…ng#39654) * Add test documenting JuliaLang#10561, two-digit year parsing * Update stdlib/Dates/test/io.jl Co-authored-by: Curtis Vogt <[email protected]> * Update stdlib/Dates/test/io.jl Co-authored-by: Curtis Vogt <[email protected]> * Simplify test behavior * Simplify test * Tweak parse direction * Clean up formatting (and trigger new build) * Update stdlib/Dates/test/io.jl Co-authored-by: Curtis Vogt <[email protected]> * Update stdlib/Dates/test/io.jl Co-authored-by: Curtis Vogt <[email protected]> Co-authored-by: Curtis Vogt <[email protected]>
See issue here: #10561