Skip to content

Commit

Permalink
Update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Mar 31, 2021
1 parent dc6f924 commit bf2addc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ubuntu/debian/patches/0002_speedlimiter_near.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
diff --git a/src/SpeedLimiter_TEST.cc b/src/SpeedLimiter_TEST.cc
index 08cb396..c01a670 100644
index 08cb396..7f4c461 100644
--- a/src/SpeedLimiter_TEST.cc
+++ b/src/SpeedLimiter_TEST.cc
@@ -58,7 +58,7 @@ TEST(SpeedLimiterTest, Default)
@@ -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, 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);
}

/////////////////////////////////////////////////


0 comments on commit bf2addc

Please sign in to comment.