Gromacs
2021-beta2-UNCHECKED
|
Inherits MatcherInterface< std::tuple< FloatType, FloatType > >.
Implementation class for RealEq matcher.
See RealEq().
The implementation is templated so that we can support all of real, float and double in the same build without duplication.
Public Member Functions | |
FloatTypeMatcher (const FloatingPointTolerance &tolerance) | |
Constructor. | |
bool | MatchAndExplain (std::tuple< FloatType, FloatType > arg, testing::MatchResultListener *listener) const override |
Compare the two elements of arg , return whether they are equal, and comment on listener when they are not. | |
void | DescribeTo (::std::ostream *os) const override |
Describe to a human what matching means. | |
void | DescribeNegationTo (::std::ostream *os) const override |
Describe to a human what failing to match means. | |