[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:
Joseph Eng
2026-03-09 23:03:00 -07:00
committed by GitHub
parent c0f8159540
commit f196418297
5 changed files with 64 additions and 51 deletions

View File

@@ -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);