We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e11ee6e commit 91a2ad5Copy full SHA for 91a2ad5
subprojects/robotpy-wpimath/tests/test_trapezoid_profile.py
@@ -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