Skip to content

Commit d22b077

Browse files
Fix silly missed assert mistake
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
1 parent a21af24 commit d22b077

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

subprojects/robotpy-wpimath/tests/trajectory/test_trapezoidal_profile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def test_pos_continuous_under_vel_change():
4040
if estimated_vel <= constraints.maxVelocity:
4141
assert estimated_vel <= constraints.maxVelocity
4242
else:
43-
math.isclose(estimated_vel, constraints.maxVelocity, abs_tol=1e-4)
43+
assert math.isclose(
44+
estimated_vel, constraints.maxVelocity, abs_tol=1e-4
45+
)
4446
assert state.velocity <= constraints.maxVelocity
4547

4648
last_pos = state.position

0 commit comments

Comments
 (0)