-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
assert,util: handle invalid dates as equal in deep comparison #57627
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
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
dcf51d3
to
f83b6c4
Compare
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.
what would have thrown before when comparing two invalid dates? it seems like comparing two invalid dates would have compared as false before, and now will compare as true, which does seem breaking.
|
ohhh right, because it's an |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57627 +/- ##
==========================================
- Coverage 90.22% 90.21% -0.02%
==========================================
Files 635 635
Lines 187171 187176 +5
Branches 36749 36748 -1
==========================================
- Hits 168877 168852 -25
- Misses 11069 11115 +46
+ Partials 7225 7209 -16
🚀 New features to boost your workflow:
|
This needs a rebase |
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
Invalid dates are now handled as equal in all deep comparisons.
ca78dda
to
0702320
Compare
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
Invalid dates are now handled as equal in all deep comparisons.
This is more of a usability improvement than a breaking change, since all invalid dates have always thrown errors when being compared until now.