Skip to content

Commit 4469cfd

Browse files
Fix silly missed assert mistake
Co-authored-by: David Vo <[email protected]>
1 parent a21af24 commit 4469cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ 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(estimated_vel, constraints.maxVelocity, abs_tol=1e-4)
4444
assert state.velocity <= constraints.maxVelocity
4545

4646
last_pos = state.position

0 commit comments

Comments
 (0)