[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:
Tyler Veness
2021-05-31 10:35:54 -07:00
committed by GitHub
parent 93523d572e
commit 01dc0249de
16 changed files with 93 additions and 32 deletions

View File

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