Commits

Nathan Koenig committed 0d637f9 Merge

Merged in issue_459 (pull request #258)

Fix for issue #459

  • Participants
  • Parent commits 586d9cd, 9fb7e59
  • Branches gazebo_1.4

Comments (0)

Files changed (1)

gazebo/msgs/test/MsgFactory.cc

         gazebo::msgs::MsgFactory::NewMsg("gazebo.msgs.Vector3d"));
 
   msg->ParseFromString(serializedData);
-  EXPECT_EQ(msg->x(), 1.1);
-  EXPECT_EQ(msg->y(), 2.2);
-  EXPECT_EQ(msg->z(), 3.3);
+  EXPECT_NEAR(msg->x(), 1.1, 1e-6);
+  EXPECT_NEAR(msg->y(), 2.2, 1e-6);
+  EXPECT_NEAR(msg->z(), 3.3, 1e-6);
 }
 
 /////////////////////////////////////////////////