From 0eb007bad5cc56a601aebc687be5522f3ad63d24 Mon Sep 17 00:00:00 2001 From: Max Schik Date: Tue, 19 Dec 2023 19:16:34 +0000 Subject: [PATCH] [transmission_interface] relaxes float tolerance in tests --- transmission_interface/test/differential_transmission_test.cpp | 2 +- .../test/four_bar_linkage_transmission_test.cpp | 2 +- transmission_interface/test/simple_transmission_test.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/transmission_interface/test/differential_transmission_test.cpp b/transmission_interface/test/differential_transmission_test.cpp index 7e27194bb64..3074d261291 100644 --- a/transmission_interface/test/differential_transmission_test.cpp +++ b/transmission_interface/test/differential_transmission_test.cpp @@ -29,7 +29,7 @@ using transmission_interface::DifferentialTransmission; using transmission_interface::Exception; using transmission_interface::JointHandle; // Floating-point value comparison threshold -const double EPS = 1e-6; +const double EPS = 1e-5; TEST(PreconditionsTest, ExceptionThrowing) { diff --git a/transmission_interface/test/four_bar_linkage_transmission_test.cpp b/transmission_interface/test/four_bar_linkage_transmission_test.cpp index a44feb178c4..898e6fe08a8 100644 --- a/transmission_interface/test/four_bar_linkage_transmission_test.cpp +++ b/transmission_interface/test/four_bar_linkage_transmission_test.cpp @@ -33,7 +33,7 @@ using transmission_interface::FourBarLinkageTransmission; using transmission_interface::JointHandle; // Floating-point value comparison threshold -const double EPS = 1e-6; +const double EPS = 1e-5; TEST(PreconditionsTest, ExceptionThrowing) { diff --git a/transmission_interface/test/simple_transmission_test.cpp b/transmission_interface/test/simple_transmission_test.cpp index d7601cdd205..47d4cdefc26 100644 --- a/transmission_interface/test/simple_transmission_test.cpp +++ b/transmission_interface/test/simple_transmission_test.cpp @@ -28,7 +28,7 @@ using transmission_interface::JointHandle; using transmission_interface::SimpleTransmission; // Floating-point value comparison threshold -const double EPS = 1e-6; +const double EPS = 1e-5; TEST(PreconditionsTest, ExceptionThrownWithInvalidParameters) {