From 18bcc8c4123e0e9829b7edb7c59355acd4b282e3 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Fri, 30 Nov 2018 17:39:06 +0100 Subject: [PATCH] added one more special test --- Framework/Units/testUnits.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Framework/Units/testUnits.cc b/Framework/Units/testUnits.cc index 3528cf67c..99e24d24d 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); + + } } -- GitLab