From 72fe84ba7d0d3b272e976cd7c908acdebcd50b49 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:07:11 -0400 Subject: [PATCH] Fix tests --- .../test/native/cpp/smartdashboard/SendableChooserTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpilibc/src/test/native/cpp/smartdashboard/SendableChooserTest.cpp b/wpilibc/src/test/native/cpp/smartdashboard/SendableChooserTest.cpp index a0696ab5be0..702735c3eaf 100644 --- a/wpilibc/src/test/native/cpp/smartdashboard/SendableChooserTest.cpp +++ b/wpilibc/src/test/native/cpp/smartdashboard/SendableChooserTest.cpp @@ -17,7 +17,7 @@ class SendableChooserTest : public ::testing::TestWithParam {}; TEST_P(SendableChooserTest, ReturnsSelected) { frc::SendableChooser chooser; - frc::sim::SendableChooserSim chooserSim = frc::sim::SendableChooserSim{ + frc::sim::SendableChooserSim chooserSim{ fmt::format("/SmartDashboard/ReturnsSelectedChooser{}/", GetParam())}; for (int i = 1; i <= 3; i++) { @@ -59,8 +59,8 @@ TEST(SendableChooserTest, TEST(SendableChooserTest, ChangeListener) { frc::SendableChooser chooser; - frc::sim::SendableChooserSim chooserSim = frc::sim::SendableChooserSim{ - fmt::format("/SmartDashboard/ChangeListenerChooser/", GetParam())}; + frc::sim::SendableChooserSim chooserSim{ + "/SmartDashboard/ChangeListenerChooser/"}; for (int i = 1; i <= 3; i++) { chooser.AddOption(std::to_string(i), i);