diff --git a/Framework/Units/testUnits.cc b/Framework/Units/testUnits.cc index 3528cf67cd85cd07d3b38d9f9e23cd6c973b9057..99e24d24d67678acee916d35bbb87128de6234d7 100644 --- a/Framework/Units/testUnits.cc +++ b/Framework/Units/testUnits.cc @@ -82,4 +82,12 @@ TEST_CASE("PhysicalUnits", "[Units]") { const auto E3 = E2 + 100_GeV + pow(10, lgE) * 1_GeV; REQUIRE(E3 == 180_GeV); } + + SECTION("Special") { + + const LengthType farAway = std::numeric_limits<double>::infinity() * meter; + REQUIRE(farAway > 100000_m); + REQUIRE_FALSE(farAway < 1e19*meter); + + } }