Fix incorrect argc2 decrement in datetime_s_iso8601 function#105
Merged
nobu merged 1 commit intoruby:masterfrom Nov 5, 2024
Merged
Fix incorrect argc2 decrement in datetime_s_iso8601 function#105nobu merged 1 commit intoruby:masterfrom
nobu merged 1 commit intoruby:masterfrom
Conversation
Contributor
|
Is it possible for you to include a test? |
Contributor
|
Since you asked via email what I meant by "include a test"?, it would be updating the test code to show that your change fixes the issue. I believe it does, as it appears use of date/test/date/test_date_strftime.rb Line 386 in c2d9cc2 |
Contributor
Author
|
Got it, thank you.Sent from my iPhoneOn 23 Sep 2024, at 01:05, Jeremy Evans ***@***.***> wrote:
Since you asked via email what I meant by "include a test"?, it would be updating the test code to show that your change fixes the issue. I believe it does, as it appears use of limit keyword is currently broken for the method. You'd probably want to add a test case near https://github.com/ruby/date/blob/c2d9cc29280e0eabb0bc72175c80704f1737a9fb/test/date/test_date_strftime.rb#L386
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Replace the decrement (argc2--) with an increment (argc2++) for the correct number of arguments when opt is provided.
Contributor
Author
|
@jeremyevans please take a look at the new tests, especially b6974b0#diff-81966e1c9ca334eec0c25c83971b5ca20f9d52e5535b076db6f288b3a18ef996R415 |
jeremyevans
approved these changes
Sep 23, 2024
Contributor
jeremyevans
left a comment
There was a problem hiding this comment.
Looks good, thanks for the patch!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the decrement (argc2--) with an increment (argc2++) for the correct number of arguments when opt is provided.