mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Replace .to<double>() and .template to<double>() with .value() (#3667)
It's a less verbose way to do the same thing.
This commit is contained in:
@@ -170,9 +170,9 @@ TEST_F(DIOLoopTest, SynchronousInterruptWorks) {
|
||||
frc::Timer timer;
|
||||
timer.Start();
|
||||
interrupt.WaitForInterrupt(kSynchronousInterruptTime + 1_s);
|
||||
auto time = timer.Get().to<double>();
|
||||
auto time = timer.Get().value();
|
||||
if (thr.joinable())
|
||||
thr.join();
|
||||
EXPECT_NEAR(kSynchronousInterruptTime.to<double>(), time,
|
||||
kSynchronousInterruptTimeTolerance.to<double>());
|
||||
EXPECT_NEAR(kSynchronousInterruptTime.value(), time,
|
||||
kSynchronousInterruptTimeTolerance.value());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user