Skip to content

Commit 604b756

Browse files
committed
test: simplify routing path validation in Routing check
1 parent 9c34e74 commit 604b756

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ TEST_CASE_METHOD(OpenDriveFixture, "Routing check", "[xodr]")
6565
for (const odr::RoutingPath& expected_path : expected_paths)
6666
{
6767
const odr::RoutingPath path = graph.shortest_path(expected_path.front(), expected_path.back());
68-
REQUIRE(path.size() == expected_path.size());
69-
for (size_t idx = 0; idx < expected_path.size(); idx++)
70-
REQUIRE(path[idx] == expected_path[idx]);
68+
REQUIRE(path == expected_path);
7169
}
7270
}

0 commit comments

Comments
 (0)