Skip to content

Commit

Permalink
fix(planning_test_utils): fix build error -werror=sign-compare (#7086)
Browse files Browse the repository at this point in the history
fix(planning_test_utils): fix build error

Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota authored May 21, 2024
1 parent a792d4b commit ed2549c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions planning/planning_test_utils/test/test_mock_data_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ TEST(ParseFunctions, CompleteYAMLTest)

// Test parsing of segments
std::vector<LaneletSegment> segments = parse_segments(config["segments"]);
ASSERT_EQ(segments.size(), 1); // Assuming only one segment in the provided YAML for this test
ASSERT_EQ(
segments.size(), uint64_t(1)); // Assuming only one segment in the provided YAML for this test

const auto & segment0 = segments[0];
EXPECT_EQ(segment0.preferred_primitive.id, 11);
EXPECT_EQ(segment0.primitives.size(), 2);
EXPECT_EQ(segment0.primitives.size(), uint64_t(2));
EXPECT_EQ(segment0.primitives[0].id, 22);
EXPECT_EQ(segment0.primitives[0].primitive_type, "lane");
EXPECT_EQ(segment0.primitives[1].id, 33);
Expand Down Expand Up @@ -118,10 +119,10 @@ TEST(ParseFunction, CompleteFromFilename)

ASSERT_EQ(
lanelet_route.segments.size(),
2); // Assuming only one segment in the provided YAML for this test
uint64_t(2)); // Assuming only one segment in the provided YAML for this test
const auto & segment1 = lanelet_route.segments[1];
EXPECT_EQ(segment1.preferred_primitive.id, 44);
EXPECT_EQ(segment1.primitives.size(), 4);
EXPECT_EQ(segment1.primitives.size(), uint64_t(4));
EXPECT_EQ(segment1.primitives[0].id, 55);
EXPECT_EQ(segment1.primitives[0].primitive_type, "lane");
EXPECT_EQ(segment1.primitives[1].id, 66);
Expand Down

0 comments on commit ed2549c

Please sign in to comment.