Subject: Adopt unit test for i386
---
- test/features/test_curvatures_estimation.cpp | 12 ++++++------
- test/features/test_gasd_estimation.cpp | 2 +-
- test/filters/test_convolution.cpp | 2 ++
- test/octree/test_octree.cpp | 2 +-
- 4 files changed, 10 insertions(+), 8 deletions(-)
+ test/features/test_curvatures_estimation.cpp | 12 ++++++------
+ test/features/test_gasd_estimation.cpp | 2 +-
+ test/filters/test_convolution.cpp | 2 ++
+ test/io/test_tim_grabber.cpp | 2 +-
+ test/octree/test_octree.cpp | 2 +-
+ test/sample_consensus/test_sample_consensus_plane_models.cpp | 6 +++---
+ 6 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/test/features/test_curvatures_estimation.cpp b/test/features/test_curvatures_estimation.cpp
index 11e858f..51e5ba3 100644
}
int
+diff --git a/test/io/test_tim_grabber.cpp b/test/io/test_tim_grabber.cpp
+index 8897af5..ed97958 100644
+--- a/test/io/test_tim_grabber.cpp
++++ b/test/io/test_tim_grabber.cpp
+@@ -89,7 +89,7 @@ TEST_F (TimGrabberTest, Test1)
+ for (std::size_t j = 0; j < correct_clouds_.at(i).size (); j++) {
+ PointT const& correct_point = correct_clouds_.at(i).at(j);
+ PointT const& answer_point = answer_cloud->at(j);
+- EXPECT_NEAR (correct_point.x, answer_point.x, 1.0e-3);
++ EXPECT_NEAR (correct_point.x, answer_point.x, 5.0e-3);
+ EXPECT_NEAR (correct_point.y, answer_point.y, 1.0e-3);
+ EXPECT_NEAR (correct_point.z, answer_point.z, 1.0e-3);
+ }
diff --git a/test/octree/test_octree.cpp b/test/octree/test_octree.cpp
index fc37ad1..210a3c2 100644
--- a/test/octree/test_octree.cpp
}
}
}
+diff --git a/test/sample_consensus/test_sample_consensus_plane_models.cpp b/test/sample_consensus/test_sample_consensus_plane_models.cpp
+index 48a0011..27aba91 100644
+--- a/test/sample_consensus/test_sample_consensus_plane_models.cpp
++++ b/test/sample_consensus/test_sample_consensus_plane_models.cpp
+@@ -465,10 +465,10 @@ TEST (SampleConsensusModelPlane, OptimizeFarFromOrigin)
+ Eigen::VectorXf coeffs(4); // Doesn't have to be initialized, the function doesn't use them
+ Eigen::VectorXf optimized_coeffs(4);
+ model.optimizeModelCoefficients(inliers, coeffs, optimized_coeffs);
+- EXPECT_NEAR(optimized_coeffs[0], z[0], 5e-6);
+- EXPECT_NEAR(optimized_coeffs[1], z[1], 5e-6);
++ EXPECT_NEAR(optimized_coeffs[0], z[0], 5e-5);
++ EXPECT_NEAR(optimized_coeffs[1], z[1], 5e-5);
+ EXPECT_NEAR(optimized_coeffs[2], z[2], 5e-6);
+- EXPECT_NEAR(optimized_coeffs[3], -z.dot(center), 5e-2);
++ EXPECT_NEAR(optimized_coeffs[3], -z.dot(center), 5e-1);
+ }
+
+ int