IAP GITLAB

Skip to content
Snippets Groups Projects
Commit bff7db8f authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

test for cbrt(Quantity)

parent 4547f7f3
No related branches found
No related tags found
1 merge request!342use std::sqrt() for sqrt(Quantity)
Pipeline #4029 passed
...@@ -94,6 +94,7 @@ TEST_CASE("PhysicalUnits", "[Units]") { ...@@ -94,6 +94,7 @@ TEST_CASE("PhysicalUnits", "[Units]") {
CHECK(E3 == 180_GeV); CHECK(E3 == 180_GeV);
CHECK(sqrt(5_GeV * 5_GeV) / 5_GeV == Approx(1)); CHECK(sqrt(5_GeV * 5_GeV) / 5_GeV == Approx(1));
CHECK(cbrt(static_pow<3>(5_GeV)) / 5_GeV == Approx(1));
} }
SECTION("Output") { SECTION("Output") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment