15 ::testing::AssertionResult
UnitEqual(UnitTypeLhs actual, UnitTypeRhs expected, UnitTypeTol tolerance) {
16 if (units::math::abs(actual - expected) < tolerance) {
17 return ::testing::AssertionSuccess();
19 return ::testing::AssertionFailure()
20 << fmt::format(
"{:.4f} not within {:.4f} of expected {:.4f}", actual, tolerance, expected);