diff --git a/Framework/Units/testUnits.cc b/Framework/Units/testUnits.cc index 5ea86b37a6913964ae2cb780a94f39a4fbbb9546..619ef5d6cf2f1ebc210b1c5481ef1f6e1619733d 100644 --- a/Framework/Units/testUnits.cc +++ b/Framework/Units/testUnits.cc @@ -62,7 +62,7 @@ TEST_CASE("PhysicalUnits", "[Units]") { SECTION("Formulas") { const EnergyType E2 = 20_GeV * 2; REQUIRE(E2 == 40_GeV); - REQUIRE(E2 / 1_GeV == 40); + REQUIRE(E2 / 1_GeV == Approx(40)); const double lgE = log10(E2 / 1_GeV); REQUIRE(lgE == Approx(log10(40.)));