From bde1d6ccee930a82ce6cc08f0a497c83998e2dc0 Mon Sep 17 00:00:00 2001 From: Masaya Kataoka Date: Wed, 18 Dec 2024 12:53:18 +0900 Subject: [PATCH] add test case for isInIntersection function Signed-off-by: Masaya Kataoka --- .../test/src/hdmap_utils/test_hdmap_utils.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/simulation/traffic_simulator/test/src/hdmap_utils/test_hdmap_utils.cpp b/simulation/traffic_simulator/test/src/hdmap_utils/test_hdmap_utils.cpp index dd0dda7330f..e6ba6873f0d 100644 --- a/simulation/traffic_simulator/test/src/hdmap_utils/test_hdmap_utils.cpp +++ b/simulation/traffic_simulator/test/src/hdmap_utils/test_hdmap_utils.cpp @@ -2206,6 +2206,16 @@ TEST_F(HdMapUtilsTest_IntersectionMap, getLongitudinalDistance_laneChange) } } +/** + * @note Test for isInIntersection function + * + */ +TEST_F(HdMapUtilsTest_IntersectionMap, isInIntersection) +{ + EXPECT_TRUE(hdmap_utils.isInIntersection(662)); + EXPECT_FALSE(hdmap_utils.isInIntersection(574)); +} + /** * @note Test basic functionality. * Test obtaining stop line ids correctness with a route that has no stop lines.