MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / match

Method match

Bcore/src/main/cpp/Dobby/tests/catch.hpp:7764–7766  ·  view source on GitHub ↗

Performs equivalent check of std::fabs(lhs - rhs) <= margin But without the subtraction to allow for INFINITY in comparison

Source from the content-addressed store, hash-verified

7762// Performs equivalent check of std::fabs(lhs - rhs) <= margin
7763// But without the subtraction to allow for INFINITY in comparison
7764bool WithinAbsMatcher::match(double const &matchee) const {
7765 return (matchee + m_margin >= m_target) && (m_target + m_margin >= matchee);
7766}
7767
7768std::string WithinAbsMatcher::describe() const {
7769 return "is within " + ::Catch::Detail::stringify(m_margin) + " of " + ::Catch::Detail::stringify(m_target);

Callers 5

matchMethod · 0.45
matchMethod · 0.45
matchMethod · 0.45
MatchExprMethod · 0.45
buildResolveListMethod · 0.45

Calls 4

containsFunction · 0.85
startsWithFunction · 0.85
endsWithFunction · 0.85
adjustStringMethod · 0.80

Tested by

no test coverage detected