MCPcopy Create free account
hub / github.com/apache/qpid-proton / assert_equalish

Function assert_equalish

cpp/src/test_bits.hpp:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template <class T>
49inline void assert_equalish(T want, T got, T delta, const std::string& what)
50{
51 if (!(fabs(want-got) <= delta))
52 throw fail(MSG(what << " " << want << " !=~ " << got));
53}
54
55void assert_substring(const std::string& want, const std::string& got, const std::string& what) {
56 if (got.find(want) == std::string::npos)

Calls 1

failClass · 0.85

Tested by

no test coverage detected