@@ -41,7 +41,8 @@ class CompactByFieldPointsNodeTest : public RGLTestWithParam<int>
41
41
}
42
42
};
43
43
44
- INSTANTIATE_TEST_SUITE_P (CompactByFieldPointsNodeTest, CompactByFieldPointsNodeTest, testing::Values(1 , 100 , maxGPUCoresTestCount),
44
+ INSTANTIATE_TEST_SUITE_P (CompactByFieldPointsNodeTest, CompactByFieldPointsNodeTest,
45
+ testing::Values (1 , 100 , maxGPUCoresTestCount),
45
46
[](const auto & info) { return " pointsCount_" + std::to_string (info.param ); });
46
47
47
48
TEST_F (CompactByFieldPointsNodeTest, invalid_argument_node)
@@ -90,15 +91,16 @@ TEST_P(CompactByFieldPointsNodeTest, points_all_non_hit)
90
91
91
92
runGraphWithAssertions (inNode);
92
93
93
- auto && outPointCloud = std::make_unique<TestPointCloud>(TestPointCloud::createFromNode (compactByFieldPointsNode, pointFields));
94
+ auto && outPointCloud = std::make_unique<TestPointCloud>(
95
+ TestPointCloud::createFromNode (compactByFieldPointsNode, pointFields));
94
96
EXPECT_EQ (outPointCloud->getPointCount (), 0 );
95
97
96
98
// Check if the contents of outData have changed (they should not have)
97
99
std::vector<::Field<XYZ_VEC3_F32>::type> outData{
98
100
{ 2 .0f , 3 .0f , 5 .0f },
99
- { 7 .0f , 11 .0f , 13 .0f },
100
- {17 .0f , 19 .0f , 23 .0f }
101
- };
101
+ { 7 .0f , 11 .0f , 13 .0f },
102
+ {17 .0f , 19 .0f , 23 .0f }
103
+ };
102
104
auto outDataCopy = outData;
103
105
104
106
int32_t outCount, outSize;
@@ -124,7 +126,8 @@ TEST_P(CompactByFieldPointsNodeTest, points_all_hit)
124
126
125
127
runGraphWithAssertions (inNode);
126
128
127
- auto && outPointCloud = std::make_unique<TestPointCloud>(TestPointCloud::createFromNode (compactByFieldPointsNode, pointFields));
129
+ auto && outPointCloud = std::make_unique<TestPointCloud>(
130
+ TestPointCloud::createFromNode (compactByFieldPointsNode, pointFields));
128
131
129
132
EXPECT_EQ (*outPointCloud, *inPointCloud);
130
133
}
@@ -140,7 +143,8 @@ TEST_P(CompactByFieldPointsNodeTest, points_random_hit)
140
143
auto && inPointCloudWithoutNonHits = inPointCloud;
141
144
inPointCloudWithoutNonHits->removeNonHitPoints ();
142
145
143
- auto && outPointCloud = std::make_unique<TestPointCloud>(TestPointCloud::createFromNode (compactByFieldPointsNode, pointFields));
146
+ auto && outPointCloud = std::make_unique<TestPointCloud>(
147
+ TestPointCloud::createFromNode (compactByFieldPointsNode, pointFields));
144
148
145
149
EXPECT_EQ (*outPointCloud, *inPointCloudWithoutNonHits);
146
150
}
@@ -172,7 +176,7 @@ TEST_P(CompactByFieldPointsNodeTest, multiple_compactions_applied_to_same_data)
172
176
EXPECT_EQ (*outPointCloud, *inPointCloudWithoutNonHits);
173
177
}
174
178
175
- TEST_F (CompactByFieldPointsNodeTest, should_warn_when_empty_point_cloud )
179
+ TEST_F (CompactByFieldPointsNodeTest, should_work_when_empty_point_cloud )
176
180
{
177
181
rgl_node_t emptyPointCloudOutputNode = nullptr ;
178
182
createOrUpdateNode<EmptyNode>(&emptyPointCloudOutputNode);
0 commit comments