From c1766cf65a2a8184c99773e7e2b82d5eb0d7bf23 Mon Sep 17 00:00:00 2001 From: Arjo Chakravarty Date: Wed, 10 May 2023 01:53:25 +0000 Subject: [PATCH] Coverage Signed-off-by: Arjo Chakravarty --- src/Utility_TEST.cc | 5 +++++ 1 file changed, 5 insertions(+) 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); } /////////////////////////////////////////////////