Verify WPILib/OpenCV versions at runtime (#1772)

This commit is contained in:
Matt Morley
2025-02-10 17:52:48 -08:00
committed by GitHub
parent e2b028abdc
commit 8f816cf1af
6 changed files with 94 additions and 4 deletions

View File

@@ -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);
}
}