Rename tests for consistency (#3592)

I started with the output of styleguide#217, then renamed a few classes
to fix compilation.

ntcore's StorageTest needed some manual renaming since it put the Test
word in the middle instead of at the end.

One limitation of wpiformat is test cases that were only named "Test"
were unmodified, and an error was generated. These test cases were
manually given more descriptive names:

* TimedRobotTest mode test cases had "Mode" appended to the name. Java
  tests were renamed to match.
* UvAsyncTest and UvAsyncFunctionTest cases were given alternate names
This commit is contained in:
Tyler Veness
2021-09-21 06:12:50 -07:00
committed by GitHub
parent 54ca474dba
commit d6f185d8e5
41 changed files with 399 additions and 398 deletions

View File

@@ -17,7 +17,7 @@
#include "frc/system/plant/LinearSystemId.h"
#include "gtest/gtest.h"
TEST(ElevatorSim, StateSpaceSim) {
TEST(ElevatorSimTest, StateSpaceSim) {
frc::sim::ElevatorSim sim(frc::DCMotor::Vex775Pro(4), 14.67, 8_kg,
units::meter_t(0.75 * 25.4 / 1000.0), 0_m, 3_m,
{0.01});
@@ -44,7 +44,7 @@ TEST(ElevatorSim, StateSpaceSim) {
EXPECT_NEAR(controller.GetSetpoint(), sim.GetPosition().to<double>(), 0.2);
}
TEST(ElevatorSim, MinMax) {
TEST(ElevatorSimTest, MinMax) {
frc::sim::ElevatorSim sim(frc::DCMotor::Vex775Pro(4), 14.67, 8_kg,
units::meter_t(0.75 * 25.4 / 1000.0), 0_m, 1_m,
{0.01});
@@ -65,7 +65,7 @@ TEST(ElevatorSim, MinMax) {
}
}
TEST(ElevatorSim, Stability) {
TEST(ElevatorSimTest, Stability) {
static constexpr double kElevatorGearing = 100.0;
static constexpr units::meter_t kElevatorDrumRadius = 0.5_in;
static constexpr units::kilogram_t kCarriageMass = 4.0_kg;