forked from wpilibsuite/allwpilib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Need to look it over some more and write some more comprehensive tests
- Loading branch information
Showing
3 changed files
with
115 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
#include <gtest/gtest.h> | ||
// Copyright (c) FIRST and other WPILib contributors. | ||
// Open Source Software; you can modify and/or share it under the terms of | ||
// the WPILib BSD license file in the root directory of this project. | ||
|
||
#include <frc/Alert.h> | ||
#include <fmt/format.h> | ||
|
||
#include <chrono> | ||
TEST(AlertsTest, SmokeTest) { | ||
|
||
#include <fmt/format.h> | ||
#include <gtest/gtest.h> | ||
|
||
TEST(AlertsTest, Smoke) { | ||
{ 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().time_since_epoch().count()); | ||
std::string s = fmt::format( | ||
"{}", std::chrono::steady_clock::now().time_since_epoch().count()); | ||
a = frc::Alert(s, frc::Alert::AlertType::kError); | ||
} | ||
} | ||
} |