IAP GITLAB

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

refined test

parent dff92c25
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ using namespace corsika::units::si; ...@@ -23,7 +23,7 @@ using namespace corsika::units::si;
using corsika::units::constants::c; using corsika::units::constants::c;
using corsika::units::constants::cSquared; using corsika::units::constants::cSquared;
double constexpr absMargin = 1e-8; double constexpr absMargin = 1e-6;
TEST_CASE("boosts") { TEST_CASE("boosts") {
CoordinateSystem& rootCS = CoordinateSystem& rootCS =
...@@ -76,6 +76,6 @@ TEST_CASE("boosts") { ...@@ -76,6 +76,6 @@ TEST_CASE("boosts") {
// ...should yield original values before the boosts // ...should yield original values before the boosts
CHECK(eProjectileBack / eProjectileLab == Approx(1)); CHECK(eProjectileBack / eProjectileLab == Approx(1));
CHECK((pProjectileBack - pProjectileLab).norm() / (1_GeV / c) == CHECK((pProjectileBack - pProjectileLab).norm() / pProjectileLab.norm() ==
Approx(0).margin(absMargin)); Approx(0).margin(absMargin));
} }
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