Skip to content

Commit

Permalink
smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Oct 18, 2024
1 parent f7dddb8 commit ad6b949
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wpilibc/src/test/native/cpp/AlertsTest.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <gtest/gtest.h>
#include <frc/Alert.h>
#include <fmt/format.h>
#include <chrono>
TEST(AlertsTest, SmokeTest) {
{ frc::Alert("Thing A", frc::Alert::AlertType::kError); }
frc::Alert a{"", frc::Alert::AlertType::kInfo};
{
std::string s = fmt::format("{}", std::chrono::steady_clock::now());
a = frc::Alert(s, frc::Alert::AlertType::kError);
}
}

0 comments on commit ad6b949

Please sign in to comment.