IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 34d4593b authored by ralfulrich's avatar ralfulrich
Browse files

made test more robust

parent b4819cae
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ TEST_CASE("PhysicalUnits", "[Units]") { ...@@ -62,7 +62,7 @@ TEST_CASE("PhysicalUnits", "[Units]") {
SECTION("Formulas") { SECTION("Formulas") {
const EnergyType E2 = 20_GeV * 2; const EnergyType E2 = 20_GeV * 2;
REQUIRE(E2 == 40_GeV); REQUIRE(E2 == 40_GeV);
REQUIRE(E2 / 1_GeV == 40); REQUIRE(E2 / 1_GeV == Approx(40));
const double lgE = log10(E2 / 1_GeV); const double lgE = log10(E2 / 1_GeV);
REQUIRE(lgE == Approx(log10(40.))); REQUIRE(lgE == Approx(log10(40.)));
......
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