MCPcopy Create free account
hub / github.com/apache/arrow / VerifyFuzzyEquals

Function VerifyFuzzyEquals

cpp/src/gandiva/precompiled/extended_math_ops_test.cc:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static const double MAX_ERROR = 0.00005;
34
35void VerifyFuzzyEquals(double actual, double expected, double max_error = MAX_ERROR) {
36 EXPECT_TRUE(fabs(actual - expected) < max_error) << actual << " != " << expected;
37}
38
39TEST(TestExtendedMathOps, TestCbrt) {
40 VerifyFuzzyEquals(cbrt_int32(27), 3);

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected