-
Notifications
You must be signed in to change notification settings - Fork 274
Fix property sort #5214
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
Fix property sort #5214
Conversation
const auto right_id_name = right_split.first; | ||
const auto right_id_number = right_split.second; | ||
|
||
if(left_id_name != right_id_name) |
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.
FYI this is the same as std::tie(left_id_name, left_id_number) < std::tie(right_id_name, right_id_number)
.
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.
Looks good.
dd45c95
to
d34902c
Compare
Add unit tests demonstrating the fix.
d34902c
to
ac888bb
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.
Looks good, thanks for the added unit tests too!
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 PR failed Diffblue compatibility checks (cbmc commit: ac888bb).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/145556447
Status will be re-evaluated on next push.
Common spurious failures include: the cbmc commit has disappeared in the mean time (e.g. in a force-push); the author is not in the list of contributors (e.g. first-time contributors); compatibility was already broken by an earlier merge.
The sorting of properties was unstable if the properties differed only by name. See
dd45c95 to see the fix in isolation.