-
-
Notifications
You must be signed in to change notification settings - Fork 28
Signed attributes aren't in the correct order. #52
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
indygreg
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 deletion of the sort_by line seems fundamentally wrong.
Did you use an AI/LLM tool to generate this PR? The PR summary and added test feel like LLM output to me.
| }) | ||
| .collect::<Result<Vec<(_, _)>, std::io::Error>>()?; | ||
|
|
||
| attributes.sort_by(|(a, _), (b, _)| a.cmp(b)); |
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.
Why was the sort removed? The sort was added by #614 to fix the prior sorting behavior being buggy.
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 previous PR didn't come with tests and didn't prove the fix it claimed to have provided.
| } | ||
|
|
||
| #[test] | ||
| fn signed_attributes_order() { |
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.
This test is very verbose. I think it can be minimized.
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.
If there is something concrete here, I would be happy to remove. This test was initially generated using LLM, then adjusted to reflect the intention of clearly explaining the issue.
|
It's not vibe coded if that's what you are getting at. The test has been generated via LLM, but figuring out the cause for the attributes to become unordered has been an human effort. |
Added a test case to illustrate and fix the issue.