mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[wpilib] Fixup alerts (#8663)
Makes Java `Alert.Level.ERROR`, `Alert.Level.WARNING`, and `Alert.Level.INFO` proper aliases (instead of separate enum constants with the same value). Cleans up Python tests. Makes the Alert tests more consistent between languages.
This commit is contained in:
@@ -108,6 +108,11 @@ TEST_F(AlertSimTest, SetIsIdempotent) {
|
||||
c.Set(true);
|
||||
|
||||
const auto startState = GetActiveAlerts(Alert::Level::LOW);
|
||||
std::vector<std::string> expected;
|
||||
expected.emplace_back("A");
|
||||
expected.emplace_back("B");
|
||||
expected.emplace_back("C");
|
||||
EXPECT_EQ(expected, startState);
|
||||
|
||||
b.Set(true);
|
||||
EXPECT_STATE(Alert::Level::LOW, startState);
|
||||
|
||||
Reference in New Issue
Block a user