Repository navigation
Add tests for untested Date and DateTime behavior - #206
Merged
Merged
Conversation
Co-authored-by: Claude Mythos 5.2 <noreply@anthropic.com>
wtn
force-pushed
the
coverage
branch
2 times, most recently
from
November 14, 2026 16:25
bd651ec to
3f36a1d
Compare
jeremyevans
approved these changes
Nov 14, 2026
jeremyevans
left a comment
Contributor
There was a problem hiding this comment.
Thank you 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.
These pass on the C extension and fail with the Ruby implementation in #155 at fe084e5.
<=>,==,eql?,hashand-between DateTimes with different offsetsrfc2822andhttpdatefor a DateTime at+09:00hashfor dates that differ only instartDate#yearafterclone(freeze: true)Date.new(-123456,7,8)Date.new(1582,9,10) >> 1and negative days such asDate.civil(1582,10,-18)startis replaced withDate::ITALY>>and<<raiseTypeErrorforniland a String_parsereturns aniloffset for+24:00and+12:60, and no_compkey for'JAN-1999'strptimewith text after the format, and with'%Y %a'jisx0301for a Reiwa year of 100