diff --git a/wpilibc/src/test/native/cpp/AlertsTest.cpp b/wpilibc/src/test/native/cpp/AlertsTest.cpp new file mode 100644 index 00000000000..8798936f67d --- /dev/null +++ b/wpilibc/src/test/native/cpp/AlertsTest.cpp @@ -0,0 +1,12 @@ +#include +#include +#include +#include +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); + } +} \ No newline at end of file