| 11557 | }; |
| 11558 | |
| 11559 | WithinAbsMatcher::WithinAbsMatcher(double target, double margin) |
| 11560 | :m_target{ target }, m_margin{ margin } { |
| 11561 | CATCH_ENFORCE(margin >= 0, "Invalid margin: " << margin << '.' |
| 11562 | << " Margin has to be non-negative."); |
| 11563 | } |
| 11564 | |
| 11565 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 11566 | // But without the subtraction to allow for INFINITY in comparison |
nothing calls this directly
no outgoing calls
no test coverage detected