MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / WithinAbsMatcher

Class WithinAbsMatcher

unittests/catch.hpp:2367–2374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2365 enum class FloatingPointKind : uint8_t;
2366
2367 struct WithinAbsMatcher : MatcherBase<double> {
2368 WithinAbsMatcher(double target, double margin);
2369 bool match(double const& matchee) const override;
2370 std::string describe() const override;
2371 private:
2372 double m_target;
2373 double m_margin;
2374 };
2375
2376 struct WithinUlpsMatcher : MatcherBase<double> {
2377 WithinUlpsMatcher(double target, int ulps, FloatingPointKind baseType);

Callers 1

WithinAbsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected