diff --git a/test/gtest_processor_landmark_external.cpp b/test/gtest_processor_landmark_external.cpp index c7ac5c831f2c03d3588f224946f1ec662a72ab18..f97df272146e529317e64ee2458a973d18c67b4d 100644 --- a/test/gtest_processor_landmark_external.cpp +++ b/test/gtest_processor_landmark_external.cpp @@ -296,17 +296,17 @@ void ProcessorLandmarkExternalTest::testConfiguration(int dim, ASSERT_FALSE(fac_list.empty()); // factors' type - if (should_emplace_KF) - for (auto fac : fac_list) + for (auto fac : fac_list) + { + if (fac->getProcessor() == processor) { - if (fac->getProcessor() == processor) - { - ASSERT_EQ(fac->getType(), std::string("FactorRelative") + - (orientation ? "Pose" : "Position") + - (dim == 2 ? "2d" : "3d") + - "WithExtrinsics"); - } + ASSERT_EQ(fac->getType(), std::string("FactorRelative") + + (orientation ? "Pose" : "Position") + + (dim == 2 ? "2d" : "3d") + + "WithExtrinsics"); } + } + // landmarks created by processor if (not add_landmarks) {