| 37 | namespace { |
| 38 | |
| 39 | TEST(ComputeBoundingBoxAndCentroid, SingleCoord) { |
| 40 | const auto [bbox, centroid] = |
| 41 | ComputeBoundingBoxAndCentroid(0, 1, {1}, {2}, {3}); |
| 42 | EXPECT_EQ(bbox.min(), Eigen::Vector3d(1, 2, 3)); |
| 43 | EXPECT_EQ(bbox.max(), Eigen::Vector3d(1, 2, 3)); |
| 44 | EXPECT_EQ(centroid, Eigen::Vector3d(1, 2, 3)); |
| 45 | } |
| 46 | |
| 47 | TEST(ComputeBoundingBoxAndCentroid, TwoCoords) { |
| 48 | const auto [bbox, centroid] = |
nothing calls this directly
no test coverage detected