23 #include "gtest/gtest.h" 29 TEST(PureLocalizationTrimmerTest, MarksSubmapsAsExpected) {
30 const int kTrajectoryId = 42;
31 PureLocalizationTrimmer trimmer(kTrajectoryId, 15);
32 testing::FakeTrimmable fake_pose_graph(kTrajectoryId, 17);
33 trimmer.Trim(&fake_pose_graph);
35 const auto trimmed_submaps = fake_pose_graph.trimmed_submaps();
36 ASSERT_EQ(2, trimmed_submaps.size());
37 EXPECT_EQ((SubmapId{kTrajectoryId, 0}), trimmed_submaps[0]);
38 EXPECT_EQ((SubmapId{kTrajectoryId, 1}), trimmed_submaps[1]);
TEST(TrajectoryConnectivityStateTest, UnknownTrajectory)