Skip to content

Conversation

@mega123-art
Copy link
Contributor

@mega123-art mega123-art commented Feb 3, 2026

This pr adds tooling as suggested by @sffc

mega123-art and others added 6 commits January 30, 2026 07:21
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.
@robertbastian
Copy link
Member

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

@mega123-art
Copy link
Contributor Author

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

Ig u r right lets see what @sffc tells

@Manishearth Manishearth removed their request for review February 3, 2026 21:21
@sffc
Copy link
Member

sffc commented Feb 5, 2026

Thanks! But, there is no deleted code. This is currently adding a new test without replacing an existing test.

Fixed via merge.

Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Copy link
Member

@robertbastian robertbastian left a 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

@sffc
Copy link
Member

sffc commented Feb 9, 2026

I checked and it seems cargo fmt works now in this type of macro invocation. I'm fairly certain it didn't always work. Haven't checked rust-analyzer.

I still find the refactor better since it reduces a level of indentation. I don't find it harder to follow the code path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants