60 ::testing::AssertionResult
operator()(
const char* expr1,
const char* expr2, T1 val1, T2 val2)
62 if (val1.isApprox(val2,
prec_))
63 return ::testing::AssertionSuccess();
65 std::stringstream msg;
66 msg <<
"Expected equality of these values (up to precision " <<
prec_ <<
"):" << std::fixed
67 << std::setprecision(1 - std::log10(
prec_))
68 <<
"\n " << expr1 <<
"\n Which is: " << val1
69 <<
"\n " << expr2 <<
"\n Which is: " << val2;
70 return ::testing::AssertionFailure() << msg.str();