Skip to content

chore: use assert_eq! and assert_ne! instead of assert! #7698

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

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Apr 8, 2025

Makes intent clearer, and if something fails, prints the values that caused the failure as part of the panic message.

Makes intent clearer, and if something fails, prints the values that caused the failure as part of the panic message.
Copy link

github-actions bot commented Apr 8, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

is there a clippy warning for this?

@sylvestre sylvestre merged commit 0a99ab8 into uutils:main Apr 8, 2025
68 of 69 checks passed
@nyurik nyurik deleted the assert-eq branch April 8, 2025 21:05
@nyurik
Copy link
Contributor Author

nyurik commented Apr 8, 2025

@sylvestre yes and no - I wrote this one rust-lang/rust-clippy#13333 , but it still needs some love and care before it gets merged. Plus apparently there were some other attempts to get it done before

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.

2 participants