Skip to content

Commit a56677e

Browse files
UPDATE: add test of AddPoints() in DFPointCLoud
1 parent b379924 commit a56677e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/unit_tests/DFPointCloudTest.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ TEST_F(DFPointCloudTestFixture, ComputeDistance) {
117117
EXPECT_EQ(distances.size(), 7379);
118118
}
119119

120+
TEST_F(DFPointCloudTestFixture, AddPoints) {
121+
std::shared_ptr<diffCheck::geometry::DFPointCloud> dfPointCloud2 = std::make_shared<diffCheck::geometry::DFPointCloud>();
122+
dfPointCloud2->LoadFromPLY(diffCheck::io::GetRoofQuarterPlyPath());
123+
dfPointCloud.AddPoints(*dfPointCloud2);
124+
EXPECT_EQ(dfPointCloud.GetNumPoints(), 7379 * 2);
125+
}
126+
120127
TEST_F(DFPointCloudTestFixture, ComputeAABB) {
121128
std::vector<Eigen::Vector3d> bbox = dfPointCloud.ComputeBoundingBox();
122129
EXPECT_EQ(bbox.size(), 2);

0 commit comments

Comments
 (0)