Skip to content

Commit

Permalink
Add shared frame to get full line coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tjstienstra committed Mar 29, 2024
1 parent 93e71e9 commit 5001471
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/core/test_auxiliary.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ def test_compute_velocity_derivative(self) -> None:
f2.set_ang_vel(f1, u1 * f1.z)
p1 = Point("p1")
p1.set_vel(f1, 2 * f1.x)
p1.set_vel(f2, 3 * f2.y)
p2 = p1.locatenew("p2", q2 * f2.y)
p2.set_vel(f2, (q2d + 3) * f2.y)
handler = AuxiliaryDataHandler(f1, p1)
vel = handler._compute_velocity(p2)
assert vel == 2 * f1.x - q2 * u1 * f2.x + q2d * f2.y
Expand Down

0 comments on commit 5001471

Please sign in to comment.