From a0c91480cb55141266b89c694e4761a52d653b55 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Tue, 22 Aug 2023 19:23:30 +0200 Subject: [PATCH] Fixes for testing in non standard architectures (#546) Signed-off-by: Jose Luis Rivero Signed-off-by: Michael Carroll Co-authored-by: Michael Carroll Co-authored-by: Michael Carroll --- src/Helpers_TEST.cc | 4 ++-- src/Pose_TEST.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Helpers_TEST.cc b/src/Helpers_TEST.cc index 7734d16ca..3bd1fa2d1 100644 --- a/src/Helpers_TEST.cc +++ b/src/Helpers_TEST.cc @@ -1006,7 +1006,7 @@ TEST(HelpersTest, AppendToStream) << std::setprecision(std::numeric_limits::digits10 + 1); math::appendToStream(out, pi); -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__amd64__) && !defined(__i386__) EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793"); #else EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793239"); @@ -1016,7 +1016,7 @@ TEST(HelpersTest, AppendToStream) << std::setprecision(3); math::appendToStream(out, pi); -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__amd64__) && !defined(__i386__) EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793 3.14"); #else EXPECT_EQ(out.str(), "0 456 0 3.14159 3.141592654 3.141592653589793239 3.14"); diff --git a/src/Pose_TEST.cc b/src/Pose_TEST.cc index dde17ce9c..6fbed09c8 100644 --- a/src/Pose_TEST.cc +++ b/src/Pose_TEST.cc @@ -181,10 +181,10 @@ TEST(PoseTest, ConstPose) ///////////////////////////////////////////////// TEST(PoseTest, OperatorStreamOut) { - math::Pose3d p(0.1, 1.2, 2.3, 0.0, 0.1, 1.0); + math::Pose3d p(0.1, 1.2, 2.3, 0.2, 0.1, 1.0); std::ostringstream stream; stream << p; - EXPECT_EQ(stream.str(), "0.1 1.2 2.3 0 0.1 1"); + EXPECT_EQ(stream.str(), "0.1 1.2 2.3 0.2 0.1 1"); } /////////////////////////////////////////////////