Skip to content

Commit

Permalink
Fix deprecation suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Nov 12, 2024
1 parent 52c6aa2 commit e5bcc37
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ TEST(NumericalIntegrationTest, RK4TimeVarying) {
1e-3);
}

// Tests that integrating dx/dt = 0 works with RKDP
WPI_IGNORE_DEPRECATED

// Tests that integrating dx/dt = 0 works with RKDP
TEST(NumericalIntegrationTest, ZeroRKDP) {
frc::Vectord<1> y1 = frc::RKDP(
[](const frc::Vectord<1>& x, const frc::Vectord<1>& u) {
Expand All @@ -65,7 +66,6 @@ TEST(NumericalIntegrationTest, ZeroRKDP) {
}

// Tests that integrating dx/dt = eˣ works with RKDP
WPI_IGNORE_DEPRECATED
TEST(NumericalIntegrationTest, ExponentialRKDP) {
frc::Vectord<1> y0{0.0};

Expand All @@ -85,7 +85,6 @@ TEST(NumericalIntegrationTest, ExponentialRKDP) {
// The true (analytical) solution is:
//
// x(t) = 12eᵗ/(eᵗ + 1)²
WPI_IGNORE_DEPRECATED
TEST(NumericalIntegrationTest, RKDPTimeVarying) {
frc::Vectord<1> y0{12.0 * std::exp(5.0) / std::pow(std::exp(5.0) + 1.0, 2.0)};

Expand All @@ -99,6 +98,8 @@ TEST(NumericalIntegrationTest, RKDPTimeVarying) {
1e-3);
}

WPI_UNIGNORE_DEPRECATED

// Tests that integrating dx/dt = 0 works with Tsit5
TEST(NumericalIntegrationTest, ZeroTsit5) {
frc::Vectord<1> y1 = frc::Tsit5(
Expand Down

0 comments on commit e5bcc37

Please sign in to comment.