From bff7db8f29c9c6fcb7f85c984923cafa92f1d744 Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de> Date: Thu, 22 Apr 2021 17:49:32 +0200 Subject: [PATCH] test for cbrt(Quantity) --- tests/framework/testUnits.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/framework/testUnits.cpp b/tests/framework/testUnits.cpp index a6f1d62ec..8d15544ac 100644 --- a/tests/framework/testUnits.cpp +++ b/tests/framework/testUnits.cpp @@ -94,6 +94,7 @@ TEST_CASE("PhysicalUnits", "[Units]") { CHECK(E3 == 180_GeV); CHECK(sqrt(5_GeV * 5_GeV) / 5_GeV == Approx(1)); + CHECK(cbrt(static_pow<3>(5_GeV)) / 5_GeV == Approx(1)); } SECTION("Output") { -- GitLab