Skip to content
Snippets Groups Projects
Commit c32522e3 authored by Andreas Salzburger's avatar Andreas Salzburger
Browse files

fixing unit tests

parent c9e522f3
No related branches found
No related tags found
1 merge request!408Extrapolator prototype
...@@ -70,8 +70,8 @@ namespace Test { ...@@ -70,8 +70,8 @@ namespace Test {
StraightLinePropagator slpropagator(std::move(slstepper), StraightLinePropagator slpropagator(std::move(slstepper),
std::move(navigatorSL)); std::move(navigatorSL));
const int ntests = 1000; // test with 0.4 lower boundary - 952; const int ntests = 10; // test with 0.4 lower boundary - 952;
const int skip = 0; // test with 0.4 lower boundary - 951; const int skip = 0; // test with 0.4 lower boundary - 951;
bool debugModeFwd = false; bool debugModeFwd = false;
bool debugModeBwd = false; bool debugModeBwd = false;
bool debugModeFwdStep = false; bool debugModeFwdStep = false;
......
...@@ -143,10 +143,11 @@ namespace Test { ...@@ -143,10 +143,11 @@ namespace Test {
// create a navigator // create a navigator
Navigator navigator; Navigator navigator;
navigator.trackingGeometry = tGeometry; navigator.initialStepFactor = 1.;
navigator.resolveSensitive = true; navigator.trackingGeometry = tGeometry;
navigator.resolveMaterial = true; navigator.resolveSensitive = true;
navigator.resolvePassive = false; navigator.resolveMaterial = true;
navigator.resolvePassive = false;
// position and direction vector // position and direction vector
Vector3D position(0., 0., 0); Vector3D position(0., 0., 0);
......
...@@ -107,8 +107,8 @@ namespace Test { ...@@ -107,8 +107,8 @@ namespace Test {
const Vector3D direction{0., 1., 2.}; const Vector3D direction{0., 1., 2.};
NavigationDirection navDir = anyDirection; NavigationDirection navDir = anyDirection;
BoundaryCheck bcheck(false); BoundaryCheck bcheck(false);
auto intersection auto intersection = line.intersectionEstimate(
= line.intersectionEstimate({0., 0., 0.}, direction, navDir, bcheck); {0., 0., 0.}, direction.unit(), navDir, bcheck);
BOOST_CHECK(intersection.valid); BOOST_CHECK(intersection.valid);
Vector3D expectedIntersection(0, 1., 2.); Vector3D expectedIntersection(0, 1., 2.);
BOOST_TEST(intersection.position BOOST_TEST(intersection.position
......
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