Skip to content

Commit

Permalink
testObserverTimeEvolution expected wrong point of detection (fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Niklas Bohnensack committed Dec 19, 2024
1 parent a46d27b commit f0f3d24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testBreakCondition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ TEST(ObserverFeature, TimeEvolution) {
Observer obs;
obs.setDeactivateOnDetection(false);
obs.setFlag("Detected", "Detected");
//min = 5, max = min + numb*dist = 5 + 2*5 = 15, detection can happen at [5, 15]
obs.add(new ObserverTimeEvolution(5, 5, 2));
Candidate c;
c.setNextStep(10);
Expand All @@ -261,7 +262,7 @@ TEST(ObserverFeature, TimeEvolution) {

// detection two
c.setCurrentStep(0.1);
c.setTrajectoryLength(10.05);
c.setTrajectoryLength(15.05);
obs.process(&c);
EXPECT_TRUE(c.isActive());
EXPECT_TRUE(c.hasProperty("Detected"));
Expand Down

0 comments on commit f0f3d24

Please sign in to comment.