mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpimath] Move SlewRateLimiter from wpilib to wpimath (#3399)
Timer was replaced with wpi::Now() to avoid a dependency on other wpilib classes.
This commit is contained in:
@@ -9,6 +9,16 @@ import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class WPIUtilJNITest {
|
||||
@Test
|
||||
public void testEnableMockTime() {
|
||||
assertDoesNotThrow(WPIUtilJNI::enableMockTime);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetMockTime() {
|
||||
assertDoesNotThrow(() -> WPIUtilJNI.setMockTime(0L));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNow() {
|
||||
assertDoesNotThrow(WPIUtilJNI::now);
|
||||
|
||||
Reference in New Issue
Block a user