Skip to content

Commit 91a2ad5

Browse files
committed
Add tests for TrapezoidProfile.Constraints
1 parent e11ee6e commit 91a2ad5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pytest
2+
3+
from wpimath import trajectory
4+
5+
trapezoid_profile_types = [
6+
trajectory.TrapezoidProfile,
7+
trajectory.TrapezoidProfileRadians,
8+
]
9+
10+
11+
@pytest.mark.parametrize("TrapezoidProfile", trapezoid_profile_types)
12+
def test_constraints_repr(TrapezoidProfile):
13+
expected_qualname = f"{TrapezoidProfile.__name__}.Constraints"
14+
constraints = TrapezoidProfile.Constraints()
15+
16+
assert repr(constraints).startswith(f"{expected_qualname}(maxVelocity=0.")

0 commit comments

Comments
 (0)