From 34d4593b09b1795b5daa1c7c45dfe3f7ac7dcf39 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Sun, 16 Sep 2018 23:58:15 +0200
Subject: [PATCH] made test more robust

---
 Framework/Units/testUnits.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Framework/Units/testUnits.cc b/Framework/Units/testUnits.cc
index 5ea86b37a..619ef5d6c 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.)));
-- 
GitLab