| 9154 | namespace Matchers { |
| 9155 | namespace Floating { |
| 9156 | WithinAbsMatcher::WithinAbsMatcher(double target, double margin) |
| 9157 | :m_target{ target }, m_margin{ margin } { |
| 9158 | CATCH_ENFORCE(margin >= 0, "Invalid margin: " << margin << '.' |
| 9159 | << " Margin has to be non-negative."); |
| 9160 | } |
| 9161 | |
| 9162 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 9163 | // But without the subtraction to allow for INFINITY in comparison |
nothing calls this directly
no outgoing calls
no test coverage detected