From cc03c5be956997994310318ad649f9a793ba16dc Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu>
Date: Fri, 3 Jul 2020 15:33:08 +0200
Subject: [PATCH] better test of coordinate transformation

---
 Framework/Geometry/testGeometry.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Framework/Geometry/testGeometry.cc b/Framework/Geometry/testGeometry.cc
index 6e054d336..002eb6d5e 100644
--- a/Framework/Geometry/testGeometry.cc
+++ b/Framework/Geometry/testGeometry.cc
@@ -131,7 +131,10 @@ TEST_CASE("transformations between CoordinateSystems") {
     Vector const xPrime{csPrime, 5_m, 0_m, 0_m};
     Vector const yPrime{csPrime, 0_m, 5_m, 0_m};
 
-    CHECK(zPrime.dot(v).magnitude() > 0);
+    CHECK(xPrime.dot(v).magnitude() == Approx(0).margin(absMargin));
+    CHECK(yPrime.dot(v).magnitude() == Approx(0).margin(absMargin));
+    CHECK((zPrime.dot(v) / 1_m).magnitude() == Approx(5 * sqrt(2)));
+
     CHECK(zPrime.GetComponents(rootCS)[1].magnitude() ==
           Approx(zPrime.GetComponents(rootCS)[2].magnitude()));
     CHECK(zPrime.GetComponents(rootCS)[0].magnitude() == Approx(0));
-- 
GitLab