Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Aug 14, 2024
1 parent 5b1b07c commit 72fe84b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SendableChooserTest : public ::testing::TestWithParam<int> {};

TEST_P(SendableChooserTest, ReturnsSelected) {
frc::SendableChooser<int> chooser;
frc::sim::SendableChooserSim chooserSim = frc::sim::SendableChooserSim{
frc::sim::SendableChooserSim chooserSim{
fmt::format("/SmartDashboard/ReturnsSelectedChooser{}/", GetParam())};

for (int i = 1; i <= 3; i++) {
Expand Down Expand Up @@ -59,8 +59,8 @@ TEST(SendableChooserTest,

TEST(SendableChooserTest, ChangeListener) {
frc::SendableChooser<int> 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);
Expand Down

0 comments on commit 72fe84b

Please sign in to comment.