| 11412 | }; |
| 11413 | |
| 11414 | WithinAbsMatcher::WithinAbsMatcher(double target, double margin) |
| 11415 | :m_target{ target }, m_margin{ margin } { |
| 11416 | CATCH_ENFORCE(margin >= 0, "Invalid margin: " << margin << '.' |
| 11417 | << " Margin has to be non-negative."); |
| 11418 | } |
| 11419 | |
| 11420 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 11421 | // But without the subtraction to allow for INFINITY in comparison |
nothing calls this directly
no outgoing calls
no test coverage detected