Skip to content
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

Add note regarding floating point errors to assert_eq #636

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

Bzero
Copy link
Contributor

@Bzero Bzero commented Oct 25, 2024

This PR resolves #567 and adds a note to assert_eq errors if the two printed values are exactly the same to hint the user that this may be a floating point precision problem.

@sharkdp sharkdp merged commit f064611 into sharkdp:master Oct 29, 2024
15 checks passed
@sharkdp
Copy link
Owner

sharkdp commented Oct 29, 2024

Thank you!

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.

Unclear assertion errors due to floating point numbers
2 participants