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