mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Verify WPILib/OpenCV versions at runtime (#1772)
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
|
||||
package org.photonvision;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
@@ -56,4 +58,9 @@ public class PhotonVersionTest {
|
||||
Assertions.assertFalse(versionMatches("", "v2021.1.6"));
|
||||
Assertions.assertFalse(versionMatches("v2021.1.6", ""));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNominalDeps() {
|
||||
assertDoesNotThrow(PhotonCamera::verifyDependencies);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user