We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7f4c22 commit 5ff07abCopy full SHA for 5ff07ab
1 file changed
testing/src/main/java/com/team2813/lib2813/testing/truth/MeasureSubject.java
@@ -27,6 +27,14 @@
27
import edu.wpi.first.units.Unit;
28
import javax.annotation.Nullable;
29
30
+/**
31
+ * Truth subject for making assertions about {@link Measure} values.
32
+ *
33
+ * <p>See <a href="https://truth.dev/extension">Writing your own custom subject</a> to learn about
34
+ * creating custom Truth subjects.
35
+ * @param <U> The WPILib Unit type of the {@link Measure}
36
+ * @since 2.1.0
37
+ */
38
public class MeasureSubject<U extends Unit> extends Subject {
39
public static <U extends Unit> MeasureSubject<U> assertThat(@Nullable Measure<U> measure) {
40
return assertAbout(MeasureSubject.<U>measures()).that(measure);
0 commit comments