Skip to content

Commit

Permalink
Update test criterion
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 5, 2024
1 parent c6336cd commit 361dd0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/control_filters/test_rate_limiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ TEST_F(RateLimiterTest, TestRateLimiterCompute)
EXPECT_THAT(out, ::testing::DoubleEq(in));
}
in = 0.0;
// takes 12 steps to reach 0 (first and second derivative limits)
for (int i = 0; i < 11; i++)
// takes 14 steps to reach 0 (first (10.0/1.0) plus second derivative limits)
for (int i = 0; i < 14; i++)
{
ASSERT_NO_THROW(filter_->update(in, out));
EXPECT_THAT(out, ::testing::Not(::testing::DoubleNear(in, 1e-6))) << "i=" << i;
Expand Down

0 comments on commit 361dd0c

Please sign in to comment.