diff --git a/src/Utility_TEST.cc b/src/Utility_TEST.cc index 71b3f2e7..a822df28 100644 --- a/src/Utility_TEST.cc +++ b/src/Utility_TEST.cc @@ -411,6 +411,8 @@ TEST(MsgsTest, ConvertMsgsSphericalCoordinatesTypeToMath) math::SphericalCoordinates::CoordinateType::LOCAL); EXPECT_EQ(Convert(msgs::SphericalCoordinatesType::LOCAL2), math::SphericalCoordinates::CoordinateType::LOCAL2); + EXPECT_EQ(Convert((msgs::SphericalCoordinatesType)500000), + math::SphericalCoordinates::CoordinateType::LOCAL2); } ///////////////////////////////////////////////// @@ -431,6 +433,9 @@ TEST(MsgsTest, ConvertMathSphericalCoordinatedTypeToMsg) EXPECT_EQ(msgs::ConvertCoord( math::SphericalCoordinates::CoordinateType::LOCAL2), msgs::SphericalCoordinatesType::LOCAL2); + EXPECT_EQ(msgs::ConvertCoord( + (math::SphericalCoordinates::CoordinateType)500000), + msgs::SphericalCoordinatesType::LOCAL2); } /////////////////////////////////////////////////