From d1e8a0f411013502a5f06280af16d1be4bac31c6 Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de>
Date: Thu, 22 Apr 2021 15:31:56 +0200
Subject: [PATCH] add test for quantity sqrt

---
 tests/framework/testUnits.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/framework/testUnits.cpp b/tests/framework/testUnits.cpp
index 67db321d8..a6f1d62ec 100644
--- a/tests/framework/testUnits.cpp
+++ b/tests/framework/testUnits.cpp
@@ -92,6 +92,8 @@ TEST_CASE("PhysicalUnits", "[Units]") {
 
     const auto E3 = E2 + 100_GeV + pow(10, lgE) * 1_GeV;
     CHECK(E3 == 180_GeV);
+
+    CHECK(sqrt(5_GeV * 5_GeV) / 5_GeV == Approx(1));
   }
 
   SECTION("Output") {
-- 
GitLab