From bf2addc51becbfac83561ed425bf740f221b0a6d Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Wed, 31 Mar 2021 15:32:48 +0200 Subject: [PATCH] Update patch --- ubuntu/debian/patches/0002_speedlimiter_near.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ubuntu/debian/patches/0002_speedlimiter_near.patch b/ubuntu/debian/patches/0002_speedlimiter_near.patch index 236637c..b98767b 100644 --- a/ubuntu/debian/patches/0002_speedlimiter_near.patch +++ b/ubuntu/debian/patches/0002_speedlimiter_near.patch @@ -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); } ///////////////////////////////////////////////// - -