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 6ec280b commit f9f6f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/trajectory/codac2_tests_SampledTrajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def tests_SampledTrajectory(self):

t_ = 0
while t_ < 5:
self.assertTrue(Approx(h.real_eval(t_)) == Vector([2*math.cos(t_),math.sin(2*t_)]))
self.assertTrue(Approx(h.real_eval(t_),1e-8) == Vector([2*math.cos(t_),math.sin(2*t_)]))
t_=t_+1e-2

h = AnalyticFunction(
Expand All @@ -106,7 +106,7 @@ def tests_SampledTrajectory(self):

t_ = 0
while t_ < 5:
self.assertTrue(Approx(h.real_eval(t_)) == Vector([2*math.cos(t_),math.sin(2*t_)]))
self.assertTrue(Approx(h.real_eval(t_),1e-8) == Vector([2*math.cos(t_),math.sin(2*t_)]))
t_=t_+1e-2

if __name__ == '__main__':
Expand Down

0 comments on commit f9f6f56

Please sign in to comment.