Skip to content

Commit

Permalink
[pr] minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Dec 27, 2024
1 parent f9f6f56 commit 60e0405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/core/trajectory/codac2_tests_SampledTrajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ TEST_CASE("SampledTrajectory as operator (1d case)")
AnalyticFunction h { {t}, g(t) };

for(double t = -PI ; t < PI ; t+=1e-2)
CHECK(Approx(h.real_eval(t)) == cos(t));
CHECK(Approx(h.real_eval(t),1e-8) == cos(t));
}

TEST_CASE("SampledTrajectory as operator (nd case)")
Expand All @@ -96,7 +96,7 @@ TEST_CASE("SampledTrajectory as operator (nd case)")
};

for(double t = 0 ; t < 5 ; t+=1e-2)
CHECK(Approx(h.real_eval(t)) == Vector({2*cos(t),sin(2*t)}));
CHECK(Approx(h.real_eval(t),1e-8) == Vector({2*cos(t),sin(2*t)}));
}
{
AnalyticFunction h {
Expand All @@ -105,6 +105,6 @@ TEST_CASE("SampledTrajectory as operator (nd case)")
};

for(double t = 0 ; t < 5 ; t+=1e-2)
CHECK(Approx(h.real_eval(t)) == Vector({2*cos(t),sin(2*t)}));
CHECK(Approx(h.real_eval(t),1e-8) == Vector({2*cos(t),sin(2*t)}));
}
}

0 comments on commit 60e0405

Please sign in to comment.