We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I take
CHECK(floating_value1 == floating_value2);
it would be nice to have a way to say "have the check pass if the values are equal or the floats are both NaN".
The text was updated successfully, but these errors were encountered:
If you're using C++11 or higher, you can use std::isnan() defined in the standard cmath header, like so:
std::isnan()
cmath
CHECK((v1 == v2) || (std::isnan(v1) && std::isnan(v2));
Sorry, something went wrong.
No branches or pull requests
Description
When I take
it would be nice to have a way to say "have the check pass if the values are equal or the floats are both NaN".
The text was updated successfully, but these errors were encountered: