-
Notifications
You must be signed in to change notification settings - Fork 262
Refactor arithmetic tests to improve tooling support #7552
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
Implementation of comprehensive date arithmetic coverage tests as suggested in unicode-org#7215.
Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com>
Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com>
As suggested by @sffc, this improves IDE support, formatting, and rust-analyzer functionality by keeping the test logic outside the macro expansion.
|
I don't think this is an improvement, the IDE issue that @sffc mentioned is non-existent, and this adds an extra level of redirection that makes it harder to follow the test |
|
Fixed via merge. |
sffc
left a comment
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.
thanks!
robertbastian
left a comment
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.
the test_all_cals! macros is written in such a way that you make it wrap your test function. this is how all its invocations in this crate are written. this PR makes code paths harder to follow
|
I checked and it seems I still find the refactor better since it reduces a level of indentation. I don't find it harder to follow the code path. |
This pr adds tooling as suggested by @sffc