Skip to content

Commit

Permalink
Pose_TEST: test default pose prints without -0
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed May 1, 2021
1 parent 3e6bd7c commit e3c7b81
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Pose_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ TEST(PoseTest, OperatorStreamOut)
EXPECT_EQ(stream.str(), "0.1 1.2 2.3 0 0.1 1");
}

/////////////////////////////////////////////////
TEST(PoseTest, OperatorStreamOutZero)
{
math::Pose3d p(0.1, 1.2, 2.3, 0, 0, 0);
std::ostringstream stream;
stream << p;
EXPECT_EQ(stream.str(), "0.1 1.2 2.3 0 0 0");
}

/////////////////////////////////////////////////
TEST(PoseTest, MutablePose)
{
Expand Down

0 comments on commit e3c7b81

Please sign in to comment.