Inline calls to Trim() in id_test. (#1451)

master
Alexander Belyaev 2018-10-24 16:38:41 +02:00 committed by Wally B. Feed
parent d0348634b2
commit 1905b6bb59
1 changed files with 2 additions and 3 deletions

View File

@ -78,9 +78,8 @@ TEST(IdTest, DeleteTrajectory) {
EXPECT_EQ(map_by_id.size(), 3); EXPECT_EQ(map_by_id.size(), 3);
EXPECT_EQ(2, std::distance(map_by_id.trajectory_ids().begin(), EXPECT_EQ(2, std::distance(map_by_id.trajectory_ids().begin(),
map_by_id.trajectory_ids().end())); map_by_id.trajectory_ids().end()));
for (const auto& it : map_by_id.trajectory(trajectory_id)) { map_by_id.Trim(NodeId{trajectory_id, 4});
map_by_id.Trim(it.id); map_by_id.Trim(NodeId{trajectory_id, 5});
}
EXPECT_EQ(0, std::distance(map_by_id.trajectory(trajectory_id).begin(), EXPECT_EQ(0, std::distance(map_by_id.trajectory(trajectory_id).begin(),
map_by_id.trajectory(trajectory_id).end())); map_by_id.trajectory(trajectory_id).end()));
int invalid_trajectory_id = 2; int invalid_trajectory_id = 2;