Skip to content

Commit

Permalink
Fixes for testing in non standard architectures (#546)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
  • Loading branch information
3 people authored Aug 22, 2023
1 parent 469540c commit a0c9148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Helpers_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ TEST(HelpersTest, AppendToStream)
<< std::setprecision(std::numeric_limits<long double>::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");
Expand All @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions src/Pose_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

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

0 comments on commit a0c9148

Please sign in to comment.