Skip to content

Commit

Permalink
Relax expectations about zero in SpeedLimiter_TEST to make ARM happy
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Mar 31, 2021
1 parent 6b5c704 commit 071a209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SpeedLimiter_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ TEST(SpeedLimiterTest, Default)
EXPECT_DOUBLE_EQ(5.0, vel);

vel = 0.0;
EXPECT_DOUBLE_EQ(0.0, limiter.Limit(vel, 4.0, 3.0, 1ms));
EXPECT_DOUBLE_EQ(0.0, vel);
EXPECT_NEAR(0.0, limiter.Limit(vel, 4.0, 3.0, 1ms), 1e-6);
EXPECT_NEAR(0.0, vel, 1e-6);
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit 071a209

Please sign in to comment.